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
706 x_default_search_path
723 ac_precious_vars
='build_alias
735 # Initialize some variables set by options.
737 ac_init_version
=false
738 # The variables have the same names as the options, with
739 # dashes changed to underlines.
747 program_transform_name
=s
,x
,x
,
755 # Installation directory options.
756 # These are left unexpanded so users can "make install exec_prefix=/foo"
757 # and all the variables that are supposed to be based on exec_prefix
758 # by default will actually change.
759 # Use braces instead of parens because sh, perl, etc. also accept them.
760 # (The list follows the same order as the GNU Coding Standards.)
761 bindir
='${exec_prefix}/bin'
762 sbindir
='${exec_prefix}/sbin'
763 libexecdir
='${exec_prefix}/libexec'
764 datarootdir
='${prefix}/share'
765 datadir
='${datarootdir}'
766 sysconfdir
='${prefix}/etc'
767 sharedstatedir
='${prefix}/com'
768 localstatedir
='${prefix}/var'
769 includedir
='${prefix}/include'
770 oldincludedir
='/usr/include'
771 docdir
='${datarootdir}/doc/${PACKAGE}'
772 infodir
='${datarootdir}/info'
777 libdir
='${exec_prefix}/lib'
778 localedir
='${datarootdir}/locale'
779 mandir
='${datarootdir}/man'
785 # If the previous option needs an argument, assign it.
786 if test -n "$ac_prev"; then
787 eval $ac_prev=\
$ac_option
793 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
797 # Accept the important Cygnus configure options, so we can diagnose typos.
799 case $ac_dashdash$ac_option in
803 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
805 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
808 -build |
--build |
--buil |
--bui |
--bu)
809 ac_prev
=build_alias
;;
810 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
811 build_alias
=$ac_optarg ;;
813 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
814 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
815 ac_prev
=cache_file
;;
816 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
817 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
818 cache_file
=$ac_optarg ;;
821 cache_file
=config.cache
;;
823 -datadir |
--datadir |
--datadi |
--datad)
825 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
826 datadir
=$ac_optarg ;;
828 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
829 |
--dataroo |
--dataro |
--datar)
830 ac_prev
=datarootdir
;;
831 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
832 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
833 datarootdir
=$ac_optarg ;;
835 -disable-* |
--disable-*)
836 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
837 # Reject names that are not valid shell variable names.
838 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
839 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
840 { (exit 1); exit 1; }; }
841 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
842 eval enable_
$ac_feature=no
;;
844 -docdir |
--docdir |
--docdi |
--doc |
--do)
846 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
849 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
851 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
854 -enable-* |
--enable-*)
855 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
858 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
859 { (exit 1); exit 1; }; }
860 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
861 eval enable_
$ac_feature=\
$ac_optarg ;;
863 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
864 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
865 |
--exec |
--exe |
--ex)
866 ac_prev
=exec_prefix
;;
867 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
868 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
869 |
--exec=* |
--exe=* |
--ex=*)
870 exec_prefix
=$ac_optarg ;;
872 -gas |
--gas |
--ga |
--g)
873 # Obsolete; use --with-gas.
876 -help |
--help |
--hel |
--he |
-h)
878 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
879 ac_init_help
=recursive
;;
880 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
881 ac_init_help
=short
;;
883 -host |
--host |
--hos |
--ho)
884 ac_prev
=host_alias
;;
885 -host=* |
--host=* |
--hos=* |
--ho=*)
886 host_alias
=$ac_optarg ;;
888 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
890 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
892 htmldir
=$ac_optarg ;;
894 -includedir |
--includedir |
--includedi |
--included |
--include \
895 |
--includ |
--inclu |
--incl |
--inc)
896 ac_prev
=includedir
;;
897 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
898 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
899 includedir
=$ac_optarg ;;
901 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
903 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
904 infodir
=$ac_optarg ;;
906 -libdir |
--libdir |
--libdi |
--libd)
908 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
911 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
912 |
--libexe |
--libex |
--libe)
913 ac_prev
=libexecdir
;;
914 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
915 |
--libexe=* |
--libex=* |
--libe=*)
916 libexecdir
=$ac_optarg ;;
918 -localedir |
--localedir |
--localedi |
--localed |
--locale)
920 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
921 localedir
=$ac_optarg ;;
923 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
924 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
925 ac_prev
=localstatedir
;;
926 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
927 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
928 localstatedir
=$ac_optarg ;;
930 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
932 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
936 # Obsolete; use --without-fp.
939 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
940 |
--no-cr |
--no-c |
-n)
943 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
944 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
947 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
948 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
949 |
--oldin |
--oldi |
--old |
--ol |
--o)
950 ac_prev
=oldincludedir
;;
951 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
952 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
953 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
954 oldincludedir
=$ac_optarg ;;
956 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
958 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
961 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
962 |
--program-pre |
--program-pr |
--program-p)
963 ac_prev
=program_prefix
;;
964 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
965 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
966 program_prefix
=$ac_optarg ;;
968 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
969 |
--program-suf |
--program-su |
--program-s)
970 ac_prev
=program_suffix
;;
971 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
972 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
973 program_suffix
=$ac_optarg ;;
975 -program-transform-name |
--program-transform-name \
976 |
--program-transform-nam |
--program-transform-na \
977 |
--program-transform-n |
--program-transform- \
978 |
--program-transform |
--program-transfor \
979 |
--program-transfo |
--program-transf \
980 |
--program-trans |
--program-tran \
981 |
--progr-tra |
--program-tr |
--program-t)
982 ac_prev
=program_transform_name
;;
983 -program-transform-name=* |
--program-transform-name=* \
984 |
--program-transform-nam=* |
--program-transform-na=* \
985 |
--program-transform-n=* |
--program-transform-=* \
986 |
--program-transform=* |
--program-transfor=* \
987 |
--program-transfo=* |
--program-transf=* \
988 |
--program-trans=* |
--program-tran=* \
989 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
990 program_transform_name
=$ac_optarg ;;
992 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
994 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
997 -psdir |
--psdir |
--psdi |
--psd |
--ps)
999 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1002 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1003 |
-silent |
--silent |
--silen |
--sile |
--sil)
1006 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1008 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1010 sbindir
=$ac_optarg ;;
1012 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1013 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1014 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1016 ac_prev
=sharedstatedir
;;
1017 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1018 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1019 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1021 sharedstatedir
=$ac_optarg ;;
1023 -site |
--site |
--sit)
1025 -site=* |
--site=* |
--sit=*)
1028 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1030 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1031 srcdir
=$ac_optarg ;;
1033 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1034 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1035 ac_prev
=sysconfdir
;;
1036 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1037 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1038 sysconfdir
=$ac_optarg ;;
1040 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1041 ac_prev
=target_alias
;;
1042 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1043 target_alias
=$ac_optarg ;;
1045 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1048 -version |
--version |
--versio |
--versi |
--vers |
-V)
1049 ac_init_version
=: ;;
1052 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1055 { echo "$as_me: error: invalid package name: $ac_package" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1058 eval with_
$ac_package=\
$ac_optarg ;;
1060 -without-* |
--without-*)
1061 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1064 { echo "$as_me: error: invalid package name: $ac_package" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1067 eval with_
$ac_package=no
;;
1070 # Obsolete; use --with-x.
1073 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1074 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1075 ac_prev
=x_includes
;;
1076 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1077 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1078 x_includes
=$ac_optarg ;;
1080 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1081 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1082 ac_prev
=x_libraries
;;
1083 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1084 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1085 x_libraries
=$ac_optarg ;;
1087 -*) { echo "$as_me: error: unrecognized option: $ac_option
1088 Try \`$0 --help' for more information." >&2
1089 { (exit 1); exit 1; }; }
1093 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1096 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1097 { (exit 1); exit 1; }; }
1098 eval $ac_envvar=\
$ac_optarg
1099 export $ac_envvar ;;
1102 # FIXME: should be removed in autoconf 3.0.
1103 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1104 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1105 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1106 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1112 if test -n "$ac_prev"; then
1113 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1114 { echo "$as_me: error: missing argument to $ac_option" >&2
1115 { (exit 1); exit 1; }; }
1118 # Be sure to have absolute directory names.
1119 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1120 datadir sysconfdir sharedstatedir localstatedir includedir \
1121 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1122 libdir localedir mandir
1124 eval ac_val
=\$
$ac_var
1126 [\\/$
]* | ?
:[\\/]* ) continue;;
1127 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1129 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1130 { (exit 1); exit 1; }; }
1133 # There might be people who depend on the old broken behavior: `$host'
1134 # used to hold the argument of --host etc.
1135 # FIXME: To remove some day.
1138 target
=$target_alias
1140 # FIXME: To remove some day.
1141 if test "x$host_alias" != x
; then
1142 if test "x$build_alias" = x
; then
1143 cross_compiling
=maybe
1144 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1145 If a cross compiler is detected then cross compile mode will be used." >&2
1146 elif test "x$build_alias" != "x$host_alias"; then
1152 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1154 test "$silent" = yes && exec 6>/dev
/null
1157 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1158 ac_ls_di
=`ls -di .` &&
1159 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1160 { echo "$as_me: error: Working directory cannot be determined" >&2
1161 { (exit 1); exit 1; }; }
1162 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1163 { echo "$as_me: error: pwd does not report name of working directory" >&2
1164 { (exit 1); exit 1; }; }
1167 # Find the source files, if location was not specified.
1168 if test -z "$srcdir"; then
1169 ac_srcdir_defaulted
=yes
1170 # Try the directory containing this script, then the parent directory.
1171 ac_confdir
=`$as_dirname -- "$0" ||
1172 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1173 X"$0" : 'X\(//\)[^/]' \| \
1174 X"$0" : 'X\(//\)$' \| \
1175 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1195 if test ! -r "$srcdir/$ac_unique_file"; then
1199 ac_srcdir_defaulted
=no
1201 if test ! -r "$srcdir/$ac_unique_file"; then
1202 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1203 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1204 { (exit 1); exit 1; }; }
1206 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1208 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1209 { (exit 1); exit 1; }; }
1211 # When building in place, set srcdir=.
1212 if test "$ac_abs_confdir" = "$ac_pwd"; then
1215 # Remove unnecessary trailing slashes from srcdir.
1216 # Double slashes in file names in object file debugging info
1217 # mess up M-x gdb in Emacs.
1219 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1221 for ac_var
in $ac_precious_vars; do
1222 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1223 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1224 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1225 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1229 # Report the --help message.
1231 if test "$ac_init_help" = "long"; then
1232 # Omit some internal or obsolete options to make the list less imposing.
1233 # This message is too long to be a string in the A/UX 3.1 sh.
1235 \`configure' configures this package to adapt to many kinds of systems.
1237 Usage: $0 [OPTION]... [VAR=VALUE]...
1239 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1240 VAR=VALUE. See below for descriptions of some of the useful variables.
1242 Defaults for the options are specified in brackets.
1245 -h, --help display this help and exit
1246 --help=short display options specific to this package
1247 --help=recursive display the short help of all the included packages
1248 -V, --version display version information and exit
1249 -q, --quiet, --silent do not print \`checking...' messages
1250 --cache-file=FILE cache test results in FILE [disabled]
1251 -C, --config-cache alias for \`--cache-file=config.cache'
1252 -n, --no-create do not create output files
1253 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1255 Installation directories:
1256 --prefix=PREFIX install architecture-independent files in PREFIX
1257 [$ac_default_prefix]
1258 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1261 By default, \`make install' will install all the files in
1262 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1263 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1264 for instance \`--prefix=\$HOME'.
1266 For better control, use the options below.
1268 Fine tuning of the installation directories:
1269 --bindir=DIR user executables [EPREFIX/bin]
1270 --sbindir=DIR system admin executables [EPREFIX/sbin]
1271 --libexecdir=DIR program executables [EPREFIX/libexec]
1272 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1273 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1274 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1275 --libdir=DIR object code libraries [EPREFIX/lib]
1276 --includedir=DIR C header files [PREFIX/include]
1277 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1278 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1279 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1280 --infodir=DIR info documentation [DATAROOTDIR/info]
1281 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1282 --mandir=DIR man documentation [DATAROOTDIR/man]
1283 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1284 --htmldir=DIR html documentation [DOCDIR]
1285 --dvidir=DIR dvi documentation [DOCDIR]
1286 --pdfdir=DIR pdf documentation [DOCDIR]
1287 --psdir=DIR ps documentation [DOCDIR]
1293 --program-prefix=PREFIX prepend PREFIX to installed program names
1294 --program-suffix=SUFFIX append SUFFIX to installed program names
1295 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1298 --x-includes=DIR X include files are
in DIR
1299 --x-libraries=DIR X library files are
in DIR
1302 --build=BUILD configure
for building on BUILD
[guessed
]
1303 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1307 if test -n "$ac_init_help"; then
1312 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1313 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1314 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1315 specify
install directory
for Emacs.app on Mac OS X
1316 --enable-asserts compile code with asserts enabled
1317 --enable-maintainer-mode enable make rules and dependencies not useful
1318 (and sometimes confusing
) to the casual installer
1319 --enable-locallisppath=PATH
1320 directories Emacs should search
for lisp files
1321 specific to this site
1322 --disable-largefile omit support
for large files
1325 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1326 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1327 --without-gcc don
't use GCC to compile Emacs if GCC is found
1328 --without-pop don't support POP
mail retrieval with movemail
1329 --with-kerberos support Kerberos-authenticated POP
1330 --with-kerberos5 support Kerberos version
5 authenticated POP
1331 --with-hesiod support Hesiod to get the POP server
host
1332 --without-sound don
't compile with sound support
1333 --with-x-toolkit=KIT use an X toolkit
1334 (KIT = yes/lucid/athena/motif/gtk/no)
1335 --with-xpm use -lXpm for displaying XPM images
1336 --with-jpeg use -ljpeg for displaying JPEG images
1337 --with-tiff use -ltiff for displaying TIFF images
1338 --with-gif use -lungif for displaying GIF images
1339 --with-png use -lpng for displaying PNG images
1340 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1341 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1342 --without-toolkit-scroll-bars
1343 don't use Motif or Xaw3d scroll bars
1344 --without-xim don
't use X11 XIM
1345 --without-carbon don't use Carbon GUI on Mac OS X
1346 --with-x use the X Window System
1348 Some influential environment variables
:
1349 CC C compiler
command
1350 CFLAGS C compiler flags
1351 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1352 nonstandard directory
<lib dir
>
1353 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1354 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1355 you have headers
in a nonstandard directory
<include dir
>
1357 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1359 Use these variables to override the choices made by
`configure' or to help
1360 it to find libraries and programs with nonstandard names/locations.
1366 if test "$ac_init_help" = "recursive"; then
1367 # If there are subdirs, report their specific --help.
1368 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1369 test -d "$ac_dir" || continue
1373 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1375 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1376 # A ".." for each directory in $ac_dir_suffix.
1377 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1378 case $ac_top_builddir_sub in
1379 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1383 ac_abs_top_builddir=$ac_pwd
1384 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1385 # for backward compatibility:
1386 ac_top_builddir=$ac_top_build_prefix
1389 .) # We are building in place.
1391 ac_top_srcdir=$ac_top_builddir_sub
1392 ac_abs_top_srcdir=$ac_pwd ;;
1393 [\\/]* | ?:[\\/]* ) # Absolute name.
1394 ac_srcdir=$srcdir$ac_dir_suffix;
1395 ac_top_srcdir=$srcdir
1396 ac_abs_top_srcdir=$srcdir ;;
1398 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1399 ac_top_srcdir=$ac_top_build_prefix$srcdir
1400 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1402 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1404 cd "$ac_dir" || { ac_status=$?; continue; }
1405 # Check for guested configure.
1406 if test -f "$ac_srcdir/configure.gnu"; then
1408 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1409 elif test -f "$ac_srcdir/configure"; then
1411 $SHELL "$ac_srcdir/configure" --help=recursive
1413 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1415 cd "$ac_pwd" || { ac_status=$?; break; }
1419 test -n "$ac_init_help" && exit $ac_status
1420 if $ac_init_version; then
1423 generated by GNU Autoconf 2.61
1425 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1426 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1427 This configure script is free software; the Free Software Foundation
1428 gives unlimited permission to copy, distribute and modify it.
1432 cat >config.log <<_ACEOF
1433 This file contains any messages produced by compilers while
1434 running configure, to aid debugging if configure makes a mistake.
1436 It was created by $as_me, which was
1437 generated by GNU Autoconf 2.61. Invocation command line was
1449 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1450 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1451 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1452 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1453 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1455 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1456 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1458 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1459 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1460 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1461 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1462 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1463 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1464 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 test -z "$as_dir" && as_dir=.
1473 echo "PATH: $as_dir"
1489 # Keep a trace of the command line.
1490 # Strip out --no-create and --no-recursion so they do not pile up.
1491 # Strip out --silent because we don't want to record it for future runs.
1492 # Also quote any args containing shell meta-characters.
1493 # Make two passes to allow for proper duplicate-argument suppression.
1497 ac_must_keep_next=false
1503 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1504 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1505 | -silent | --silent | --silen | --sile | --sil)
1508 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1511 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1513 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1514 if test $ac_must_keep_next = true; then
1515 ac_must_keep_next=false # Got value, back to normal.
1518 *=* | --config-cache | -C | -disable-* | --disable-* \
1519 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1520 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1521 | -with-* | --with-* | -without-* | --without-* | --x)
1522 case "$ac_configure_args0 " in
1523 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1526 -* ) ac_must_keep_next=true ;;
1529 ac_configure_args="$ac_configure_args '$ac_arg'"
1534 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1535 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1537 # When interrupted or exit'd, cleanup temporary files, and complete
1538 # config.log. We remove comments because anyway the quotes in there
1539 # would cause problems or look ugly.
1540 # WARNING: Use '\'' to represent an apostrophe within the trap.
1541 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1542 trap 'exit_status=$?
1543 # Save into config.log some information that might help in debugging.
1548 ## ---------------- ##
1549 ## Cache variables. ##
1550 ## ---------------- ##
1553 # The following way of writing the cache mishandles newlines in values,
1555 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1556 eval ac_val=\$$ac_var
1560 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1561 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1564 _ | IFS | as_nl) ;; #(
1565 *) $as_unset $ac_var ;;
1570 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1571 *${as_nl}ac_space=\ *)
1573 "s/'\''/'\''\\\\'\'''\''/g;
1574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1577 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1585 ## ----------------- ##
1586 ## Output variables. ##
1587 ## ----------------- ##
1590 for ac_var in $ac_subst_vars
1592 eval ac_val=\$$ac_var
1594 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1596 echo "$ac_var='\''$ac_val'\''"
1600 if test -n "$ac_subst_files"; then
1602 ## ------------------- ##
1603 ## File substitutions. ##
1604 ## ------------------- ##
1607 for ac_var in $ac_subst_files
1609 eval ac_val=\$$ac_var
1611 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1613 echo "$ac_var='\''$ac_val'\''"
1618 if test -s confdefs.h; then
1628 test "$ac_signal" != 0 &&
1629 echo "$as_me: caught signal $ac_signal"
1630 echo "$as_me: exit $exit_status"
1632 rm -f core *.core core.conftest.* &&
1633 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1636 for ac_signal in 1 2 13 15; do
1637 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1641 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1642 rm -f -r conftest* confdefs.h
1644 # Predefined preprocessor variables.
1646 cat >>confdefs.h <<_ACEOF
1647 #define PACKAGE_NAME "$PACKAGE_NAME"
1651 cat >>confdefs.h <<_ACEOF
1652 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1656 cat >>confdefs.h <<_ACEOF
1657 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1661 cat >>confdefs.h <<_ACEOF
1662 #define PACKAGE_STRING "$PACKAGE_STRING"
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1671 # Let the site file select an alternate cache file if it wants to.
1672 # Prefer explicitly selected file to automatically selected ones.
1673 if test -n "$CONFIG_SITE"; then
1674 set x "$CONFIG_SITE"
1675 elif test "x$prefix" != xNONE; then
1676 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1678 set x "$ac_default_prefix/share/config.site" \
1679 "$ac_default_prefix/etc/config.site"
1684 if test -r "$ac_site_file"; then
1685 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1686 echo "$as_me: loading site script $ac_site_file" >&6;}
1687 sed 's/^/| /' "$ac_site_file" >&5
1692 if test -r "$cache_file"; then
1693 # Some versions of bash will fail to source /dev/null (special
1694 # files actually), so we avoid doing that.
1695 if test -f "$cache_file"; then
1696 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1697 echo "$as_me: loading cache $cache_file" >&6;}
1699 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1700 *) . "./$cache_file";;
1704 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1705 echo "$as_me: creating cache $cache_file" >&6;}
1709 ac_header_list="$ac_header_list sys/time.h"
1710 ac_header_list="$ac_header_list unistd.h"
1711 ac_func_list="$ac_func_list alarm"
1712 # Check that the precious variables saved in the cache have kept the same
1714 ac_cache_corrupted=false
1715 for ac_var in $ac_precious_vars; do
1716 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1717 eval ac_new_set=\$ac_env_${ac_var}_set
1718 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1719 eval ac_new_val=\$ac_env_${ac_var}_value
1720 case $ac_old_set,$ac_new_set in
1722 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1723 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1724 ac_cache_corrupted=: ;;
1726 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1727 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1728 ac_cache_corrupted=: ;;
1731 if test "x$ac_old_val" != "x$ac_new_val"; then
1732 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1733 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1734 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1735 echo "$as_me: former value
: $ac_old_val" >&2;}
1736 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1737 echo "$as_me: current value
: $ac_new_val" >&2;}
1738 ac_cache_corrupted=:
1741 # Pass precious variables to config.status.
1742 if test "$ac_new_set" = set; then
1744 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1745 *) ac_arg=$ac_var=$ac_new_val ;;
1747 case " $ac_configure_args " in
1748 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1749 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1753 if $ac_cache_corrupted; then
1754 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1755 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1756 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1757 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1758 { (exit 1); exit 1; }; }
1778 ac_cpp='$CPP $CPPFLAGS'
1779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1784 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1787 test "$program_prefix" != NONE &&
1788 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1789 # Use a double $ so make ignores it.
1790 test "$program_suffix" != NONE &&
1791 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1792 # Double any \ or $. echo might interpret backslashes.
1793 # By default was `s
,x
,x
', remove it if useless.
1794 cat <<\_ACEOF >conftest.sed
1795 s/[\\$]/&&/g;s/;s,x,x,$//
1797 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1801 lispdir='${datadir}/emacs
/${version}/lisp
'
1802 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1803 '${datadir}/emacs
/site-lisp
'
1804 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1805 etcdir='${datadir}/emacs
/${version}/etc
'
1806 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1807 docdir='${datadir}/emacs
/${version}/etc
'
1808 gamedir='${localstatedir}/games
/emacs
'
1813 # Check whether --with-gcc was given.
1814 if test "${with_gcc+set}" = set; then
1819 # Check whether --with-pop was given.
1820 if test "${with_pop+set}" = set; then
1821 withval=$with_pop; if test "$withval" = yes; then
1822 cat >>confdefs.h <<\_ACEOF
1823 #define MAIL_USE_POP 1
1829 cat >>confdefs.h <<\_ACEOF
1830 #define MAIL_USE_POP 1
1837 # Check whether --with-kerberos was given.
1838 if test "${with_kerberos+set}" = set; then
1839 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1847 # Check whether --with-kerberos5 was given.
1848 if test "${with_kerberos5+set}" = set; then
1849 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1850 if test "${with_kerberos+set}" != set; then
1852 cat >>confdefs.h <<\_ACEOF
1859 cat >>confdefs.h <<\_ACEOF
1866 # Check whether --with-hesiod was given.
1867 if test "${with_hesiod+set}" = set; then
1868 withval=$with_hesiod;
1869 cat >>confdefs.h <<\_ACEOF
1877 # Check whether --with-sound was given.
1878 if test "${with_sound+set}" = set; then
1879 withval=$with_sound;
1884 # Check whether --with-x-toolkit was given.
1885 if test "${with_x_toolkit+set}" = set; then
1886 withval=$with_x_toolkit; case "${withval}" in
1887 y | ye | yes ) val=athena ;;
1889 l | lu | luc | luci | lucid ) val=lucid ;;
1890 a | at | ath | athe | athen | athena ) val=athena ;;
1891 m | mo | mot | moti | motif ) val=motif ;;
1892 g | gt | gtk ) val=gtk ;;
1894 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1895 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1896 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1897 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1898 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1899 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1900 { (exit 1); exit 1; }; }
1908 # Check whether --with-xpm was given.
1909 if test "${with_xpm+set}" = set; then
1914 # Check whether --with-jpeg was given.
1915 if test "${with_jpeg+set}" = set; then
1920 # Check whether --with-tiff was given.
1921 if test "${with_tiff+set}" = set; then
1926 # Check whether --with-gif was given.
1927 if test "${with_gif+set}" = set; then
1932 # Check whether --with-png was given.
1933 if test "${with_png+set}" = set; then
1938 # Check whether --with-gtk was given.
1939 if test "${with_gtk+set}" = set; then
1944 # Check whether --with-pkg-config-prog was given.
1945 if test "${with_pkg_config_prog+set}" = set; then
1946 withval=$with_pkg_config_prog;
1950 # Check whether --with-toolkit-scroll-bars was given.
1951 if test "${with_toolkit_scroll_bars+set}" = set; then
1952 withval=$with_toolkit_scroll_bars;
1956 # Check whether --with-xim was given.
1957 if test "${with_xim+set}" = set; then
1962 # Check whether --with-carbon was given.
1963 if test "${with_carbon+set}" = set; then
1964 withval=$with_carbon;
1967 # Check whether --enable-carbon-app was given.
1968 if test "${enable_carbon_app+set}" = set; then
1969 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1973 # Check whether --enable-asserts was given.
1974 if test "${enable_asserts+set}" = set; then
1975 enableval=$enable_asserts; USE_XASSERTS=$enableval
1981 # Check whether --enable-maintainer-mode was given.
1982 if test "${enable_maintainer_mode+set}" = set; then
1983 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1985 USE_MAINTAINER_MODE=no
1988 if test $USE_MAINTAINER_MODE = yes; then
1995 # Check whether --enable-locallisppath was given.
1996 if test "${enable_locallisppath+set}" = set; then
1997 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
1999 elif test "${enableval}" != "yes"; then
2000 locallisppath=${enableval}
2005 #### Make srcdir absolute, if it isn't already. It
's important to
2006 #### avoid running the path through pwd unnecessarily, since pwd can
2007 #### give you automounter prefixes, which can go away. We do all this
2008 #### so Emacs can find its files when run uninstalled.
2009 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2014 ## We may be able to use the $PWD environment variable to make this
2015 ## absolute. But sometimes PWD is inaccurate.
2016 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2017 ## but that tested only for a well-formed and valid PWD,
2018 ## it did not object when PWD was well-formed and valid but just wrong.
2019 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2023 srcdir
="`(cd ${srcdir}; pwd)`"
2026 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2029 #### Check if the source directory already has a configured system in it.
2030 if test `pwd` != `(cd ${srcdir} && pwd)` \
2031 && test -f "${srcdir}/src/config.h" ; then
2032 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2033 as a build directory right now; it has been configured in its own
2034 right. To configure in another directory as well, you MUST
2035 use GNU make. If you do not have GNU make, then you must
2036 now do \`make distclean' in ${srcdir},
2037 and then run $0 again." >&5
2038 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2039 as a build directory right now; it has been configured in its own
2040 right. To configure in another directory as well, you MUST
2041 use GNU make. If you do not have GNU make, then you must
2042 now do \`make distclean' in ${srcdir},
2043 and then run $0 again." >&2;}
2046 #### Given the configuration name, set machfile and opsysfile to the
2047 #### names of the m/*.h and s/*.h files we should use.
2049 ### Canonicalize the configuration name.
2052 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2053 if test -f "$ac_dir/install-sh"; then
2055 ac_install_sh
="$ac_aux_dir/install-sh -c"
2057 elif test -f "$ac_dir/install.sh"; then
2059 ac_install_sh
="$ac_aux_dir/install.sh -c"
2061 elif test -f "$ac_dir/shtool"; then
2063 ac_install_sh
="$ac_aux_dir/shtool install -c"
2067 if test -z "$ac_aux_dir"; then
2068 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2069 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2070 { (exit 1); exit 1; }; }
2073 # These three variables are undocumented and unsupported,
2074 # and are intended to be withdrawn in a future Autoconf release.
2075 # They can cause serious problems if a builder's source tree is in a directory
2076 # whose full name contains unusual characters.
2077 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2078 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2079 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2082 # Make sure we can run config.sub.
2083 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2084 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2085 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2086 { (exit 1); exit 1; }; }
2088 { echo "$as_me:$LINENO: checking build system type" >&5
2089 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2090 if test "${ac_cv_build+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2093 ac_build_alias
=$build_alias
2094 test "x$ac_build_alias" = x
&&
2095 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2096 test "x$ac_build_alias" = x
&&
2097 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2098 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2099 { (exit 1); exit 1; }; }
2100 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2101 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2102 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2103 { (exit 1); exit 1; }; }
2106 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2107 echo "${ECHO_T}$ac_cv_build" >&6; }
2108 case $ac_cv_build in
2110 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2111 echo "$as_me: error: invalid value of canonical build" >&2;}
2112 { (exit 1); exit 1; }; };;
2115 ac_save_IFS
=$IFS; IFS
='-'
2121 # Remember, the first character of IFS is used to create $*,
2122 # except with old shells:
2125 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2128 { echo "$as_me:$LINENO: checking host system type" >&5
2129 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2130 if test "${ac_cv_host+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 if test "x$host_alias" = x
; then
2134 ac_cv_host
=$ac_cv_build
2136 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2137 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2138 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2139 { (exit 1); exit 1; }; }
2143 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2144 echo "${ECHO_T}$ac_cv_host" >&6; }
2147 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2148 echo "$as_me: error: invalid value of canonical host" >&2;}
2149 { (exit 1); exit 1; }; };;
2152 ac_save_IFS
=$IFS; IFS
='-'
2158 # Remember, the first character of IFS is used to create $*,
2159 # except with old shells:
2162 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2166 configuration
=${host_alias-$host}
2170 ### If you add support for a new configuration, add code to this
2171 ### switch statement to recognize your configuration name and select
2172 ### the appropriate operating system and machine description files.
2174 ### You would hope that you could choose an m/*.h file pretty much
2175 ### based on the machine portion of the configuration name, and an s-
2176 ### file based on the operating system portion. However, it turns out
2177 ### that each m/*.h file is pretty manufacturer-specific - for
2178 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2179 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2180 ### machines. So we basically have to have a special case for each
2181 ### configuration name.
2183 ### As far as handling version numbers on operating systems is
2184 ### concerned, make sure things will fail in a fixable way. If
2185 ### /etc/MACHINES doesn't say anything about version numbers, be
2186 ### prepared to handle anything reasonably. If version numbers
2187 ### matter, be sure /etc/MACHINES says something about it.
2189 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2190 ### "System V Release 4"; he writes, "The old convention encouraged
2191 ### confusion between `system' and `release' levels'."
2193 machine
='' opsys
='' unported
=no
2194 case "${canonical}" in
2199 case "${canonical}" in
2200 alpha
*-*-freebsd*) machine
=alpha
;;
2201 ia64-
*-freebsd*) machine
=ia64
;;
2202 sparc64-
*-freebsd*) machine
=sparc
;;
2203 powerpc-
*-freebsd*) machine
=macppc
;;
2204 i
[3456]86-*-freebsd*) machine
=intel386
;;
2205 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2212 if test -f /usr
/lib
/crti.o
; then
2214 cat >>confdefs.h
<<\_ACEOF
2220 case "${canonical}" in
2221 alpha
*-*-netbsd*) machine
=alpha
;;
2222 i
[3456]86-*-netbsd*) machine
=intel386
;;
2224 # This is somewhat bogus.
2225 machine
=hp9000s300
;;
2226 powerpc-apple-netbsd
*) machine
=macppc
;;
2227 mips-
*-netbsd*) machine
=pmax
;;
2228 mipsel-
*-netbsd*) machine
=pmax
;;
2229 mipseb-
*-netbsd*) machine
=pmax
;;
2230 ns32k-
*-netbsd*) machine
=ns32000
;;
2231 powerpc-
*-netbsd*) machine
=macppc
;;
2232 sparc
*-*-netbsd*) machine
=sparc
;;
2233 vax-
*-netbsd*) machine
=vax
;;
2234 arm-
*-netbsd*) machine
=arm
;;
2241 case "${canonical}" in
2242 alpha
*-*-openbsd*) machine
=alpha
;;
2243 i386-
*-openbsd*) machine
=intel386
;;
2244 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2245 m68k-
*-openbsd*) machine
=hp9000s300
;;
2246 mipsel-
*-openbsd*) machine
=pmax
;;
2247 ns32k-
*-openbsd*) machine
=ns32000
;;
2248 sparc-
*-openbsd*) machine
=sparc
;;
2249 vax-
*-openbsd*) machine
=vax
;;
2256 case "${canonical}" in
2257 i
[3456]86-*-lynxos*) machine
=intel386
;;
2258 powerpc-
*-lynxos*) machine
=powerpc
;;
2263 arm-acorn-riscix1.1
* )
2264 machine
=acorn opsys
=riscix1-1
2266 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2267 ## This name is riscix12 instead of riscix1.2
2268 ## to avoid a file name conflict on MSDOS.
2269 machine
=acorn opsys
=riscix12
2275 case "${canonical}" in
2276 i
[345]86-*-bsdi*) machine
=intel386
;;
2277 sparc-
*-bsdi*) machine
=sparc
;;
2278 powerpc-
*-bsdi*) machine
=macppc
;;
2280 case "${canonical}" in
2281 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2282 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2283 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2284 *-*-bsdi3* ) opsys
=bsdos3
;;
2285 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2290 ## Strictly speaking, we need the version of the alliant operating
2291 ## system to choose the right machine file, but currently the
2292 ## configuration name doesn't tell us enough to choose the right
2293 ## one; we need to give alliants their own operating system name to
2294 ## do this right. When someone cares, they can help us.
2296 machine
=alliant4 opsys
=bsd4-2
2299 machine
=alliant-2800 opsys
=bsd4-3
2302 ## Alpha (DEC) machines.
2304 machine
=alpha opsys
=osf1
2305 # This is needed to find X11R6.1 libraries for certain tests.
2306 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2307 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2308 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2309 # due to non-traditional preprocessing with the current compiler
2310 # defaults. OSF 4 can also have that compiler version, and there
2311 # seems always to have been a usable /usr/bin/cpp.
2312 NON_GNU_CPP
=/usr
/bin
/cpp
2313 case "${canonical}" in
2314 alpha
*-dec-osf[5-9]*)
2319 alpha
*-*-linux-gnu* )
2320 machine
=alpha opsys
=gnu-linux
2324 machine
=arm opsys
=gnu-linux
2329 machine
=altos opsys
=usg5-2
2334 machine
=amdahl opsys
=usg5-2-2
2337 ## Apollo, Domain/OS
2339 machine
=apollo opsys
=bsd4-3
2342 ## AT&T 3b2, 3b5, 3b15, 3b20
2344 machine
=att3b opsys
=usg5-2-2
2347 ## AT&T 3b1 - The Mighty Unix PC!
2349 machine
=7300 opsys
=usg5-2-2
2354 machine
=ibmrs6000 opsys
=aix3-2
2359 machine
=dpx2 opsys
=usg5-3
2364 machine
=sps7 opsys
=usg5-2
2367 ## CCI 5/32, 6/32 -- see "Tahoe".
2370 ## I don't know what configuration name to use for this; config.sub
2371 ## doesn't seem to know anything about it. Hey, Celerity users, get
2372 ## in touch with us!
2373 celerity-celerity-bsd
* )
2374 machine
=celerity opsys
=bsd4-2
2378 ## What operating systems does this chip run that Emacs has been
2382 ## We'll use the catch-all code at the bottom to guess the
2383 ## operating system.
2387 mips-compaq-nonstopux
* )
2388 machine
=nonstopux opsys
=nonstopux
2392 *-convex-bsd* |
*-convex-convexos* )
2393 machine
=convex opsys
=bsd4-3
2394 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2395 NON_GNU_CPP
="cc -E -P"
2399 i
[3456]86-cubix-sysv* )
2400 machine
=intel386 opsys
=usg5-3
2404 cydra
*-cydrome-sysv* )
2405 machine
=cydra5 opsys
=usg5-3
2408 ## Data General AViiON Machines
2409 ## DG changed naming conventions with the release of 5.4.4.10, they
2410 ## dropped the initial 5.4 but left the intervening R. Because of the
2411 ## R this shouldn't conflict with older versions of the OS (which I
2412 ## think were named like dgux4.*). In addition, DG new AViiONs series
2413 ## uses either Motorola M88k or Intel Pentium CPUs.
2414 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2415 machine
=aviion opsys
=dgux4
2417 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2418 ## This name is dgux5-4-3 instead of dgux5-4r3
2419 ## to avoid a file name conflict on MSDOS.
2420 machine
=aviion opsys
=dgux5-4-3
2422 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2423 machine
=aviion opsys
=dgux5-4r2
2426 machine
=aviion opsys
=dgux
2429 ## Data General AViiON Intel (x86) Machines
2430 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2431 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2432 i
[345]86-dg-dguxR4* )
2433 machine
=aviion-intel opsys
=dgux4
2437 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2438 machine
=pmax opsys
=bsd4-2
2440 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2441 machine
=pmax opsys
=bsd4-3
2444 machine
=pmax opsys
=ultrix4-3
2447 machine
=pmax opsys
=osf1
2449 mips-dec-mach_bsd4.3
* )
2450 machine
=pmax opsys
=mach-bsd4-3
2453 ## Motorola Delta machines
2454 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2455 machine
=delta opsys
=usg5-3
2456 if test -z "`type gnucc | grep 'not found'`"
2458 if test -s /etc
/167config
2459 then CC
="gnucc -m68040"
2460 else CC
="gnucc -m68881"
2463 if test -z "`type gcc | grep 'not found'`"
2469 m88k-motorola-sysv4
* )
2470 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2471 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2472 # I hope there are not other 4.0 versions for this machine
2473 # which really need usg5-4 instead.
2474 machine
=delta88k opsys
=usg5-4-2
2476 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2477 machine
=delta88k opsys
=usg5-3
2482 machine
=dual opsys
=usg5-2
2484 m68
*-dual-uniplus* )
2485 machine
=dual opsys
=unipl5-2
2490 machine
=elxsi opsys
=usg5-2
2495 machine
=ns16000 opsys
=umax
2498 ## The GEC 63 - apparently, this port isn't really finished yet.
2499 # I'm sure we finished off the last of the machines, though. -- fx
2501 ## Gould Power Node and NP1
2503 machine
=gould opsys
=bsd4-2
2506 machine
=gould opsys
=bsd4-3
2509 machine
=gould-np1 opsys
=bsd4-3
2512 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2513 ## as far as Emacs is concerned).
2515 # Build needs to be different on 7.0 and later releases
2516 case "`uname -r`" in
2517 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2518 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2520 NON_GNU_CPP
="/lib/cpp"
2522 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2524 machine
=nh3000 opsys
=cxux
2526 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2527 powerpc-harris-powerunix
)
2528 machine
=nh6000 opsys
=powerunix
2529 NON_GNU_CPP
="cc -Xo -E -P"
2531 ## SR2001/SR2201 running HI-UX/MPP
2532 hppa1.1
-hitachi-hiuxmpp* )
2533 machine
=sr2k opsys
=hiuxmpp
2535 hppa1.1
-hitachi-hiuxwe2* )
2536 machine
=sr2k opsys
=hiuxwe2
2539 xps
*-honeywell-sysv* )
2540 machine
=xps100 opsys
=usg5-2
2543 ## HP 9000 series 200 or 300
2545 machine
=hp9000s300 opsys
=bsd4-3
2547 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2549 case "`uname -r`" in
2550 ## Someone's system reports A.B8.05 for this.
2551 ## I wonder what other possibilities there are.
2552 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2553 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2554 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2555 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2556 *) machine
=hp9000s300 opsys
=hpux
;;
2560 ## HP 9000 series 700 and 800, running HP/UX
2562 machine
=hp800 opsys
=hpux
2565 machine
=hp800 opsys
=hpux8
2567 hppa
*-hp-hpux9shr* )
2568 machine
=hp800 opsys
=hpux9shr
2571 machine
=hp800 opsys
=hpux9
2573 hppa
*-hp-hpux10.2
* )
2574 machine
=hp800 opsys
=hpux10-20
2577 machine
=hp800 opsys
=hpux10
2579 hppa
*-hp-hpux1[1-9]* )
2580 machine
=hp800 opsys
=hpux11
2581 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2584 hppa
*-*-linux-gnu* )
2585 machine
=hp800 opsys
=gnu-linux
2588 ## HP 9000 series 700 and 800, running HP/UX
2590 ## Cross-compilation? Nah!
2591 case "`uname -r`" in
2592 ## Someone's system reports A.B8.05 for this.
2593 ## I wonder what other possibilities there are.
2594 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2595 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2596 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2597 *) machine
=hp800 opsys
=hpux10
;;
2601 machine
=hp800 opsys
=nextstep
2606 machine
=orion opsys
=bsd4-2
2608 clipper-orion-bsd
* )
2609 machine
=orion105 opsys
=bsd4-2
2613 i
[3456]86-ibm-aix1.1
* )
2614 machine
=ibmps2-aix opsys
=usg5-2-2
2616 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2617 machine
=ibmps2-aix opsys
=usg5-3
2620 machine
=ibm370aix opsys
=usg5-3
2623 machine
=ibms390 opsys
=gnu-linux
2625 s390x-
*-linux-gnu* )
2626 machine
=ibms390x opsys
=gnu-linux
2628 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2629 machine
=ibmrs6000 opsys
=aix3-1
2631 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2632 machine
=ibmrs6000 opsys
=aix3-2-5
2634 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2635 machine
=ibmrs6000 opsys
=aix4-1
2637 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2638 machine
=ibmrs6000 opsys
=aix4-2
2640 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2641 machine
=ibmrs6000 opsys
=aix4-2
2643 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2644 machine
=ibmrs6000 opsys
=aix4
2646 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2647 machine
=ibmrs6000 opsys
=aix4-1
2649 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2650 machine
=ibmrs6000 opsys
=aix3-2
2653 machine
=ibmrt opsys
=bsd4-3
2656 machine
=ibmrt opsys
=bsd4-2
2659 machine
=ibmrt opsys
=bsd4-3
2662 machine
=ibmrt opsys
=bsd4-2
2665 machine
=ibmrt opsys
=bsd4-3
2668 machine
=ibmrt opsys
=bsd4-3
2671 machine
=ibmrt-aix opsys
=usg5-2-2
2674 ## Integrated Solutions `Optimum V'
2676 machine
=isi-ov opsys
=bsd4-2
2679 machine
=isi-ov opsys
=bsd4-3
2682 ## Intel 386 machines where we do care about the manufacturer
2683 i
[3456]86-intsys-sysv* )
2684 machine
=is386 opsys
=usg5-2-2
2688 i
[3456]86-prime-sysv* )
2689 machine
=i386 opsys
=usg5-3
2692 ## Sequent Symmetry running Dynix
2693 i
[3456]86-sequent-bsd* )
2694 machine
=symmetry opsys
=bsd4-3
2697 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2698 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2699 machine
=sequent-ptx opsys
=ptx4
2700 NON_GNU_CPP
=/lib
/cpp
2703 ## Sequent Symmetry running DYNIX/ptx
2704 ## Use the old cpp rather than the newer ANSI one.
2705 i
[3456]86-sequent-ptx* )
2706 machine
=sequent-ptx opsys
=ptx
2707 NON_GNU_CPP
="/lib/cpp"
2710 ## ncr machine running svr4.3.
2711 i
[3456]86-ncr-sysv4.3
)
2712 machine
=ncr386 opsys
=usg5-4-3
2715 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2716 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2717 i
[3456]86-ncr-sysv* )
2718 machine
=ncr386 opsys
=usg5-4-2
2721 ## Intel Paragon OSF/1
2723 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2728 machine
=i860 opsys
=usg5-4
2729 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2730 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2733 ## Macintosh PowerPC
2734 powerpc
*-*-linux-gnu* )
2735 machine
=macppc opsys
=gnu-linux
2738 ## Masscomp machines
2739 m68
*-masscomp-rtu* )
2740 machine
=masscomp opsys
=rtu
2743 ## Megatest machines
2744 m68
*-megatest-bsd* )
2745 machine
=mega68 opsys
=bsd4-2
2748 ## Workstations sold by MIPS
2749 ## This is not necessarily all workstations using the MIPS processor -
2750 ## Irises are produced by SGI, and DECstations by DEC.
2752 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2753 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2754 ## it gives for choosing between the alternatives seems to be "Use
2755 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2756 ## the BSD world." I'll assume that these are instructions for
2757 ## handling two odd situations, and that every other situation
2758 ## should use mips.h and usg5-2-2, they being listed first.
2761 ## Fall through to the general code at the bottom to decide on the OS.
2763 mips-mips-riscos4
* )
2764 machine
=mips4 opsys
=bsd4-3
2765 NON_GNU_CC
="cc -systype bsd43"
2766 NON_GNU_CPP
="cc -systype bsd43 -E"
2768 mips-mips-riscos5
* )
2769 machine
=mips4 opsys
=riscos5
2770 NON_GNU_CC
="cc -systype bsd43"
2771 NON_GNU_CPP
="cc -systype bsd43 -E"
2774 machine
=mips opsys
=bsd4-3
2777 machine
=mips opsys
=usg5-2-2
2781 m68
*-next-* | m68k-
*-nextstep* )
2782 machine
=m68k opsys
=nextstep
2785 ## The complete machine from National Semiconductor
2787 machine
=ns32000 opsys
=usg5-2
2791 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2792 machine
=tower32 opsys
=usg5-2-2
2794 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2795 machine
=tower32v3 opsys
=usg5-3
2800 machine
=ews4800 opsys
=ux4800
2803 ## Nixdorf Targon 31
2804 m68
*-nixdorf-sysv* )
2805 machine
=targon31 opsys
=usg5-2-2
2810 machine
=nu opsys
=usg5-2
2815 machine
=plexus opsys
=usg5-2
2819 ## I don't really have any idea what sort of processor the Pyramid has,
2820 ## so I'm assuming it is its own architecture.
2821 pyramid-pyramid-bsd
* )
2822 machine
=pyramid opsys
=bsd4-2
2826 ns32k-sequent-bsd4.2
* )
2827 machine
=sequent opsys
=bsd4-2
2829 ns32k-sequent-bsd4.3
* )
2830 machine
=sequent opsys
=bsd4-3
2834 mips-siemens-sysv
* | mips-sni-sysv
*)
2835 machine
=mips-siemens opsys
=usg5-4
2836 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2837 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2840 ## Silicon Graphics machines
2841 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2843 machine
=irist opsys
=iris3-5
2845 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2846 machine
=irist opsys
=iris3-6
2850 machine
=iris4d opsys
=irix3-3
2853 machine
=iris4d opsys
=irix4-0
2856 machine
=iris4d opsys
=irix6-5
2857 # Without defining _LANGUAGE_C, things get masked out in the headers
2858 # so that, for instance, grepping for `free' in stdlib.h fails and
2859 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2860 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2861 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2864 machine
=iris4d opsys
=irix6-0
2865 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2866 # but presumably it does no harm.
2867 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2868 # -32 probably isn't necessary in later v.6s -- anyone know which?
2869 NON_GCC_TEST_OPTIONS
=-32
2871 mips-sgi-irix5.
[01]* )
2872 machine
=iris4d opsys
=irix5-0
2874 mips-sgi-irix5
* | mips-sgi-irix
* )
2875 machine
=iris4d opsys
=irix5-2
2880 machine
=news opsys
=bsd4-2
2883 machine
=news opsys
=bsd4-3
2885 m68
*-sony-newsos3* | m68
*-sony-news3*)
2886 machine
=news opsys
=bsd4-3
2888 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2889 machine
=news-risc opsys
=bsd4-3
2891 mips-sony-newsos6
* )
2892 machine
=news-r6 opsys
=newsos6
2895 machine
=news-risc opsys
=newsos5
2900 machine
=stride opsys
=usg5-2
2904 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2905 machine
=sparc opsys
=gnu-linux
2908 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2909 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2910 | rs6000-
*-solaris2*)
2911 case "${canonical}" in
2912 m68
*-sunos1* ) machine
=sun1
;;
2913 m68
*-sunos2* ) machine
=sun2
;;
2914 m68
* ) machine
=sun3
;;
2915 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2916 i
[3456]86-*-* ) machine
=intel386
;;
2917 powerpcle
* ) machine
=powerpcle
;;
2918 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2919 sparc
* ) machine
=sparc
;;
2922 case "${canonical}" in
2923 ## The Sun386 didn't get past 4.0.
2924 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2925 *-sunos4.0
* ) opsys
=sunos4-0
;;
2926 *-sunos4.1.
[3-9]*noshare
)
2927 ## This name is sunos413 instead of sunos4-1-3
2928 ## to avoid a file name conflict on MSDOS.
2930 NON_GNU_CPP
=/usr
/lib
/cpp
2931 NON_GCC_TEST_OPTIONS
=-Bstatic
2932 GCC_TEST_OPTIONS
=-static
2934 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2936 NON_GNU_CPP
=/usr
/lib
/cpp
2938 *-sunos4* |
*-sunos )
2940 NON_GCC_TEST_OPTIONS
=-Bstatic
2941 GCC_TEST_OPTIONS
=-static
2943 *-sunos5.3
* |
*-solaris2.3
* )
2945 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2947 *-sunos5.4
* |
*-solaris2.4
* )
2949 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2952 *-sunos5.5
* |
*-solaris2.5
* )
2954 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2957 *-sunos5.6
* |
*-solaris2.6
* )
2959 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2962 *-sunos5* |
*-solaris* )
2964 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2968 ## Watch out for a compiler that we know will not work.
2969 case "${canonical}" in
2970 *-solaris* |
*-sunos5* )
2971 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2972 ## /usr/ucb/cc doesn't work;
2973 ## we should find some other compiler that does work.
2981 machine
=sparc opsys
=nextstep
2985 m68
*-tadpole-sysv* )
2986 machine
=tad68k opsys
=usg5-3
2990 tahoe-tahoe-bsd4.2
* )
2991 machine
=tahoe opsys
=bsd4-2
2993 tahoe-tahoe-bsd4.3
* )
2994 machine
=tahoe opsys
=bsd4-3
2997 ## Tandem Integrity S2
2999 machine
=tandem-s2 opsys
=usg5-3
3003 m88k-tektronix-sysv3
* )
3004 machine
=tekxd88 opsys
=usg5-3
3007 ## Tektronix 16000 box (6130?)
3008 ns16k-tektronix-bsd
* )
3009 machine
=ns16000 opsys
=bsd4-2
3012 ## src/m/tek4300.h hints that this is a m68k machine.
3013 m68
*-tektronix-bsd* )
3014 machine
=tek4300 opsys
=bsd4-3
3018 ## We seem to have lost the machine-description file titan.h!
3020 machine
=titan opsys
=usg5-3
3023 ## Ustation E30 (SS5E)
3024 m68
*-unisys-uniplus* )
3025 machine
=ustation opsystem
=unipl5-2
3031 case "${canonical}" in
3032 *-bsd4.1
* ) opsys
=bsd4-1
;;
3033 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3034 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3035 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3036 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3037 *-vms* ) opsys
=vms
;;
3043 ns16k-whitechapel-
* )
3045 ## We don't know what sort of OS runs on these; we'll let the
3046 ## operating system guessing code below try.
3051 machine
=wicat opsys
=usg5-2
3056 machine
=ia64 opsys
=gnu-linux
3059 ## Intel 386 machines where we don't care about the manufacturer
3062 case "${canonical}" in
3063 *-cygwin ) opsys
=cygwin
;;
3064 *-darwin* ) opsys
=darwin
3065 CPP
="${CC-cc} -E -no-cpp-precomp"
3067 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3068 *-isc2.2
* ) opsys
=isc2-2
;;
3069 *-isc4.0
* ) opsys
=isc4-0
;;
3070 *-isc4.
* ) opsys
=isc4-1
3071 GCC_TEST_OPTIONS
=-posix
3072 NON_GCC_TEST_OPTIONS
=-Xp
3074 *-isc* ) opsys
=isc3-0
;;
3075 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3076 *-esix* ) opsys
=esix
;;
3077 *-xenix* ) opsys
=xenix
;;
3078 *-linux-gnu* ) opsys
=gnu-linux
;;
3079 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3080 *-sco3.2v5
* ) opsys
=sco5
3081 NON_GNU_CPP
=/lib
/cpp
3082 # Prevent -belf from being passed to $CPP.
3083 # /lib/cpp does not accept it.
3084 OVERRIDE_CPPFLAGS
=" "
3086 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3087 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3088 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3089 *-386bsd* ) opsys
=386bsd
;;
3090 *-nextstep* ) opsys
=nextstep
;;
3091 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3095 ## m68k Linux-based GNU system
3097 machine
=m68k opsys
=gnu-linux
3100 ## Mips Linux-based GNU system
3101 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3102 machine
=mips opsys
=gnu-linux
3106 sparc-fujitsu-sysv4
* )
3107 machine
=sparc opsys
=uxpds
3108 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3113 f301-fujitsu-uxpv4.1
)
3114 machine
=f301 opsys
=uxpv
3117 ## Darwin / Mac OS X
3118 powerpc-apple-darwin
* )
3119 machine
=powermac opsys
=darwin
3120 # Define CPP as follows to make autoconf work correctly.
3121 CPP
="${CC-cc} -E -no-cpp-precomp"
3122 # Use fink packages if available.
3123 if test -d /sw
/include
&& test -d /sw
/lib
; then
3124 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3125 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3126 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3130 ## AMD x86-64 Linux-based GNU system
3131 x86_64-
*-linux-gnu* )
3132 machine
=amdx86-64 opsys
=gnu-linux
3140 ### If the code above didn't choose an operating system, just choose
3141 ### an operating system based on the configuration name. You really
3142 ### only want to use this when you have no idea what the right
3143 ### operating system is; if you know what operating systems a machine
3144 ### runs, it's cleaner to make it explicit in the case statement
3146 if test x
"${opsys}" = x
; then
3147 case "${canonical}" in
3148 *-gnu* ) opsys
=gnu
;;
3149 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3150 *-bsd4.2
) opsys
=bsd4-2
;;
3151 *-bsd4.3
) opsys
=bsd4-3
;;
3152 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3153 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3154 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3155 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3156 *-sysv4.2uw
* ) opsys
=unixware
;;
3157 *-sysv5uw* ) opsys
=unixware
;;
3158 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3159 *-sysv4.1
* |
*-sysvr4.1
* )
3160 NON_GNU_CPP
=/usr
/lib
/cpp
3162 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3163 if [ x
$NON_GNU_CPP = x
]; then
3164 if [ -f /usr
/ccs
/lib
/cpp
]; then
3165 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3167 NON_GNU_CPP
=/lib
/cpp
3171 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3180 if test $unported = yes; then
3181 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3182 Check \`etc/MACHINES' for recognized configuration names." >&5
3183 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3184 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3185 { (exit 1); exit 1; }; }
3188 machfile
="m/${machine}.h"
3189 opsysfile
="s/${opsys}.h"
3192 #### Choose a compiler.
3193 test -n "$CC" && cc_specified
=yes
3195 # Save the value of CFLAGS that the user specified.
3196 SPECIFIED_CFLAGS
="$CFLAGS"
3199 "yes" ) CC
="gcc" GCC
=yes ;;
3200 "no" ) : ${CC=cc} ;;
3204 ac_cpp
='$CPP $CPPFLAGS'
3205 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3208 if test -n "$ac_tool_prefix"; then
3209 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3210 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3213 if test "${ac_cv_prog_CC+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 if test -n "$CC"; then
3217 ac_cv_prog_CC
="$CC" # Let the user override the test.
3219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3223 test -z "$as_dir" && as_dir
=.
3224 for ac_exec_ext
in '' $ac_executable_extensions; do
3225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3226 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 if test -n "$CC"; then
3238 { echo "$as_me:$LINENO: result: $CC" >&5
3239 echo "${ECHO_T}$CC" >&6; }
3241 { echo "$as_me:$LINENO: result: no" >&5
3242 echo "${ECHO_T}no" >&6; }
3247 if test -z "$ac_cv_prog_CC"; then
3249 # Extract the first word of "gcc", so it can be a program name with args.
3250 set dummy gcc
; ac_word
=$2
3251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3253 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 if test -n "$ac_ct_CC"; then
3257 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3259 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3263 test -z "$as_dir" && as_dir
=.
3264 for ac_exec_ext
in '' $ac_executable_extensions; do
3265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266 ac_cv_prog_ac_ct_CC
="gcc"
3267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3277 if test -n "$ac_ct_CC"; then
3278 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3279 echo "${ECHO_T}$ac_ct_CC" >&6; }
3281 { echo "$as_me:$LINENO: result: no" >&5
3282 echo "${ECHO_T}no" >&6; }
3285 if test "x$ac_ct_CC" = x
; then
3288 case $cross_compiling:$ac_tool_warned in
3290 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3291 whose name does not start with the host triplet. If you think this
3292 configuration is useful to you, please write to autoconf@gnu.org." >&5
3293 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3294 whose name does not start with the host triplet. If you think this
3295 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3296 ac_tool_warned
=yes ;;
3304 if test -z "$CC"; then
3305 if test -n "$ac_tool_prefix"; then
3306 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3307 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3310 if test "${ac_cv_prog_CC+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 if test -n "$CC"; then
3314 ac_cv_prog_CC
="$CC" # Let the user override the test.
3316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir
=.
3321 for ac_exec_ext
in '' $ac_executable_extensions; do
3322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 if test -n "$CC"; then
3335 { echo "$as_me:$LINENO: result: $CC" >&5
3336 echo "${ECHO_T}$CC" >&6; }
3338 { echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6; }
3345 if test -z "$CC"; then
3346 # Extract the first word of "cc", so it can be a program name with args.
3347 set dummy cc
; ac_word
=$2
3348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3350 if test "${ac_cv_prog_CC+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 if test -n "$CC"; then
3354 ac_cv_prog_CC
="$CC" # Let the user override the test.
3357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3361 test -z "$as_dir" && as_dir
=.
3362 for ac_exec_ext
in '' $ac_executable_extensions; do
3363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3364 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3365 ac_prog_rejected
=yes
3369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 if test $ac_prog_rejected = yes; then
3377 # We found a bogon in the path, so make sure we never use it.
3378 set dummy
$ac_cv_prog_CC
3380 if test $# != 0; then
3381 # We chose a different compiler from the bogus one.
3382 # However, it has the same basename, so the bogon will be chosen
3383 # first if we set CC to just the basename; use the full file name.
3385 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3391 if test -n "$CC"; then
3392 { echo "$as_me:$LINENO: result: $CC" >&5
3393 echo "${ECHO_T}$CC" >&6; }
3395 { echo "$as_me:$LINENO: result: no" >&5
3396 echo "${ECHO_T}no" >&6; }
3401 if test -z "$CC"; then
3402 if test -n "$ac_tool_prefix"; then
3403 for ac_prog
in cl.exe
3405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3406 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3409 if test "${ac_cv_prog_CC+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3412 if test -n "$CC"; then
3413 ac_cv_prog_CC
="$CC" # Let the user override the test.
3415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3419 test -z "$as_dir" && as_dir
=.
3420 for ac_exec_ext
in '' $ac_executable_extensions; do
3421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3422 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3433 if test -n "$CC"; then
3434 { echo "$as_me:$LINENO: result: $CC" >&5
3435 echo "${ECHO_T}$CC" >&6; }
3437 { echo "$as_me:$LINENO: result: no" >&5
3438 echo "${ECHO_T}no" >&6; }
3442 test -n "$CC" && break
3445 if test -z "$CC"; then
3447 for ac_prog
in cl.exe
3449 # Extract the first word of "$ac_prog", so it can be a program name with args.
3450 set dummy
$ac_prog; ac_word
=$2
3451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3453 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3456 if test -n "$ac_ct_CC"; then
3457 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3463 test -z "$as_dir" && as_dir
=.
3464 for ac_exec_ext
in '' $ac_executable_extensions; do
3465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3466 ac_cv_prog_ac_ct_CC
="$ac_prog"
3467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3476 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3477 if test -n "$ac_ct_CC"; then
3478 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3479 echo "${ECHO_T}$ac_ct_CC" >&6; }
3481 { echo "$as_me:$LINENO: result: no" >&5
3482 echo "${ECHO_T}no" >&6; }
3486 test -n "$ac_ct_CC" && break
3489 if test "x$ac_ct_CC" = x
; then
3492 case $cross_compiling:$ac_tool_warned in
3494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3495 whose name does not start with the host triplet. If you think this
3496 configuration is useful to you, please write to autoconf@gnu.org." >&5
3497 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3498 whose name does not start with the host triplet. If you think this
3499 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3500 ac_tool_warned
=yes ;;
3509 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3510 See \`config.log' for more details." >&5
3511 echo "$as_me: error: no acceptable C compiler found in \$PATH
3512 See \`config.log' for more details." >&2;}
3513 { (exit 1); exit 1; }; }
3515 # Provide some information about the compiler.
3516 echo "$as_me:$LINENO: checking for C compiler version" >&5
3517 ac_compiler
=`set X $ac_compile; echo $2`
3518 { (ac_try
="$ac_compiler --version >&5"
3520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524 (eval "$ac_compiler --version >&5") 2>&5
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }
3528 { (ac_try="$ac_compiler -v >&5"
3530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3531 *) ac_try_echo
=$ac_try;;
3533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3534 (eval "$ac_compiler -v >&5") 2>&5
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }
3538 { (ac_try
="$ac_compiler -V >&5"
3540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544 (eval "$ac_compiler -V >&5") 2>&5
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }
3549 cat >conftest.$ac_ext <<_ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3564 ac_clean_files_save=$ac_clean_files
3565 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3566 # Try to create an executable without -o first, disregard a.out.
3567 # It will help us diagnose broken compilers, and finding out an intuition
3569 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3570 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3571 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3573 # List of possible output files, starting from the most likely.
3574 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3575 # only as a last resort. b.out is created by i960 compilers.
3576 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3578 # The IRIX 6 linker writes into existing files which may not be
3579 # executable, retaining their permissions. Remove them first so a
3580 # subsequent execution test works.
3582 for ac_file in $ac_files
3585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3586 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3591 if { (ac_try="$ac_link_default"
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_link_default") 2>&5
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; then
3601 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3602 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3603 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3604 # so that the user can short-circuit this test for compilers unknown to
3606 for ac_file
in $ac_files ''
3608 test -f "$ac_file" ||
continue
3610 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3613 # We found the default executable, but exeext='' is most
3617 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3619 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3621 # We set ac_cv_exeext here because the later test for it is not
3622 # safe: cross compilers may not add the suffix if given an `-o'
3623 # argument, so we may need to know it at that point already.
3624 # Even if this section looks crufty: it has the advantage of
3631 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3637 { echo "$as_me:$LINENO: result: $ac_file" >&5
3638 echo "${ECHO_T}$ac_file" >&6; }
3639 if test -z "$ac_file"; then
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.
$ac_ext >&5
3643 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3644 See \`config.log' for more details." >&5
3645 echo "$as_me: error: C compiler cannot create executables
3646 See \`config.log' for more details." >&2;}
3647 { (exit 77); exit 77; }; }
3650 ac_exeext
=$ac_cv_exeext
3652 # Check that the compiler produces executables we can run. If not, either
3653 # the compiler is broken, or we cross compile.
3654 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3655 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3656 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3657 # If not cross compiling, check that we can run a simple program.
3658 if test "$cross_compiling" != yes; then
3659 if { ac_try
='./$ac_file'
3660 { (case "(($ac_try" in
3661 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3665 (eval "$ac_try") 2>&5
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3671 if test "$cross_compiling" = maybe; then
3674 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3675 If you meant to cross compile, use \`--host'.
3676 See \`config.log' for more details.
" >&5
3677 echo "$as_me: error
: cannot run C compiled programs.
3678 If you meant to cross compile
, use \
`--host'.
3679 See \`config.log
' for more details." >&2;}
3680 { (exit 1); exit 1; }; }
3684 { echo "$as_me:$LINENO: result: yes" >&5
3685 echo "${ECHO_T}yes" >&6; }
3687 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3688 ac_clean_files=$ac_clean_files_save
3689 # Check that the compiler produces executables we can run. If not, either
3690 # the compiler is broken, or we cross compile.
3691 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3692 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3693 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3694 echo "${ECHO_T}$cross_compiling" >&6; }
3696 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3697 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3698 if { (ac_try="$ac_link"
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_link") 2>&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; then
3708 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3709 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3710 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3712 for ac_file
in conftest.exe conftest conftest.
*; do
3713 test -f "$ac_file" ||
continue
3715 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3716 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3722 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3723 See \`config.log' for more details." >&5
3724 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3725 See \`config.log' for more details." >&2;}
3726 { (exit 1); exit 1; }; }
3729 rm -f conftest
$ac_cv_exeext
3730 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3731 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3733 rm -f conftest.
$ac_ext
3734 EXEEXT
=$ac_cv_exeext
3736 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3737 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3738 if test "${ac_cv_objext+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 cat >conftest.
$ac_ext <<_ACEOF
3744 cat confdefs.h
>>conftest.
$ac_ext
3745 cat >>conftest.
$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3756 rm -f conftest.o conftest.obj
3757 if { (ac_try
="$ac_compile"
3759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3763 (eval "$ac_compile") 2>&5
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; then
3767 for ac_file in conftest.o conftest.obj conftest.*; do
3768 test -f "$ac_file" || continue;
3770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3771 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3776 echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.$ac_ext >&5
3779 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3780 See \`config.log
' for more details." >&5
3781 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3782 See \`config.log' for more details.
" >&2;}
3783 { (exit 1); exit 1; }; }
3786 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3788 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3789 echo "${ECHO_T}$ac_cv_objext" >&6; }
3790 OBJEXT=$ac_cv_objext
3792 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3793 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3794 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3795 echo $ECHO_N "(cached
) $ECHO_C" >&6
3797 cat >conftest.$ac_ext <<_ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3815 rm -f conftest.$ac_objext
3816 if { (ac_try="$ac_compile"
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3821 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3822 (eval "$ac_compile") 2>conftest.er1
3824 grep -v '^ *+' conftest.er1 >conftest.err
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3828 (exit $ac_status); } && {
3829 test -z "$ac_c_werror_flag" ||
3830 test ! -s conftest.err
3831 } && test -s conftest.$ac_objext; then
3834 echo "$as_me: failed program was
:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3844 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3845 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3846 GCC=`test $ac_compiler_gnu = yes && echo yes`
3847 ac_test_CFLAGS=${CFLAGS+set}
3848 ac_save_CFLAGS=$CFLAGS
3849 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3850 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3851 if test "${ac_cv_prog_cc_g+set}" = set; then
3852 echo $ECHO_N "(cached
) $ECHO_C" >&6
3854 ac_save_c_werror_flag=$ac_c_werror_flag
3855 ac_c_werror_flag=yes
3858 cat >conftest.$ac_ext <<_ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3873 rm -f conftest.$ac_objext
3874 if { (ac_try="$ac_compile"
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_compile") 2>conftest.er1
3882 grep -v '^ *+' conftest.er1 >conftest.err
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3886 (exit $ac_status); } && {
3887 test -z "$ac_c_werror_flag" ||
3888 test ! -s conftest.err
3889 } && test -s conftest.$ac_objext; then
3892 echo "$as_me: failed program was
:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3896 cat >conftest.$ac_ext <<_ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h. */
3911 rm -f conftest.$ac_objext
3912 if { (ac_try="$ac_compile"
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3917 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3918 (eval "$ac_compile") 2>conftest.er1
3920 grep -v '^ *+' conftest.er1 >conftest.err
3922 cat conftest.err >&5
3923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3924 (exit $ac_status); } && {
3925 test -z "$ac_c_werror_flag" ||
3926 test ! -s conftest.err
3927 } && test -s conftest.$ac_objext; then
3930 echo "$as_me: failed program was
:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3933 ac_c_werror_flag=$ac_save_c_werror_flag
3935 cat >conftest.$ac_ext <<_ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3950 rm -f conftest.$ac_objext
3951 if { (ac_try="$ac_compile"
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_compile") 2>conftest.er1
3959 grep -v '^ *+' conftest.er1 >conftest.err
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3963 (exit $ac_status); } && {
3964 test -z "$ac_c_werror_flag" ||
3965 test ! -s conftest.err
3966 } && test -s conftest.$ac_objext; then
3969 echo "$as_me: failed program was
:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 ac_c_werror_flag=$ac_save_c_werror_flag
3984 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3985 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3986 if test "$ac_test_CFLAGS" = set; then
3987 CFLAGS=$ac_save_CFLAGS
3988 elif test $ac_cv_prog_cc_g = yes; then
3989 if test "$GCC" = yes; then
3995 if test "$GCC" = yes; then
4001 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4002 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4003 if test "${ac_cv_prog_cc_c89+set}" = set; then
4004 echo $ECHO_N "(cached
) $ECHO_C" >&6
4006 ac_cv_prog_cc_c89=no
4008 cat >conftest.$ac_ext <<_ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4016 #include <sys/types.h>
4017 #include <sys/stat.h>
4018 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4019 struct buf { int x; };
4020 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4021 static char *e (p, i)
4027 static char *f (char * (*g) (char **, int), char **p, ...)
4032 s = g (p, va_arg (v,int));
4037 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4038 function prototypes and stuff, but not '\xHH' hex character constants.
4039 These don't provoke an error unfortunately, instead are silently treated
4040 as 'x'. The following induces an error, until -std is added to get
4041 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4042 array size at least. It's necessary to write '\x00'==0 to get something
4043 that's true only with -std. */
4044 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4046 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4047 inside strings and character constants. */
4049 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4051 int test (int i, double x);
4052 struct s1 {int (*f) (int a);};
4053 struct s2 {int (*f) (double a);};
4054 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4060 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4065 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4066 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4068 CC="$ac_save_CC $ac_arg"
4069 rm -f conftest.$ac_objext
4070 if { (ac_try="$ac_compile"
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4075 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_compile") 2>conftest.er1
4078 grep -v '^ *+' conftest.er1 >conftest.err
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4082 (exit $ac_status); } && {
4083 test -z "$ac_c_werror_flag" ||
4084 test ! -s conftest.err
4085 } && test -s conftest.$ac_objext; then
4086 ac_cv_prog_cc_c89=$ac_arg
4088 echo "$as_me: failed program was
:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4094 rm -f core conftest.err conftest.$ac_objext
4095 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4097 rm -f conftest.$ac_ext
4102 case "x
$ac_cv_prog_cc_c89" in
4104 { echo "$as_me:$LINENO: result
: none needed
" >&5
4105 echo "${ECHO_T}none needed
" >&6; } ;;
4107 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4108 echo "${ECHO_T}unsupported
" >&6; } ;;
4110 CC="$CC $ac_cv_prog_cc_c89"
4111 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4112 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4117 ac_cpp='$CPP $CPPFLAGS'
4118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4123 # On Suns, sometimes $CPP names a directory.
4124 if test -n "$CPP" && test -d "$CPP"; then
4128 #### Some systems specify a CPP to use unless we are using GCC.
4129 #### Now that we know whether we are using GCC, we can decide whether
4130 #### to use that one.
4131 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4136 #### Some systems specify a CC to use unless we are using GCC.
4137 #### Now that we know whether we are using GCC, we can decide whether
4138 #### to use that one.
4139 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4140 test x$cc_specified != xyes
4145 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4147 CC="$CC $GCC_TEST_OPTIONS"
4150 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4152 CC="$CC $NON_GCC_TEST_OPTIONS"
4157 ac_cpp='$CPP $CPPFLAGS'
4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4162 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4163 # On Suns, sometimes $CPP names a directory.
4164 if test -n "$CPP" && test -d "$CPP"; then
4167 if test -z "$CPP"; then
4168 if test "${ac_cv_prog_CPP+set}" = set; then
4169 echo $ECHO_N "(cached
) $ECHO_C" >&6
4171 # Double quotes because CPP needs to be expanded
4172 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4175 for ac_c_preproc_warn_flag in '' yes
4177 # Use a header file that comes with gcc, so configuring glibc
4178 # with a fresh cross-compiler works.
4179 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4180 # <limits.h> exists even on freestanding compilers.
4181 # On the NeXT, cc -E runs the code through the compiler's parser,
4182 # not just through cpp. "Syntax error
" is here to catch this case.
4183 cat >conftest.$ac_ext <<_ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4190 # include <limits.h>
4192 # include <assert.h>
4196 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4201 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4204 grep -v '^ *+' conftest.er1 >conftest.err
4206 cat conftest.err >&5
4207 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4208 (exit $ac_status); } >/dev/null && {
4209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4210 test ! -s conftest.err
4214 echo "$as_me: failed program was
:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4217 # Broken: fails on valid input.
4221 rm -f conftest.err conftest.$ac_ext
4223 # OK, works on sane cases. Now check whether nonexistent headers
4224 # can be detected and how.
4225 cat >conftest.$ac_ext <<_ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4231 #include <ac_nonexistent.h>
4233 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4238 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4239 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4241 grep -v '^ *+' conftest.er1 >conftest.err
4243 cat conftest.err >&5
4244 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4245 (exit $ac_status); } >/dev/null && {
4246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4247 test ! -s conftest.err
4249 # Broken: success on invalid input.
4252 echo "$as_me: failed program was
:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4255 # Passes both tests.
4260 rm -f conftest.err conftest.$ac_ext
4263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4264 rm -f conftest.err conftest.$ac_ext
4265 if $ac_preproc_ok; then
4277 { echo "$as_me:$LINENO: result
: $CPP" >&5
4278 echo "${ECHO_T}$CPP" >&6; }
4280 for ac_c_preproc_warn_flag in '' yes
4282 # Use a header file that comes with gcc, so configuring glibc
4283 # with a fresh cross-compiler works.
4284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4285 # <limits.h> exists even on freestanding compilers.
4286 # On the NeXT, cc -E runs the code through the compiler's parser,
4287 # not just through cpp. "Syntax error
" is here to catch this case.
4288 cat >conftest.$ac_ext <<_ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h. */
4295 # include <limits.h>
4297 # include <assert.h>
4301 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4306 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4309 grep -v '^ *+' conftest.er1 >conftest.err
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4313 (exit $ac_status); } >/dev/null && {
4314 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4315 test ! -s conftest.err
4319 echo "$as_me: failed program was
:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4322 # Broken: fails on valid input.
4326 rm -f conftest.err conftest.$ac_ext
4328 # OK, works on sane cases. Now check whether nonexistent headers
4329 # can be detected and how.
4330 cat >conftest.$ac_ext <<_ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4336 #include <ac_nonexistent.h>
4338 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4343 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4344 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4346 grep -v '^ *+' conftest.er1 >conftest.err
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4350 (exit $ac_status); } >/dev/null && {
4351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4352 test ! -s conftest.err
4354 # Broken: success on invalid input.
4357 echo "$as_me: failed program was
:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4360 # Passes both tests.
4365 rm -f conftest.err conftest.$ac_ext
4368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4369 rm -f conftest.err conftest.$ac_ext
4370 if $ac_preproc_ok; then
4373 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4374 See \
`config.log' for more details." >&5
4375 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4376 See \`config.log
' for more details." >&2;}
4377 { (exit 1); exit 1; }; }
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4383 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4388 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4389 if test "${ac_cv_path_GREP+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 # Extract the first word of "grep ggrep" to use in msg output
4393 if test -z "$GREP"; then
4394 set dummy grep ggrep; ac_prog_name=$2
4395 if test "${ac_cv_path_GREP+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 ac_path_GREP_found=false
4399 # Loop through the user's path and
test for each of PROGNAME-LIST
4400 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4401 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4404 test -z "$as_dir" && as_dir
=.
4405 for ac_prog
in grep ggrep
; do
4406 for ac_exec_ext
in '' $ac_executable_extensions; do
4407 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4408 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4409 # Check for GNU ac_path_GREP and select it if it is found.
4410 # Check for GNU $ac_path_GREP
4411 case `"$ac_path_GREP" --version 2>&1` in
4413 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4416 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4419 cat "conftest.in" "conftest.in" >"conftest.tmp"
4420 mv "conftest.tmp" "conftest.in"
4421 cp "conftest.in" "conftest.nl"
4422 echo 'GREP' >> "conftest.nl"
4423 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4424 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4425 ac_count
=`expr $ac_count + 1`
4426 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4427 # Best one so far, save it but keep looking for a better one
4428 ac_cv_path_GREP
="$ac_path_GREP"
4429 ac_path_GREP_max
=$ac_count
4431 # 10*(2^10) chars as input seems more than enough
4432 test $ac_count -gt 10 && break
4434 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4438 $ac_path_GREP_found && break 3
4448 GREP
="$ac_cv_path_GREP"
4449 if test -z "$GREP"; then
4450 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4451 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4452 { (exit 1); exit 1; }; }
4456 ac_cv_path_GREP
=$GREP
4461 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4462 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4463 GREP
="$ac_cv_path_GREP"
4466 { echo "$as_me:$LINENO: checking for egrep" >&5
4467 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4468 if test "${ac_cv_path_EGREP+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4472 then ac_cv_path_EGREP
="$GREP -E"
4474 # Extract the first word of "egrep" to use in msg output
4475 if test -z "$EGREP"; then
4476 set dummy
egrep; ac_prog_name
=$2
4477 if test "${ac_cv_path_EGREP+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 ac_path_EGREP_found
=false
4481 # Loop through the user's path and test for each of PROGNAME-LIST
4482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4483 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4486 test -z "$as_dir" && as_dir
=.
4487 for ac_prog
in egrep; do
4488 for ac_exec_ext
in '' $ac_executable_extensions; do
4489 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4490 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4491 # Check for GNU ac_path_EGREP and select it if it is found.
4492 # Check for GNU $ac_path_EGREP
4493 case `"$ac_path_EGREP" --version 2>&1` in
4495 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4498 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4501 cat "conftest.in" "conftest.in" >"conftest.tmp"
4502 mv "conftest.tmp" "conftest.in"
4503 cp "conftest.in" "conftest.nl"
4504 echo 'EGREP' >> "conftest.nl"
4505 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4506 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4507 ac_count
=`expr $ac_count + 1`
4508 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4509 # Best one so far, save it but keep looking for a better one
4510 ac_cv_path_EGREP
="$ac_path_EGREP"
4511 ac_path_EGREP_max
=$ac_count
4513 # 10*(2^10) chars as input seems more than enough
4514 test $ac_count -gt 10 && break
4516 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4520 $ac_path_EGREP_found && break 3
4530 EGREP
="$ac_cv_path_EGREP"
4531 if test -z "$EGREP"; then
4532 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4533 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4534 { (exit 1); exit 1; }; }
4538 ac_cv_path_EGREP
=$EGREP
4544 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4545 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4546 EGREP
="$ac_cv_path_EGREP"
4550 { echo "$as_me:$LINENO: checking for AIX" >&5
4551 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4552 cat >conftest.
$ac_ext <<_ACEOF
4555 cat confdefs.h
>>conftest.
$ac_ext
4556 cat >>conftest.
$ac_ext <<_ACEOF
4557 /* end confdefs.h. */
4563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4564 $EGREP "yes" >/dev
/null
2>&1; then
4565 { echo "$as_me:$LINENO: result: yes" >&5
4566 echo "${ECHO_T}yes" >&6; }
4567 cat >>confdefs.h
<<\_ACEOF
4568 #define _ALL_SOURCE 1
4572 { echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6; }
4579 cat >>confdefs.h
<<\_ACEOF
4580 #define _GNU_SOURCE 1
4585 ### Use -Wno-pointer-sign if the compiler supports it
4586 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4587 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4588 SAVE_CFLAGS
="$CFLAGS"
4589 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4590 cat >conftest.
$ac_ext <<_ACEOF
4593 cat confdefs.h
>>conftest.
$ac_ext
4594 cat >>conftest.
$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4605 rm -f conftest.
$ac_objext
4606 if { (ac_try
="$ac_compile"
4608 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_compile") 2>conftest.er1
4614 grep -v '^ *+' conftest.er1 >conftest.err
4616 cat conftest.err >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } && {
4619 test -z "$ac_c_werror_flag" ||
4620 test ! -s conftest.err
4621 } && test -s conftest.$ac_objext; then
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 if test $has_option = yes; then
4632 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4634 { echo "$as_me:$LINENO: result: $has_option" >&5
4635 echo "${ECHO_T}$has_option" >&6; }
4636 CFLAGS="$SAVE_CFLAGS"
4640 #### Some other nice autoconf tests.
4642 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4643 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4645 if test "$LN_S" = "ln -s"; then
4646 { echo "$as_me:$LINENO: result: yes" >&5
4647 echo "${ECHO_T}yes" >&6; }
4649 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4650 echo "${ECHO_T}no, using $LN_S" >&6; }
4654 ac_cpp='$CPP $CPPFLAGS'
4655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4658 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4659 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4660 # On Suns, sometimes $CPP names a directory.
4661 if test -n "$CPP" && test -d "$CPP"; then
4664 if test -z "$CPP"; then
4665 if test "${ac_cv_prog_CPP+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4668 # Double quotes because CPP needs to be expanded
4669 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4672 for ac_c_preproc_warn_flag in '' yes
4674 # Use a header file that comes with gcc, so configuring glibc
4675 # with a fresh cross-compiler works.
4676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4677 # <limits.h> exists even on freestanding compilers.
4678 # On the NeXT, cc -E runs the code through the compiler's parser,
4679 # not just through cpp. "Syntax error" is here to catch this case.
4680 cat >conftest.$ac_ext <<_ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4687 # include <limits.h>
4689 # include <assert.h>
4693 if { (ac_try="$ac_cpp conftest.$ac_ext"
4695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4696 *) ac_try_echo
=$ac_try;;
4698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4701 grep -v '^ *+' conftest.er1
>conftest.err
4703 cat conftest.err
>&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } >/dev
/null
&& {
4706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4707 test ! -s conftest.err
4711 echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.
$ac_ext >&5
4714 # Broken: fails on valid input.
4718 rm -f conftest.err conftest.
$ac_ext
4720 # OK, works on sane cases. Now check whether nonexistent headers
4721 # can be detected and how.
4722 cat >conftest.
$ac_ext <<_ACEOF
4725 cat confdefs.h
>>conftest.
$ac_ext
4726 cat >>conftest.
$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4728 #include <ac_nonexistent.h>
4730 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4738 grep -v '^ *+' conftest.er1 >conftest.err
4740 cat conftest.err >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } >/dev/null && {
4743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4744 test ! -s conftest.err
4746 # Broken: success on invalid input.
4749 echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4752 # Passes both tests.
4757 rm -f conftest.err conftest.$ac_ext
4760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4761 rm -f conftest.err conftest.
$ac_ext
4762 if $ac_preproc_ok; then
4774 { echo "$as_me:$LINENO: result: $CPP" >&5
4775 echo "${ECHO_T}$CPP" >&6; }
4777 for ac_c_preproc_warn_flag
in '' yes
4779 # Use a header file that comes with gcc, so configuring glibc
4780 # with a fresh cross-compiler works.
4781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4782 # <limits.h> exists even on freestanding compilers.
4783 # On the NeXT, cc -E runs the code through the compiler's parser,
4784 # not just through cpp. "Syntax error" is here to catch this case.
4785 cat >conftest.
$ac_ext <<_ACEOF
4788 cat confdefs.h
>>conftest.
$ac_ext
4789 cat >>conftest.
$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4792 # include <limits.h>
4794 # include <assert.h>
4798 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4806 grep -v '^ *+' conftest.er1 >conftest.err
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } >/dev/null && {
4811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4812 test ! -s conftest.err
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4819 # Broken: fails on valid input.
4823 rm -f conftest.err conftest.$ac_ext
4825 # OK, works on sane cases. Now check whether nonexistent headers
4826 # can be detected and how.
4827 cat >conftest.$ac_ext <<_ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 #include <ac_nonexistent.h>
4835 if { (ac_try="$ac_cpp conftest.$ac_ext"
4837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4838 *) ac_try_echo
=$ac_try;;
4840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4843 grep -v '^ *+' conftest.er1
>conftest.err
4845 cat conftest.err
>&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } >/dev
/null
&& {
4848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4849 test ! -s conftest.err
4851 # Broken: success on invalid input.
4854 echo "$as_me: failed program was:" >&5
4855 sed 's/^/| /' conftest.
$ac_ext >&5
4857 # Passes both tests.
4862 rm -f conftest.err conftest.
$ac_ext
4865 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4866 rm -f conftest.err conftest.
$ac_ext
4867 if $ac_preproc_ok; then
4870 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4871 See \`config.log' for more details." >&5
4872 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4873 See \`config.log' for more details." >&2;}
4874 { (exit 1); exit 1; }; }
4878 ac_cpp
='$CPP $CPPFLAGS'
4879 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4883 # Find a good install program. We prefer a C program (faster),
4884 # so one script is as good as another. But avoid the broken or
4885 # incompatible versions:
4886 # SysV /etc/install, /usr/sbin/install
4887 # SunOS /usr/etc/install
4888 # IRIX /sbin/install
4890 # AmigaOS /C/install, which installs bootblocks on floppy discs
4891 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4892 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4893 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4894 # OS/2's system install, which has a completely different semantic
4895 # ./install, which can be erroneously created by make from ./install.sh.
4896 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4897 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4898 if test -z "$INSTALL"; then
4899 if test "${ac_cv_path_install+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4906 test -z "$as_dir" && as_dir
=.
4907 # Account for people who put trailing slashes in PATH elements.
4909 .
/ | .
// |
/cC
/* | \
4910 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4911 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4914 # OSF1 and SCO ODT 3.0 have their own names for install.
4915 # Don't use installbsd from OSF since it installs stuff as root
4917 for ac_prog
in ginstall scoinst
install; do
4918 for ac_exec_ext
in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4920 if test $ac_prog = install &&
4921 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4922 # AIX install. It has an incompatible calling convention.
4924 elif test $ac_prog = install &&
4925 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4926 # program-specific install script used by HP pwplus--don't use.
4929 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4942 if test "${ac_cv_path_install+set}" = set; then
4943 INSTALL
=$ac_cv_path_install
4945 # As a last resort, use the slow shell script. Don't cache a
4946 # value for INSTALL within a source directory, because that will
4947 # break other packages using the cache if that directory is
4948 # removed, or if the value is a relative name.
4949 INSTALL
=$ac_install_sh
4952 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4953 echo "${ECHO_T}$INSTALL" >&6; }
4955 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4956 # It thinks the first close brace ends the variable substitution.
4957 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4959 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4961 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4963 if test "x$RANLIB" = x
; then
4964 if test -n "$ac_tool_prefix"; then
4965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4966 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4969 if test "${ac_cv_prog_RANLIB+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 if test -n "$RANLIB"; then
4973 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4979 test -z "$as_dir" && as_dir
=.
4980 for ac_exec_ext
in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 RANLIB
=$ac_cv_prog_RANLIB
4993 if test -n "$RANLIB"; then
4994 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4995 echo "${ECHO_T}$RANLIB" >&6; }
4997 { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
5003 if test -z "$ac_cv_prog_RANLIB"; then
5004 ac_ct_RANLIB
=$RANLIB
5005 # Extract the first word of "ranlib", so it can be a program name with args.
5006 set dummy ranlib
; ac_word
=$2
5007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5009 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 if test -n "$ac_ct_RANLIB"; then
5013 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5019 test -z "$as_dir" && as_dir
=.
5020 for ac_exec_ext
in '' $ac_executable_extensions; do
5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5033 if test -n "$ac_ct_RANLIB"; then
5034 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5035 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5037 { echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6; }
5041 if test "x$ac_ct_RANLIB" = x
; then
5044 case $cross_compiling:$ac_tool_warned in
5046 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5047 whose name does not start with the host triplet. If you think this
5048 configuration is useful to you, please write to autoconf@gnu.org." >&5
5049 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5050 whose name does not start with the host triplet. If you think this
5051 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5052 ac_tool_warned
=yes ;;
5054 RANLIB
=$ac_ct_RANLIB
5057 RANLIB
="$ac_cv_prog_RANLIB"
5061 # Extract the first word of "install-info", so it can be a program name with args.
5062 set dummy install-info
; ac_word
=$2
5063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5065 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5068 case $INSTALL_INFO in
5070 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5077 test -z "$as_dir" && as_dir
=.
5078 for ac_exec_ext
in '' $ac_executable_extensions; do
5079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5080 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5091 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5092 if test -n "$INSTALL_INFO"; then
5093 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5094 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5096 { echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6; }
5101 # Extract the first word of "install-info", so it can be a program name with args.
5102 set dummy install-info
; ac_word
=$2
5103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5105 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 case $INSTALL_INFO in
5110 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5113 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5114 for as_dir
in /usr
/sbin
5117 test -z "$as_dir" && as_dir
=.
5118 for ac_exec_ext
in '' $ac_executable_extensions; do
5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5132 if test -n "$INSTALL_INFO"; then
5133 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5134 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5136 { echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6; }
5141 # Extract the first word of "install-info", so it can be a program name with args.
5142 set dummy install-info
; ac_word
=$2
5143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5145 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 case $INSTALL_INFO in
5150 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5157 test -z "$as_dir" && as_dir
=.
5158 for ac_exec_ext
in '' $ac_executable_extensions; do
5159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5160 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5172 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5173 if test -n "$INSTALL_INFO"; then
5174 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5175 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5177 { echo "$as_me:$LINENO: result: no" >&5
5178 echo "${ECHO_T}no" >&6; }
5182 # Extract the first word of "gzip", so it can be a program name with args.
5183 set dummy
gzip; ac_word
=$2
5184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5186 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5191 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5198 test -z "$as_dir" && as_dir
=.
5199 for ac_exec_ext
in '' $ac_executable_extensions; do
5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5213 if test -n "$GZIP_PROG"; then
5214 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5215 echo "${ECHO_T}$GZIP_PROG" >&6; }
5217 { echo "$as_me:$LINENO: result: no" >&5
5218 echo "${ECHO_T}no" >&6; }
5224 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5226 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5229 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5231 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5235 late_LDFLAGS
=$LDFLAGS
5236 if test "$GCC" = yes; then
5237 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5239 LDFLAGS
="$LDFLAGS -znocombreloc"
5242 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5243 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5244 cat >conftest.
$ac_ext <<_ACEOF
5247 rm -f conftest.
$ac_objext conftest
$ac_exeext
5248 if { (ac_try
="$ac_link"
5250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_link") 2>conftest.er1
5256 grep -v '^ *+' conftest.er1 >conftest.err
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } && {
5261 test -z "$ac_c_werror_flag" ||
5262 test ! -s conftest.err
5263 } && test -s conftest$ac_exeext &&
5264 $as_test_x conftest$ac_exeext; then
5265 { echo "$as_me:$LINENO: result: yes" >&5
5266 echo "${ECHO_T}yes" >&6; }
5268 echo "$as_me: failed program was:" >&5
5269 sed 's/^/| /' conftest.$ac_ext >&5
5271 LDFLAGS=$late_LDFLAGS
5272 { echo "$as_me:$LINENO: result: no" >&5
5273 echo "${ECHO_T}no" >&6; }
5276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5277 conftest$ac_exeext conftest.$ac_ext
5279 #### Extract some information from the operating system and machine files.
5281 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5282 - which libraries the lib-src programs will want, and
5283 - whether the GNU malloc routines are usable..." >&5
5284 echo "$as_me: checking the machine- and system-dependent files to find out
5285 - which libraries the lib-src programs will want, and
5286 - whether the GNU malloc routines are usable..." >&6;}
5288 ### First figure out CFLAGS (which we use for running the compiler here)
5289 ### and REAL_CFLAGS (which we use for real compilation).
5290 ### The two are the same except on a few systems, where they are made
5291 ### different to work around various lossages. For example,
5292 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5293 ### as implying static linking.
5295 ### If the CFLAGS env var is specified, we use that value
5296 ### instead of the default.
5298 ### It's not important that this name contain the PID; you can't run
5299 ### two configures in the same directory and have anything work
5301 tempcname="conftest.c"
5304 #include "'${srcdir}'/src/'${opsysfile}'"
5305 #include "'${srcdir}'/src/'${machfile}'"
5306 #ifndef LIBS_MACHINE
5307 #define LIBS_MACHINE
5312 #ifndef C_SWITCH_SYSTEM
5313 #define C_SWITCH_SYSTEM
5315 #ifndef C_SWITCH_MACHINE
5316 #define C_SWITCH_MACHINE
5318 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5319 configure___ c_switch_system=C_SWITCH_SYSTEM
5320 configure___ c_switch_machine=C_SWITCH_MACHINE
5323 #define LIB_X11_LIB -lX11
5326 #ifndef LIBX11_MACHINE
5327 #define LIBX11_MACHINE
5330 #ifndef LIBX11_SYSTEM
5331 #define LIBX11_SYSTEM
5333 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5336 configure___ unexec=UNEXEC
5338 configure___ unexec=unexec.o
5341 #ifdef SYSTEM_MALLOC
5342 configure___ system_malloc=yes
5344 configure___ system_malloc=no
5347 #ifdef USE_MMAP_FOR_BUFFERS
5348 configure___ use_mmap_for_buffers=yes
5350 configure___ use_mmap_for_buffers=no
5353 #ifndef C_DEBUG_SWITCH
5354 #define C_DEBUG_SWITCH -g
5357 #ifndef C_OPTIMIZE_SWITCH
5359 #define C_OPTIMIZE_SWITCH -O2
5361 #define C_OPTIMIZE_SWITCH -O
5365 #ifndef C_WARNINGS_SWITCH
5366 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5369 #ifndef LD_SWITCH_MACHINE
5370 #define LD_SWITCH_MACHINE
5373 #ifndef LD_SWITCH_SYSTEM
5374 #define LD_SWITCH_SYSTEM
5377 #ifndef LD_SWITCH_X_SITE_AUX
5378 #define LD_SWITCH_X_SITE_AUX
5381 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5382 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5384 #ifdef THIS_IS_CONFIGURE
5386 /* Get the CFLAGS for tests in configure. */
5388 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5390 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5393 #else /* not THIS_IS_CONFIGURE */
5395 /* Get the CFLAGS for real compilation. */
5397 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5399 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5402 #endif /* not THIS_IS_CONFIGURE */
5405 # The value of CPP is a quoted variable reference, so we need to do this
5406 # to get its actual value...
5407 CPP=`eval "echo $CPP"`
5408 eval `${CPP} -Isrc ${tempcname} \
5409 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5410 if test "x$SPECIFIED_CFLAGS" = x; then
5411 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5412 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5414 REAL_CFLAGS="$CFLAGS"
5418 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5420 ### Make sure subsequent tests use flags consistent with the build flags.
5422 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5423 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5425 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5430 # Check whether --enable-largefile was given.
5431 if test "${enable_largefile+set}" = set; then
5432 enableval=$enable_largefile;
5435 if test "$enable_largefile" != no; then
5437 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5438 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5439 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 ac_cv_sys_largefile_CC=no
5443 if test "$GCC" != yes; then
5446 # IRIX 6.2 and later do not support large files by default,
5447 # so use the C compiler's -n32 option if that helps.
5448 cat >conftest.$ac_ext <<_ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 #include <sys/types.h>
5455 /* Check that off_t can represent 2**63 - 1 correctly.
5456 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5457 since some C++ compilers masquerading as C compilers
5458 incorrectly reject 9223372036854775807. */
5459 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5460 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5461 && LARGE_OFF_T % 2147483647 == 1)
5471 rm -f conftest.$ac_objext
5472 if { (ac_try="$ac_compile"
5474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5475 *) ac_try_echo
=$ac_try;;
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_compile") 2>conftest.er1
5480 grep -v '^ *+' conftest.er1
>conftest.err
5482 cat conftest.err
>&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } && {
5485 test -z "$ac_c_werror_flag" ||
5486 test ! -s conftest.err
5487 } && test -s conftest.
$ac_objext; then
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.
$ac_ext >&5
5496 rm -f core conftest.err conftest.
$ac_objext
5498 rm -f conftest.
$ac_objext
5499 if { (ac_try
="$ac_compile"
5501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compile") 2>conftest.er1
5507 grep -v '^ *+' conftest.er1 >conftest.err
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } && {
5512 test -z "$ac_c_werror_flag" ||
5513 test ! -s conftest.err
5514 } && test -s conftest.$ac_objext; then
5515 ac_cv_sys_largefile_CC=' -n32'; break
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5523 rm -f core conftest.err conftest.$ac_objext
5527 rm -f conftest.$ac_ext
5530 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5531 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5532 if test "$ac_cv_sys_largefile_CC" != no; then
5533 CC=$CC$ac_cv_sys_largefile_CC
5536 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5537 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5538 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5542 cat >conftest.$ac_ext <<_ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 #include <sys/types.h>
5549 /* Check that off_t can represent 2**63 - 1 correctly.
5550 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5551 since some C++ compilers masquerading as C compilers
5552 incorrectly reject 9223372036854775807. */
5553 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5554 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5555 && LARGE_OFF_T % 2147483647 == 1)
5565 rm -f conftest.$ac_objext
5566 if { (ac_try="$ac_compile"
5568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5569 *) ac_try_echo
=$ac_try;;
5571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572 (eval "$ac_compile") 2>conftest.er1
5574 grep -v '^ *+' conftest.er1
>conftest.err
5576 cat conftest.err
>&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } && {
5579 test -z "$ac_c_werror_flag" ||
5580 test ! -s conftest.err
5581 } && test -s conftest.
$ac_objext; then
5582 ac_cv_sys_file_offset_bits
=no
; break
5584 echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.
$ac_ext >&5
5590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5591 cat >conftest.
$ac_ext <<_ACEOF
5594 cat confdefs.h
>>conftest.
$ac_ext
5595 cat >>conftest.
$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5597 #define _FILE_OFFSET_BITS 64
5598 #include <sys/types.h>
5599 /* Check that off_t can represent 2**63 - 1 correctly.
5600 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5601 since some C++ compilers masquerading as C compilers
5602 incorrectly reject 9223372036854775807. */
5603 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5604 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5605 && LARGE_OFF_T % 2147483647 == 1)
5615 rm -f conftest.
$ac_objext
5616 if { (ac_try
="$ac_compile"
5618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_compile") 2>conftest.er1
5624 grep -v '^ *+' conftest.er1 >conftest.err
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } && {
5629 test -z "$ac_c_werror_flag" ||
5630 test ! -s conftest.err
5631 } && test -s conftest.$ac_objext; then
5632 ac_cv_sys_file_offset_bits=64; break
5634 echo "$as_me: failed program was:" >&5
5635 sed 's/^/| /' conftest.$ac_ext >&5
5640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 ac_cv_sys_file_offset_bits=unknown
5645 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5646 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5647 case $ac_cv_sys_file_offset_bits in #(
5650 cat >>confdefs.h <<_ACEOF
5651 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5656 if test $ac_cv_sys_file_offset_bits = unknown; then
5657 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5658 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5659 if test "${ac_cv_sys_large_files+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 cat >conftest.$ac_ext <<_ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 #include <sys/types.h>
5670 /* Check that off_t can represent 2**63 - 1 correctly.
5671 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5672 since some C++ compilers masquerading as C compilers
5673 incorrectly reject 9223372036854775807. */
5674 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5675 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5676 && LARGE_OFF_T % 2147483647 == 1)
5686 rm -f conftest.$ac_objext
5687 if { (ac_try="$ac_compile"
5689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5690 *) ac_try_echo
=$ac_try;;
5692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_compile") 2>conftest.er1
5695 grep -v '^ *+' conftest.er1
>conftest.err
5697 cat conftest.err
>&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } && {
5700 test -z "$ac_c_werror_flag" ||
5701 test ! -s conftest.err
5702 } && test -s conftest.
$ac_objext; then
5703 ac_cv_sys_large_files
=no
; break
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.
$ac_ext >&5
5711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5712 cat >conftest.
$ac_ext <<_ACEOF
5715 cat confdefs.h
>>conftest.
$ac_ext
5716 cat >>conftest.
$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5718 #define _LARGE_FILES 1
5719 #include <sys/types.h>
5720 /* Check that off_t can represent 2**63 - 1 correctly.
5721 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5722 since some C++ compilers masquerading as C compilers
5723 incorrectly reject 9223372036854775807. */
5724 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5725 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5726 && LARGE_OFF_T % 2147483647 == 1)
5736 rm -f conftest.
$ac_objext
5737 if { (ac_try
="$ac_compile"
5739 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_compile") 2>conftest.er1
5745 grep -v '^ *+' conftest.er1 >conftest.err
5747 cat conftest.err >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } && {
5750 test -z "$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5752 } && test -s conftest.$ac_objext; then
5753 ac_cv_sys_large_files=1; break
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 ac_cv_sys_large_files=unknown
5766 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5767 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5768 case $ac_cv_sys_large_files in #(
5771 cat >>confdefs.h <<_ACEOF
5772 #define _LARGE_FILES $ac_cv_sys_large_files
5782 ### The standard library on x86-64 GNU/Linux distributions can
5783 ### be located in either /usr/lib64 or /usr/lib.
5784 case "${canonical}" in
5785 x86_64-*-linux-gnu* )
5786 if test -d /usr/lib64; then
5788 cat >>confdefs.h <<\_ACEOF
5789 #define HAVE_X86_64_LIB64_DIR 1
5798 if test "${with_sound}" != "no"; then
5799 # Sound support for GNU/Linux and the free BSDs.
5800 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5801 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5802 if test "${ac_cv_header_stdc+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 cat >conftest.$ac_ext <<_ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5824 rm -f conftest.$ac_objext
5825 if { (ac_try="$ac_compile"
5827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5828 *) ac_try_echo
=$ac_try;;
5830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831 (eval "$ac_compile") 2>conftest.er1
5833 grep -v '^ *+' conftest.er1
>conftest.err
5835 cat conftest.err
>&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } && {
5838 test -z "$ac_c_werror_flag" ||
5839 test ! -s conftest.err
5840 } && test -s conftest.
$ac_objext; then
5841 ac_cv_header_stdc
=yes
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.
$ac_ext >&5
5846 ac_cv_header_stdc
=no
5849 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5851 if test $ac_cv_header_stdc = yes; then
5852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5853 cat >conftest.
$ac_ext <<_ACEOF
5856 cat confdefs.h
>>conftest.
$ac_ext
5857 cat >>conftest.
$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5863 $EGREP "memchr" >/dev
/null
2>&1; then
5866 ac_cv_header_stdc
=no
5872 if test $ac_cv_header_stdc = yes; then
5873 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5874 cat >conftest.
$ac_ext <<_ACEOF
5877 cat confdefs.h
>>conftest.
$ac_ext
5878 cat >>conftest.
$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5884 $EGREP "free" >/dev
/null
2>&1; then
5887 ac_cv_header_stdc
=no
5893 if test $ac_cv_header_stdc = yes; then
5894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5895 if test "$cross_compiling" = yes; then
5898 cat >conftest.
$ac_ext <<_ACEOF
5901 cat confdefs.h
>>conftest.
$ac_ext
5902 cat >>conftest.
$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5906 #if ((' ' & 0x0FF) == 0x020)
5907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5910 # define ISLOWER(c) \
5911 (('a' <= (c) && (c) <= 'i') \
5912 || ('j' <= (c) && (c) <= 'r') \
5913 || ('s' <= (c) && (c) <= 'z'))
5914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5922 for (i = 0; i < 256; i++)
5923 if (XOR (islower (i), ISLOWER (i))
5924 || toupper (i) != TOUPPER (i))
5929 rm -f conftest
$ac_exeext
5930 if { (ac_try
="$ac_link"
5932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936 (eval "$ac_link") 2>&5
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5940 { (case "(($ac_try" in
5941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5942 *) ac_try_echo
=$ac_try;;
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945 (eval "$ac_try") 2>&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5951 echo "$as_me: program exited with status $ac_status" >&5
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.
$ac_ext >&5
5956 ac_cv_header_stdc
=no
5958 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5964 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5965 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5966 if test $ac_cv_header_stdc = yes; then
5968 cat >>confdefs.h
<<\_ACEOF
5969 #define STDC_HEADERS 1
5974 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5984 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5985 inttypes.h stdint.h unistd.h
5987 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5988 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5990 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5993 cat >conftest.
$ac_ext <<_ACEOF
5996 cat confdefs.h
>>conftest.
$ac_ext
5997 cat >>conftest.
$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 $ac_includes_default
6001 #include <$ac_header>
6003 rm -f conftest.
$ac_objext
6004 if { (ac_try
="$ac_compile"
6006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_compile") 2>conftest.er1
6012 grep -v '^ *+' conftest.er1 >conftest.err
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && {
6017 test -z "$ac_c_werror_flag" ||
6018 test ! -s conftest.err
6019 } && test -s conftest.$ac_objext; then
6020 eval "$as_ac_Header=yes"
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6025 eval "$as_ac_Header=no"
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6030 ac_res=`eval echo '${'$as_ac_Header'}'`
6031 { echo "$as_me:$LINENO: result: $ac_res" >&5
6032 echo "${ECHO_T}$ac_res" >&6; }
6033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6034 cat >>confdefs.h <<_ACEOF
6035 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6046 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6048 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 ac_res=`eval echo '${'$as_ac_Header'}'`
6056 { echo "$as_me:$LINENO: result: $ac_res" >&5
6057 echo "${ECHO_T}$ac_res" >&6; }
6059 # Is the header compilable?
6060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6062 cat >conftest.$ac_ext <<_ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 $ac_includes_default
6069 #include <$ac_header>
6071 rm -f conftest.$ac_objext
6072 if { (ac_try="$ac_compile"
6074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6075 *) ac_try_echo
=$ac_try;;
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078 (eval "$ac_compile") 2>conftest.er1
6080 grep -v '^ *+' conftest.er1
>conftest.err
6082 cat conftest.err
>&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } && {
6085 test -z "$ac_c_werror_flag" ||
6086 test ! -s conftest.err
6087 } && test -s conftest.
$ac_objext; then
6088 ac_header_compiler
=yes
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.
$ac_ext >&5
6093 ac_header_compiler
=no
6096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6098 echo "${ECHO_T}$ac_header_compiler" >&6; }
6100 # Is the header present?
6101 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6103 cat >conftest.
$ac_ext <<_ACEOF
6106 cat confdefs.h
>>conftest.
$ac_ext
6107 cat >>conftest.
$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6109 #include <$ac_header>
6111 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6119 grep -v '^ *+' conftest.er1 >conftest.err
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } >/dev/null && {
6124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6125 test ! -s conftest.err
6127 ac_header_preproc=yes
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6132 ac_header_preproc=no
6135 rm -f conftest.err conftest.$ac_ext
6136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6137 echo "${ECHO_T}$ac_header_preproc" >&6; }
6139 # So? What about this header?
6140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6146 ac_header_preproc=yes
6149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6169 eval "$as_ac_Header=\$ac_header_preproc"
6171 ac_res=`eval echo '${'$as_ac_Header'}'`
6172 { echo "$as_me:$LINENO: result: $ac_res" >&5
6173 echo "${ECHO_T}$ac_res" >&6; }
6176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6177 cat >>confdefs.h <<_ACEOF
6178 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6185 # Emulation library used on NetBSD.
6186 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6187 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6188 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6191 ac_check_lib_save_LIBS=$LIBS
6192 LIBS="-lossaudio $LIBS"
6193 cat >conftest.$ac_ext <<_ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6200 /* Override any GCC internal prototype to avoid an error.
6201 Use char because int might match the return type of a GCC
6202 builtin and then its argument prototype would still apply. */
6210 return _oss_ioctl ();
6215 rm -f conftest.$ac_objext conftest$ac_exeext
6216 if { (ac_try="$ac_link"
6218 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6219 *) ac_try_echo
=$ac_try;;
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_link") 2>conftest.er1
6224 grep -v '^ *+' conftest.er1
>conftest.err
6226 cat conftest.err
>&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } && {
6229 test -z "$ac_c_werror_flag" ||
6230 test ! -s conftest.err
6231 } && test -s conftest
$ac_exeext &&
6232 $as_test_x conftest
$ac_exeext; then
6233 ac_cv_lib_ossaudio__oss_ioctl
=yes
6235 echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.
$ac_ext >&5
6238 ac_cv_lib_ossaudio__oss_ioctl
=no
6241 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6242 conftest
$ac_exeext conftest.
$ac_ext
6243 LIBS
=$ac_check_lib_save_LIBS
6245 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6246 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6247 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6256 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6257 if test "X${with_pkg_config_prog}" != X
; then
6258 PKG_CONFIG
="${with_pkg_config_prog}"
6263 if test -z "$PKG_CONFIG"; then
6264 # Extract the first word of "pkg-config", so it can be a program name with args.
6265 set dummy pkg-config
; ac_word
=$2
6266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6280 test -z "$as_dir" && as_dir
=.
6281 for ac_exec_ext
in '' $ac_executable_extensions; do
6282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6283 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6295 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6296 if test -n "$PKG_CONFIG"; then
6297 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6298 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6300 { echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6; }
6307 if test "$PKG_CONFIG" = "no" ; then
6310 PKG_CONFIG_MIN_VERSION
=0.9.0
6311 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6312 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6313 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6315 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6316 { echo "$as_me:$LINENO: result: yes" >&5
6317 echo "${ECHO_T}yes" >&6; }
6320 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6321 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6322 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
6323 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6324 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6326 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6327 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6328 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
6329 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6330 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6332 { echo "$as_me:$LINENO: result: no" >&5
6333 echo "${ECHO_T}no" >&6; }
6336 ## If we have a custom action on failure, don't print errors, but
6337 ## do set a variable so people can do so.
6338 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6345 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6346 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6350 if test $succeeded = yes; then
6356 if test $HAVE_ALSA = yes; then
6357 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6358 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6360 cat >>confdefs.h
<<\_ACEOF
6393 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6394 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6395 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6396 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6399 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6400 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6403 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6406 ac_res
=`eval echo '${'$as_ac_Header'}'`
6407 { echo "$as_me:$LINENO: result: $ac_res" >&5
6408 echo "${ECHO_T}$ac_res" >&6; }
6410 # Is the header compilable?
6411 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6413 cat >conftest.
$ac_ext <<_ACEOF
6416 cat confdefs.h
>>conftest.
$ac_ext
6417 cat >>conftest.
$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6419 $ac_includes_default
6420 #include <$ac_header>
6422 rm -f conftest.
$ac_objext
6423 if { (ac_try
="$ac_compile"
6425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_compile") 2>conftest.er1
6431 grep -v '^ *+' conftest.er1 >conftest.err
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } && {
6436 test -z "$ac_c_werror_flag" ||
6437 test ! -s conftest.err
6438 } && test -s conftest.$ac_objext; then
6439 ac_header_compiler=yes
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6444 ac_header_compiler=no
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6449 echo "${ECHO_T}$ac_header_compiler" >&6; }
6451 # Is the header present?
6452 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6454 cat >conftest.$ac_ext <<_ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6460 #include <$ac_header>
6462 if { (ac_try="$ac_cpp conftest.$ac_ext"
6464 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6465 *) ac_try_echo
=$ac_try;;
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6470 grep -v '^ *+' conftest.er1
>conftest.err
6472 cat conftest.err
>&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } >/dev
/null
&& {
6475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6476 test ! -s conftest.err
6478 ac_header_preproc
=yes
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.
$ac_ext >&5
6483 ac_header_preproc
=no
6486 rm -f conftest.err conftest.
$ac_ext
6487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6488 echo "${ECHO_T}$ac_header_preproc" >&6; }
6490 # So? What about this header?
6491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6497 ac_header_preproc
=yes
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6517 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6520 eval "$as_ac_Header=\$ac_header_preproc"
6522 ac_res
=`eval echo '${'$as_ac_Header'}'`
6523 { echo "$as_me:$LINENO: result: $ac_res" >&5
6524 echo "${ECHO_T}$ac_res" >&6; }
6527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6528 cat >>confdefs.h
<<_ACEOF
6529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6537 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6538 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6539 cat >conftest.
$ac_ext <<_ACEOF
6542 cat confdefs.h
>>conftest.
$ac_ext
6543 cat >>conftest.
$ac_ext <<_ACEOF
6544 /* end confdefs.h. */
6545 #include <sys/personality.h>
6549 personality (PER_LINUX32)
6554 rm -f conftest.
$ac_objext
6555 if { (ac_try
="$ac_compile"
6557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6558 *) ac_try_echo=$ac_try;;
6560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6561 (eval "$ac_compile") 2>conftest.er1
6563 grep -v '^ *+' conftest.er1 >conftest.err
6565 cat conftest.err >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } && {
6568 test -z "$ac_c_werror_flag" ||
6569 test ! -s conftest.err
6570 } && test -s conftest.$ac_objext; then
6571 emacs_cv_personality_linux32=yes
6573 echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6576 emacs_cv_personality_linux32=no
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6581 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6583 if test $emacs_cv_personality_linux32 = yes; then
6585 cat >>confdefs.h <<\_ACEOF
6586 #define HAVE_PERSONALITY_LINUX32 1
6592 for ac_header in term.h
6594 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6600 cat >conftest.$ac_ext <<_ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6606 #include <$ac_header>
6608 if { (ac_try="$ac_cpp conftest.$ac_ext"
6610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6611 *) ac_try_echo
=$ac_try;;
6613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6616 grep -v '^ *+' conftest.er1
>conftest.err
6618 cat conftest.err
>&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } >/dev
/null
&& {
6621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6622 test ! -s conftest.err
6624 eval "$as_ac_Header=yes"
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.
$ac_ext >&5
6629 eval "$as_ac_Header=no"
6632 rm -f conftest.err conftest.
$ac_ext
6634 ac_res
=`eval echo '${'$as_ac_Header'}'`
6635 { echo "$as_me:$LINENO: result: $ac_res" >&5
6636 echo "${ECHO_T}$ac_res" >&6; }
6637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6638 cat >>confdefs.h
<<_ACEOF
6639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6646 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6647 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6648 if test "${ac_cv_header_stdc+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 cat >conftest.
$ac_ext <<_ACEOF
6654 cat confdefs.h
>>conftest.
$ac_ext
6655 cat >>conftest.
$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6670 rm -f conftest.
$ac_objext
6671 if { (ac_try
="$ac_compile"
6673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6674 *) ac_try_echo=$ac_try;;
6676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6677 (eval "$ac_compile") 2>conftest.er1
6679 grep -v '^ *+' conftest.er1 >conftest.err
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } && {
6684 test -z "$ac_c_werror_flag" ||
6685 test ! -s conftest.err
6686 } && test -s conftest.$ac_objext; then
6687 ac_cv_header_stdc=yes
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6692 ac_cv_header_stdc=no
6695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697 if test $ac_cv_header_stdc = yes; then
6698 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6699 cat >conftest.$ac_ext <<_ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6709 $EGREP "memchr" >/dev/null 2>&1; then
6712 ac_cv_header_stdc=no
6718 if test $ac_cv_header_stdc = yes; then
6719 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6720 cat >conftest.$ac_ext <<_ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h. */
6729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6730 $EGREP "free" >/dev/null 2>&1; then
6733 ac_cv_header_stdc=no
6739 if test $ac_cv_header_stdc = yes; then
6740 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6741 if test "$cross_compiling" = yes; then
6744 cat >conftest.$ac_ext <<_ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6752 #if ((' ' & 0x0FF) == 0x020)
6753 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6754 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6756 # define ISLOWER(c) \
6757 (('a' <= (c) && (c) <= 'i') \
6758 || ('j' <= (c) && (c) <= 'r') \
6759 || ('s' <= (c) && (c) <= 'z'))
6760 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6763 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6768 for (i = 0; i < 256; i++)
6769 if (XOR (islower (i), ISLOWER (i))
6770 || toupper (i) != TOUPPER (i))
6775 rm -f conftest$ac_exeext
6776 if { (ac_try="$ac_link"
6778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6779 *) ac_try_echo
=$ac_try;;
6781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6782 (eval "$ac_link") 2>&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6786 { (case "(($ac_try" in
6787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6788 *) ac_try_echo=$ac_try;;
6790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6791 (eval "$ac_try") 2>&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6797 echo "$as_me: program exited with status $ac_status" >&5
6798 echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6802 ac_cv_header_stdc=no
6804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6810 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6811 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6812 if test $ac_cv_header_stdc = yes; then
6814 cat >>confdefs.h <<\_ACEOF
6815 #define STDC_HEADERS 1
6820 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6821 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6822 if test "${ac_cv_header_time+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6825 cat >conftest.$ac_ext <<_ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831 #include <sys/types.h>
6832 #include <sys/time.h>
6838 if ((struct tm *) 0)
6844 rm -f conftest.$ac_objext
6845 if { (ac_try="$ac_compile"
6847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6848 *) ac_try_echo
=$ac_try;;
6850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6851 (eval "$ac_compile") 2>conftest.er1
6853 grep -v '^ *+' conftest.er1
>conftest.err
6855 cat conftest.err
>&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } && {
6858 test -z "$ac_c_werror_flag" ||
6859 test ! -s conftest.err
6860 } && test -s conftest.
$ac_objext; then
6861 ac_cv_header_time
=yes
6863 echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.
$ac_ext >&5
6866 ac_cv_header_time
=no
6869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6871 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6872 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6873 if test $ac_cv_header_time = yes; then
6875 cat >>confdefs.h
<<\_ACEOF
6876 #define TIME_WITH_SYS_TIME 1
6881 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6882 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6883 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 cat >conftest.
$ac_ext <<_ACEOF
6889 cat confdefs.h
>>conftest.
$ac_ext
6890 cat >>conftest.
$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 $ac_includes_default
6904 rm -f conftest.
$ac_objext
6905 if { (ac_try
="$ac_compile"
6907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6908 *) ac_try_echo=$ac_try;;
6910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6911 (eval "$ac_compile") 2>conftest.er1
6913 grep -v '^ *+' conftest.er1 >conftest.err
6915 cat conftest.err >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } && {
6918 test -z "$ac_c_werror_flag" ||
6919 test ! -s conftest.err
6920 } && test -s conftest.$ac_objext; then
6921 ac_cv_have_decl_sys_siglist=yes
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6926 ac_cv_have_decl_sys_siglist=no
6929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6931 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6932 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6933 if test $ac_cv_have_decl_sys_siglist = yes; then
6935 cat >>confdefs.h <<_ACEOF
6936 #define HAVE_DECL_SYS_SIGLIST 1
6941 cat >>confdefs.h <<_ACEOF
6942 #define HAVE_DECL_SYS_SIGLIST 0
6949 if test $ac_cv_have_decl_sys_siglist != yes; then
6950 # For Tru64, at least:
6951 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6952 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6953 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 cat >conftest.$ac_ext <<_ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6962 $ac_includes_default
6966 #ifndef __sys_siglist
6967 (void) __sys_siglist;
6974 rm -f conftest.$ac_objext
6975 if { (ac_try="$ac_compile"
6977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6978 *) ac_try_echo
=$ac_try;;
6980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6981 (eval "$ac_compile") 2>conftest.er1
6983 grep -v '^ *+' conftest.er1
>conftest.err
6985 cat conftest.err
>&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } && {
6988 test -z "$ac_c_werror_flag" ||
6989 test ! -s conftest.err
6990 } && test -s conftest.
$ac_objext; then
6991 ac_cv_have_decl___sys_siglist
=yes
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.
$ac_ext >&5
6996 ac_cv_have_decl___sys_siglist
=no
6999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7001 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7002 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7003 if test $ac_cv_have_decl___sys_siglist = yes; then
7005 cat >>confdefs.h
<<_ACEOF
7006 #define HAVE_DECL___SYS_SIGLIST 1
7011 cat >>confdefs.h
<<_ACEOF
7012 #define HAVE_DECL___SYS_SIGLIST 0
7019 if test $ac_cv_have_decl___sys_siglist = yes; then
7021 cat >>confdefs.h
<<\_ACEOF
7022 #define sys_siglist __sys_siglist
7027 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7028 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7029 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7032 cat >conftest.
$ac_ext <<_ACEOF
7035 cat confdefs.h
>>conftest.
$ac_ext
7036 cat >>conftest.
$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 #include <sys/types.h>
7039 #include <sys/wait.h>
7041 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7044 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7052 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7057 rm -f conftest.
$ac_objext
7058 if { (ac_try
="$ac_compile"
7060 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064 (eval "$ac_compile") 2>conftest.er1
7066 grep -v '^ *+' conftest.er1 >conftest.err
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && {
7071 test -z "$ac_c_werror_flag" ||
7072 test ! -s conftest.err
7073 } && test -s conftest.$ac_objext; then
7074 ac_cv_header_sys_wait_h=yes
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7079 ac_cv_header_sys_wait_h=no
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7084 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7085 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7086 if test $ac_cv_header_sys_wait_h = yes; then
7088 cat >>confdefs.h <<\_ACEOF
7089 #define HAVE_SYS_WAIT_H 1
7095 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7096 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7097 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7100 cat >conftest.$ac_ext <<_ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 #ifdef TIME_WITH_SYS_TIME
7107 #include <sys/time.h>
7110 #ifdef HAVE_SYS_TIME_H
7111 #include <sys/time.h>
7122 static struct utimbuf x; x.actime = x.modtime;
7127 rm -f conftest.$ac_objext
7128 if { (ac_try="$ac_compile"
7130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7131 *) ac_try_echo
=$ac_try;;
7133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7134 (eval "$ac_compile") 2>conftest.er1
7136 grep -v '^ *+' conftest.er1
>conftest.err
7138 cat conftest.err
>&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } && {
7141 test -z "$ac_c_werror_flag" ||
7142 test ! -s conftest.err
7143 } && test -s conftest.
$ac_objext; then
7144 emacs_cv_struct_utimbuf
=yes
7146 echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.
$ac_ext >&5
7149 emacs_cv_struct_utimbuf
=no
7152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7154 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7155 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7156 if test $emacs_cv_struct_utimbuf = yes; then
7158 cat >>confdefs.h
<<\_ACEOF
7159 #define HAVE_STRUCT_UTIMBUF 1
7164 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7165 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7166 if test "${ac_cv_type_signal+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 cat >conftest.
$ac_ext <<_ACEOF
7172 cat confdefs.h
>>conftest.
$ac_ext
7173 cat >>conftest.
$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 #include <sys/types.h>
7181 return *(signal (0, 0)) (0) == 1;
7186 rm -f conftest.
$ac_objext
7187 if { (ac_try
="$ac_compile"
7189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193 (eval "$ac_compile") 2>conftest.er1
7195 grep -v '^ *+' conftest.er1 >conftest.err
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } && {
7200 test -z "$ac_c_werror_flag" ||
7201 test ! -s conftest.err
7202 } && test -s conftest.$ac_objext; then
7203 ac_cv_type_signal=int
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7208 ac_cv_type_signal=void
7211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7213 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7214 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7216 cat >>confdefs.h <<_ACEOF
7217 #define RETSIGTYPE $ac_cv_type_signal
7222 { echo "$as_me:$LINENO: checking for speed_t" >&5
7223 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7224 if test "${emacs_cv_speed_t+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 cat >conftest.$ac_ext <<_ACEOF
7230 cat confdefs.h >>conftest.$ac_ext
7231 cat >>conftest.$ac_ext <<_ACEOF
7232 /* end confdefs.h. */
7233 #include <termios.h>
7242 rm -f conftest.$ac_objext
7243 if { (ac_try="$ac_compile"
7245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7246 *) ac_try_echo
=$ac_try;;
7248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249 (eval "$ac_compile") 2>conftest.er1
7251 grep -v '^ *+' conftest.er1
>conftest.err
7253 cat conftest.err
>&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } && {
7256 test -z "$ac_c_werror_flag" ||
7257 test ! -s conftest.err
7258 } && test -s conftest.
$ac_objext; then
7259 emacs_cv_speed_t
=yes
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.
$ac_ext >&5
7267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7269 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7270 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7271 if test $emacs_cv_speed_t = yes; then
7273 cat >>confdefs.h
<<\_ACEOF
7274 #define HAVE_SPEED_T 1
7279 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7280 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7281 if test "${emacs_cv_struct_timeval+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7284 cat >conftest.
$ac_ext <<_ACEOF
7287 cat confdefs.h
>>conftest.
$ac_ext
7288 cat >>conftest.
$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290 #ifdef TIME_WITH_SYS_TIME
7291 #include <sys/time.h>
7294 #ifdef HAVE_SYS_TIME_H
7295 #include <sys/time.h>
7303 static struct timeval x; x.tv_sec = x.tv_usec;
7308 rm -f conftest.
$ac_objext
7309 if { (ac_try
="$ac_compile"
7311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7312 *) ac_try_echo=$ac_try;;
7314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7315 (eval "$ac_compile") 2>conftest.er1
7317 grep -v '^ *+' conftest.er1 >conftest.err
7319 cat conftest.err >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } && {
7322 test -z "$ac_c_werror_flag" ||
7323 test ! -s conftest.err
7324 } && test -s conftest.$ac_objext; then
7325 emacs_cv_struct_timeval=yes
7327 echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7330 emacs_cv_struct_timeval=no
7333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7335 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7336 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7337 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7338 if test $emacs_cv_struct_timeval = yes; then
7340 cat >>confdefs.h <<\_ACEOF
7341 #define HAVE_TIMEVAL 1
7346 { echo "$as_me:$LINENO: checking for struct exception" >&5
7347 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7348 if test "${emacs_cv_struct_exception+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 cat >conftest.$ac_ext <<_ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7361 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7366 rm -f conftest.$ac_objext
7367 if { (ac_try="$ac_compile"
7369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7370 *) ac_try_echo
=$ac_try;;
7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_compile") 2>conftest.er1
7375 grep -v '^ *+' conftest.er1
>conftest.err
7377 cat conftest.err
>&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && {
7380 test -z "$ac_c_werror_flag" ||
7381 test ! -s conftest.err
7382 } && test -s conftest.
$ac_objext; then
7383 emacs_cv_struct_exception
=yes
7385 echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.
$ac_ext >&5
7388 emacs_cv_struct_exception
=no
7391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7393 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7394 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7395 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7396 if test $emacs_cv_struct_exception != yes; then
7398 cat >>confdefs.h
<<\_ACEOF
7399 #define NO_MATHERR 1
7405 for ac_header
in sys
/socket.h
7407 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7408 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7411 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 ac_res
=`eval echo '${'$as_ac_Header'}'`
7415 { echo "$as_me:$LINENO: result: $ac_res" >&5
7416 echo "${ECHO_T}$ac_res" >&6; }
7418 # Is the header compilable?
7419 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7421 cat >conftest.
$ac_ext <<_ACEOF
7424 cat confdefs.h
>>conftest.
$ac_ext
7425 cat >>conftest.
$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7427 $ac_includes_default
7428 #include <$ac_header>
7430 rm -f conftest.
$ac_objext
7431 if { (ac_try
="$ac_compile"
7433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7434 *) ac_try_echo=$ac_try;;
7436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7437 (eval "$ac_compile") 2>conftest.er1
7439 grep -v '^ *+' conftest.er1 >conftest.err
7441 cat conftest.err >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } && {
7444 test -z "$ac_c_werror_flag" ||
7445 test ! -s conftest.err
7446 } && test -s conftest.$ac_objext; then
7447 ac_header_compiler=yes
7449 echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.$ac_ext >&5
7452 ac_header_compiler=no
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7457 echo "${ECHO_T}$ac_header_compiler" >&6; }
7459 # Is the header present?
7460 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7462 cat >conftest.$ac_ext <<_ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 #include <$ac_header>
7470 if { (ac_try="$ac_cpp conftest.$ac_ext"
7472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7473 *) ac_try_echo
=$ac_try;;
7475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7478 grep -v '^ *+' conftest.er1
>conftest.err
7480 cat conftest.err
>&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } >/dev
/null
&& {
7483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7484 test ! -s conftest.err
7486 ac_header_preproc
=yes
7488 echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.
$ac_ext >&5
7491 ac_header_preproc
=no
7494 rm -f conftest.err conftest.
$ac_ext
7495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7496 echo "${ECHO_T}$ac_header_preproc" >&6; }
7498 # So? What about this header?
7499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7505 ac_header_preproc
=yes
7508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7515 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7525 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7528 eval "$as_ac_Header=\$ac_header_preproc"
7530 ac_res
=`eval echo '${'$as_ac_Header'}'`
7531 { echo "$as_me:$LINENO: result: $ac_res" >&5
7532 echo "${ECHO_T}$ac_res" >&6; }
7535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7536 cat >>confdefs.h
<<_ACEOF
7537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7545 for ac_header
in net
/if.h
7547 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7550 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 cat >conftest.
$ac_ext <<_ACEOF
7556 cat confdefs.h
>>conftest.
$ac_ext
7557 cat >>conftest.
$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 $ac_includes_default
7560 #if HAVE_SYS_SOCKET_H
7561 #include <sys/socket.h>
7564 #include <$ac_header>
7566 rm -f conftest.
$ac_objext
7567 if { (ac_try
="$ac_compile"
7569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7570 *) ac_try_echo=$ac_try;;
7572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7573 (eval "$ac_compile") 2>conftest.er1
7575 grep -v '^ *+' conftest.er1 >conftest.err
7577 cat conftest.err >&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } && {
7580 test -z "$ac_c_werror_flag" ||
7581 test ! -s conftest.err
7582 } && test -s conftest.$ac_objext; then
7583 eval "$as_ac_Header=yes"
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7588 eval "$as_ac_Header=no"
7591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7593 ac_res=`eval echo '${'$as_ac_Header'}'`
7594 { echo "$as_me:$LINENO: result: $ac_res" >&5
7595 echo "${ECHO_T}$ac_res" >&6; }
7596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7597 cat >>confdefs.h <<_ACEOF
7598 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7606 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7607 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7608 if test "${ac_cv_struct_tm+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7611 cat >conftest.$ac_ext <<_ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 #include <sys/types.h>
7624 int *p = &tm.tm_sec;
7630 rm -f conftest.$ac_objext
7631 if { (ac_try="$ac_compile"
7633 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7634 *) ac_try_echo
=$ac_try;;
7636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7637 (eval "$ac_compile") 2>conftest.er1
7639 grep -v '^ *+' conftest.er1
>conftest.err
7641 cat conftest.err
>&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); } && {
7644 test -z "$ac_c_werror_flag" ||
7645 test ! -s conftest.err
7646 } && test -s conftest.
$ac_objext; then
7647 ac_cv_struct_tm
=time.h
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.
$ac_ext >&5
7652 ac_cv_struct_tm
=sys
/time.h
7655 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7657 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7658 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7659 if test $ac_cv_struct_tm = sys
/time.h
; then
7661 cat >>confdefs.h
<<\_ACEOF
7662 #define TM_IN_SYS_TIME 1
7667 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7668 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7669 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 cat >conftest.
$ac_ext <<_ACEOF
7675 cat confdefs.h
>>conftest.
$ac_ext
7676 cat >>conftest.
$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 #include <sys/types.h>
7679 #include <$ac_cv_struct_tm>
7685 static struct tm ac_aggr;
7686 if (ac_aggr.tm_zone)
7692 rm -f conftest.
$ac_objext
7693 if { (ac_try
="$ac_compile"
7695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7696 *) ac_try_echo=$ac_try;;
7698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7699 (eval "$ac_compile") 2>conftest.er1
7701 grep -v '^ *+' conftest.er1 >conftest.err
7703 cat conftest.err >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } && {
7706 test -z "$ac_c_werror_flag" ||
7707 test ! -s conftest.err
7708 } && test -s conftest.$ac_objext; then
7709 ac_cv_member_struct_tm_tm_zone=yes
7711 echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7714 cat >conftest.$ac_ext <<_ACEOF
7717 cat confdefs.h >>conftest.$ac_ext
7718 cat >>conftest.$ac_ext <<_ACEOF
7719 /* end confdefs.h. */
7720 #include <sys/types.h>
7721 #include <$ac_cv_struct_tm>
7727 static struct tm ac_aggr;
7728 if (sizeof ac_aggr.tm_zone)
7734 rm -f conftest.$ac_objext
7735 if { (ac_try="$ac_compile"
7737 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7738 *) ac_try_echo
=$ac_try;;
7740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7741 (eval "$ac_compile") 2>conftest.er1
7743 grep -v '^ *+' conftest.er1
>conftest.err
7745 cat conftest.err
>&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } && {
7748 test -z "$ac_c_werror_flag" ||
7749 test ! -s conftest.err
7750 } && test -s conftest.
$ac_objext; then
7751 ac_cv_member_struct_tm_tm_zone
=yes
7753 echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.
$ac_ext >&5
7756 ac_cv_member_struct_tm_tm_zone
=no
7759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7762 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7764 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7765 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7766 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7768 cat >>confdefs.h
<<_ACEOF
7769 #define HAVE_STRUCT_TM_TM_ZONE 1
7775 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7777 cat >>confdefs.h
<<\_ACEOF
7778 #define HAVE_TM_ZONE 1
7782 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7783 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7784 if test "${ac_cv_have_decl_tzname+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 cat >conftest.
$ac_ext <<_ACEOF
7790 cat confdefs.h
>>conftest.
$ac_ext
7791 cat >>conftest.
$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7806 rm -f conftest.
$ac_objext
7807 if { (ac_try
="$ac_compile"
7809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813 (eval "$ac_compile") 2>conftest.er1
7815 grep -v '^ *+' conftest.er1 >conftest.err
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } && {
7820 test -z "$ac_c_werror_flag" ||
7821 test ! -s conftest.err
7822 } && test -s conftest.$ac_objext; then
7823 ac_cv_have_decl_tzname=yes
7825 echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7828 ac_cv_have_decl_tzname=no
7831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7833 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7834 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7835 if test $ac_cv_have_decl_tzname = yes; then
7837 cat >>confdefs.h <<_ACEOF
7838 #define HAVE_DECL_TZNAME 1
7843 cat >>confdefs.h <<_ACEOF
7844 #define HAVE_DECL_TZNAME 0
7851 { echo "$as_me:$LINENO: checking for tzname" >&5
7852 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7853 if test "${ac_cv_var_tzname+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7856 cat >conftest.$ac_ext <<_ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7863 #if !HAVE_DECL_TZNAME
7864 extern char *tzname[];
7870 return tzname[0][0];
7875 rm -f conftest.$ac_objext conftest$ac_exeext
7876 if { (ac_try="$ac_link"
7878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7879 *) ac_try_echo
=$ac_try;;
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_link") 2>conftest.er1
7884 grep -v '^ *+' conftest.er1
>conftest.err
7886 cat conftest.err
>&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } && {
7889 test -z "$ac_c_werror_flag" ||
7890 test ! -s conftest.err
7891 } && test -s conftest
$ac_exeext &&
7892 $as_test_x conftest
$ac_exeext; then
7893 ac_cv_var_tzname
=yes
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.
$ac_ext >&5
7901 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7902 conftest
$ac_exeext conftest.
$ac_ext
7904 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7905 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7906 if test $ac_cv_var_tzname = yes; then
7908 cat >>confdefs.h
<<\_ACEOF
7909 #define HAVE_TZNAME 1
7915 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7916 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7917 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7920 cat >conftest.
$ac_ext <<_ACEOF
7923 cat confdefs.h
>>conftest.
$ac_ext
7924 cat >>conftest.
$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7931 static struct tm ac_aggr;
7932 if (ac_aggr.tm_gmtoff)
7938 rm -f conftest.
$ac_objext
7939 if { (ac_try
="$ac_compile"
7941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_compile") 2>conftest.er1
7947 grep -v '^ *+' conftest.er1 >conftest.err
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } && {
7952 test -z "$ac_c_werror_flag" ||
7953 test ! -s conftest.err
7954 } && test -s conftest.$ac_objext; then
7955 ac_cv_member_struct_tm_tm_gmtoff=yes
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7960 cat >conftest.$ac_ext <<_ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7971 static struct tm ac_aggr;
7972 if (sizeof ac_aggr.tm_gmtoff)
7978 rm -f conftest.$ac_objext
7979 if { (ac_try="$ac_compile"
7981 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7982 *) ac_try_echo
=$ac_try;;
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_compile") 2>conftest.er1
7987 grep -v '^ *+' conftest.er1
>conftest.err
7989 cat conftest.err
>&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } && {
7992 test -z "$ac_c_werror_flag" ||
7993 test ! -s conftest.err
7994 } && test -s conftest.
$ac_objext; then
7995 ac_cv_member_struct_tm_tm_gmtoff
=yes
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.
$ac_ext >&5
8000 ac_cv_member_struct_tm_tm_gmtoff
=no
8003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8008 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8009 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8010 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8012 cat >>confdefs.h
<<\_ACEOF
8013 #define HAVE_TM_GMTOFF 1
8018 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8019 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8020 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 cat >conftest.
$ac_ext <<_ACEOF
8026 cat confdefs.h
>>conftest.
$ac_ext
8027 cat >>conftest.
$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8029 $ac_includes_default
8030 #if HAVE_SYS_SOCKET_H
8031 #include <sys/socket.h>
8040 static struct ifreq ac_aggr;
8041 if (ac_aggr.ifr_flags)
8047 rm -f conftest.
$ac_objext
8048 if { (ac_try
="$ac_compile"
8050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_compile") 2>conftest.er1
8056 grep -v '^ *+' conftest.er1 >conftest.err
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } && {
8061 test -z "$ac_c_werror_flag" ||
8062 test ! -s conftest.err
8063 } && test -s conftest.$ac_objext; then
8064 ac_cv_member_struct_ifreq_ifr_flags=yes
8066 echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8069 cat >conftest.$ac_ext <<_ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8075 $ac_includes_default
8076 #if HAVE_SYS_SOCKET_H
8077 #include <sys/socket.h>
8086 static struct ifreq ac_aggr;
8087 if (sizeof ac_aggr.ifr_flags)
8093 rm -f conftest.$ac_objext
8094 if { (ac_try="$ac_compile"
8096 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8097 *) ac_try_echo
=$ac_try;;
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100 (eval "$ac_compile") 2>conftest.er1
8102 grep -v '^ *+' conftest.er1
>conftest.err
8104 cat conftest.err
>&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } && {
8107 test -z "$ac_c_werror_flag" ||
8108 test ! -s conftest.err
8109 } && test -s conftest.
$ac_objext; then
8110 ac_cv_member_struct_ifreq_ifr_flags
=yes
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.
$ac_ext >&5
8115 ac_cv_member_struct_ifreq_ifr_flags
=no
8118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8121 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8123 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8124 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8125 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8127 cat >>confdefs.h
<<_ACEOF
8128 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8133 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8134 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8135 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8138 cat >conftest.
$ac_ext <<_ACEOF
8141 cat confdefs.h
>>conftest.
$ac_ext
8142 cat >>conftest.
$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8144 $ac_includes_default
8145 #if HAVE_SYS_SOCKET_H
8146 #include <sys/socket.h>
8155 static struct ifreq ac_aggr;
8156 if (ac_aggr.ifr_hwaddr)
8162 rm -f conftest.
$ac_objext
8163 if { (ac_try
="$ac_compile"
8165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_compile") 2>conftest.er1
8171 grep -v '^ *+' conftest.er1 >conftest.err
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest.$ac_objext; then
8179 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 cat >conftest.$ac_ext <<_ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8190 $ac_includes_default
8191 #if HAVE_SYS_SOCKET_H
8192 #include <sys/socket.h>
8201 static struct ifreq ac_aggr;
8202 if (sizeof ac_aggr.ifr_hwaddr)
8208 rm -f conftest.$ac_objext
8209 if { (ac_try="$ac_compile"
8211 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8212 *) ac_try_echo
=$ac_try;;
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_compile") 2>conftest.er1
8217 grep -v '^ *+' conftest.er1
>conftest.err
8219 cat conftest.err
>&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } && {
8222 test -z "$ac_c_werror_flag" ||
8223 test ! -s conftest.err
8224 } && test -s conftest.
$ac_objext; then
8225 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.
$ac_ext >&5
8230 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8236 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8238 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8239 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8240 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8242 cat >>confdefs.h
<<_ACEOF
8243 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8248 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8249 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8250 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8253 cat >conftest.
$ac_ext <<_ACEOF
8256 cat confdefs.h
>>conftest.
$ac_ext
8257 cat >>conftest.
$ac_ext <<_ACEOF
8258 /* end confdefs.h. */
8259 $ac_includes_default
8260 #if HAVE_SYS_SOCKET_H
8261 #include <sys/socket.h>
8270 static struct ifreq ac_aggr;
8271 if (ac_aggr.ifr_netmask)
8277 rm -f conftest.
$ac_objext
8278 if { (ac_try
="$ac_compile"
8280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8281 *) ac_try_echo=$ac_try;;
8283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284 (eval "$ac_compile") 2>conftest.er1
8286 grep -v '^ *+' conftest.er1 >conftest.err
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } && {
8291 test -z "$ac_c_werror_flag" ||
8292 test ! -s conftest.err
8293 } && test -s conftest.$ac_objext; then
8294 ac_cv_member_struct_ifreq_ifr_netmask=yes
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8299 cat >conftest.$ac_ext <<_ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h. */
8305 $ac_includes_default
8306 #if HAVE_SYS_SOCKET_H
8307 #include <sys/socket.h>
8316 static struct ifreq ac_aggr;
8317 if (sizeof ac_aggr.ifr_netmask)
8323 rm -f conftest.$ac_objext
8324 if { (ac_try="$ac_compile"
8326 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8327 *) ac_try_echo
=$ac_try;;
8329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_compile") 2>conftest.er1
8332 grep -v '^ *+' conftest.er1
>conftest.err
8334 cat conftest.err
>&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } && {
8337 test -z "$ac_c_werror_flag" ||
8338 test ! -s conftest.err
8339 } && test -s conftest.
$ac_objext; then
8340 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.
$ac_ext >&5
8345 ac_cv_member_struct_ifreq_ifr_netmask
=no
8348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8351 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8353 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8354 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8355 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8357 cat >>confdefs.h
<<_ACEOF
8358 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8363 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8364 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8365 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8366 echo $ECHO_N "(cached) $ECHO_C" >&6
8368 cat >conftest.
$ac_ext <<_ACEOF
8371 cat confdefs.h
>>conftest.
$ac_ext
8372 cat >>conftest.
$ac_ext <<_ACEOF
8373 /* end confdefs.h. */
8374 $ac_includes_default
8375 #if HAVE_SYS_SOCKET_H
8376 #include <sys/socket.h>
8385 static struct ifreq ac_aggr;
8386 if (ac_aggr.ifr_broadaddr)
8392 rm -f conftest.
$ac_objext
8393 if { (ac_try
="$ac_compile"
8395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8396 *) ac_try_echo=$ac_try;;
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399 (eval "$ac_compile") 2>conftest.er1
8401 grep -v '^ *+' conftest.er1 >conftest.err
8403 cat conftest.err >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } && {
8406 test -z "$ac_c_werror_flag" ||
8407 test ! -s conftest.err
8408 } && test -s conftest.$ac_objext; then
8409 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8411 echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8414 cat >conftest.$ac_ext <<_ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8420 $ac_includes_default
8421 #if HAVE_SYS_SOCKET_H
8422 #include <sys/socket.h>
8431 static struct ifreq ac_aggr;
8432 if (sizeof ac_aggr.ifr_broadaddr)
8438 rm -f conftest.$ac_objext
8439 if { (ac_try="$ac_compile"
8441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8442 *) ac_try_echo
=$ac_try;;
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_compile") 2>conftest.er1
8447 grep -v '^ *+' conftest.er1
>conftest.err
8449 cat conftest.err
>&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && {
8452 test -z "$ac_c_werror_flag" ||
8453 test ! -s conftest.err
8454 } && test -s conftest.
$ac_objext; then
8455 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8457 echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.
$ac_ext >&5
8460 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8466 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8468 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8469 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8470 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8472 cat >>confdefs.h
<<_ACEOF
8473 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8478 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8479 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8480 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8481 echo $ECHO_N "(cached) $ECHO_C" >&6
8483 cat >conftest.
$ac_ext <<_ACEOF
8486 cat confdefs.h
>>conftest.
$ac_ext
8487 cat >>conftest.
$ac_ext <<_ACEOF
8488 /* end confdefs.h. */
8489 $ac_includes_default
8490 #if HAVE_SYS_SOCKET_H
8491 #include <sys/socket.h>
8500 static struct ifreq ac_aggr;
8501 if (ac_aggr.ifr_addr)
8507 rm -f conftest.
$ac_objext
8508 if { (ac_try
="$ac_compile"
8510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8511 *) ac_try_echo=$ac_try;;
8513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8514 (eval "$ac_compile") 2>conftest.er1
8516 grep -v '^ *+' conftest.er1 >conftest.err
8518 cat conftest.err >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } && {
8521 test -z "$ac_c_werror_flag" ||
8522 test ! -s conftest.err
8523 } && test -s conftest.$ac_objext; then
8524 ac_cv_member_struct_ifreq_ifr_addr=yes
8526 echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8529 cat >conftest.$ac_ext <<_ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 $ac_includes_default
8536 #if HAVE_SYS_SOCKET_H
8537 #include <sys/socket.h>
8546 static struct ifreq ac_aggr;
8547 if (sizeof ac_aggr.ifr_addr)
8553 rm -f conftest.$ac_objext
8554 if { (ac_try="$ac_compile"
8556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8557 *) ac_try_echo
=$ac_try;;
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560 (eval "$ac_compile") 2>conftest.er1
8562 grep -v '^ *+' conftest.er1
>conftest.err
8564 cat conftest.err
>&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } && {
8567 test -z "$ac_c_werror_flag" ||
8568 test ! -s conftest.err
8569 } && test -s conftest.
$ac_objext; then
8570 ac_cv_member_struct_ifreq_ifr_addr
=yes
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.
$ac_ext >&5
8575 ac_cv_member_struct_ifreq_ifr_addr
=no
8578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8581 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8583 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8584 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8585 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8587 cat >>confdefs.h
<<_ACEOF
8588 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8596 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8597 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8598 if test "$ac_cv_prog_cc_c89" != no
; then
8599 { echo "$as_me:$LINENO: result: yes" >&5
8600 echo "${ECHO_T}yes" >&6; }
8602 cat >>confdefs.h
<<\_ACEOF
8603 #define PROTOTYPES 1
8607 cat >>confdefs.h
<<\_ACEOF
8608 #define __PROTOTYPES 1
8612 { echo "$as_me:$LINENO: result: no" >&5
8613 echo "${ECHO_T}no" >&6; }
8616 { echo "$as_me:$LINENO: checking for working volatile" >&5
8617 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8618 if test "${ac_cv_c_volatile+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 cat >conftest.
$ac_ext <<_ACEOF
8624 cat confdefs.h
>>conftest.
$ac_ext
8625 cat >>conftest.
$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8633 int * volatile y = (int *) 0;
8639 rm -f conftest.
$ac_objext
8640 if { (ac_try
="$ac_compile"
8642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8643 *) ac_try_echo=$ac_try;;
8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646 (eval "$ac_compile") 2>conftest.er1
8648 grep -v '^ *+' conftest.er1 >conftest.err
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } && {
8653 test -z "$ac_c_werror_flag" ||
8654 test ! -s conftest.err
8655 } && test -s conftest.$ac_objext; then
8656 ac_cv_c_volatile=yes
8658 echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8666 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8667 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8668 if test $ac_cv_c_volatile = no; then
8670 cat >>confdefs.h <<\_ACEOF
8676 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8677 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8678 if test "${ac_cv_c_const+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 cat >conftest.$ac_ext <<_ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8691 /* FIXME: Include the comments suggested by Paul. */
8693 /* Ultrix mips cc rejects this. */
8694 typedef int charset[2];
8696 /* SunOS 4.1.1 cc rejects this. */
8697 char const *const *pcpcc;
8699 /* NEC SVR4.0.2 mips cc rejects this. */
8700 struct point {int x, y;};
8701 static struct point const zero = {0,0};
8702 /* AIX XL C 1.02.0.0 rejects this.
8703 It does not let you subtract one const X* pointer from another in
8704 an arm of an if-expression whose if-part is not a constant
8706 const char *g = "string";
8707 pcpcc = &g + (g ? g-g : 0);
8708 /* HPUX 7.0 cc rejects these. */
8710 ppc = (char**) pcpcc;
8711 pcpcc = (char const *const *) ppc;
8712 { /* SCO 3.2v4 cc rejects this. */
8714 char const *s = 0 ? (char *) 0 : (char const *) 0;
8719 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8721 const int *foo = &x[0];
8724 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8725 typedef const int *iptr;
8729 { /* AIX XL C 1.02.0.0 rejects this saying
8730 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8731 struct s { int j; const int *ap[3]; };
8732 struct s *b; b->j = 5;
8734 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8738 return !cs[0] && !zero.x;
8745 rm -f conftest.$ac_objext
8746 if { (ac_try="$ac_compile"
8748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8749 *) ac_try_echo
=$ac_try;;
8751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8752 (eval "$ac_compile") 2>conftest.er1
8754 grep -v '^ *+' conftest.er1
>conftest.err
8756 cat conftest.err
>&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } && {
8759 test -z "$ac_c_werror_flag" ||
8760 test ! -s conftest.err
8761 } && test -s conftest.
$ac_objext; then
8764 echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.
$ac_ext >&5
8770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8772 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8773 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8774 if test $ac_cv_c_const = no
; then
8776 cat >>confdefs.h
<<\_ACEOF
8782 { echo "$as_me:$LINENO: checking for void * support" >&5
8783 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8784 if test "${emacs_cv_void_star+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8787 cat >conftest.
$ac_ext <<_ACEOF
8790 cat confdefs.h
>>conftest.
$ac_ext
8791 cat >>conftest.
$ac_ext <<_ACEOF
8792 /* end confdefs.h. */
8802 rm -f conftest.
$ac_objext
8803 if { (ac_try
="$ac_compile"
8805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8806 *) ac_try_echo=$ac_try;;
8808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8809 (eval "$ac_compile") 2>conftest.er1
8811 grep -v '^ *+' conftest.er1 >conftest.err
8813 cat conftest.err >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } && {
8816 test -z "$ac_c_werror_flag" ||
8817 test ! -s conftest.err
8818 } && test -s conftest.$ac_objext; then
8819 emacs_cv_void_star=yes
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8824 emacs_cv_void_star=no
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8829 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8830 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8831 if test $emacs_cv_void_star = yes; then
8832 cat >>confdefs.h <<\_ACEOF
8833 #define POINTER_TYPE void
8837 cat >>confdefs.h <<\_ACEOF
8838 #define POINTER_TYPE char
8847 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8848 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8849 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8850 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8853 cat >conftest.make <<\_ACEOF
8856 @echo '@@@%%%=$(MAKE)=@@@%%%'
8858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8859 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8861 eval ac_cv_prog_make_${ac_make}_set=yes;;
8863 eval ac_cv_prog_make_${ac_make}_set=no;;
8867 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8868 { echo "$as_me:$LINENO: result: yes" >&5
8869 echo "${ECHO_T}yes" >&6; }
8872 { echo "$as_me:$LINENO: result: no" >&5
8873 echo "${ECHO_T}no" >&6; }
8874 SET_MAKE="MAKE=${MAKE-make}"
8878 { echo "$as_me:$LINENO: checking for long file names" >&5
8879 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8880 if test "${ac_cv_sys_long_file_names+set}" = set; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8883 ac_cv_sys_long_file_names=yes
8884 # Test for long file names in all the places we know might matter:
8885 # . the current directory, where building will happen
8886 # $prefix/lib where we will be installing things
8887 # $exec_prefix/lib likewise
8888 # $TMPDIR if set, where it might want to write temporary files
8889 # /tmp where it might want to write temporary files
8892 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8893 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8894 # in the usual case where exec_prefix is '${prefix}'.
8896 . | /* | ?:[\\/]*) ;; #(
8899 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8900 ac_xdir=$ac_dir/cf$$
8901 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8902 ac_tf1=$ac_xdir/conftest9012345
8903 ac_tf2=$ac_xdir/conftest9012346
8904 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8905 ac_cv_sys_long_file_names=no
8906 rm -f -r "$ac_xdir" 2>/dev/null
8907 test $ac_cv_sys_long_file_names = no && break
8910 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8911 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8912 if test $ac_cv_sys_long_file_names = yes; then
8914 cat >>confdefs.h <<\_ACEOF
8915 #define HAVE_LONG_FILE_NAMES 1
8921 #### Choose a window system.
8923 { echo "$as_me:$LINENO: checking for X" >&5
8924 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8927 # Check whether --with-x was given.
8928 if test "${with_x+set}" = set; then
8932 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8933 if test "x$with_x" = xno; then
8934 # The user explicitly disabled X.
8937 case $x_includes,$x_libraries in #(
8938 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8939 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8940 { (exit 1); exit 1; }; };; #(
8941 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 # One or both of the vars are not set, and there is no cached value.
8945 ac_x_includes=no ac_x_libraries=no
8946 rm -f -r conftest.dir
8947 if mkdir conftest.dir; then
8949 cat >Imakefile <<'_ACEOF'
8951 @echo incroot='${INCROOT}'
8953 @echo usrlibdir='${USRLIBDIR}'
8955 @echo libdir='${LIBDIR}'
8957 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8958 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8959 for ac_var in incroot usrlibdir libdir; do
8960 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8962 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8963 for ac_extension in a so sl; do
8964 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8965 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8966 ac_im_usrlibdir=$ac_im_libdir; break
8969 # Screen out bogus values from the imake configuration. They are
8970 # bogus both because they are the default anyway, and because
8971 # using them would break gcc on systems where it needs fixed includes.
8972 case $ac_im_incroot in
8973 /usr/include) ac_x_includes= ;;
8974 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8976 case $ac_im_usrlibdir in
8978 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8982 rm -f -r conftest.dir
8985 # Standard set of common directories for X headers.
8986 # Check X11 before X11Rn because it is often a symlink to the current release.
8998 /usr/local/X11/include
8999 /usr/local/X11R6/include
9000 /usr/local/X11R5/include
9001 /usr/local/X11R4/include
9003 /usr/local/include/X11
9004 /usr/local/include/X11R6
9005 /usr/local/include/X11R5
9006 /usr/local/include/X11R4
9010 /usr/XFree86/include/X11
9014 /usr/unsupported/include
9016 /usr/local/x11r5/include
9017 /usr/lpp/Xamples/include
9019 /usr/openwin/include
9020 /usr/openwin/share/include'
9022 if test "$ac_x_includes" = no; then
9023 # Guess where to find include files, by looking for Xlib.h.
9024 # First, try using that file with no special directory specified.
9025 cat >conftest.$ac_ext <<_ACEOF
9028 cat confdefs.h >>conftest.$ac_ext
9029 cat >>conftest.$ac_ext <<_ACEOF
9030 /* end confdefs.h. */
9031 #include <X11/Xlib.h>
9033 if { (ac_try="$ac_cpp conftest.$ac_ext"
9035 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9036 *) ac_try_echo
=$ac_try;;
9038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9041 grep -v '^ *+' conftest.er1
>conftest.err
9043 cat conftest.err
>&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } >/dev
/null
&& {
9046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9047 test ! -s conftest.err
9049 # We can compile using X headers with no special include directory.
9052 echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.
$ac_ext >&5
9055 for ac_dir
in $ac_x_header_dirs; do
9056 if test -r "$ac_dir/X11/Xlib.h"; then
9057 ac_x_includes
=$ac_dir
9063 rm -f conftest.err conftest.
$ac_ext
9064 fi # $ac_x_includes = no
9066 if test "$ac_x_libraries" = no
; then
9067 # Check for the libraries.
9068 # See if we find them without any special options.
9069 # Don't add to $LIBS permanently.
9072 cat >conftest.
$ac_ext <<_ACEOF
9075 cat confdefs.h
>>conftest.
$ac_ext
9076 cat >>conftest.
$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9078 #include <X11/Xlib.h>
9087 rm -f conftest.
$ac_objext conftest
$ac_exeext
9088 if { (ac_try
="$ac_link"
9090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9091 *) ac_try_echo=$ac_try;;
9093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9094 (eval "$ac_link") 2>conftest.er1
9096 grep -v '^ *+' conftest.er1 >conftest.err
9098 cat conftest.err >&5
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); } && {
9101 test -z "$ac_c_werror_flag" ||
9102 test ! -s conftest.err
9103 } && test -s conftest$ac_exeext &&
9104 $as_test_x conftest$ac_exeext; then
9106 # We can link X programs with no special library path.
9109 echo "$as_me: failed program was:" >&5
9110 sed 's/^/| /' conftest.$ac_ext >&5
9113 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9115 # Don't even attempt the hair of trying to link an X program!
9116 for ac_extension in a so sl; do
9117 if test -r "$ac_dir/libX11.$ac_extension"; then
9118 ac_x_libraries=$ac_dir
9125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9126 conftest$ac_exeext conftest.$ac_ext
9127 fi # $ac_x_libraries = no
9129 case $ac_x_includes,$ac_x_libraries in #(
9131 # Didn't find X, or a directory has "'" in its name.
9132 ac_cv_have_x="have_x=no";; #(
9134 # Record where we found X for the cache.
9135 ac_cv_have_x="have_x=yes\
9136 ac_x_includes='$ac_x_includes'\
9137 ac_x_libraries='$ac_x_libraries'"
9143 eval "$ac_cv_have_x"
9146 if test "$have_x" != yes; then
9147 { echo "$as_me:$LINENO: result: $have_x" >&5
9148 echo "${ECHO_T}$have_x" >&6; }
9151 # If each of the values was on the command line, it overrides each guess.
9152 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9153 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9154 # Update the cache value to reflect the command line values.
9155 ac_cv_have_x="have_x=yes\
9156 ac_x_includes='$x_includes'\
9157 ac_x_libraries='$x_libraries'"
9158 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9159 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9162 if test "$no_x" = yes; then
9168 if test "${x_libraries}" != NONE; then
9169 if test -n "${x_libraries}"; then
9170 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9171 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9173 x_default_search_path=""
9174 x_search_path=${x_libraries}
9175 if test -z "${x_search_path}"; then
9176 x_search_path=/usr/lib
9178 for x_library in `echo ${x_search_path}: | \
9179 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9181 ${x_library}/X11/%L/%T/%N%C%S:\
9182 ${x_library}/X11/%l/%T/%N%C%S:\
9183 ${x_library}/X11/%T/%N%C%S:\
9184 ${x_library}/X11/%L/%T/%N%S:\
9185 ${x_library}/X11/%l/%T/%N%S:\
9186 ${x_library}/X11/%T/%N%S"
9187 if test x"${x_default_search_path}" = x; then
9188 x_default_search_path=${x_search_path}
9190 x_default_search_path="${x_search_path}:${x_default_search_path}"
9194 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9195 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9198 if test x"${x_includes}" = x; then
9199 bitmapdir=/usr/include/X11/bitmaps
9201 # accumulate include directories that have X11 bitmap subdirectories
9203 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9204 if test -d "${bmd}/X11/bitmaps"; then
9205 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9207 if test -d "${bmd}/bitmaps"; then
9208 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9211 if test ${bmd_acc} != "dummyval"; then
9212 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9217 if test "${with_carbon}" != no; then
9218 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9219 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9220 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9221 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9224 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9225 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9227 # Is the header compilable?
9228 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9229 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9230 cat >conftest.$ac_ext <<_ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9236 $ac_includes_default
9237 #include <Carbon/Carbon.h>
9239 rm -f conftest.$ac_objext
9240 if { (ac_try="$ac_compile"
9242 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9243 *) ac_try_echo
=$ac_try;;
9245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246 (eval "$ac_compile") 2>conftest.er1
9248 grep -v '^ *+' conftest.er1
>conftest.err
9250 cat conftest.err
>&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } && {
9253 test -z "$ac_c_werror_flag" ||
9254 test ! -s conftest.err
9255 } && test -s conftest.
$ac_objext; then
9256 ac_header_compiler
=yes
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.
$ac_ext >&5
9261 ac_header_compiler
=no
9264 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9266 echo "${ECHO_T}$ac_header_compiler" >&6; }
9268 # Is the header present?
9269 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9270 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9271 cat >conftest.
$ac_ext <<_ACEOF
9274 cat confdefs.h
>>conftest.
$ac_ext
9275 cat >>conftest.
$ac_ext <<_ACEOF
9276 /* end confdefs.h. */
9277 #include <Carbon/Carbon.h>
9279 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9282 *) ac_try_echo=$ac_try;;
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9287 grep -v '^ *+' conftest.er1 >conftest.err
9289 cat conftest.err >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } >/dev/null && {
9292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9293 test ! -s conftest.err
9295 ac_header_preproc=yes
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9300 ac_header_preproc=no
9303 rm -f conftest.err conftest.$ac_ext
9304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9305 echo "${ECHO_T}$ac_header_preproc" >&6; }
9307 # So? What about this header?
9308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9310 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9311 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9313 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9314 ac_header_preproc=yes
9317 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9318 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9319 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9320 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9321 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9322 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9324 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9325 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9326 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9327 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9328 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9332 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9333 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9334 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9339 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9340 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9343 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9349 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9350 if test "${with_carbon+set}" != set \
9351 && test "${carbon_appdir_x+set}" != set; then
9352 for var in with_x with_x_toolkit with_gtk with_xim \
9353 with_xpm with_jpeg with_tiff with_gif with_png; do
9354 if eval test \"\${$var+set}\" = set; then
9361 if test "${HAVE_CARBON}" = yes; then
9365 case "${window_system}" in
9369 case "${with_x_toolkit}" in
9370 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9371 motif ) USE_X_TOOLKIT=MOTIF ;;
9373 USE_X_TOOLKIT=none ;;
9374 no ) USE_X_TOOLKIT=none ;;
9375 * ) USE_X_TOOLKIT=maybe ;;
9385 ### If we're using X11, we should use the X menu package.
9388 yes ) HAVE_MENUS=yes ;;
9391 if test "${opsys}" = "hpux9"; then
9392 case "${x_libraries}" in
9394 opsysfile="s/hpux9-x11r4.h"
9399 if test "${opsys}" = "hpux9shr"; then
9400 case "${x_libraries}" in
9402 opsysfile="s/hpux9shxr4.h"
9407 ### Compute the unexec source name from the object name.
9408 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9410 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9411 # Assume not, until told otherwise.
9414 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9415 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9416 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 cat >conftest.$ac_ext <<_ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9425 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9427 #define malloc_get_state innocuous_malloc_get_state
9429 /* System header to define __stub macros and hopefully few prototypes,
9430 which can conflict with char malloc_get_state (); below.
9431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9432 <limits.h> exists even on freestanding compilers. */
9435 # include <limits.h>
9437 # include <assert.h>
9440 #undef malloc_get_state
9442 /* Override any GCC internal prototype to avoid an error.
9443 Use char because int might match the return type of a GCC
9444 builtin and then its argument prototype would still apply. */
9448 char malloc_get_state ();
9449 /* The GNU C library defines this for functions which it implements
9450 to always fail with ENOSYS. Some functions are actually named
9451 something starting with __ and the normal name is an alias. */
9452 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9459 return malloc_get_state ();
9464 rm -f conftest.$ac_objext conftest$ac_exeext
9465 if { (ac_try="$ac_link"
9467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9468 *) ac_try_echo
=$ac_try;;
9470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9471 (eval "$ac_link") 2>conftest.er1
9473 grep -v '^ *+' conftest.er1
>conftest.err
9475 cat conftest.err
>&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } && {
9478 test -z "$ac_c_werror_flag" ||
9479 test ! -s conftest.err
9480 } && test -s conftest
$ac_exeext &&
9481 $as_test_x conftest
$ac_exeext; then
9482 ac_cv_func_malloc_get_state
=yes
9484 echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.
$ac_ext >&5
9487 ac_cv_func_malloc_get_state
=no
9490 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9491 conftest
$ac_exeext conftest.
$ac_ext
9493 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9494 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9495 if test $ac_cv_func_malloc_get_state = yes; then
9501 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9502 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9503 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9506 cat >conftest.
$ac_ext <<_ACEOF
9509 cat confdefs.h
>>conftest.
$ac_ext
9510 cat >>conftest.
$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9512 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9514 #define malloc_set_state innocuous_malloc_set_state
9516 /* System header to define __stub macros and hopefully few prototypes,
9517 which can conflict with char malloc_set_state (); below.
9518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9519 <limits.h> exists even on freestanding compilers. */
9522 # include <limits.h>
9524 # include <assert.h>
9527 #undef malloc_set_state
9529 /* Override any GCC internal prototype to avoid an error.
9530 Use char because int might match the return type of a GCC
9531 builtin and then its argument prototype would still apply. */
9535 char malloc_set_state ();
9536 /* The GNU C library defines this for functions which it implements
9537 to always fail with ENOSYS. Some functions are actually named
9538 something starting with __ and the normal name is an alias. */
9539 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9546 return malloc_set_state ();
9551 rm -f conftest.
$ac_objext conftest
$ac_exeext
9552 if { (ac_try
="$ac_link"
9554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9555 *) ac_try_echo=$ac_try;;
9557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558 (eval "$ac_link") 2>conftest.er1
9560 grep -v '^ *+' conftest.er1 >conftest.err
9562 cat conftest.err >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } && {
9565 test -z "$ac_c_werror_flag" ||
9566 test ! -s conftest.err
9567 } && test -s conftest$ac_exeext &&
9568 $as_test_x conftest$ac_exeext; then
9569 ac_cv_func_malloc_set_state=yes
9571 echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9574 ac_cv_func_malloc_set_state=no
9577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9578 conftest$ac_exeext conftest.$ac_ext
9580 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9581 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9582 if test $ac_cv_func_malloc_set_state = yes; then
9588 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9589 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9590 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 cat >conftest.$ac_ext <<_ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h. */
9599 extern void (* __after_morecore_hook)();
9603 __after_morecore_hook = 0
9608 rm -f conftest.$ac_objext conftest$ac_exeext
9609 if { (ac_try="$ac_link"
9611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9612 *) ac_try_echo
=$ac_try;;
9614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_link") 2>conftest.er1
9617 grep -v '^ *+' conftest.er1
>conftest.err
9619 cat conftest.err
>&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } && {
9622 test -z "$ac_c_werror_flag" ||
9623 test ! -s conftest.err
9624 } && test -s conftest
$ac_exeext &&
9625 $as_test_x conftest
$ac_exeext; then
9626 emacs_cv_var___after_morecore_hook
=yes
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.
$ac_ext >&5
9631 emacs_cv_var___after_morecore_hook
=no
9634 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9635 conftest
$ac_exeext conftest.
$ac_ext
9637 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9638 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9639 if test $emacs_cv_var___after_morecore_hook = no
; then
9642 if test "${system_malloc}" = "yes"; then
9645 (The GNU allocators don't work with this system configuration.)"
9647 if test "$doug_lea_malloc" = "yes" ; then
9648 if test "$GNU_MALLOC" = yes ; then
9650 (Using Doug Lea's new malloc from the GNU C Library.)"
9653 cat >>confdefs.h
<<\_ACEOF
9654 #define DOUG_LEA_MALLOC 1
9659 if test x
"${REL_ALLOC}" = x
; then
9660 REL_ALLOC
=${GNU_MALLOC}
9666 for ac_header
in stdlib.h unistd.h
9668 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9669 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9672 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 ac_res
=`eval echo '${'$as_ac_Header'}'`
9676 { echo "$as_me:$LINENO: result: $ac_res" >&5
9677 echo "${ECHO_T}$ac_res" >&6; }
9679 # Is the header compilable?
9680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9682 cat >conftest.
$ac_ext <<_ACEOF
9685 cat confdefs.h
>>conftest.
$ac_ext
9686 cat >>conftest.
$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9688 $ac_includes_default
9689 #include <$ac_header>
9691 rm -f conftest.
$ac_objext
9692 if { (ac_try
="$ac_compile"
9694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9695 *) ac_try_echo=$ac_try;;
9697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9698 (eval "$ac_compile") 2>conftest.er1
9700 grep -v '^ *+' conftest.er1 >conftest.err
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } && {
9705 test -z "$ac_c_werror_flag" ||
9706 test ! -s conftest.err
9707 } && test -s conftest.$ac_objext; then
9708 ac_header_compiler=yes
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9713 ac_header_compiler=no
9716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9718 echo "${ECHO_T}$ac_header_compiler" >&6; }
9720 # Is the header present?
9721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9723 cat >conftest.$ac_ext <<_ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9729 #include <$ac_header>
9731 if { (ac_try="$ac_cpp conftest.$ac_ext"
9733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9734 *) ac_try_echo
=$ac_try;;
9736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9739 grep -v '^ *+' conftest.er1
>conftest.err
9741 cat conftest.err
>&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } >/dev
/null
&& {
9744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9745 test ! -s conftest.err
9747 ac_header_preproc
=yes
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.
$ac_ext >&5
9752 ac_header_preproc
=no
9755 rm -f conftest.err conftest.
$ac_ext
9756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9757 echo "${ECHO_T}$ac_header_preproc" >&6; }
9759 # So? What about this header?
9760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9766 ac_header_preproc
=yes
9769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9786 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9789 eval "$as_ac_Header=\$ac_header_preproc"
9791 ac_res
=`eval echo '${'$as_ac_Header'}'`
9792 { echo "$as_me:$LINENO: result: $ac_res" >&5
9793 echo "${ECHO_T}$ac_res" >&6; }
9796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9797 cat >>confdefs.h
<<_ACEOF
9798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9806 for ac_func
in getpagesize
9808 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9811 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9814 cat >conftest.
$ac_ext <<_ACEOF
9817 cat confdefs.h
>>conftest.
$ac_ext
9818 cat >>conftest.
$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9822 #define $ac_func innocuous_$ac_func
9824 /* System header to define __stub macros and hopefully few prototypes,
9825 which can conflict with char $ac_func (); below.
9826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9827 <limits.h> exists even on freestanding compilers. */
9830 # include <limits.h>
9832 # include <assert.h>
9837 /* Override any GCC internal prototype to avoid an error.
9838 Use char because int might match the return type of a GCC
9839 builtin and then its argument prototype would still apply. */
9844 /* The GNU C library defines this for functions which it implements
9845 to always fail with ENOSYS. Some functions are actually named
9846 something starting with __ and the normal name is an alias. */
9847 #if defined __stub_$ac_func || defined __stub___$ac_func
9859 rm -f conftest.
$ac_objext conftest
$ac_exeext
9860 if { (ac_try
="$ac_link"
9862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866 (eval "$ac_link") 2>conftest.er1
9868 grep -v '^ *+' conftest.er1 >conftest.err
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } && {
9873 test -z "$ac_c_werror_flag" ||
9874 test ! -s conftest.err
9875 } && test -s conftest$ac_exeext &&
9876 $as_test_x conftest$ac_exeext; then
9877 eval "$as_ac_var=yes"
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9882 eval "$as_ac_var=no"
9885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9886 conftest$ac_exeext conftest.$ac_ext
9888 ac_res=`eval echo '${'$as_ac_var'}'`
9889 { echo "$as_me:$LINENO: result: $ac_res" >&5
9890 echo "${ECHO_T}$ac_res" >&6; }
9891 if test `eval echo '${'$as_ac_var'}'` = yes; then
9892 cat >>confdefs.h <<_ACEOF
9893 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9899 { echo "$as_me:$LINENO: checking for working mmap" >&5
9900 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9901 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9904 if test "$cross_compiling" = yes; then
9905 ac_cv_func_mmap_fixed_mapped=no
9907 cat >conftest.$ac_ext <<_ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9913 $ac_includes_default
9914 /* malloc might have been renamed as rpl_malloc. */
9917 /* Thanks to Mike Haertel and Jim Avera for this test.
9918 Here is a matrix of mmap possibilities:
9919 mmap private not fixed
9920 mmap private fixed at somewhere currently unmapped
9921 mmap private fixed at somewhere already mapped
9922 mmap shared not fixed
9923 mmap shared fixed at somewhere currently unmapped
9924 mmap shared fixed at somewhere already mapped
9925 For private mappings, we should verify that changes cannot be read()
9926 back from the file, nor mmap's back from the file at a different
9927 address. (There have been systems where private was not correctly
9928 implemented like the infamous i386 svr4.0, and systems where the
9929 VM page cache was not coherent with the file system buffer cache
9930 like early versions of FreeBSD and possibly contemporary NetBSD.)
9931 For shared mappings, we should conversely verify that changes get
9932 propagated back to all the places they're supposed to be.
9934 Grep wants private fixed already mapped.
9935 The main things grep needs to know about mmap are:
9936 * does it exist and is it safe to write into the mmap'd area
9937 * how to use it (BSD variants) */
9940 #include <sys/mman.h>
9942 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9946 /* This mess was copied from the GNU getpagesize.h. */
9947 #ifndef HAVE_GETPAGESIZE
9948 /* Assume that all systems that can run configure have sys/param.h. */
9949 # ifndef HAVE_SYS_PARAM_H
9950 # define HAVE_SYS_PARAM_H 1
9953 # ifdef _SC_PAGESIZE
9954 # define getpagesize() sysconf(_SC_PAGESIZE)
9955 # else /* no _SC_PAGESIZE */
9956 # ifdef HAVE_SYS_PARAM_H
9957 # include <sys/param.h>
9958 # ifdef EXEC_PAGESIZE
9959 # define getpagesize() EXEC_PAGESIZE
9960 # else /* no EXEC_PAGESIZE */
9962 # define getpagesize() NBPG * CLSIZE
9965 # endif /* no CLSIZE */
9966 # else /* no NBPG */
9968 # define getpagesize() NBPC
9969 # else /* no NBPC */
9971 # define getpagesize() PAGESIZE
9972 # endif /* PAGESIZE */
9973 # endif /* no NBPC */
9974 # endif /* no NBPG */
9975 # endif /* no EXEC_PAGESIZE */
9976 # else /* no HAVE_SYS_PARAM_H */
9977 # define getpagesize() 8192 /* punt totally */
9978 # endif /* no HAVE_SYS_PARAM_H */
9979 # endif /* no _SC_PAGESIZE */
9981 #endif /* no HAVE_GETPAGESIZE */
9986 char *data, *data2, *data3;
9990 pagesize = getpagesize ();
9992 /* First, make a file with some known garbage in it. */
9993 data = (char *) malloc (pagesize);
9996 for (i = 0; i < pagesize; ++i)
9997 *(data + i) = rand ();
9999 fd = creat ("conftest.mmap", 0600);
10002 if (write (fd, data, pagesize) != pagesize)
10006 /* Next, try to mmap the file at a fixed address which already has
10007 something else allocated at it. If we can, also make sure that
10008 we see the same garbage. */
10009 fd = open ("conftest.mmap", O_RDWR);
10012 data2 = (char *) malloc (2 * pagesize);
10015 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10016 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10017 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10019 for (i = 0; i < pagesize; ++i)
10020 if (*(data + i) != *(data2 + i))
10023 /* Finally, make sure that changes to the mapped area do not
10024 percolate back to the file as seen by read(). (This is a bug on
10025 some variants of i386 svr4.0.) */
10026 for (i = 0; i < pagesize; ++i)
10027 *(data2 + i) = *(data2 + i) + 1;
10028 data3 = (char *) malloc (pagesize);
10031 if (read (fd, data3, pagesize) != pagesize)
10033 for (i = 0; i < pagesize; ++i)
10034 if (*(data + i) != *(data3 + i))
10040 rm -f conftest$ac_exeext
10041 if { (ac_try="$ac_link"
10042 case "(($ac_try" in
10043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10044 *) ac_try_echo
=$ac_try;;
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_link") 2>&5
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10051 { (case "(($ac_try" in
10052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_try") 2>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; }; then
10060 ac_cv_func_mmap_fixed_mapped=yes
10062 echo "$as_me: program exited with status $ac_status" >&5
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10066 ( exit $ac_status )
10067 ac_cv_func_mmap_fixed_mapped=no
10069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10074 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10075 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10076 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10078 cat >>confdefs.h <<\_ACEOF
10079 #define HAVE_MMAP 1
10083 rm -f conftest.mmap
10085 if test $use_mmap_for_buffers = yes; then
10089 LIBS="$libsrc_libs $LIBS"
10092 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10093 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10094 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 ac_check_lib_save_LIBS=$LIBS
10098 LIBS="-ldnet $LIBS"
10099 cat >conftest.$ac_ext <<_ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h. */
10106 /* Override any GCC internal prototype to avoid an error.
10107 Use char because int might match the return type of a GCC
10108 builtin and then its argument prototype would still apply. */
10116 return dnet_ntoa ();
10121 rm -f conftest.$ac_objext conftest$ac_exeext
10122 if { (ac_try="$ac_link"
10123 case "(($ac_try" in
10124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10125 *) ac_try_echo
=$ac_try;;
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_link") 2>conftest.er1
10130 grep -v '^ *+' conftest.er1
>conftest.err
10132 cat conftest.err
>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } && {
10135 test -z "$ac_c_werror_flag" ||
10136 test ! -s conftest.err
10137 } && test -s conftest
$ac_exeext &&
10138 $as_test_x conftest
$ac_exeext; then
10139 ac_cv_lib_dnet_dnet_ntoa
=yes
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.
$ac_ext >&5
10144 ac_cv_lib_dnet_dnet_ntoa
=no
10147 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10148 conftest
$ac_exeext conftest.
$ac_ext
10149 LIBS
=$ac_check_lib_save_LIBS
10151 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10152 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10153 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10154 cat >>confdefs.h
<<_ACEOF
10155 #define HAVE_LIBDNET 1
10158 LIBS
="-ldnet $LIBS"
10163 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10164 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10165 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10168 ac_check_lib_save_LIBS
=$LIBS
10169 LIBS
="-lXbsd $LIBS"
10170 cat >conftest.
$ac_ext <<_ACEOF
10173 cat confdefs.h
>>conftest.
$ac_ext
10174 cat >>conftest.
$ac_ext <<_ACEOF
10175 /* end confdefs.h. */
10186 rm -f conftest.
$ac_objext conftest
$ac_exeext
10187 if { (ac_try
="$ac_link"
10188 case "(($ac_try" in
10189 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_link") 2>conftest.er1
10195 grep -v '^ *+' conftest.er1 >conftest.err
10197 cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } && {
10200 test -z "$ac_c_werror_flag" ||
10201 test ! -s conftest.err
10202 } && test -s conftest$ac_exeext &&
10203 $as_test_x conftest$ac_exeext; then
10204 ac_cv_lib_Xbsd_main=yes
10206 echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10209 ac_cv_lib_Xbsd_main=no
10212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10213 conftest$ac_exeext conftest.$ac_ext
10214 LIBS=$ac_check_lib_save_LIBS
10216 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10217 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10218 if test $ac_cv_lib_Xbsd_main = yes; then
10219 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10224 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10225 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10226 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10229 ac_check_lib_save_LIBS=$LIBS
10230 LIBS="-lpthreads $LIBS"
10231 cat >conftest.$ac_ext <<_ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10238 /* Override any GCC internal prototype to avoid an error.
10239 Use char because int might match the return type of a GCC
10240 builtin and then its argument prototype would still apply. */
10248 return cma_open ();
10253 rm -f conftest.$ac_objext conftest$ac_exeext
10254 if { (ac_try="$ac_link"
10255 case "(($ac_try" in
10256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10257 *) ac_try_echo
=$ac_try;;
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_link") 2>conftest.er1
10262 grep -v '^ *+' conftest.er1
>conftest.err
10264 cat conftest.err
>&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } && {
10267 test -z "$ac_c_werror_flag" ||
10268 test ! -s conftest.err
10269 } && test -s conftest
$ac_exeext &&
10270 $as_test_x conftest
$ac_exeext; then
10271 ac_cv_lib_pthreads_cma_open
=yes
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.
$ac_ext >&5
10276 ac_cv_lib_pthreads_cma_open
=no
10279 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10280 conftest
$ac_exeext conftest.
$ac_ext
10281 LIBS
=$ac_check_lib_save_LIBS
10283 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10284 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10285 if test $ac_cv_lib_pthreads_cma_open = yes; then
10286 cat >>confdefs.h
<<_ACEOF
10287 #define HAVE_LIBPTHREADS 1
10290 LIBS
="-lpthreads $LIBS"
10295 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10296 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10297 if test -d /usr
/X386
/include
; then
10299 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10303 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10304 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10309 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10310 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10311 if test "${gdb_cv_bigtoc+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10316 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10317 *) gdb_cv_bigtoc
=-bbigtoc ;;
10320 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10321 cat >conftest.
$ac_ext <<_ACEOF
10324 cat confdefs.h
>>conftest.
$ac_ext
10325 cat >>conftest.
$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10336 rm -f conftest.
$ac_objext conftest
$ac_exeext
10337 if { (ac_try
="$ac_link"
10338 case "(($ac_try" in
10339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10340 *) ac_try_echo=$ac_try;;
10342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343 (eval "$ac_link") 2>conftest.er1
10345 grep -v '^ *+' conftest.er1 >conftest.err
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } && {
10350 test -z "$ac_c_werror_flag" ||
10351 test ! -s conftest.err
10352 } && test -s conftest$ac_exeext &&
10353 $as_test_x conftest$ac_exeext; then
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10363 conftest$ac_exeext conftest.$ac_ext
10366 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10367 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10371 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10372 # used for the tests that follow. We set them back to REAL_CFLAGS and
10373 # REAL_CPPFLAGS later on.
10375 REAL_CPPFLAGS="$CPPFLAGS"
10377 if test "${HAVE_X11}" = "yes"; then
10378 DEFS="$C_SWITCH_X_SITE $DEFS"
10379 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10381 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10382 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10384 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10385 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10386 # but it's more convenient here to set LD_RUN_PATH
10387 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10388 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10389 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10393 if test "${opsys}" = "gnu-linux"; then
10394 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10395 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10396 cat >conftest.$ac_ext <<_ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10406 XOpenDisplay ("foo");
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10415 *) ac_try_echo
=$ac_try;;
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_link") 2>conftest.er1
10420 grep -v '^ *+' conftest.er1
>conftest.err
10422 cat conftest.err
>&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } && {
10425 test -z "$ac_c_werror_flag" ||
10426 test ! -s conftest.err
10427 } && test -s conftest
$ac_exeext &&
10428 $as_test_x conftest
$ac_exeext; then
10429 xlinux_first_failure
=no
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.
$ac_ext >&5
10434 xlinux_first_failure
=yes
10437 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10438 conftest
$ac_exeext conftest.
$ac_ext
10439 if test "${xlinux_first_failure}" = "yes"; then
10440 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10441 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10442 OLD_CPPFLAGS
="$CPPFLAGS"
10444 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10445 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10446 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10447 LIBS
="$LIBS -b i486-linuxaout"
10448 cat >conftest.
$ac_ext <<_ACEOF
10451 cat confdefs.h
>>conftest.
$ac_ext
10452 cat >>conftest.
$ac_ext <<_ACEOF
10453 /* end confdefs.h. */
10458 XOpenDisplay ("foo");
10463 rm -f conftest.
$ac_objext conftest
$ac_exeext
10464 if { (ac_try
="$ac_link"
10465 case "(($ac_try" in
10466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_link") 2>conftest.er1
10472 grep -v '^ *+' conftest.er1 >conftest.err
10474 cat conftest.err >&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } && {
10477 test -z "$ac_c_werror_flag" ||
10478 test ! -s conftest.err
10479 } && test -s conftest$ac_exeext &&
10480 $as_test_x conftest$ac_exeext; then
10481 xlinux_second_failure=no
10483 echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10486 xlinux_second_failure=yes
10489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10490 conftest$ac_exeext conftest.$ac_ext
10491 if test "${xlinux_second_failure}" = "yes"; then
10492 # If we get the same failure with -b, there is no use adding -b.
10493 # So take it out. This plays safe.
10494 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10495 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10496 CPPFLAGS="$OLD_CPPFLAGS"
10498 { echo "$as_me:$LINENO: result: no" >&5
10499 echo "${ECHO_T}no" >&6; }
10501 { echo "$as_me:$LINENO: result: yes" >&5
10502 echo "${ECHO_T}yes" >&6; }
10505 { echo "$as_me:$LINENO: result: no" >&5
10506 echo "${ECHO_T}no" >&6; }
10510 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10511 # header files included from there.
10512 { echo "$as_me:$LINENO: checking for Xkb" >&5
10513 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10514 cat >conftest.$ac_ext <<_ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520 #include <X11/Xlib.h>
10521 #include <X11/XKBlib.h>
10525 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10530 rm -f conftest.$ac_objext conftest$ac_exeext
10531 if { (ac_try="$ac_link"
10532 case "(($ac_try" in
10533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10534 *) ac_try_echo
=$ac_try;;
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_link") 2>conftest.er1
10539 grep -v '^ *+' conftest.er1
>conftest.err
10541 cat conftest.err
>&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } && {
10544 test -z "$ac_c_werror_flag" ||
10545 test ! -s conftest.err
10546 } && test -s conftest
$ac_exeext &&
10547 $as_test_x conftest
$ac_exeext; then
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.
$ac_ext >&5
10556 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10557 conftest
$ac_exeext conftest.
$ac_ext
10558 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10559 echo "${ECHO_T}$emacs_xkb" >&6; }
10560 if test $emacs_xkb = yes; then
10562 cat >>confdefs.h
<<\_ACEOF
10563 #define HAVE_XKBGETKEYBOARD 1
10572 for ac_func
in XrmSetDatabase XScreenResourceString \
10573 XScreenNumberOfScreen XSetWMProtocols
10575 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10578 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10581 cat >conftest.
$ac_ext <<_ACEOF
10584 cat confdefs.h
>>conftest.
$ac_ext
10585 cat >>conftest.
$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10589 #define $ac_func innocuous_$ac_func
10591 /* System header to define __stub macros and hopefully few prototypes,
10592 which can conflict with char $ac_func (); below.
10593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10594 <limits.h> exists even on freestanding compilers. */
10597 # include <limits.h>
10599 # include <assert.h>
10604 /* Override any GCC internal prototype to avoid an error.
10605 Use char because int might match the return type of a GCC
10606 builtin and then its argument prototype would still apply. */
10611 /* The GNU C library defines this for functions which it implements
10612 to always fail with ENOSYS. Some functions are actually named
10613 something starting with __ and the normal name is an alias. */
10614 #if defined __stub_$ac_func || defined __stub___$ac_func
10621 return $ac_func ();
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
10644 eval "$as_ac_var=yes"
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10649 eval "$as_ac_var=no"
10652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10653 conftest$ac_exeext conftest.$ac_ext
10655 ac_res=`eval echo '${'$as_ac_var'}'`
10656 { echo "$as_me:$LINENO: result: $ac_res" >&5
10657 echo "${ECHO_T}$ac_res" >&6; }
10658 if test `eval echo '${'$as_ac_var'}'` = yes; then
10659 cat >>confdefs.h <<_ACEOF
10660 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10668 if test "${window_system}" = "x11"; then
10669 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10670 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10671 if test "${emacs_cv_x11_version_6+set}" = set; then
10672 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 cat >conftest.$ac_ext <<_ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 #include <X11/Xlib.h>
10684 #if XlibSpecificationRelease < 6
10692 rm -f conftest.$ac_objext conftest$ac_exeext
10693 if { (ac_try="$ac_link"
10694 case "(($ac_try" in
10695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10696 *) ac_try_echo
=$ac_try;;
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_link") 2>conftest.er1
10701 grep -v '^ *+' conftest.er1
>conftest.err
10703 cat conftest.err
>&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && {
10706 test -z "$ac_c_werror_flag" ||
10707 test ! -s conftest.err
10708 } && test -s conftest
$ac_exeext &&
10709 $as_test_x conftest
$ac_exeext; then
10710 emacs_cv_x11_version_6
=yes
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.
$ac_ext >&5
10715 emacs_cv_x11_version_6
=no
10718 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10719 conftest
$ac_exeext conftest.
$ac_ext
10722 if test $emacs_cv_x11_version_6 = yes; then
10723 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10724 echo "${ECHO_T}6 or newer" >&6; }
10726 cat >>confdefs.h
<<\_ACEOF
10727 #define HAVE_X11R6 1
10731 { echo "$as_me:$LINENO: result: before 6" >&5
10732 echo "${ECHO_T}before 6" >&6; }
10736 if test "${window_system}" = "x11"; then
10737 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10738 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10739 if test "${emacs_cv_x11_version_5+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10742 cat >conftest.
$ac_ext <<_ACEOF
10745 cat confdefs.h
>>conftest.
$ac_ext
10746 cat >>conftest.
$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748 #include <X11/Xlib.h>
10752 #if XlibSpecificationRelease < 5
10760 rm -f conftest.
$ac_objext conftest
$ac_exeext
10761 if { (ac_try
="$ac_link"
10762 case "(($ac_try" in
10763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_link") 2>conftest.er1
10769 grep -v '^ *+' conftest.er1 >conftest.err
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } && {
10774 test -z "$ac_c_werror_flag" ||
10775 test ! -s conftest.err
10776 } && test -s conftest$ac_exeext &&
10777 $as_test_x conftest$ac_exeext; then
10778 emacs_cv_x11_version_5=yes
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10783 emacs_cv_x11_version_5=no
10786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10787 conftest$ac_exeext conftest.$ac_ext
10790 if test $emacs_cv_x11_version_5 = yes; then
10791 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10792 echo "${ECHO_T}5 or newer" >&6; }
10795 cat >>confdefs.h <<\_ACEOF
10796 #define HAVE_X11R5 1
10801 { echo "$as_me:$LINENO: result: before 5" >&5
10802 echo "${ECHO_T}before 5" >&6; }
10807 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10808 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10809 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10810 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10811 { (exit 1); exit 1; }; };
10815 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10817 if test "X${with_pkg_config_prog}" != X; then
10818 PKG_CONFIG="${with_pkg_config_prog}"
10823 if test -z "$PKG_CONFIG"; then
10824 # Extract the first word of "pkg-config", so it can be a program name with args.
10825 set dummy pkg-config; ac_word=$2
10826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10828 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 case $PKG_CONFIG in
10833 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $PATH
10840 test -z "$as_dir" && as_dir=.
10841 for ac_exec_ext in '' $ac_executable_extensions; do
10842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10843 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10851 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10855 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10856 if test -n "$PKG_CONFIG"; then
10857 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10858 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10860 { echo "$as_me:$LINENO: result: no" >&5
10861 echo "${ECHO_T}no" >&6; }
10867 if test "$PKG_CONFIG" = "no" ; then
10868 { { echo "$as_me:$LINENO: error:
10869 *** 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
10870 echo "$as_me: error:
10871 *** 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;}
10872 { (exit 1); exit 1; }; }
10874 PKG_CONFIG_MIN_VERSION=0.9.0
10875 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10876 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10877 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10879 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10880 { echo "$as_me:$LINENO: result: yes" >&5
10881 echo "${ECHO_T}yes" >&6; }
10884 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10885 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10886 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10887 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10888 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10890 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10891 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10892 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10893 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10894 echo "${ECHO_T}$GTK_LIBS" >&6; }
10896 { echo "$as_me:$LINENO: result: no" >&5
10897 echo "${ECHO_T}no" >&6; }
10900 ## If we have a custom action on failure, don't print errors, but
10901 ## do set a variable so people can do so.
10902 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10903 echo $GTK_PKG_ERRORS
10909 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10910 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10914 if test $succeeded = yes; then
10917 { { 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
10918 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;}
10919 { (exit 1); exit 1; }; }
10924 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10925 CFLAGS="$CFLAGS $GTK_CFLAGS"
10926 LIBS="$GTK_LIBS $LIBS"
10929 cat >>confdefs.h <<\_ACEOF
10935 if test "$with_toolkit_scroll_bars" != no; then
10936 with_toolkit_scroll_bars=yes
10939 HAVE_GTK_MULTIDISPLAY=no
10941 HAVE_GTK_FILE_SELECTION=no
10943 for ac_func in gtk_file_selection_new
10945 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10951 cat >conftest.$ac_ext <<_ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10959 #define $ac_func innocuous_$ac_func
10961 /* System header to define __stub macros and hopefully few prototypes,
10962 which can conflict with char $ac_func (); below.
10963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10964 <limits.h> exists even on freestanding compilers. */
10967 # include <limits.h>
10969 # include <assert.h>
10974 /* Override any GCC internal prototype to avoid an error.
10975 Use char because int might match the return type of a GCC
10976 builtin and then its argument prototype would still apply. */
10981 /* The GNU C library defines this for functions which it implements
10982 to always fail with ENOSYS. Some functions are actually named
10983 something starting with __ and the normal name is an alias. */
10984 #if defined __stub_$ac_func || defined __stub___$ac_func
10991 return $ac_func ();
10996 rm -f conftest.$ac_objext conftest$ac_exeext
10997 if { (ac_try="$ac_link"
10998 case "(($ac_try" in
10999 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11000 *) ac_try_echo
=$ac_try;;
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_link") 2>conftest.er1
11005 grep -v '^ *+' conftest.er1
>conftest.err
11007 cat conftest.err
>&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } && {
11010 test -z "$ac_c_werror_flag" ||
11011 test ! -s conftest.err
11012 } && test -s conftest
$ac_exeext &&
11013 $as_test_x conftest
$ac_exeext; then
11014 eval "$as_ac_var=yes"
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.
$ac_ext >&5
11019 eval "$as_ac_var=no"
11022 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11023 conftest
$ac_exeext conftest.
$ac_ext
11025 ac_res
=`eval echo '${'$as_ac_var'}'`
11026 { echo "$as_me:$LINENO: result: $ac_res" >&5
11027 echo "${ECHO_T}$ac_res" >&6; }
11028 if test `eval echo '${'$as_ac_var'}'` = yes; then
11029 cat >>confdefs.h
<<_ACEOF
11030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11032 HAVE_GTK_FILE_SELECTION
=yes
11037 HAVE_GTK_FILE_CHOOSER
=no
11039 for ac_func
in gtk_file_chooser_dialog_new
11041 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11044 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11047 cat >conftest.
$ac_ext <<_ACEOF
11050 cat confdefs.h
>>conftest.
$ac_ext
11051 cat >>conftest.
$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11055 #define $ac_func innocuous_$ac_func
11057 /* System header to define __stub macros and hopefully few prototypes,
11058 which can conflict with char $ac_func (); below.
11059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11060 <limits.h> exists even on freestanding compilers. */
11063 # include <limits.h>
11065 # include <assert.h>
11070 /* Override any GCC internal prototype to avoid an error.
11071 Use char because int might match the return type of a GCC
11072 builtin and then its argument prototype would still apply. */
11077 /* The GNU C library defines this for functions which it implements
11078 to always fail with ENOSYS. Some functions are actually named
11079 something starting with __ and the normal name is an alias. */
11080 #if defined __stub_$ac_func || defined __stub___$ac_func
11087 return $ac_func ();
11092 rm -f conftest.
$ac_objext conftest
$ac_exeext
11093 if { (ac_try
="$ac_link"
11094 case "(($ac_try" in
11095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099 (eval "$ac_link") 2>conftest.er1
11101 grep -v '^ *+' conftest.er1 >conftest.err
11103 cat conftest.err >&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } && {
11106 test -z "$ac_c_werror_flag" ||
11107 test ! -s conftest.err
11108 } && test -s conftest$ac_exeext &&
11109 $as_test_x conftest$ac_exeext; then
11110 eval "$as_ac_var=yes"
11112 echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11115 eval "$as_ac_var=no"
11118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11119 conftest$ac_exeext conftest.$ac_ext
11121 ac_res=`eval echo '${'$as_ac_var'}'`
11122 { echo "$as_me:$LINENO: result: $ac_res" >&5
11123 echo "${ECHO_T}$ac_res" >&6; }
11124 if test `eval echo '${'$as_ac_var'}'` = yes; then
11125 cat >>confdefs.h <<_ACEOF
11126 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11128 HAVE_GTK_FILE_CHOOSER=yes
11133 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11134 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11136 cat >>confdefs.h <<\_ACEOF
11137 #define HAVE_GTK_FILE_BOTH 1
11142 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11143 HAVE_GTK_AND_PTHREAD=no
11145 for ac_header in pthread.h
11147 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11154 ac_res=`eval echo '${'$as_ac_Header'}'`
11155 { echo "$as_me:$LINENO: result: $ac_res" >&5
11156 echo "${ECHO_T}$ac_res" >&6; }
11158 # Is the header compilable?
11159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11161 cat >conftest.$ac_ext <<_ACEOF
11164 cat confdefs.h >>conftest.$ac_ext
11165 cat >>conftest.$ac_ext <<_ACEOF
11166 /* end confdefs.h. */
11167 $ac_includes_default
11168 #include <$ac_header>
11170 rm -f conftest.$ac_objext
11171 if { (ac_try="$ac_compile"
11172 case "(($ac_try" in
11173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11174 *) ac_try_echo
=$ac_try;;
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_compile") 2>conftest.er1
11179 grep -v '^ *+' conftest.er1
>conftest.err
11181 cat conftest.err
>&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } && {
11184 test -z "$ac_c_werror_flag" ||
11185 test ! -s conftest.err
11186 } && test -s conftest.
$ac_objext; then
11187 ac_header_compiler
=yes
11189 echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.
$ac_ext >&5
11192 ac_header_compiler
=no
11195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11197 echo "${ECHO_T}$ac_header_compiler" >&6; }
11199 # Is the header present?
11200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11202 cat >conftest.
$ac_ext <<_ACEOF
11205 cat confdefs.h
>>conftest.
$ac_ext
11206 cat >>conftest.
$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11208 #include <$ac_header>
11210 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11211 case "(($ac_try" in
11212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11213 *) ac_try_echo=$ac_try;;
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11218 grep -v '^ *+' conftest.er1 >conftest.err
11220 cat conftest.err >&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } >/dev/null && {
11223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11224 test ! -s conftest.err
11226 ac_header_preproc=yes
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11231 ac_header_preproc=no
11234 rm -f conftest.err conftest.$ac_ext
11235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11236 echo "${ECHO_T}$ac_header_preproc" >&6; }
11238 # So? What about this header?
11239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11245 ac_header_preproc=yes
11248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11268 eval "$as_ac_Header=\$ac_header_preproc"
11270 ac_res=`eval echo '${'$as_ac_Header'}'`
11271 { echo "$as_me:$LINENO: result: $ac_res" >&5
11272 echo "${ECHO_T}$ac_res" >&6; }
11275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11276 cat >>confdefs.h <<_ACEOF
11277 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11284 if test "$ac_cv_header_pthread_h"; then
11285 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11286 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11287 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11290 ac_check_lib_save_LIBS=$LIBS
11291 LIBS="-lpthread $LIBS"
11292 cat >conftest.$ac_ext <<_ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11299 /* Override any GCC internal prototype to avoid an error.
11300 Use char because int might match the return type of a GCC
11301 builtin and then its argument prototype would still apply. */
11305 char pthread_self ();
11309 return pthread_self ();
11314 rm -f conftest.$ac_objext conftest$ac_exeext
11315 if { (ac_try="$ac_link"
11316 case "(($ac_try" in
11317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11318 *) ac_try_echo
=$ac_try;;
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_link") 2>conftest.er1
11323 grep -v '^ *+' conftest.er1
>conftest.err
11325 cat conftest.err
>&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } && {
11328 test -z "$ac_c_werror_flag" ||
11329 test ! -s conftest.err
11330 } && test -s conftest
$ac_exeext &&
11331 $as_test_x conftest
$ac_exeext; then
11332 ac_cv_lib_pthread_pthread_self
=yes
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.
$ac_ext >&5
11337 ac_cv_lib_pthread_pthread_self
=no
11340 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11341 conftest
$ac_exeext conftest.
$ac_ext
11342 LIBS
=$ac_check_lib_save_LIBS
11344 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11345 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11346 if test $ac_cv_lib_pthread_pthread_self = yes; then
11347 HAVE_GTK_AND_PTHREAD
=yes
11351 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11352 GTK_LIBS
="$GTK_LIBS -lpthread"
11354 cat >>confdefs.h
<<\_ACEOF
11355 #define HAVE_GTK_AND_PTHREAD 1
11362 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
11363 if test x
"${HAVE_X11R5}" = xyes
; then
11364 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11365 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11366 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11369 cat >conftest.
$ac_ext <<_ACEOF
11372 cat confdefs.h
>>conftest.
$ac_ext
11373 cat >>conftest.
$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11376 #include <X11/Intrinsic.h>
11377 #include <X11/Xaw/Simple.h>
11386 rm -f conftest.
$ac_objext conftest
$ac_exeext
11387 if { (ac_try
="$ac_link"
11388 case "(($ac_try" in
11389 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11390 *) ac_try_echo=$ac_try;;
11392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11393 (eval "$ac_link") 2>conftest.er1
11395 grep -v '^ *+' conftest.er1 >conftest.err
11397 cat conftest.err >&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } && {
11400 test -z "$ac_c_werror_flag" ||
11401 test ! -s conftest.err
11402 } && test -s conftest$ac_exeext &&
11403 $as_test_x conftest$ac_exeext; then
11404 emacs_cv_x11_version_5_with_xaw=yes
11406 echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11409 emacs_cv_x11_version_5_with_xaw=no
11412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11413 conftest$ac_exeext conftest.$ac_ext
11416 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11417 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11418 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11419 USE_X_TOOLKIT=LUCID
11421 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11422 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11430 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11432 if test "${USE_X_TOOLKIT}" != "none"; then
11433 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11434 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11435 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11436 echo $ECHO_N "(cached) $ECHO_C" >&6
11438 cat >conftest.$ac_ext <<_ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h. */
11444 #include <X11/Intrinsic.h>
11448 #if XtSpecificationRelease < 6
11456 rm -f conftest.$ac_objext conftest$ac_exeext
11457 if { (ac_try="$ac_link"
11458 case "(($ac_try" in
11459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11460 *) ac_try_echo
=$ac_try;;
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_link") 2>conftest.er1
11465 grep -v '^ *+' conftest.er1
>conftest.err
11467 cat conftest.err
>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } && {
11470 test -z "$ac_c_werror_flag" ||
11471 test ! -s conftest.err
11472 } && test -s conftest
$ac_exeext &&
11473 $as_test_x conftest
$ac_exeext; then
11474 emacs_cv_x11_toolkit_version_6
=yes
11476 echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.
$ac_ext >&5
11479 emacs_cv_x11_toolkit_version_6
=no
11482 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11483 conftest
$ac_exeext conftest.
$ac_ext
11486 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11487 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11488 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11489 echo "${ECHO_T}6 or newer" >&6; }
11491 cat >>confdefs.h
<<\_ACEOF
11492 #define HAVE_X11XTR6 1
11496 { echo "$as_me:$LINENO: result: before 6" >&5
11497 echo "${ECHO_T}before 6" >&6; }
11501 if test x
$HAVE_X11XTR6 = xyes
; then
11502 LIBS
="-lXt -lSM -lICE $LIBS"
11507 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11508 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11509 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11512 ac_check_lib_save_LIBS
=$LIBS
11514 cat >conftest.
$ac_ext <<_ACEOF
11517 cat confdefs.h
>>conftest.
$ac_ext
11518 cat >>conftest.
$ac_ext <<_ACEOF
11519 /* end confdefs.h. */
11521 /* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
11527 char XmuConvertStandardSelection ();
11531 return XmuConvertStandardSelection ();
11536 rm -f conftest.
$ac_objext conftest
$ac_exeext
11537 if { (ac_try
="$ac_link"
11538 case "(($ac_try" in
11539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_link") 2>conftest.er1
11545 grep -v '^ *+' conftest.er1 >conftest.err
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } && {
11550 test -z "$ac_c_werror_flag" ||
11551 test ! -s conftest.err
11552 } && test -s conftest$ac_exeext &&
11553 $as_test_x conftest$ac_exeext; then
11554 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11556 echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11559 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11563 conftest$ac_exeext conftest.$ac_ext
11564 LIBS=$ac_check_lib_save_LIBS
11566 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11567 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11568 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11569 cat >>confdefs.h <<_ACEOF
11570 #define HAVE_LIBXMU 1
11577 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11580 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11581 if test "${HAVE_X11}" = "yes"; then
11582 if test "${USE_X_TOOLKIT}" != "none"; then
11584 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11585 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11586 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11589 ac_check_lib_save_LIBS=$LIBS
11590 LIBS="-lXext $LIBS"
11591 cat >conftest.$ac_ext <<_ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h. */
11598 /* Override any GCC internal prototype to avoid an error.
11599 Use char because int might match the return type of a GCC
11600 builtin and then its argument prototype would still apply. */
11604 char XShapeQueryExtension ();
11608 return XShapeQueryExtension ();
11613 rm -f conftest.$ac_objext conftest$ac_exeext
11614 if { (ac_try="$ac_link"
11615 case "(($ac_try" in
11616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11617 *) ac_try_echo
=$ac_try;;
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_link") 2>conftest.er1
11622 grep -v '^ *+' conftest.er1
>conftest.err
11624 cat conftest.err
>&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } && {
11627 test -z "$ac_c_werror_flag" ||
11628 test ! -s conftest.err
11629 } && test -s conftest
$ac_exeext &&
11630 $as_test_x conftest
$ac_exeext; then
11631 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.
$ac_ext >&5
11636 ac_cv_lib_Xext_XShapeQueryExtension
=no
11639 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11640 conftest
$ac_exeext conftest.
$ac_ext
11641 LIBS
=$ac_check_lib_save_LIBS
11643 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11644 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11645 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11646 cat >>confdefs.h
<<_ACEOF
11647 #define HAVE_LIBXEXT 1
11650 LIBS
="-lXext $LIBS"
11657 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11658 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11659 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
11660 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11663 cat >conftest.
$ac_ext <<_ACEOF
11666 cat confdefs.h
>>conftest.
$ac_ext
11667 cat >>conftest.
$ac_ext <<_ACEOF
11668 /* end confdefs.h. */
11673 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11676 Motif version prior to 2.1.
11682 rm -f conftest.
$ac_objext
11683 if { (ac_try
="$ac_compile"
11684 case "(($ac_try" in
11685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689 (eval "$ac_compile") 2>conftest.er1
11691 grep -v '^ *+' conftest.er1 >conftest.err
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } && {
11696 test -z "$ac_c_werror_flag" ||
11697 test ! -s conftest.err
11698 } && test -s conftest.$ac_objext; then
11699 emacs_cv_motif_version_2_1=yes
11701 echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.$ac_ext >&5
11704 emacs_cv_motif_version_2_1=no
11707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11709 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11710 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
11711 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11712 if test $emacs_cv_motif_version_2_1 = yes; then
11715 cat >>confdefs.h <<\_ACEOF
11716 #define HAVE_MOTIF_2_1 1
11719 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11720 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
11721 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11724 ac_check_lib_save_LIBS=$LIBS
11726 cat >conftest.$ac_ext <<_ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11733 /* Override any GCC internal prototype to avoid an error.
11734 Use char because int might match the return type of a GCC
11735 builtin and then its argument prototype would still apply. */
11739 char XpCreateContext ();
11743 return XpCreateContext ();
11748 rm -f conftest.$ac_objext conftest$ac_exeext
11749 if { (ac_try="$ac_link"
11750 case "(($ac_try" in
11751 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11752 *) ac_try_echo
=$ac_try;;
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_link") 2>conftest.er1
11757 grep -v '^ *+' conftest.er1
>conftest.err
11759 cat conftest.err
>&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } && {
11762 test -z "$ac_c_werror_flag" ||
11763 test ! -s conftest.err
11764 } && test -s conftest
$ac_exeext &&
11765 $as_test_x conftest
$ac_exeext; then
11766 ac_cv_lib_Xp_XpCreateContext
=yes
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.
$ac_ext >&5
11771 ac_cv_lib_Xp_XpCreateContext
=no
11774 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11775 conftest
$ac_exeext conftest.
$ac_ext
11776 LIBS
=$ac_check_lib_save_LIBS
11778 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11779 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
11780 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11784 if test ${HAVE_LIBXP} = yes; then
11786 cat >>confdefs.h
<<\_ACEOF
11787 #define HAVE_LIBXP 1
11792 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11793 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
11794 if test "${emacs_cv_lesstif+set}" = set; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11797 # We put this in CFLAGS temporarily to precede other -I options
11798 # that might be in CFLAGS temporarily.
11799 # We put this in CPPFLAGS where it precedes the other -I options.
11800 OLD_CPPFLAGS
=$CPPFLAGS
11802 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11803 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11804 cat >conftest.
$ac_ext <<_ACEOF
11807 cat confdefs.h
>>conftest.
$ac_ext
11808 cat >>conftest.
$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11819 rm -f conftest.
$ac_objext
11820 if { (ac_try
="$ac_compile"
11821 case "(($ac_try" in
11822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_compile") 2>conftest.er1
11828 grep -v '^ *+' conftest.er1 >conftest.err
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } && {
11833 test -z "$ac_c_werror_flag" ||
11834 test ! -s conftest.err
11835 } && test -s conftest.$ac_objext; then
11836 emacs_cv_lesstif=yes
11838 echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11841 emacs_cv_lesstif=no
11844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11846 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11847 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
11848 if test $emacs_cv_lesstif = yes; then
11849 # Make sure this -I option remains in CPPFLAGS after it is set
11850 # back to REAL_CPPFLAGS.
11851 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11852 # have those other -I options anyway. Ultimately, having this
11853 # directory ultimately in CPPFLAGS will be enough.
11854 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11855 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11858 CPPFLAGS=$OLD_CPPFLAGS
11863 ### Is -lXaw3d available?
11865 if test "${HAVE_X11}" = "yes"; then
11866 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11867 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11868 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
11869 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 cat >conftest.$ac_ext <<_ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 #include <X11/Xaw3d/Scrollbar.h>
11880 if { (ac_try="$ac_cpp conftest.$ac_ext"
11881 case "(($ac_try" in
11882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11883 *) ac_try_echo
=$ac_try;;
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11888 grep -v '^ *+' conftest.er1
>conftest.err
11890 cat conftest.err
>&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } >/dev
/null
&& {
11893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11894 test ! -s conftest.err
11896 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
11898 echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.
$ac_ext >&5
11901 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
11904 rm -f conftest.err conftest.
$ac_ext
11906 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11907 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
11908 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11909 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11910 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
11911 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11914 ac_check_lib_save_LIBS
=$LIBS
11915 LIBS
="-lXaw3d $LIBS"
11916 cat >conftest.
$ac_ext <<_ACEOF
11919 cat confdefs.h
>>conftest.
$ac_ext
11920 cat >>conftest.
$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11923 /* Override any GCC internal prototype to avoid an error.
11924 Use char because int might match the return type of a GCC
11925 builtin and then its argument prototype would still apply. */
11929 char XawScrollbarSetThumb ();
11933 return XawScrollbarSetThumb ();
11938 rm -f conftest.
$ac_objext conftest
$ac_exeext
11939 if { (ac_try
="$ac_link"
11940 case "(($ac_try" in
11941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11942 *) ac_try_echo=$ac_try;;
11944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11945 (eval "$ac_link") 2>conftest.er1
11947 grep -v '^ *+' conftest.er1 >conftest.err
11949 cat conftest.err >&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } && {
11952 test -z "$ac_c_werror_flag" ||
11953 test ! -s conftest.err
11954 } && test -s conftest$ac_exeext &&
11955 $as_test_x conftest$ac_exeext; then
11956 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11958 echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11961 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11965 conftest$ac_exeext conftest.$ac_ext
11966 LIBS=$ac_check_lib_save_LIBS
11968 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11969 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11970 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11977 if test "${HAVE_XAW3D}" = "yes"; then
11979 cat >>confdefs.h <<\_ACEOF
11980 #define HAVE_XAW3D 1
11989 USE_TOOLKIT_SCROLL_BARS=no
11990 if test "${with_toolkit_scroll_bars}" != "no"; then
11991 if test "${USE_X_TOOLKIT}" != "none"; then
11992 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11993 cat >>confdefs.h <<\_ACEOF
11994 #define USE_TOOLKIT_SCROLL_BARS 1
11998 USE_TOOLKIT_SCROLL_BARS=yes
11999 elif test "${HAVE_XAW3D}" = "yes"; then
12000 cat >>confdefs.h <<\_ACEOF
12001 #define USE_TOOLKIT_SCROLL_BARS 1
12004 USE_TOOLKIT_SCROLL_BARS=yes
12006 elif test "${HAVE_GTK}" = "yes"; then
12007 cat >>confdefs.h <<\_ACEOF
12008 #define USE_TOOLKIT_SCROLL_BARS 1
12011 USE_TOOLKIT_SCROLL_BARS=yes
12012 elif test "${HAVE_CARBON}" = "yes"; then
12013 cat >>confdefs.h <<\_ACEOF
12014 #define USE_TOOLKIT_SCROLL_BARS 1
12017 USE_TOOLKIT_SCROLL_BARS=yes
12021 cat >conftest.$ac_ext <<_ACEOF
12024 cat confdefs.h >>conftest.$ac_ext
12025 cat >>conftest.$ac_ext <<_ACEOF
12026 /* end confdefs.h. */
12028 #include <X11/Xlib.h>
12029 #include <X11/Xresource.h>
12038 rm -f conftest.$ac_objext
12039 if { (ac_try="$ac_compile"
12040 case "(($ac_try" in
12041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12042 *) ac_try_echo
=$ac_try;;
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_compile") 2>conftest.er1
12047 grep -v '^ *+' conftest.er1
>conftest.err
12049 cat conftest.err
>&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && {
12052 test -z "$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12054 } && test -s conftest.
$ac_objext; then
12057 cat >>confdefs.h
<<\_ACEOF
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.
$ac_ext >&5
12068 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12071 if test "${with_xim}" != "no"; then
12073 cat >>confdefs.h
<<\_ACEOF
12080 if test "${HAVE_XIM}" != "no"; then
12081 late_CFLAGS
=$CFLAGS
12082 if test "$GCC" = yes; then
12083 CFLAGS
="$CFLAGS --pedantic-errors"
12085 cat >conftest.
$ac_ext <<_ACEOF
12088 cat confdefs.h
>>conftest.
$ac_ext
12089 cat >>conftest.
$ac_ext <<_ACEOF
12090 /* end confdefs.h. */
12092 #include <X11/Xlib.h>
12093 #include <X11/Xresource.h>
12102 XPointer *client_data;
12104 /* If we're not using GCC, it's probably not XFree86, and this is
12105 probably right, but we can't use something like --pedantic-errors. */
12106 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12107 char*, XIMProc, XPointer*);
12109 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12115 rm -f conftest.
$ac_objext
12116 if { (ac_try
="$ac_compile"
12117 case "(($ac_try" in
12118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_compile") 2>conftest.er1
12124 grep -v '^ *+' conftest.er1 >conftest.err
12126 cat conftest.err >&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } && {
12129 test -z "$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12131 } && test -s conftest.$ac_objext; then
12132 emacs_cv_arg6_star=yes
12134 echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12142 if test "$emacs_cv_arg6_star" = yes; then
12143 cat >>confdefs.h <<\_ACEOF
12144 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12148 cat >>confdefs.h <<\_ACEOF
12149 #define XRegisterIMInstantiateCallback_arg6 XPointer
12153 CFLAGS=$late_CFLAGS
12156 ### Use -lXpm if available, unless `--with-xpm=no
'.
12158 if test "${HAVE_X11}" = "yes"; then
12159 if test "${with_xpm}" != "no"; then
12160 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12161 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12162 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12163 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12166 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12167 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12169 # Is the header compilable?
12170 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12171 echo $ECHO_N "checking X11/xpm.h usability... $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 $ac_includes_default
12179 #include <X11/xpm.h>
12181 rm -f conftest.$ac_objext
12182 if { (ac_try="$ac_compile"
12183 case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188 (eval "$ac_compile") 2>conftest.er1
12190 grep -v '^
*+' conftest.er1 >conftest.err
12192 cat conftest.err >&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } && {
12195 test -z "$ac_c_werror_flag" ||
12196 test ! -s conftest.err
12197 } && test -s conftest.$ac_objext; then
12198 ac_header_compiler=yes
12200 echo "$as_me: failed program was:" >&5
12201 sed 's
/^
/|
/' conftest.$ac_ext >&5
12203 ac_header_compiler=no
12206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12208 echo "${ECHO_T}$ac_header_compiler" >&6; }
12210 # Is the header present?
12211 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12212 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12213 cat >conftest.$ac_ext <<_ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12219 #include <X11/xpm.h>
12221 if { (ac_try="$ac_cpp conftest.$ac_ext"
12222 case "(($ac_try" in
12223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224 *) ac_try_echo=$ac_try;;
12226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12229 grep -v '^
*+' conftest.er1 >conftest.err
12231 cat conftest.err >&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); } >/dev/null && {
12234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12235 test ! -s conftest.err
12237 ac_header_preproc=yes
12239 echo "$as_me: failed program was:" >&5
12240 sed 's
/^
/|
/' conftest.$ac_ext >&5
12242 ac_header_preproc=no
12245 rm -f conftest.err conftest.$ac_ext
12246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12247 echo "${ECHO_T}$ac_header_preproc" >&6; }
12249 # So? What about this header?
12250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12252 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12253 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12254 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
12255 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
12256 ac_header_preproc=yes
12259 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12260 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12261 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12262 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12263 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12264 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12265 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12266 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12267 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
12268 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
12269 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12270 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12274 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12275 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12276 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12279 ac_cv_header_X11_xpm_h=$ac_header_preproc
12281 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12282 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12285 if test $ac_cv_header_X11_xpm_h = yes; then
12286 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12287 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12288 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12291 ac_check_lib_save_LIBS=$LIBS
12292 LIBS="-lXpm -lX11 $LIBS"
12293 cat >conftest.$ac_ext <<_ACEOF
12296 cat confdefs.h >>conftest.$ac_ext
12297 cat >>conftest.$ac_ext <<_ACEOF
12298 /* end confdefs.h. */
12300 /* Override any GCC internal prototype to avoid an error.
12301 Use char because int might match the return type of a GCC
12302 builtin and then its argument prototype would still apply. */
12306 char XpmReadFileToPixmap ();
12310 return XpmReadFileToPixmap ();
12315 rm -f conftest.$ac_objext conftest$ac_exeext
12316 if { (ac_try="$ac_link"
12317 case "(($ac_try" in
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322 (eval "$ac_link") 2>conftest.er1
12324 grep -v '^
*+' conftest.er1 >conftest.err
12326 cat conftest.err >&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } && {
12329 test -z "$ac_c_werror_flag" ||
12330 test ! -s conftest.err
12331 } && test -s conftest$ac_exeext &&
12332 $as_test_x conftest$ac_exeext; then
12333 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12335 echo "$as_me: failed program was:" >&5
12336 sed 's
/^
/|
/' conftest.$ac_ext >&5
12338 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12342 conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS
12345 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12346 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12347 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12354 if test "${HAVE_XPM}" = "yes"; then
12355 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12356 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12357 cat >conftest.$ac_ext <<_ACEOF
12360 cat confdefs.h >>conftest.$ac_ext
12361 cat >>conftest.$ac_ext <<_ACEOF
12362 /* end confdefs.h. */
12363 #include "X11/xpm.h"
12364 #ifndef XpmReturnAllocPixels
12365 no_return_alloc_pixels
12369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12370 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12378 if test "${HAVE_XPM}" = "yes"; then
12379 { echo "$as_me:$LINENO: result: yes" >&5
12380 echo "${ECHO_T}yes" >&6; }
12382 { echo "$as_me:$LINENO: result: no" >&5
12383 echo "${ECHO_T}no" >&6; }
12388 if test "${HAVE_XPM}" = "yes"; then
12390 cat >>confdefs.h <<\_ACEOF
12397 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12399 if test "${HAVE_X11}" = "yes"; then
12400 if test "${with_jpeg}" != "no"; then
12401 if test "${ac_cv_header_jerror_h+set}" = set; then
12402 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12403 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12404 if test "${ac_cv_header_jerror_h+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12407 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12408 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12410 # Is the header compilable?
12411 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
12412 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
12413 cat >conftest.
$ac_ext <<_ACEOF
12416 cat confdefs.h
>>conftest.
$ac_ext
12417 cat >>conftest.
$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12419 $ac_includes_default
12420 #include <jerror.h>
12422 rm -f conftest.
$ac_objext
12423 if { (ac_try
="$ac_compile"
12424 case "(($ac_try" in
12425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_compile") 2>conftest.er1
12431 grep -v '^ *+' conftest.er1 >conftest.err
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } && {
12436 test -z "$ac_c_werror_flag" ||
12437 test ! -s conftest.err
12438 } && test -s conftest.$ac_objext; then
12439 ac_header_compiler=yes
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12444 ac_header_compiler=no
12447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12448 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12449 echo "${ECHO_T}$ac_header_compiler" >&6; }
12451 # Is the header present?
12452 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
12453 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
12454 cat >conftest.$ac_ext <<_ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12460 #include <jerror.h>
12462 if { (ac_try="$ac_cpp conftest.$ac_ext"
12463 case "(($ac_try" in
12464 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12465 *) ac_try_echo
=$ac_try;;
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12470 grep -v '^ *+' conftest.er1
>conftest.err
12472 cat conftest.err
>&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } >/dev
/null
&& {
12475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12476 test ! -s conftest.err
12478 ac_header_preproc
=yes
12480 echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.
$ac_ext >&5
12483 ac_header_preproc
=no
12486 rm -f conftest.err conftest.
$ac_ext
12487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12488 echo "${ECHO_T}$ac_header_preproc" >&6; }
12490 # So? What about this header?
12491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12493 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12494 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12495 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12496 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12497 ac_header_preproc
=yes
12500 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12501 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12502 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12503 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12504 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12505 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12506 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12507 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12508 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12509 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12510 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12511 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12515 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12516 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12517 if test "${ac_cv_header_jerror_h+set}" = set; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12520 ac_cv_header_jerror_h
=$ac_header_preproc
12522 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12523 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12526 if test $ac_cv_header_jerror_h = yes; then
12527 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12528 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
12529 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12532 ac_check_lib_save_LIBS
=$LIBS
12533 LIBS
="-ljpeg $LIBS"
12534 cat >conftest.
$ac_ext <<_ACEOF
12537 cat confdefs.h
>>conftest.
$ac_ext
12538 cat >>conftest.
$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12541 /* Override any GCC internal prototype to avoid an error.
12542 Use char because int might match the return type of a GCC
12543 builtin and then its argument prototype would still apply. */
12547 char jpeg_destroy_compress ();
12551 return jpeg_destroy_compress ();
12556 rm -f conftest.
$ac_objext conftest
$ac_exeext
12557 if { (ac_try
="$ac_link"
12558 case "(($ac_try" in
12559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_link") 2>conftest.er1
12565 grep -v '^ *+' conftest.er1 >conftest.err
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } && {
12570 test -z "$ac_c_werror_flag" ||
12571 test ! -s conftest.err
12572 } && test -s conftest$ac_exeext &&
12573 $as_test_x conftest$ac_exeext; then
12574 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12576 echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12579 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12583 conftest$ac_exeext conftest.$ac_ext
12584 LIBS=$ac_check_lib_save_LIBS
12586 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12587 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12588 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12598 if test "${HAVE_JPEG}" = "yes"; then
12599 cat >>confdefs.h <<\_ACEOF
12600 #define HAVE_JPEG 1
12603 cat >conftest.$ac_ext <<_ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12609 #include <jpeglib.h>
12610 version=JPEG_LIB_VERSION
12613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12614 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12615 cat >>confdefs.h <<\_ACEOF
12616 #define HAVE_JPEG 1
12620 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12621 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12629 ### Use -lpng if available, unless `--with-png=no
'.
12631 if test "${HAVE_X11}" = "yes"; then
12632 if test "${with_png}" != "no"; then
12633 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12634 # in /usr/include/libpng.
12637 for ac_header in png.h libpng/png.h
12639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 ac_res=`eval echo '${'$as_ac_Header'}'`
12647 { echo "$as_me:$LINENO: result: $ac_res" >&5
12648 echo "${ECHO_T}$ac_res" >&6; }
12650 # Is the header compilable?
12651 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12653 cat >conftest.$ac_ext <<_ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h. */
12659 $ac_includes_default
12660 #include <$ac_header>
12662 rm -f conftest.$ac_objext
12663 if { (ac_try="$ac_compile"
12664 case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_compile") 2>conftest.er1
12671 grep -v '^
*+' conftest.er1 >conftest.err
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } && {
12676 test -z "$ac_c_werror_flag" ||
12677 test ! -s conftest.err
12678 } && test -s conftest.$ac_objext; then
12679 ac_header_compiler=yes
12681 echo "$as_me: failed program was:" >&5
12682 sed 's
/^
/|
/' conftest.$ac_ext >&5
12684 ac_header_compiler=no
12687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12689 echo "${ECHO_T}$ac_header_compiler" >&6; }
12691 # Is the header present?
12692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12694 cat >conftest.$ac_ext <<_ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h. */
12700 #include <$ac_header>
12702 if { (ac_try="$ac_cpp conftest.$ac_ext"
12703 case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12710 grep -v '^
*+' conftest.er1 >conftest.err
12712 cat conftest.err >&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } >/dev/null && {
12715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12716 test ! -s conftest.err
12718 ac_header_preproc=yes
12720 echo "$as_me: failed program was:" >&5
12721 sed 's
/^
/|
/' conftest.$ac_ext >&5
12723 ac_header_preproc=no
12726 rm -f conftest.err conftest.$ac_ext
12727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12728 echo "${ECHO_T}$ac_header_preproc" >&6; }
12730 # So? What about this header?
12731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
12736 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
12737 ac_header_preproc=yes
12740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
12749 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12760 eval "$as_ac_Header=\$ac_header_preproc"
12762 ac_res=`eval echo '${'$as_ac_Header'}'`
12763 { echo "$as_me:$LINENO: result: $ac_res" >&5
12764 echo "${ECHO_T}$ac_res" >&6; }
12767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12768 cat >>confdefs.h <<_ACEOF
12769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12776 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12777 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12778 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
12779 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12782 ac_check_lib_save_LIBS=$LIBS
12783 LIBS="-lpng -lz -lm $LIBS"
12784 cat >conftest.$ac_ext <<_ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12791 /* Override any GCC internal prototype to avoid an error.
12792 Use char because int might match the return type of a GCC
12793 builtin and then its argument prototype would still apply. */
12797 char png_get_channels ();
12801 return png_get_channels ();
12806 rm -f conftest.$ac_objext conftest$ac_exeext
12807 if { (ac_try="$ac_link"
12808 case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_link") 2>conftest.er1
12815 grep -v '^
*+' conftest.er1 >conftest.err
12817 cat conftest.err >&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } && {
12820 test -z "$ac_c_werror_flag" ||
12821 test ! -s conftest.err
12822 } && test -s conftest$ac_exeext &&
12823 $as_test_x conftest$ac_exeext; then
12824 ac_cv_lib_png_png_get_channels=yes
12826 echo "$as_me: failed program was:" >&5
12827 sed 's
/^
/|
/' conftest.$ac_ext >&5
12829 ac_cv_lib_png_png_get_channels=no
12832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12833 conftest$ac_exeext conftest.$ac_ext
12834 LIBS=$ac_check_lib_save_LIBS
12836 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
12837 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
12838 if test $ac_cv_lib_png_png_get_channels = yes; then
12845 if test "${HAVE_PNG}" = "yes"; then
12847 cat >>confdefs.h <<\_ACEOF
12854 ### Use -ltiff if available, unless `--with-tiff=no'.
12856 if test "${HAVE_X11}" = "yes"; then
12857 if test "${with_tiff}" != "no"; then
12858 if test "${ac_cv_header_tiffio_h+set}" = set; then
12859 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
12860 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
12861 if test "${ac_cv_header_tiffio_h+set}" = set; then
12862 echo $ECHO_N "(cached) $ECHO_C" >&6
12864 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12865 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
12867 # Is the header compilable?
12868 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12869 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
12870 cat >conftest.
$ac_ext <<_ACEOF
12873 cat confdefs.h
>>conftest.
$ac_ext
12874 cat >>conftest.
$ac_ext <<_ACEOF
12875 /* end confdefs.h. */
12876 $ac_includes_default
12877 #include <tiffio.h>
12879 rm -f conftest.
$ac_objext
12880 if { (ac_try
="$ac_compile"
12881 case "(($ac_try" in
12882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_compile") 2>conftest.er1
12888 grep -v '^ *+' conftest.er1 >conftest.err
12890 cat conftest.err >&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } && {
12893 test -z "$ac_c_werror_flag" ||
12894 test ! -s conftest.err
12895 } && test -s conftest.$ac_objext; then
12896 ac_header_compiler=yes
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12901 ac_header_compiler=no
12904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12906 echo "${ECHO_T}$ac_header_compiler" >&6; }
12908 # Is the header present?
12909 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12910 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
12911 cat >conftest.$ac_ext <<_ACEOF
12914 cat confdefs.h >>conftest.$ac_ext
12915 cat >>conftest.$ac_ext <<_ACEOF
12916 /* end confdefs.h. */
12917 #include <tiffio.h>
12919 if { (ac_try="$ac_cpp conftest.$ac_ext"
12920 case "(($ac_try" in
12921 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12922 *) ac_try_echo
=$ac_try;;
12924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12927 grep -v '^ *+' conftest.er1
>conftest.err
12929 cat conftest.err
>&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } >/dev
/null
&& {
12932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12933 test ! -s conftest.err
12935 ac_header_preproc
=yes
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.
$ac_ext >&5
12940 ac_header_preproc
=no
12943 rm -f conftest.err conftest.
$ac_ext
12944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12945 echo "${ECHO_T}$ac_header_preproc" >&6; }
12947 # So? What about this header?
12948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12950 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12951 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12952 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12953 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12954 ac_header_preproc
=yes
12957 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12958 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12959 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12960 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12961 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12962 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12963 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12964 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12965 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12966 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12967 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12968 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12972 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
12973 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
12974 if test "${ac_cv_header_tiffio_h+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12977 ac_cv_header_tiffio_h
=$ac_header_preproc
12979 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12980 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
12983 if test $ac_cv_header_tiffio_h = yes; then
12985 # At least one tiff package requires the jpeg library.
12986 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
12987 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12988 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
12989 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12990 echo $ECHO_N "(cached) $ECHO_C" >&6
12992 ac_check_lib_save_LIBS
=$LIBS
12993 LIBS
="-ltiff $tifflibs $LIBS"
12994 cat >conftest.
$ac_ext <<_ACEOF
12997 cat confdefs.h
>>conftest.
$ac_ext
12998 cat >>conftest.
$ac_ext <<_ACEOF
12999 /* end confdefs.h. */
13001 /* Override any GCC internal prototype to avoid an error.
13002 Use char because int might match the return type of a GCC
13003 builtin and then its argument prototype would still apply. */
13007 char TIFFGetVersion ();
13011 return TIFFGetVersion ();
13016 rm -f conftest.
$ac_objext conftest
$ac_exeext
13017 if { (ac_try
="$ac_link"
13018 case "(($ac_try" in
13019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13020 *) ac_try_echo=$ac_try;;
13022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13023 (eval "$ac_link") 2>conftest.er1
13025 grep -v '^ *+' conftest.er1 >conftest.err
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } && {
13030 test -z "$ac_c_werror_flag" ||
13031 test ! -s conftest.err
13032 } && test -s conftest$ac_exeext &&
13033 $as_test_x conftest$ac_exeext; then
13034 ac_cv_lib_tiff_TIFFGetVersion=yes
13036 echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13039 ac_cv_lib_tiff_TIFFGetVersion=no
13042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13043 conftest$ac_exeext conftest.$ac_ext
13044 LIBS=$ac_check_lib_save_LIBS
13046 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13047 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13048 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13057 if test "${HAVE_TIFF}" = "yes"; then
13059 cat >>confdefs.h <<\_ACEOF
13060 #define HAVE_TIFF 1
13066 ### Use -lgif if available, unless `--with-gif=no
'.
13068 if test "${HAVE_X11}" = "yes"; then
13069 if test "${with_gif}" != "no"; then
13070 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13071 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13072 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13073 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13076 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13077 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13079 # Is the header compilable?
13080 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13081 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13082 cat >conftest.$ac_ext <<_ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13088 $ac_includes_default
13089 #include <gif_lib.h>
13091 rm -f conftest.$ac_objext
13092 if { (ac_try="$ac_compile"
13093 case "(($ac_try" in
13094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_compile") 2>conftest.er1
13100 grep -v '^
*+' conftest.er1 >conftest.err
13102 cat conftest.err >&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } && {
13105 test -z "$ac_c_werror_flag" ||
13106 test ! -s conftest.err
13107 } && test -s conftest.$ac_objext; then
13108 ac_header_compiler=yes
13110 echo "$as_me: failed program was:" >&5
13111 sed 's
/^
/|
/' conftest.$ac_ext >&5
13113 ac_header_compiler=no
13116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13118 echo "${ECHO_T}$ac_header_compiler" >&6; }
13120 # Is the header present?
13121 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13122 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13123 cat >conftest.$ac_ext <<_ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h. */
13129 #include <gif_lib.h>
13131 if { (ac_try="$ac_cpp conftest.$ac_ext"
13132 case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13139 grep -v '^
*+' conftest.er1 >conftest.err
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } >/dev/null && {
13144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13145 test ! -s conftest.err
13147 ac_header_preproc=yes
13149 echo "$as_me: failed program was:" >&5
13150 sed 's
/^
/|
/' conftest.$ac_ext >&5
13152 ac_header_preproc=no
13155 rm -f conftest.err conftest.$ac_ext
13156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13157 echo "${ECHO_T}$ac_header_preproc" >&6; }
13159 # So? What about this header?
13160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13162 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13163 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13164 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
13165 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
13166 ac_header_preproc=yes
13169 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13170 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13172 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13174 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13175 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13176 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13177 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
13178 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
13179 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13180 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13184 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13185 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13186 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 ac_cv_header_gif_lib_h=$ac_header_preproc
13191 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13192 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13195 if test $ac_cv_header_gif_lib_h = yes; then
13196 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13197 # Earlier versions can crash Emacs.
13198 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13199 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13200 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13203 ac_check_lib_save_LIBS=$LIBS
13204 LIBS="-lungif $LIBS"
13205 cat >conftest.$ac_ext <<_ACEOF
13208 cat confdefs.h >>conftest.$ac_ext
13209 cat >>conftest.$ac_ext <<_ACEOF
13210 /* end confdefs.h. */
13212 /* Override any GCC internal prototype to avoid an error.
13213 Use char because int might match the return type of a GCC
13214 builtin and then its argument prototype would still apply. */
13218 char EGifPutExtensionLast ();
13222 return EGifPutExtensionLast ();
13227 rm -f conftest.$ac_objext conftest$ac_exeext
13228 if { (ac_try="$ac_link"
13229 case "(($ac_try" in
13230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231 *) ac_try_echo=$ac_try;;
13233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13234 (eval "$ac_link") 2>conftest.er1
13236 grep -v '^
*+' conftest.er1 >conftest.err
13238 cat conftest.err >&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } && {
13241 test -z "$ac_c_werror_flag" ||
13242 test ! -s conftest.err
13243 } && test -s conftest$ac_exeext &&
13244 $as_test_x conftest$ac_exeext; then
13245 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13247 echo "$as_me: failed program was:" >&5
13248 sed 's
/^
/|
/' conftest.$ac_ext >&5
13250 ac_cv_lib_ungif_EGifPutExtensionLast=no
13253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13254 conftest$ac_exeext conftest.$ac_ext
13255 LIBS=$ac_check_lib_save_LIBS
13257 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13258 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13259 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13268 if test "${HAVE_GIF}" = "yes"; then
13270 cat >>confdefs.h <<\_ACEOF
13277 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13278 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13279 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13280 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13284 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13286 # Is the header compilable?
13287 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13288 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13289 cat >conftest.$ac_ext <<_ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 $ac_includes_default
13296 #include <malloc/malloc.h>
13298 rm -f conftest.$ac_objext
13299 if { (ac_try="$ac_compile"
13300 case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_compile") 2>conftest.er1
13307 grep -v '^
*+' conftest.er1 >conftest.err
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } && {
13312 test -z "$ac_c_werror_flag" ||
13313 test ! -s conftest.err
13314 } && test -s conftest.$ac_objext; then
13315 ac_header_compiler=yes
13317 echo "$as_me: failed program was:" >&5
13318 sed 's
/^
/|
/' conftest.$ac_ext >&5
13320 ac_header_compiler=no
13323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13325 echo "${ECHO_T}$ac_header_compiler" >&6; }
13327 # Is the header present?
13328 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13329 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13330 cat >conftest.$ac_ext <<_ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h. */
13336 #include <malloc/malloc.h>
13338 if { (ac_try="$ac_cpp conftest.$ac_ext"
13339 case "(($ac_try" in
13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341 *) ac_try_echo=$ac_try;;
13343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13346 grep -v '^
*+' conftest.er1 >conftest.err
13348 cat conftest.err >&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } >/dev/null && {
13351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13352 test ! -s conftest.err
13354 ac_header_preproc=yes
13356 echo "$as_me: failed program was:" >&5
13357 sed 's
/^
/|
/' conftest.$ac_ext >&5
13359 ac_header_preproc=no
13362 rm -f conftest.err conftest.$ac_ext
13363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13364 echo "${ECHO_T}$ac_header_preproc" >&6; }
13366 # So? What about this header?
13367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13369 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13370 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13371 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&5
13372 echo "$as_me: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&2;}
13373 ac_header_preproc=yes
13376 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13377 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13378 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13379 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13380 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13381 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13382 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13383 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13384 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&5
13385 echo "$as_me: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&2;}
13386 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13387 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13391 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13392 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13393 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13396 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13398 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13399 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13402 if test $ac_cv_header_malloc_malloc_h = yes; then
13404 cat >>confdefs.h <<\_ACEOF
13405 #define HAVE_MALLOC_MALLOC_H 1
13412 ### Use Mac OS X Carbon API to implement GUI.
13413 if test "${HAVE_CARBON}" = "yes"; then
13415 cat >>confdefs.h <<\_ACEOF
13416 #define HAVE_CARBON 1
13419 ## Specify the install directory
13421 if test "${carbon_appdir_x}" != ""; then
13422 case ${carbon_appdir_x} in
13423 y | ye | yes) carbon_appdir=/Applications ;;
13424 * ) carbon_appdir=${carbon_appdir_x} ;;
13427 # We also have mouse menus.
13431 ### Use session management (-lSM -lICE) if available
13433 if test "${HAVE_X11}" = "yes"; then
13434 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13435 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13436 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
13437 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13438 echo $ECHO_N "(cached) $ECHO_C" >&6
13440 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13441 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
13443 # Is the header compilable?
13444 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13445 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
13446 cat >conftest.$ac_ext <<_ACEOF
13449 cat confdefs.h >>conftest.$ac_ext
13450 cat >>conftest.$ac_ext <<_ACEOF
13451 /* end confdefs.h. */
13452 $ac_includes_default
13453 #include <X11/SM/SMlib.h>
13455 rm -f conftest.$ac_objext
13456 if { (ac_try="$ac_compile"
13457 case "(($ac_try" in
13458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459 *) ac_try_echo=$ac_try;;
13461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13462 (eval "$ac_compile") 2>conftest.er1
13464 grep -v '^
*+' conftest.er1 >conftest.err
13466 cat conftest.err >&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } && {
13469 test -z "$ac_c_werror_flag" ||
13470 test ! -s conftest.err
13471 } && test -s conftest.$ac_objext; then
13472 ac_header_compiler=yes
13474 echo "$as_me: failed program was:" >&5
13475 sed 's
/^
/|
/' conftest.$ac_ext >&5
13477 ac_header_compiler=no
13480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13481 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13482 echo "${ECHO_T}$ac_header_compiler" >&6; }
13484 # Is the header present?
13485 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13486 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
13487 cat >conftest.$ac_ext <<_ACEOF
13490 cat confdefs.h >>conftest.$ac_ext
13491 cat >>conftest.$ac_ext <<_ACEOF
13492 /* end confdefs.h. */
13493 #include <X11/SM/SMlib.h>
13495 if { (ac_try="$ac_cpp conftest.$ac_ext"
13496 case "(($ac_try" in
13497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498 *) ac_try_echo=$ac_try;;
13500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13503 grep -v '^
*+' conftest.er1 >conftest.err
13505 cat conftest.err >&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } >/dev/null && {
13508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13509 test ! -s conftest.err
13511 ac_header_preproc=yes
13513 echo "$as_me: failed program was:" >&5
13514 sed 's
/^
/|
/' conftest.$ac_ext >&5
13516 ac_header_preproc=no
13519 rm -f conftest.err conftest.$ac_ext
13520 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13521 echo "${ECHO_T}$ac_header_preproc" >&6; }
13523 # So? What about this header?
13524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13526 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13527 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13528 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&5
13529 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&2;}
13530 ac_header_preproc=yes
13533 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13534 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13535 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13536 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13537 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13538 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13539 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13540 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13541 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&5
13542 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&2;}
13543 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13544 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13548 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13549 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
13550 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13553 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13555 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13556 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
13559 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13560 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13561 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
13562 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13563 echo $ECHO_N "(cached) $ECHO_C" >&6
13565 ac_check_lib_save_LIBS=$LIBS
13566 LIBS="-lSM -lICE $LIBS"
13567 cat >conftest.$ac_ext <<_ACEOF
13570 cat confdefs.h >>conftest.$ac_ext
13571 cat >>conftest.$ac_ext <<_ACEOF
13572 /* end confdefs.h. */
13574 /* Override any GCC internal prototype to avoid an error.
13575 Use char because int might match the return type of a GCC
13576 builtin and then its argument prototype would still apply. */
13580 char SmcOpenConnection ();
13584 return SmcOpenConnection ();
13589 rm -f conftest.$ac_objext conftest$ac_exeext
13590 if { (ac_try="$ac_link"
13591 case "(($ac_try" in
13592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596 (eval "$ac_link") 2>conftest.er1
13598 grep -v '^
*+' conftest.er1 >conftest.err
13600 cat conftest.err >&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } && {
13603 test -z "$ac_c_werror_flag" ||
13604 test ! -s conftest.err
13605 } && test -s conftest$ac_exeext &&
13606 $as_test_x conftest$ac_exeext; then
13607 ac_cv_lib_SM_SmcOpenConnection=yes
13609 echo "$as_me: failed program was:" >&5
13610 sed 's
/^
/|
/' conftest.$ac_ext >&5
13612 ac_cv_lib_SM_SmcOpenConnection=no
13615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13616 conftest$ac_exeext conftest.$ac_ext
13617 LIBS=$ac_check_lib_save_LIBS
13619 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13620 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13621 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13629 if test "${HAVE_X_SM}" = "yes"; then
13631 cat >>confdefs.h <<\_ACEOF
13632 #define HAVE_X_SM 1
13637 *) LIBS="-lSM -lICE $LIBS" ;;
13642 # If netdb.h doesn't
declare h_errno
, we must
declare it by hand.
13643 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13644 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
13645 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13648 cat >conftest.
$ac_ext <<_ACEOF
13651 cat confdefs.h
>>conftest.
$ac_ext
13652 cat >>conftest.
$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13663 rm -f conftest.
$ac_objext conftest
$ac_exeext
13664 if { (ac_try
="$ac_link"
13665 case "(($ac_try" in
13666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13667 *) ac_try_echo=$ac_try;;
13669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13670 (eval "$ac_link") 2>conftest.er1
13672 grep -v '^ *+' conftest.er1 >conftest.err
13674 cat conftest.err >&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); } && {
13677 test -z "$ac_c_werror_flag" ||
13678 test ! -s conftest.err
13679 } && test -s conftest$ac_exeext &&
13680 $as_test_x conftest$ac_exeext; then
13681 emacs_cv_netdb_declares_h_errno=yes
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13686 emacs_cv_netdb_declares_h_errno=no
13689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13690 conftest$ac_exeext conftest.$ac_ext
13692 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13693 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
13694 if test $emacs_cv_netdb_declares_h_errno = yes; then
13696 cat >>confdefs.h <<\_ACEOF
13697 #define HAVE_H_ERRNO 1
13702 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13703 # for constant arguments. Useless!
13704 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
13705 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
13706 if test "${ac_cv_working_alloca_h+set}" = set; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 cat >conftest.$ac_ext <<_ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h. */
13715 #include <alloca.h>
13719 char *p = (char *) alloca (2 * sizeof (int));
13725 rm -f conftest.$ac_objext conftest$ac_exeext
13726 if { (ac_try="$ac_link"
13727 case "(($ac_try" in
13728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13729 *) ac_try_echo
=$ac_try;;
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_link") 2>conftest.er1
13734 grep -v '^ *+' conftest.er1
>conftest.err
13736 cat conftest.err
>&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } && {
13739 test -z "$ac_c_werror_flag" ||
13740 test ! -s conftest.err
13741 } && test -s conftest
$ac_exeext &&
13742 $as_test_x conftest
$ac_exeext; then
13743 ac_cv_working_alloca_h
=yes
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.
$ac_ext >&5
13748 ac_cv_working_alloca_h
=no
13751 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
13752 conftest
$ac_exeext conftest.
$ac_ext
13754 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13755 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
13756 if test $ac_cv_working_alloca_h = yes; then
13758 cat >>confdefs.h
<<\_ACEOF
13759 #define HAVE_ALLOCA_H 1
13764 { echo "$as_me:$LINENO: checking for alloca" >&5
13765 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
13766 if test "${ac_cv_func_alloca_works+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 cat >conftest.
$ac_ext <<_ACEOF
13772 cat confdefs.h
>>conftest.
$ac_ext
13773 cat >>conftest.
$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13776 # define alloca __builtin_alloca
13779 # include <malloc.h>
13780 # define alloca _alloca
13782 # ifdef HAVE_ALLOCA_H
13783 # include <alloca.h>
13788 # ifndef alloca /* predefined by HP cc +Olibcalls */
13799 char *p = (char *) alloca (1);
13805 rm -f conftest.
$ac_objext conftest
$ac_exeext
13806 if { (ac_try
="$ac_link"
13807 case "(($ac_try" in
13808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_link") 2>conftest.er1
13814 grep -v '^ *+' conftest.er1 >conftest.err
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } && {
13819 test -z "$ac_c_werror_flag" ||
13820 test ! -s conftest.err
13821 } && test -s conftest$ac_exeext &&
13822 $as_test_x conftest$ac_exeext; then
13823 ac_cv_func_alloca_works=yes
13825 echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13828 ac_cv_func_alloca_works=no
13831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13832 conftest$ac_exeext conftest.$ac_ext
13834 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13835 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
13837 if test $ac_cv_func_alloca_works = yes; then
13839 cat >>confdefs.h <<\_ACEOF
13840 #define HAVE_ALLOCA 1
13844 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13845 # that cause trouble. Some versions do not even contain alloca or
13846 # contain a buggy version. If you still want to use their alloca,
13847 # use ar to extract alloca.o from them instead of compiling alloca.c.
13849 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13851 cat >>confdefs.h <<\_ACEOF
13856 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
13857 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
13858 if test "${ac_cv_os_cray+set}" = set; then
13859 echo $ECHO_N "(cached
) $ECHO_C" >&6
13861 cat >conftest.$ac_ext <<_ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 #if defined CRAY && ! defined CRAY2
13874 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
13875 $EGREP "webecray
" >/dev/null 2>&1; then
13883 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
13884 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
13885 if test $ac_cv_os_cray = yes; then
13886 for ac_func in _getb67 GETB67 getb67; do
13887 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
13888 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
13889 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
13890 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
13891 echo $ECHO_N "(cached
) $ECHO_C" >&6
13893 cat >conftest.$ac_ext <<_ACEOF
13896 cat confdefs.h >>conftest.$ac_ext
13897 cat >>conftest.$ac_ext <<_ACEOF
13898 /* end confdefs.h. */
13899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13901 #define $ac_func innocuous_$ac_func
13903 /* System header to define __stub macros and hopefully few prototypes,
13904 which can conflict with char $ac_func (); below.
13905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13906 <limits.h> exists even on freestanding compilers. */
13909 # include <limits.h>
13911 # include <assert.h>
13916 /* Override any GCC internal prototype to avoid an error.
13917 Use char because int might match the return type of a GCC
13918 builtin and then its argument prototype would still apply. */
13923 /* The GNU C library defines this for functions which it implements
13924 to always fail with ENOSYS. Some functions are actually named
13925 something starting with __ and the normal name is an alias. */
13926 #if defined __stub_$ac_func || defined __stub___$ac_func
13933 return $ac_func ();
13938 rm -f conftest.$ac_objext conftest$ac_exeext
13939 if { (ac_try="$ac_link"
13940 case "(($ac_try" in
13941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13942 *) ac_try_echo=$ac_try;;
13944 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
13945 (eval "$ac_link") 2>conftest.er1
13947 grep -v '^ *+' conftest.er1 >conftest.err
13949 cat conftest.err >&5
13950 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
13951 (exit $ac_status); } && {
13952 test -z "$ac_c_werror_flag" ||
13953 test ! -s conftest.err
13954 } && test -s conftest$ac_exeext &&
13955 $as_test_x conftest$ac_exeext; then
13956 eval "$as_ac_var=yes"
13958 echo "$as_me: failed program was
:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13961 eval "$as_ac_var=no
"
13964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13965 conftest$ac_exeext conftest.$ac_ext
13967 ac_res=`eval echo '${'$as_ac_var'}'`
13968 { echo "$as_me:$LINENO: result
: $ac_res" >&5
13969 echo "${ECHO_T}$ac_res" >&6; }
13970 if test `eval echo '${'$as_ac_var'}'` = yes; then
13972 cat >>confdefs.h <<_ACEOF
13973 #define CRAY_STACKSEG_END $ac_func
13982 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
13983 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
13984 if test "${ac_cv_c_stack_direction+set}" = set; then
13985 echo $ECHO_N "(cached
) $ECHO_C" >&6
13987 if test "$cross_compiling" = yes; then
13988 ac_cv_c_stack_direction=0
13990 cat >conftest.$ac_ext <<_ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h. */
13996 $ac_includes_default
13998 find_stack_direction ()
14000 static char *addr = 0;
14005 return find_stack_direction ();
14008 return (&dummy > addr) ? 1 : -1;
14014 return find_stack_direction () < 0;
14017 rm -f conftest$ac_exeext
14018 if { (ac_try="$ac_link"
14019 case "(($ac_try" in
14020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14021 *) ac_try_echo=$ac_try;;
14023 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14024 (eval "$ac_link") 2>&5
14026 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14028 { (case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14032 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14033 (eval "$ac_try") 2>&5
14035 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 ac_cv_c_stack_direction=1
14039 echo "$as_me: program exited with status
$ac_status" >&5
14040 echo "$as_me: failed program was
:" >&5
14041 sed 's/^/| /' conftest.$ac_ext >&5
14043 ( exit $ac_status )
14044 ac_cv_c_stack_direction=-1
14046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14051 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14052 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14054 cat >>confdefs.h <<_ACEOF
14055 #define STACK_DIRECTION $ac_cv_c_stack_direction
14062 # fmod, logb, and frexp are found in -lm on most systems.
14063 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14065 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14066 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14067 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14068 echo $ECHO_N "(cached
) $ECHO_C" >&6
14070 ac_check_lib_save_LIBS=$LIBS
14072 cat >conftest.$ac_ext <<_ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14079 /* Override any GCC internal prototype to avoid an error.
14080 Use char because int might match the return type of a GCC
14081 builtin and then its argument prototype would still apply. */
14094 rm -f conftest.$ac_objext conftest$ac_exeext
14095 if { (ac_try="$ac_link"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14100 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_link") 2>conftest.er1
14103 grep -v '^ *+' conftest.er1 >conftest.err
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14107 (exit $ac_status); } && {
14108 test -z "$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14110 } && test -s conftest$ac_exeext &&
14111 $as_test_x conftest$ac_exeext; then
14112 ac_cv_lib_m_sqrt=yes
14114 echo "$as_me: failed program was
:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14117 ac_cv_lib_m_sqrt=no
14120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14121 conftest$ac_exeext conftest.$ac_ext
14122 LIBS=$ac_check_lib_save_LIBS
14124 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
14125 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14126 if test $ac_cv_lib_m_sqrt = yes; then
14127 cat >>confdefs.h <<_ACEOF
14128 #define HAVE_LIBM 1
14136 # Check for mail-locking functions in a "mail" library. Probably this should
14137 # have the same check as for liblockfile below.
14139 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
14140 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
14141 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14142 echo $ECHO_N "(cached
) $ECHO_C" >&6
14144 ac_check_lib_save_LIBS=$LIBS
14145 LIBS="-lmail $LIBS"
14146 cat >conftest.$ac_ext <<_ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h. */
14153 /* Override any GCC internal prototype to avoid an error.
14154 Use char because int might match the return type of a GCC
14155 builtin and then its argument prototype would still apply. */
14163 return maillock ();
14168 rm -f conftest.$ac_objext conftest$ac_exeext
14169 if { (ac_try="$ac_link"
14170 case "(($ac_try" in
14171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172 *) ac_try_echo=$ac_try;;
14174 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14175 (eval "$ac_link") 2>conftest.er1
14177 grep -v '^ *+' conftest.er1 >conftest.err
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14181 (exit $ac_status); } && {
14182 test -z "$ac_c_werror_flag" ||
14183 test ! -s conftest.err
14184 } && test -s conftest$ac_exeext &&
14185 $as_test_x conftest$ac_exeext; then
14186 ac_cv_lib_mail_maillock=yes
14188 echo "$as_me: failed program was
:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14191 ac_cv_lib_mail_maillock=no
14194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14195 conftest$ac_exeext conftest.$ac_ext
14196 LIBS=$ac_check_lib_save_LIBS
14198 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
14199 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14200 if test $ac_cv_lib_mail_maillock = yes; then
14201 cat >>confdefs.h <<_ACEOF
14202 #define HAVE_LIBMAIL 1
14205 LIBS="-lmail $LIBS"
14210 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
14211 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
14212 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14213 echo $ECHO_N "(cached
) $ECHO_C" >&6
14215 ac_check_lib_save_LIBS=$LIBS
14216 LIBS="-llockfile $LIBS"
14217 cat >conftest.$ac_ext <<_ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14224 /* Override any GCC internal prototype to avoid an error.
14225 Use char because int might match the return type of a GCC
14226 builtin and then its argument prototype would still apply. */
14234 return maillock ();
14239 rm -f conftest.$ac_objext conftest$ac_exeext
14240 if { (ac_try="$ac_link"
14241 case "(($ac_try" in
14242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14243 *) ac_try_echo=$ac_try;;
14245 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14246 (eval "$ac_link") 2>conftest.er1
14248 grep -v '^ *+' conftest.er1 >conftest.err
14250 cat conftest.err >&5
14251 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14252 (exit $ac_status); } && {
14253 test -z "$ac_c_werror_flag" ||
14254 test ! -s conftest.err
14255 } && test -s conftest$ac_exeext &&
14256 $as_test_x conftest$ac_exeext; then
14257 ac_cv_lib_lockfile_maillock=yes
14259 echo "$as_me: failed program was
:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14262 ac_cv_lib_lockfile_maillock=no
14265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14266 conftest$ac_exeext conftest.$ac_ext
14267 LIBS=$ac_check_lib_save_LIBS
14269 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
14270 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14271 if test $ac_cv_lib_lockfile_maillock = yes; then
14272 cat >>confdefs.h <<_ACEOF
14273 #define HAVE_LIBLOCKFILE 1
14276 LIBS="-llockfile $LIBS"
14280 # If we have the shared liblockfile, assume we must use it for mail
14281 # locking (e.g. Debian). If we couldn't link against liblockfile
14282 # (no liblockfile.a installed), ensure that we don't need to.
14283 if test "$ac_cv_lib_lockfile_maillock" = no; then
14284 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
14285 set dummy liblockfile.so; ac_word=$2
14286 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14287 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14288 if test "${ac_cv_prog_liblockfile+set}" = set; then
14289 echo $ECHO_N "(cached
) $ECHO_C" >&6
14291 if test -n "$liblockfile"; then
14292 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14295 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
14296 for as_dir in $as_dummy
14299 test -z "$as_dir" && as_dir=.
14300 for ac_exec_ext in '' $ac_executable_extensions; do
14301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14302 ac_cv_prog_liblockfile="yes"
14303 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14310 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
14313 liblockfile=$ac_cv_prog_liblockfile
14314 if test -n "$liblockfile"; then
14315 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
14316 echo "${ECHO_T}$liblockfile" >&6; }
14318 { echo "$as_me:$LINENO: result
: no
" >&5
14319 echo "${ECHO_T}no
" >&6; }
14323 if test $ac_cv_prog_liblockfile = yes; then
14324 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
14325 This probably means that movemail could lose mail.
14326 There may be a \`development' package to
install containing liblockfile.
" >&5
14327 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
14328 This probably means that movemail could lose mail.
14329 There may be a \`development' package to
install containing liblockfile.
" >&2;}
14330 { (exit 1); exit 1; }; }
14335 for ac_func in touchlock
14337 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14338 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14339 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14340 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14341 echo $ECHO_N "(cached
) $ECHO_C" >&6
14343 cat >conftest.$ac_ext <<_ACEOF
14346 cat confdefs.h >>conftest.$ac_ext
14347 cat >>conftest.$ac_ext <<_ACEOF
14348 /* end confdefs.h. */
14349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14351 #define $ac_func innocuous_$ac_func
14353 /* System header to define __stub macros and hopefully few prototypes,
14354 which can conflict with char $ac_func (); below.
14355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14356 <limits.h> exists even on freestanding compilers. */
14359 # include <limits.h>
14361 # include <assert.h>
14366 /* Override any GCC internal prototype to avoid an error.
14367 Use char because int might match the return type of a GCC
14368 builtin and then its argument prototype would still apply. */
14373 /* The GNU C library defines this for functions which it implements
14374 to always fail with ENOSYS. Some functions are actually named
14375 something starting with __ and the normal name is an alias. */
14376 #if defined __stub_$ac_func || defined __stub___$ac_func
14383 return $ac_func ();
14388 rm -f conftest.$ac_objext conftest$ac_exeext
14389 if { (ac_try="$ac_link"
14390 case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_link") 2>conftest.er1
14397 grep -v '^ *+' conftest.er1 >conftest.err
14399 cat conftest.err >&5
14400 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14401 (exit $ac_status); } && {
14402 test -z "$ac_c_werror_flag" ||
14403 test ! -s conftest.err
14404 } && test -s conftest$ac_exeext &&
14405 $as_test_x conftest$ac_exeext; then
14406 eval "$as_ac_var=yes"
14408 echo "$as_me: failed program was
:" >&5
14409 sed 's/^/| /' conftest.$ac_ext >&5
14411 eval "$as_ac_var=no
"
14414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14415 conftest$ac_exeext conftest.$ac_ext
14417 ac_res=`eval echo '${'$as_ac_var'}'`
14418 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14419 echo "${ECHO_T}$ac_res" >&6; }
14420 if test `eval echo '${'$as_ac_var'}'` = yes; then
14421 cat >>confdefs.h <<_ACEOF
14422 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14429 for ac_header in maillock.h
14431 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
14432 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14433 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14434 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14435 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14436 echo $ECHO_N "(cached
) $ECHO_C" >&6
14438 ac_res=`eval echo '${'$as_ac_Header'}'`
14439 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14440 echo "${ECHO_T}$ac_res" >&6; }
14442 # Is the header compilable?
14443 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
14444 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
14445 cat >conftest.$ac_ext <<_ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14451 $ac_includes_default
14452 #include <$ac_header>
14454 rm -f conftest.$ac_objext
14455 if { (ac_try="$ac_compile"
14456 case "(($ac_try" in
14457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14458 *) ac_try_echo=$ac_try;;
14460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14461 (eval "$ac_compile") 2>conftest.er1
14463 grep -v '^ *+' conftest.er1 >conftest.err
14465 cat conftest.err >&5
14466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14467 (exit $ac_status); } && {
14468 test -z "$ac_c_werror_flag" ||
14469 test ! -s conftest.err
14470 } && test -s conftest.$ac_objext; then
14471 ac_header_compiler=yes
14473 echo "$as_me: failed program was
:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14476 ac_header_compiler=no
14479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14480 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14481 echo "${ECHO_T}$ac_header_compiler" >&6; }
14483 # Is the header present?
14484 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14485 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
14486 cat >conftest.$ac_ext <<_ACEOF
14489 cat confdefs.h >>conftest.$ac_ext
14490 cat >>conftest.$ac_ext <<_ACEOF
14491 /* end confdefs.h. */
14492 #include <$ac_header>
14494 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14495 case "(($ac_try" in
14496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14497 *) ac_try_echo=$ac_try;;
14499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14500 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14502 grep -v '^ *+' conftest.er1 >conftest.err
14504 cat conftest.err >&5
14505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14506 (exit $ac_status); } >/dev/null && {
14507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14508 test ! -s conftest.err
14510 ac_header_preproc=yes
14512 echo "$as_me: failed program was
:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14515 ac_header_preproc=no
14518 rm -f conftest.err conftest.$ac_ext
14519 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14520 echo "${ECHO_T}$ac_header_preproc" >&6; }
14522 # So? What about this header?
14523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14525 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14526 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14527 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14529 ac_header_preproc=yes
14532 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14533 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14534 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14535 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14536 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14537 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14538 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14539 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14540 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14542 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14543 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14547 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14548 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14549 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14550 echo $ECHO_N "(cached
) $ECHO_C" >&6
14552 eval "$as_ac_Header=\
$ac_header_preproc"
14554 ac_res=`eval echo '${'$as_ac_Header'}'`
14555 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14556 echo "${ECHO_T}$ac_res" >&6; }
14559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14560 cat >>confdefs.h <<_ACEOF
14561 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14637 for ac_func in gethostname getdomainname dup2 \
14638 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14639 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14640 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14641 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14642 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14643 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14644 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14645 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14647 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14648 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14649 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14650 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14651 echo $ECHO_N "(cached
) $ECHO_C" >&6
14653 cat >conftest.$ac_ext <<_ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h. */
14659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14661 #define $ac_func innocuous_$ac_func
14663 /* System header to define __stub macros and hopefully few prototypes,
14664 which can conflict with char $ac_func (); below.
14665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14666 <limits.h> exists even on freestanding compilers. */
14669 # include <limits.h>
14671 # include <assert.h>
14676 /* Override any GCC internal prototype to avoid an error.
14677 Use char because int might match the return type of a GCC
14678 builtin and then its argument prototype would still apply. */
14683 /* The GNU C library defines this for functions which it implements
14684 to always fail with ENOSYS. Some functions are actually named
14685 something starting with __ and the normal name is an alias. */
14686 #if defined __stub_$ac_func || defined __stub___$ac_func
14693 return $ac_func ();
14698 rm -f conftest.$ac_objext conftest$ac_exeext
14699 if { (ac_try="$ac_link"
14700 case "(($ac_try" in
14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_link") 2>conftest.er1
14707 grep -v '^ *+' conftest.er1 >conftest.err
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14711 (exit $ac_status); } && {
14712 test -z "$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14714 } && test -s conftest$ac_exeext &&
14715 $as_test_x conftest$ac_exeext; then
14716 eval "$as_ac_var=yes"
14718 echo "$as_me: failed program was
:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14721 eval "$as_ac_var=no
"
14724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14725 conftest$ac_exeext conftest.$ac_ext
14727 ac_res=`eval echo '${'$as_ac_var'}'`
14728 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14729 echo "${ECHO_T}$ac_res" >&6; }
14730 if test `eval echo '${'$as_ac_var'}'` = yes; then
14731 cat >>confdefs.h <<_ACEOF
14732 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14740 for ac_header in sys/un.h
14742 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
14743 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14744 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14745 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14746 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14747 echo $ECHO_N "(cached
) $ECHO_C" >&6
14749 ac_res=`eval echo '${'$as_ac_Header'}'`
14750 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14751 echo "${ECHO_T}$ac_res" >&6; }
14753 # Is the header compilable?
14754 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
14755 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
14756 cat >conftest.$ac_ext <<_ACEOF
14759 cat confdefs.h >>conftest.$ac_ext
14760 cat >>conftest.$ac_ext <<_ACEOF
14761 /* end confdefs.h. */
14762 $ac_includes_default
14763 #include <$ac_header>
14765 rm -f conftest.$ac_objext
14766 if { (ac_try="$ac_compile"
14767 case "(($ac_try" in
14768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769 *) ac_try_echo=$ac_try;;
14771 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14772 (eval "$ac_compile") 2>conftest.er1
14774 grep -v '^ *+' conftest.er1 >conftest.err
14776 cat conftest.err >&5
14777 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14778 (exit $ac_status); } && {
14779 test -z "$ac_c_werror_flag" ||
14780 test ! -s conftest.err
14781 } && test -s conftest.$ac_objext; then
14782 ac_header_compiler=yes
14784 echo "$as_me: failed program was
:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14787 ac_header_compiler=no
14790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14791 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14792 echo "${ECHO_T}$ac_header_compiler" >&6; }
14794 # Is the header present?
14795 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14796 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
14797 cat >conftest.$ac_ext <<_ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h. */
14803 #include <$ac_header>
14805 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14806 case "(($ac_try" in
14807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808 *) ac_try_echo=$ac_try;;
14810 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14811 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14813 grep -v '^ *+' conftest.er1 >conftest.err
14815 cat conftest.err >&5
14816 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14817 (exit $ac_status); } >/dev/null && {
14818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14819 test ! -s conftest.err
14821 ac_header_preproc=yes
14823 echo "$as_me: failed program was
:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14826 ac_header_preproc=no
14829 rm -f conftest.err conftest.$ac_ext
14830 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14831 echo "${ECHO_T}$ac_header_preproc" >&6; }
14833 # So? What about this header?
14834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14836 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14837 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14838 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14840 ac_header_preproc=yes
14843 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14844 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14845 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14846 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14847 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14848 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14849 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14850 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14851 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14853 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14854 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14858 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14859 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14860 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14861 echo $ECHO_N "(cached
) $ECHO_C" >&6
14863 eval "$as_ac_Header=\
$ac_header_preproc"
14865 ac_res=`eval echo '${'$as_ac_Header'}'`
14866 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14867 echo "${ECHO_T}$ac_res" >&6; }
14870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14871 cat >>confdefs.h <<_ACEOF
14872 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14884 for ac_header in $ac_header_list
14886 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
14887 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14888 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14889 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14890 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14891 echo $ECHO_N "(cached
) $ECHO_C" >&6
14893 ac_res=`eval echo '${'$as_ac_Header'}'`
14894 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14895 echo "${ECHO_T}$ac_res" >&6; }
14897 # Is the header compilable?
14898 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
14899 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
14900 cat >conftest.$ac_ext <<_ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14906 $ac_includes_default
14907 #include <$ac_header>
14909 rm -f conftest.$ac_objext
14910 if { (ac_try="$ac_compile"
14911 case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14915 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_compile") 2>conftest.er1
14918 grep -v '^ *+' conftest.er1 >conftest.err
14920 cat conftest.err >&5
14921 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14922 (exit $ac_status); } && {
14923 test -z "$ac_c_werror_flag" ||
14924 test ! -s conftest.err
14925 } && test -s conftest.$ac_objext; then
14926 ac_header_compiler=yes
14928 echo "$as_me: failed program was
:" >&5
14929 sed 's/^/| /' conftest.$ac_ext >&5
14931 ac_header_compiler=no
14934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14935 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14936 echo "${ECHO_T}$ac_header_compiler" >&6; }
14938 # Is the header present?
14939 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14940 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
14941 cat >conftest.$ac_ext <<_ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14947 #include <$ac_header>
14949 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14950 case "(($ac_try" in
14951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952 *) ac_try_echo=$ac_try;;
14954 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14955 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14957 grep -v '^ *+' conftest.er1 >conftest.err
14959 cat conftest.err >&5
14960 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14961 (exit $ac_status); } >/dev/null && {
14962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14963 test ! -s conftest.err
14965 ac_header_preproc=yes
14967 echo "$as_me: failed program was
:" >&5
14968 sed 's/^/| /' conftest.$ac_ext >&5
14970 ac_header_preproc=no
14973 rm -f conftest.err conftest.$ac_ext
14974 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14975 echo "${ECHO_T}$ac_header_preproc" >&6; }
14977 # So? What about this header?
14978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14980 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14981 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14982 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14984 ac_header_preproc=yes
14987 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14988 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14989 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14990 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14991 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14992 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14993 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14994 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14995 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14997 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14998 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15002 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15003 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15004 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15005 echo $ECHO_N "(cached
) $ECHO_C" >&6
15007 eval "$as_ac_Header=\
$ac_header_preproc"
15009 ac_res=`eval echo '${'$as_ac_Header'}'`
15010 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15011 echo "${ECHO_T}$ac_res" >&6; }
15014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15015 cat >>confdefs.h <<_ACEOF
15016 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15031 for ac_func in $ac_func_list
15033 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15034 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15035 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15036 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15037 echo $ECHO_N "(cached
) $ECHO_C" >&6
15039 cat >conftest.$ac_ext <<_ACEOF
15042 cat confdefs.h >>conftest.$ac_ext
15043 cat >>conftest.$ac_ext <<_ACEOF
15044 /* end confdefs.h. */
15045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15047 #define $ac_func innocuous_$ac_func
15049 /* System header to define __stub macros and hopefully few prototypes,
15050 which can conflict with char $ac_func (); below.
15051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15052 <limits.h> exists even on freestanding compilers. */
15055 # include <limits.h>
15057 # include <assert.h>
15062 /* Override any GCC internal prototype to avoid an error.
15063 Use char because int might match the return type of a GCC
15064 builtin and then its argument prototype would still apply. */
15069 /* The GNU C library defines this for functions which it implements
15070 to always fail with ENOSYS. Some functions are actually named
15071 something starting with __ and the normal name is an alias. */
15072 #if defined __stub_$ac_func || defined __stub___$ac_func
15079 return $ac_func ();
15084 rm -f conftest.$ac_objext conftest$ac_exeext
15085 if { (ac_try="$ac_link"
15086 case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15090 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_link") 2>conftest.er1
15093 grep -v '^ *+' conftest.er1 >conftest.err
15095 cat conftest.err >&5
15096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15097 (exit $ac_status); } && {
15098 test -z "$ac_c_werror_flag" ||
15099 test ! -s conftest.err
15100 } && test -s conftest$ac_exeext &&
15101 $as_test_x conftest$ac_exeext; then
15102 eval "$as_ac_var=yes"
15104 echo "$as_me: failed program was
:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15107 eval "$as_ac_var=no
"
15110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15111 conftest$ac_exeext conftest.$ac_ext
15113 ac_res=`eval echo '${'$as_ac_var'}'`
15114 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15115 echo "${ECHO_T}$ac_res" >&6; }
15116 if test `eval echo '${'$as_ac_var'}'` = yes; then
15117 cat >>confdefs.h <<_ACEOF
15118 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15140 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
15141 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
15142 if test "${ac_cv_func_working_mktime+set}" = set; then
15143 echo $ECHO_N "(cached
) $ECHO_C" >&6
15145 if test "$cross_compiling" = yes; then
15146 ac_cv_func_working_mktime=no
15148 cat >conftest.$ac_ext <<_ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h. */
15154 /* Test program from Paul Eggert and Tony Leneis. */
15155 #ifdef TIME_WITH_SYS_TIME
15156 # include <sys/time.h>
15159 # ifdef HAVE_SYS_TIME_H
15160 # include <sys/time.h>
15166 #include <stdlib.h>
15168 #ifdef HAVE_UNISTD_H
15169 # include <unistd.h>
15173 # define alarm(X) /* empty */
15176 /* Work around redefinition to rpl_putenv by other config tests. */
15179 static time_t time_t_max;
15180 static time_t time_t_min;
15182 /* Values we'll use to set the TZ environment variable. */
15183 static char *tz_strings[] = {
15184 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
15185 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
15187 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15189 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15190 Based on a problem report from Andreas Jaeger. */
15192 spring_forward_gap ()
15194 /* glibc (up to about 1998-10-07) failed this test. */
15197 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15198 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15199 on systems that don't support the Olson extension, or don't have the
15200 full zoneinfo tables installed. */
15201 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15210 return mktime (&tm) != (time_t) -1;
15218 return ! (lt = localtime (&now)) || mktime (lt) == now;
15225 return (mktime_test1 (now)
15226 && mktime_test1 ((time_t) (time_t_max - now))
15227 && mktime_test1 ((time_t) (time_t_min + now)));
15233 /* Based on code from Ariel Faigon. */
15243 return tm.tm_mon == 2 && tm.tm_mday == 31;
15252 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15253 now = mktime (&tm);
15254 if (now != (time_t) -1)
15256 struct tm *lt = localtime (&now);
15258 && lt->tm_year == tm.tm_year
15259 && lt->tm_mon == tm.tm_mon
15260 && lt->tm_mday == tm.tm_mday
15261 && lt->tm_hour == tm.tm_hour
15262 && lt->tm_min == tm.tm_min
15263 && lt->tm_sec == tm.tm_sec
15264 && lt->tm_yday == tm.tm_yday
15265 && lt->tm_wday == tm.tm_wday
15266 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15267 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15276 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15277 ignoring leap seconds. */
15278 unsigned long int answer = 2527315200UL;
15282 tm.tm_year = 2050 - 1900;
15285 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15288 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15289 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15290 on systems that don't support the Olson extension, or don't have the
15291 full zoneinfo tables installed. */
15292 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15296 /* Check that the result is either a failure, or close enough
15297 to the correct answer that we can assume the discrepancy is
15298 due to leap seconds. */
15299 return (t == (time_t) -1
15300 || (0 < t && answer - 120 <= t && t <= answer + 120));
15309 /* This test makes some buggy mktime implementations loop.
15310 Give up after 60 seconds; a mktime slower than that
15311 isn't worth using anyway. */
15314 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15317 if ((time_t) -1 < 0)
15318 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15320 delta = time_t_max / 997; /* a suitable prime number */
15321 for (i = 0; i < N_STRINGS; i++)
15324 putenv (tz_strings[i]);
15326 for (t = 0; t <= time_t_max - delta; t += delta)
15327 if (! mktime_test (t))
15329 if (! (mktime_test ((time_t) 1)
15330 && mktime_test ((time_t) (60 * 60))
15331 && mktime_test ((time_t) (60 * 60 * 24))))
15334 for (j = 1; 0 < j; j *= 2)
15335 if (! bigtime_test (j))
15337 if (! bigtime_test (j - 1))
15340 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15343 rm -f conftest$ac_exeext
15344 if { (ac_try="$ac_link"
15345 case "(($ac_try" in
15346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347 *) ac_try_echo=$ac_try;;
15349 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15350 (eval "$ac_link") 2>&5
15352 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15354 { (case "(($ac_try" in
15355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356 *) ac_try_echo=$ac_try;;
15358 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15359 (eval "$ac_try") 2>&5
15361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15362 (exit $ac_status); }; }; then
15363 ac_cv_func_working_mktime=yes
15365 echo "$as_me: program exited with status
$ac_status" >&5
15366 echo "$as_me: failed program was
:" >&5
15367 sed 's/^/| /' conftest.$ac_ext >&5
15369 ( exit $ac_status )
15370 ac_cv_func_working_mktime=no
15372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15377 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
15378 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15379 if test $ac_cv_func_working_mktime = no; then
15380 case " $LIBOBJS " in
15381 *" mktime.
$ac_objext "* ) ;;
15382 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
15388 if test "$ac_cv_func_working_mktime" = no; then
15390 cat >>confdefs.h <<\_ACEOF
15391 #define BROKEN_MKTIME 1
15396 ac_have_func=no # yes means we've found a way to get the load average.
15398 # Make sure getloadavg.c is where it belongs, at configure-time.
15399 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
15400 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
15401 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
15402 { (exit 1); exit 1; }; }
15406 # Check for getloadavg, but be sure not to touch the cache variable.
15407 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
15408 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
15409 if test "${ac_cv_func_getloadavg+set}" = set; then
15410 echo $ECHO_N "(cached
) $ECHO_C" >&6
15412 cat >conftest.$ac_ext <<_ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15420 #define getloadavg innocuous_getloadavg
15422 /* System header to define __stub macros and hopefully few prototypes,
15423 which can conflict with char getloadavg (); below.
15424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15425 <limits.h> exists even on freestanding compilers. */
15428 # include <limits.h>
15430 # include <assert.h>
15435 /* Override any GCC internal prototype to avoid an error.
15436 Use char because int might match the return type of a GCC
15437 builtin and then its argument prototype would still apply. */
15441 char getloadavg ();
15442 /* The GNU C library defines this for functions which it implements
15443 to always fail with ENOSYS. Some functions are actually named
15444 something starting with __ and the normal name is an alias. */
15445 #if defined __stub_getloadavg || defined __stub___getloadavg
15452 return getloadavg ();
15457 rm -f conftest.$ac_objext conftest$ac_exeext
15458 if { (ac_try="$ac_link"
15459 case "(($ac_try" in
15460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461 *) ac_try_echo=$ac_try;;
15463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15464 (eval "$ac_link") 2>conftest.er1
15466 grep -v '^ *+' conftest.er1 >conftest.err
15468 cat conftest.err >&5
15469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15470 (exit $ac_status); } && {
15471 test -z "$ac_c_werror_flag" ||
15472 test ! -s conftest.err
15473 } && test -s conftest$ac_exeext &&
15474 $as_test_x conftest$ac_exeext; then
15475 ac_cv_func_getloadavg=yes
15477 echo "$as_me: failed program was
:" >&5
15478 sed 's/^/| /' conftest.$ac_ext >&5
15480 ac_cv_func_getloadavg=no
15483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15484 conftest$ac_exeext conftest.$ac_ext
15486 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
15487 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
15488 if test $ac_cv_func_getloadavg = yes; then
15493 ) && ac_have_func=yes
15495 # On HPUX9, an unprivileged user can get load averages through this function.
15497 for ac_func in pstat_getdynamic
15499 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15500 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15501 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15502 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15503 echo $ECHO_N "(cached
) $ECHO_C" >&6
15505 cat >conftest.$ac_ext <<_ACEOF
15508 cat confdefs.h >>conftest.$ac_ext
15509 cat >>conftest.$ac_ext <<_ACEOF
15510 /* end confdefs.h. */
15511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15513 #define $ac_func innocuous_$ac_func
15515 /* System header to define __stub macros and hopefully few prototypes,
15516 which can conflict with char $ac_func (); below.
15517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15518 <limits.h> exists even on freestanding compilers. */
15521 # include <limits.h>
15523 # include <assert.h>
15528 /* Override any GCC internal prototype to avoid an error.
15529 Use char because int might match the return type of a GCC
15530 builtin and then its argument prototype would still apply. */
15535 /* The GNU C library defines this for functions which it implements
15536 to always fail with ENOSYS. Some functions are actually named
15537 something starting with __ and the normal name is an alias. */
15538 #if defined __stub_$ac_func || defined __stub___$ac_func
15545 return $ac_func ();
15550 rm -f conftest.$ac_objext conftest$ac_exeext
15551 if { (ac_try="$ac_link"
15552 case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15556 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_link") 2>conftest.er1
15559 grep -v '^ *+' conftest.er1 >conftest.err
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15563 (exit $ac_status); } && {
15564 test -z "$ac_c_werror_flag" ||
15565 test ! -s conftest.err
15566 } && test -s conftest$ac_exeext &&
15567 $as_test_x conftest$ac_exeext; then
15568 eval "$as_ac_var=yes"
15570 echo "$as_me: failed program was
:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15573 eval "$as_ac_var=no
"
15576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15577 conftest$ac_exeext conftest.$ac_ext
15579 ac_res=`eval echo '${'$as_ac_var'}'`
15580 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15581 echo "${ECHO_T}$ac_res" >&6; }
15582 if test `eval echo '${'$as_ac_var'}'` = yes; then
15583 cat >>confdefs.h <<_ACEOF
15584 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15591 # Solaris has libkstat which does not require root.
15593 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
15594 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
15595 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15596 echo $ECHO_N "(cached
) $ECHO_C" >&6
15598 ac_check_lib_save_LIBS=$LIBS
15599 LIBS="-lkstat $LIBS"
15600 cat >conftest.$ac_ext <<_ACEOF
15603 cat confdefs.h >>conftest.$ac_ext
15604 cat >>conftest.$ac_ext <<_ACEOF
15605 /* end confdefs.h. */
15607 /* Override any GCC internal prototype to avoid an error.
15608 Use char because int might match the return type of a GCC
15609 builtin and then its argument prototype would still apply. */
15613 char kstat_open ();
15617 return kstat_open ();
15622 rm -f conftest.$ac_objext conftest$ac_exeext
15623 if { (ac_try="$ac_link"
15624 case "(($ac_try" in
15625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15626 *) ac_try_echo=$ac_try;;
15628 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15629 (eval "$ac_link") 2>conftest.er1
15631 grep -v '^ *+' conftest.er1 >conftest.err
15633 cat conftest.err >&5
15634 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15635 (exit $ac_status); } && {
15636 test -z "$ac_c_werror_flag" ||
15637 test ! -s conftest.err
15638 } && test -s conftest$ac_exeext &&
15639 $as_test_x conftest$ac_exeext; then
15640 ac_cv_lib_kstat_kstat_open=yes
15642 echo "$as_me: failed program was
:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15645 ac_cv_lib_kstat_kstat_open=no
15648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15649 conftest$ac_exeext conftest.$ac_ext
15650 LIBS=$ac_check_lib_save_LIBS
15652 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
15653 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
15654 if test $ac_cv_lib_kstat_kstat_open = yes; then
15655 cat >>confdefs.h <<_ACEOF
15656 #define HAVE_LIBKSTAT 1
15659 LIBS="-lkstat $LIBS"
15663 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15665 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15666 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15667 # to get the right answer into the cache.
15668 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15669 if test $ac_have_func = no; then
15670 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
15671 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
15672 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15673 echo $ECHO_N "(cached
) $ECHO_C" >&6
15675 ac_check_lib_save_LIBS=$LIBS
15677 cat >conftest.$ac_ext <<_ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15684 /* Override any GCC internal prototype to avoid an error.
15685 Use char because int might match the return type of a GCC
15686 builtin and then its argument prototype would still apply. */
15694 return elf_begin ();
15699 rm -f conftest.$ac_objext conftest$ac_exeext
15700 if { (ac_try="$ac_link"
15701 case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15705 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_link") 2>conftest.er1
15708 grep -v '^ *+' conftest.er1 >conftest.err
15710 cat conftest.err >&5
15711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15712 (exit $ac_status); } && {
15713 test -z "$ac_c_werror_flag" ||
15714 test ! -s conftest.err
15715 } && test -s conftest$ac_exeext &&
15716 $as_test_x conftest$ac_exeext; then
15717 ac_cv_lib_elf_elf_begin=yes
15719 echo "$as_me: failed program was
:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15722 ac_cv_lib_elf_elf_begin=no
15725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15726 conftest$ac_exeext conftest.$ac_ext
15727 LIBS=$ac_check_lib_save_LIBS
15729 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
15730 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
15731 if test $ac_cv_lib_elf_elf_begin = yes; then
15736 if test $ac_have_func = no; then
15737 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
15738 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
15739 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15740 echo $ECHO_N "(cached
) $ECHO_C" >&6
15742 ac_check_lib_save_LIBS=$LIBS
15744 cat >conftest.$ac_ext <<_ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h. */
15751 /* Override any GCC internal prototype to avoid an error.
15752 Use char because int might match the return type of a GCC
15753 builtin and then its argument prototype would still apply. */
15761 return kvm_open ();
15766 rm -f conftest.$ac_objext conftest$ac_exeext
15767 if { (ac_try="$ac_link"
15768 case "(($ac_try" in
15769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15772 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15773 (eval "$ac_link") 2>conftest.er1
15775 grep -v '^ *+' conftest.er1 >conftest.err
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15779 (exit $ac_status); } && {
15780 test -z "$ac_c_werror_flag" ||
15781 test ! -s conftest.err
15782 } && test -s conftest$ac_exeext &&
15783 $as_test_x conftest$ac_exeext; then
15784 ac_cv_lib_kvm_kvm_open=yes
15786 echo "$as_me: failed program was
:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15789 ac_cv_lib_kvm_kvm_open=no
15792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15793 conftest$ac_exeext conftest.$ac_ext
15794 LIBS=$ac_check_lib_save_LIBS
15796 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
15797 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
15798 if test $ac_cv_lib_kvm_kvm_open = yes; then
15802 # Check for the 4.4BSD definition of getloadavg.
15803 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
15804 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
15805 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15806 echo $ECHO_N "(cached
) $ECHO_C" >&6
15808 ac_check_lib_save_LIBS=$LIBS
15809 LIBS="-lutil $LIBS"
15810 cat >conftest.$ac_ext <<_ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15817 /* Override any GCC internal prototype to avoid an error.
15818 Use char because int might match the return type of a GCC
15819 builtin and then its argument prototype would still apply. */
15823 char getloadavg ();
15827 return getloadavg ();
15832 rm -f conftest.$ac_objext conftest$ac_exeext
15833 if { (ac_try="$ac_link"
15834 case "(($ac_try" in
15835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15838 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_link") 2>conftest.er1
15841 grep -v '^ *+' conftest.er1 >conftest.err
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15845 (exit $ac_status); } && {
15846 test -z "$ac_c_werror_flag" ||
15847 test ! -s conftest.err
15848 } && test -s conftest$ac_exeext &&
15849 $as_test_x conftest$ac_exeext; then
15850 ac_cv_lib_util_getloadavg=yes
15852 echo "$as_me: failed program was
:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15855 ac_cv_lib_util_getloadavg=no
15858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15859 conftest$ac_exeext conftest.$ac_ext
15860 LIBS=$ac_check_lib_save_LIBS
15862 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
15863 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
15864 if test $ac_cv_lib_util_getloadavg = yes; then
15865 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15870 if test $ac_have_func = no; then
15871 # There is a commonly available library for RS/6000 AIX.
15872 # Since it is not a standard part of AIX, it might be installed locally.
15873 ac_getloadavg_LIBS=$LIBS
15874 LIBS="-L/usr
/local
/lib
$LIBS"
15875 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
15876 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
15877 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15878 echo $ECHO_N "(cached
) $ECHO_C" >&6
15880 ac_check_lib_save_LIBS=$LIBS
15881 LIBS="-lgetloadavg $LIBS"
15882 cat >conftest.$ac_ext <<_ACEOF
15885 cat confdefs.h >>conftest.$ac_ext
15886 cat >>conftest.$ac_ext <<_ACEOF
15887 /* end confdefs.h. */
15889 /* Override any GCC internal prototype to avoid an error.
15890 Use char because int might match the return type of a GCC
15891 builtin and then its argument prototype would still apply. */
15895 char getloadavg ();
15899 return getloadavg ();
15904 rm -f conftest.$ac_objext conftest$ac_exeext
15905 if { (ac_try="$ac_link"
15906 case "(($ac_try" in
15907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908 *) ac_try_echo=$ac_try;;
15910 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15911 (eval "$ac_link") 2>conftest.er1
15913 grep -v '^ *+' conftest.er1 >conftest.err
15915 cat conftest.err >&5
15916 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15917 (exit $ac_status); } && {
15918 test -z "$ac_c_werror_flag" ||
15919 test ! -s conftest.err
15920 } && test -s conftest$ac_exeext &&
15921 $as_test_x conftest$ac_exeext; then
15922 ac_cv_lib_getloadavg_getloadavg=yes
15924 echo "$as_me: failed program was
:" >&5
15925 sed 's/^/| /' conftest.$ac_ext >&5
15927 ac_cv_lib_getloadavg_getloadavg=no
15930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15931 conftest$ac_exeext conftest.$ac_ext
15932 LIBS=$ac_check_lib_save_LIBS
15934 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
15935 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
15936 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15937 LIBS="-lgetloadavg $LIBS"
15939 LIBS=$ac_getloadavg_LIBS
15944 # Make sure it is really in the library, if we think we found it,
15945 # otherwise set up the replacement function.
15947 for ac_func in getloadavg
15949 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15950 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15951 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15952 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15953 echo $ECHO_N "(cached
) $ECHO_C" >&6
15955 cat >conftest.$ac_ext <<_ACEOF
15958 cat confdefs.h >>conftest.$ac_ext
15959 cat >>conftest.$ac_ext <<_ACEOF
15960 /* end confdefs.h. */
15961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15963 #define $ac_func innocuous_$ac_func
15965 /* System header to define __stub macros and hopefully few prototypes,
15966 which can conflict with char $ac_func (); below.
15967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15968 <limits.h> exists even on freestanding compilers. */
15971 # include <limits.h>
15973 # include <assert.h>
15978 /* Override any GCC internal prototype to avoid an error.
15979 Use char because int might match the return type of a GCC
15980 builtin and then its argument prototype would still apply. */
15985 /* The GNU C library defines this for functions which it implements
15986 to always fail with ENOSYS. Some functions are actually named
15987 something starting with __ and the normal name is an alias. */
15988 #if defined __stub_$ac_func || defined __stub___$ac_func
15995 return $ac_func ();
16000 rm -f conftest.$ac_objext conftest$ac_exeext
16001 if { (ac_try="$ac_link"
16002 case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16006 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_link") 2>conftest.er1
16009 grep -v '^ *+' conftest.er1 >conftest.err
16011 cat conftest.err >&5
16012 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16013 (exit $ac_status); } && {
16014 test -z "$ac_c_werror_flag" ||
16015 test ! -s conftest.err
16016 } && test -s conftest$ac_exeext &&
16017 $as_test_x conftest$ac_exeext; then
16018 eval "$as_ac_var=yes"
16020 echo "$as_me: failed program was
:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16023 eval "$as_ac_var=no
"
16026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16027 conftest$ac_exeext conftest.$ac_ext
16029 ac_res=`eval echo '${'$as_ac_var'}'`
16030 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16031 echo "${ECHO_T}$ac_res" >&6; }
16032 if test `eval echo '${'$as_ac_var'}'` = yes; then
16033 cat >>confdefs.h <<_ACEOF
16034 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16038 case " $LIBOBJS " in
16039 *" getloadavg.
$ac_objext "* ) ;;
16040 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16045 cat >>confdefs.h <<\_ACEOF
16046 #define C_GETLOADAVG 1
16049 # Figure out what our getloadavg.c needs.
16051 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16052 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16053 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16054 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16055 echo $ECHO_N "(cached
) $ECHO_C" >&6
16057 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16058 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16060 # Is the header compilable?
16061 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16062 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16063 cat >conftest.$ac_ext <<_ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16069 $ac_includes_default
16070 #include <sys/dg_sys_info.h>
16072 rm -f conftest.$ac_objext
16073 if { (ac_try="$ac_compile"
16074 case "(($ac_try" in
16075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16076 *) ac_try_echo=$ac_try;;
16078 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16079 (eval "$ac_compile") 2>conftest.er1
16081 grep -v '^ *+' conftest.er1 >conftest.err
16083 cat conftest.err >&5
16084 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16085 (exit $ac_status); } && {
16086 test -z "$ac_c_werror_flag" ||
16087 test ! -s conftest.err
16088 } && test -s conftest.$ac_objext; then
16089 ac_header_compiler=yes
16091 echo "$as_me: failed program was
:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16094 ac_header_compiler=no
16097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16098 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16099 echo "${ECHO_T}$ac_header_compiler" >&6; }
16101 # Is the header present?
16102 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16103 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16104 cat >conftest.$ac_ext <<_ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h. */
16110 #include <sys/dg_sys_info.h>
16112 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16113 case "(($ac_try" in
16114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115 *) ac_try_echo=$ac_try;;
16117 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16118 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16120 grep -v '^ *+' conftest.er1 >conftest.err
16122 cat conftest.err >&5
16123 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16124 (exit $ac_status); } >/dev/null && {
16125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16126 test ! -s conftest.err
16128 ac_header_preproc=yes
16130 echo "$as_me: failed program was
:" >&5
16131 sed 's/^/| /' conftest.$ac_ext >&5
16133 ac_header_preproc=no
16136 rm -f conftest.err conftest.$ac_ext
16137 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16138 echo "${ECHO_T}$ac_header_preproc" >&6; }
16140 # So? What about this header?
16141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16143 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16144 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16145 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
16146 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
16147 ac_header_preproc=yes
16150 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
16151 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
16152 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
16153 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
16154 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
16155 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
16156 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16157 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16158 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
16159 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
16160 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
16161 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
16165 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16166 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16167 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16168 echo $ECHO_N "(cached
) $ECHO_C" >&6
16170 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16172 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16173 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16176 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16179 cat >>confdefs.h <<\_ACEOF
16184 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
16185 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
16186 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16187 echo $ECHO_N "(cached
) $ECHO_C" >&6
16189 ac_check_lib_save_LIBS=$LIBS
16191 cat >conftest.$ac_ext <<_ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16198 /* Override any GCC internal prototype to avoid an error.
16199 Use char because int might match the return type of a GCC
16200 builtin and then its argument prototype would still apply. */
16204 char dg_sys_info ();
16208 return dg_sys_info ();
16213 rm -f conftest.$ac_objext conftest$ac_exeext
16214 if { (ac_try="$ac_link"
16215 case "(($ac_try" in
16216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217 *) ac_try_echo=$ac_try;;
16219 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16220 (eval "$ac_link") 2>conftest.er1
16222 grep -v '^ *+' conftest.er1 >conftest.err
16224 cat conftest.err >&5
16225 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16226 (exit $ac_status); } && {
16227 test -z "$ac_c_werror_flag" ||
16228 test ! -s conftest.err
16229 } && test -s conftest$ac_exeext &&
16230 $as_test_x conftest$ac_exeext; then
16231 ac_cv_lib_dgc_dg_sys_info=yes
16233 echo "$as_me: failed program was
:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16236 ac_cv_lib_dgc_dg_sys_info=no
16239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16240 conftest$ac_exeext conftest.$ac_ext
16241 LIBS=$ac_check_lib_save_LIBS
16243 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
16244 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16245 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16246 cat >>confdefs.h <<_ACEOF
16247 #define HAVE_LIBDGC 1
16258 if test "${ac_cv_header_locale_h+set}" = set; then
16259 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16260 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16261 if test "${ac_cv_header_locale_h+set}" = set; then
16262 echo $ECHO_N "(cached
) $ECHO_C" >&6
16264 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16265 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16267 # Is the header compilable?
16268 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
16269 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
16270 cat >conftest.$ac_ext <<_ACEOF
16273 cat confdefs.h >>conftest.$ac_ext
16274 cat >>conftest.$ac_ext <<_ACEOF
16275 /* end confdefs.h. */
16276 $ac_includes_default
16277 #include <locale.h>
16279 rm -f conftest.$ac_objext
16280 if { (ac_try="$ac_compile"
16281 case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16285 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_compile") 2>conftest.er1
16288 grep -v '^ *+' conftest.er1 >conftest.err
16290 cat conftest.err >&5
16291 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16292 (exit $ac_status); } && {
16293 test -z "$ac_c_werror_flag" ||
16294 test ! -s conftest.err
16295 } && test -s conftest.$ac_objext; then
16296 ac_header_compiler=yes
16298 echo "$as_me: failed program was
:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16301 ac_header_compiler=no
16304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16305 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16306 echo "${ECHO_T}$ac_header_compiler" >&6; }
16308 # Is the header present?
16309 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
16310 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
16311 cat >conftest.$ac_ext <<_ACEOF
16314 cat confdefs.h >>conftest.$ac_ext
16315 cat >>conftest.$ac_ext <<_ACEOF
16316 /* end confdefs.h. */
16317 #include <locale.h>
16319 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16320 case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16327 grep -v '^ *+' conftest.er1 >conftest.err
16329 cat conftest.err >&5
16330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16331 (exit $ac_status); } >/dev/null && {
16332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16333 test ! -s conftest.err
16335 ac_header_preproc=yes
16337 echo "$as_me: failed program was
:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16340 ac_header_preproc=no
16343 rm -f conftest.err conftest.$ac_ext
16344 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16345 echo "${ECHO_T}$ac_header_preproc" >&6; }
16347 # So? What about this header?
16348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16350 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16351 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16352 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
16353 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
16354 ac_header_preproc=yes
16357 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
16358 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
16359 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
16360 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
16361 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
16362 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
16363 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16364 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16365 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
16366 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
16367 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
16368 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
16372 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16373 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16374 if test "${ac_cv_header_locale_h+set}" = set; then
16375 echo $ECHO_N "(cached
) $ECHO_C" >&6
16377 ac_cv_header_locale_h=$ac_header_preproc
16379 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16380 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16386 for ac_func in setlocale
16388 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16389 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16390 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16391 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16392 echo $ECHO_N "(cached
) $ECHO_C" >&6
16394 cat >conftest.$ac_ext <<_ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16402 #define $ac_func innocuous_$ac_func
16404 /* System header to define __stub macros and hopefully few prototypes,
16405 which can conflict with char $ac_func (); below.
16406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16407 <limits.h> exists even on freestanding compilers. */
16410 # include <limits.h>
16412 # include <assert.h>
16417 /* Override any GCC internal prototype to avoid an error.
16418 Use char because int might match the return type of a GCC
16419 builtin and then its argument prototype would still apply. */
16424 /* The GNU C library defines this for functions which it implements
16425 to always fail with ENOSYS. Some functions are actually named
16426 something starting with __ and the normal name is an alias. */
16427 #if defined __stub_$ac_func || defined __stub___$ac_func
16434 return $ac_func ();
16439 rm -f conftest.$ac_objext conftest$ac_exeext
16440 if { (ac_try="$ac_link"
16441 case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16445 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_link") 2>conftest.er1
16448 grep -v '^ *+' conftest.er1 >conftest.err
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16452 (exit $ac_status); } && {
16453 test -z "$ac_c_werror_flag" ||
16454 test ! -s conftest.err
16455 } && test -s conftest$ac_exeext &&
16456 $as_test_x conftest$ac_exeext; then
16457 eval "$as_ac_var=yes"
16459 echo "$as_me: failed program was
:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16462 eval "$as_ac_var=no
"
16465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16466 conftest$ac_exeext conftest.$ac_ext
16468 ac_res=`eval echo '${'$as_ac_var'}'`
16469 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16470 echo "${ECHO_T}$ac_res" >&6; }
16471 if test `eval echo '${'$as_ac_var'}'` = yes; then
16472 cat >>confdefs.h <<_ACEOF
16473 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16480 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16481 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16482 # Irix 4.0.5F has the header but not the library.
16483 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16486 cat >>confdefs.h <<\_ACEOF
16492 if test $ac_have_func = no; then
16493 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16494 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
16495 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
16496 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16497 echo $ECHO_N "(cached
) $ECHO_C" >&6
16499 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
16500 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
16502 # Is the header compilable?
16503 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
16504 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
16505 cat >conftest.$ac_ext <<_ACEOF
16508 cat confdefs.h >>conftest.$ac_ext
16509 cat >>conftest.$ac_ext <<_ACEOF
16510 /* end confdefs.h. */
16511 $ac_includes_default
16512 #include <inq_stats/cpustats.h>
16514 rm -f conftest.$ac_objext
16515 if { (ac_try="$ac_compile"
16516 case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_compile") 2>conftest.er1
16523 grep -v '^ *+' conftest.er1 >conftest.err
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16527 (exit $ac_status); } && {
16528 test -z "$ac_c_werror_flag" ||
16529 test ! -s conftest.err
16530 } && test -s conftest.$ac_objext; then
16531 ac_header_compiler=yes
16533 echo "$as_me: failed program was
:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16536 ac_header_compiler=no
16539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16540 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16541 echo "${ECHO_T}$ac_header_compiler" >&6; }
16543 # Is the header present?
16544 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
16545 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
16546 cat >conftest.$ac_ext <<_ACEOF
16549 cat confdefs.h >>conftest.$ac_ext
16550 cat >>conftest.$ac_ext <<_ACEOF
16551 /* end confdefs.h. */
16552 #include <inq_stats/cpustats.h>
16554 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16555 case "(($ac_try" in
16556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557 *) ac_try_echo=$ac_try;;
16559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16560 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16562 grep -v '^ *+' conftest.er1 >conftest.err
16564 cat conftest.err >&5
16565 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16566 (exit $ac_status); } >/dev/null && {
16567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16568 test ! -s conftest.err
16570 ac_header_preproc=yes
16572 echo "$as_me: failed program was
:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16575 ac_header_preproc=no
16578 rm -f conftest.err conftest.$ac_ext
16579 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16580 echo "${ECHO_T}$ac_header_preproc" >&6; }
16582 # So? What about this header?
16583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16585 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16586 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16587 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
16588 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
16589 ac_header_preproc=yes
16592 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
16593 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
16594 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
16595 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
16596 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
16597 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
16598 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16599 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16600 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
16601 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
16602 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
16603 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
16607 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
16608 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
16609 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16610 echo $ECHO_N "(cached
) $ECHO_C" >&6
16612 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16614 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
16615 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
16618 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16621 cat >>confdefs.h <<\_ACEOF
16626 cat >>confdefs.h <<\_ACEOF
16635 if test $ac_have_func = no; then
16636 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16637 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
16638 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
16639 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16640 echo $ECHO_N "(cached
) $ECHO_C" >&6
16642 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
16643 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
16645 # Is the header compilable?
16646 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
16647 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
16648 cat >conftest.$ac_ext <<_ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h. */
16654 $ac_includes_default
16655 #include <sys/cpustats.h>
16657 rm -f conftest.$ac_objext
16658 if { (ac_try="$ac_compile"
16659 case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16663 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_compile") 2>conftest.er1
16666 grep -v '^ *+' conftest.er1 >conftest.err
16668 cat conftest.err >&5
16669 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16670 (exit $ac_status); } && {
16671 test -z "$ac_c_werror_flag" ||
16672 test ! -s conftest.err
16673 } && test -s conftest.$ac_objext; then
16674 ac_header_compiler=yes
16676 echo "$as_me: failed program was
:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16679 ac_header_compiler=no
16682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16683 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16684 echo "${ECHO_T}$ac_header_compiler" >&6; }
16686 # Is the header present?
16687 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
16688 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
16689 cat >conftest.$ac_ext <<_ACEOF
16692 cat confdefs.h >>conftest.$ac_ext
16693 cat >>conftest.$ac_ext <<_ACEOF
16694 /* end confdefs.h. */
16695 #include <sys/cpustats.h>
16697 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16698 case "(($ac_try" in
16699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700 *) ac_try_echo=$ac_try;;
16702 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16703 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16705 grep -v '^ *+' conftest.er1 >conftest.err
16707 cat conftest.err >&5
16708 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16709 (exit $ac_status); } >/dev/null && {
16710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16711 test ! -s conftest.err
16713 ac_header_preproc=yes
16715 echo "$as_me: failed program was
:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16718 ac_header_preproc=no
16721 rm -f conftest.err conftest.$ac_ext
16722 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16723 echo "${ECHO_T}$ac_header_preproc" >&6; }
16725 # So? What about this header?
16726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16728 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16729 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16730 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
16731 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
16732 ac_header_preproc=yes
16735 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
16736 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
16737 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
16738 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
16739 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
16740 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
16741 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16742 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16743 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
16744 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
16745 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
16746 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
16750 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
16751 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
16752 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16753 echo $ECHO_N "(cached
) $ECHO_C" >&6
16755 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16757 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
16758 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
16761 if test $ac_cv_header_sys_cpustats_h = yes; then
16762 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16771 if test $ac_have_func = no; then
16773 for ac_header in mach/mach.h
16775 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16776 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16777 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16778 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16779 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16780 echo $ECHO_N "(cached
) $ECHO_C" >&6
16782 ac_res=`eval echo '${'$as_ac_Header'}'`
16783 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16784 echo "${ECHO_T}$ac_res" >&6; }
16786 # Is the header compilable?
16787 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16788 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16789 cat >conftest.$ac_ext <<_ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795 $ac_includes_default
16796 #include <$ac_header>
16798 rm -f conftest.$ac_objext
16799 if { (ac_try="$ac_compile"
16800 case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_compile") 2>conftest.er1
16807 grep -v '^ *+' conftest.er1 >conftest.err
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16811 (exit $ac_status); } && {
16812 test -z "$ac_c_werror_flag" ||
16813 test ! -s conftest.err
16814 } && test -s conftest.$ac_objext; then
16815 ac_header_compiler=yes
16817 echo "$as_me: failed program was
:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16820 ac_header_compiler=no
16823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16824 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16825 echo "${ECHO_T}$ac_header_compiler" >&6; }
16827 # Is the header present?
16828 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16829 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16830 cat >conftest.$ac_ext <<_ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h. */
16836 #include <$ac_header>
16838 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16839 case "(($ac_try" in
16840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16841 *) ac_try_echo=$ac_try;;
16843 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16844 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16846 grep -v '^ *+' conftest.er1 >conftest.err
16848 cat conftest.err >&5
16849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16850 (exit $ac_status); } >/dev/null && {
16851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16852 test ! -s conftest.err
16854 ac_header_preproc=yes
16856 echo "$as_me: failed program was
:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16859 ac_header_preproc=no
16862 rm -f conftest.err conftest.$ac_ext
16863 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16864 echo "${ECHO_T}$ac_header_preproc" >&6; }
16866 # So? What about this header?
16867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16869 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16870 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16871 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16873 ac_header_preproc=yes
16876 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16877 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16878 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16879 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16880 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16881 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16882 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16883 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16884 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16886 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16887 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16891 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16892 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16893 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16894 echo $ECHO_N "(cached
) $ECHO_C" >&6
16896 eval "$as_ac_Header=\
$ac_header_preproc"
16898 ac_res=`eval echo '${'$as_ac_Header'}'`
16899 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16900 echo "${ECHO_T}$ac_res" >&6; }
16903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16904 cat >>confdefs.h <<_ACEOF
16905 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16915 for ac_header in nlist.h
16917 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16918 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16919 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16920 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16921 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16922 echo $ECHO_N "(cached
) $ECHO_C" >&6
16924 ac_res=`eval echo '${'$as_ac_Header'}'`
16925 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16926 echo "${ECHO_T}$ac_res" >&6; }
16928 # Is the header compilable?
16929 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16930 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16931 cat >conftest.$ac_ext <<_ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h. */
16937 $ac_includes_default
16938 #include <$ac_header>
16940 rm -f conftest.$ac_objext
16941 if { (ac_try="$ac_compile"
16942 case "(($ac_try" in
16943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944 *) ac_try_echo=$ac_try;;
16946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16947 (eval "$ac_compile") 2>conftest.er1
16949 grep -v '^ *+' conftest.er1 >conftest.err
16951 cat conftest.err >&5
16952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16953 (exit $ac_status); } && {
16954 test -z "$ac_c_werror_flag" ||
16955 test ! -s conftest.err
16956 } && test -s conftest.$ac_objext; then
16957 ac_header_compiler=yes
16959 echo "$as_me: failed program was
:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16962 ac_header_compiler=no
16965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16967 echo "${ECHO_T}$ac_header_compiler" >&6; }
16969 # Is the header present?
16970 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16971 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16972 cat >conftest.$ac_ext <<_ACEOF
16975 cat confdefs.h >>conftest.$ac_ext
16976 cat >>conftest.$ac_ext <<_ACEOF
16977 /* end confdefs.h. */
16978 #include <$ac_header>
16980 if { (ac_try="$ac_cpp conftest.
$ac_ext"
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_cpp conftest.
$ac_ext") 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); } >/dev/null && {
16993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16994 test ! -s conftest.err
16996 ac_header_preproc=yes
16998 echo "$as_me: failed program was
:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17001 ac_header_preproc=no
17004 rm -f conftest.err conftest.$ac_ext
17005 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17006 echo "${ECHO_T}$ac_header_preproc" >&6; }
17008 # So? What about this header?
17009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17011 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17012 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17013 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17015 ac_header_preproc=yes
17018 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17019 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17020 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17021 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17022 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17023 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17024 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17025 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17026 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17028 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17029 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17033 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17034 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17035 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17036 echo $ECHO_N "(cached
) $ECHO_C" >&6
17038 eval "$as_ac_Header=\
$ac_header_preproc"
17040 ac_res=`eval echo '${'$as_ac_Header'}'`
17041 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17042 echo "${ECHO_T}$ac_res" >&6; }
17045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17046 cat >>confdefs.h <<_ACEOF
17047 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17049 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17050 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17051 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17052 echo $ECHO_N "(cached
) $ECHO_C" >&6
17054 cat >conftest.$ac_ext <<_ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h. */
17065 static struct nlist ac_aggr;
17066 if (ac_aggr.n_un.n_name)
17072 rm -f conftest.$ac_objext
17073 if { (ac_try="$ac_compile"
17074 case "(($ac_try" in
17075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076 *) ac_try_echo=$ac_try;;
17078 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17079 (eval "$ac_compile") 2>conftest.er1
17081 grep -v '^ *+' conftest.er1 >conftest.err
17083 cat conftest.err >&5
17084 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17085 (exit $ac_status); } && {
17086 test -z "$ac_c_werror_flag" ||
17087 test ! -s conftest.err
17088 } && test -s conftest.$ac_objext; then
17089 ac_cv_member_struct_nlist_n_un_n_name=yes
17091 echo "$as_me: failed program was
:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17094 cat >conftest.$ac_ext <<_ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17105 static struct nlist ac_aggr;
17106 if (sizeof ac_aggr.n_un.n_name)
17112 rm -f conftest.$ac_objext
17113 if { (ac_try="$ac_compile"
17114 case "(($ac_try" in
17115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116 *) ac_try_echo=$ac_try;;
17118 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17119 (eval "$ac_compile") 2>conftest.er1
17121 grep -v '^ *+' conftest.er1 >conftest.err
17123 cat conftest.err >&5
17124 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17125 (exit $ac_status); } && {
17126 test -z "$ac_c_werror_flag" ||
17127 test ! -s conftest.err
17128 } && test -s conftest.$ac_objext; then
17129 ac_cv_member_struct_nlist_n_un_n_name=yes
17131 echo "$as_me: failed program was
:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17134 ac_cv_member_struct_nlist_n_un_n_name=no
17137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17142 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17143 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17144 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17146 cat >>confdefs.h <<_ACEOF
17147 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17151 cat >>confdefs.h <<\_ACEOF
17152 #define NLIST_NAME_UNION 1
17166 # Some definitions of getloadavg require that the program be installed setgid.
17167 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
17168 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
17169 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17170 echo $ECHO_N "(cached
) $ECHO_C" >&6
17172 cat >conftest.$ac_ext <<_ACEOF
17175 cat confdefs.h >>conftest.$ac_ext
17176 cat >>conftest.$ac_ext <<_ACEOF
17177 /* end confdefs.h. */
17178 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
17179 #ifdef LDAV_PRIVILEGED
17180 Yowza Am I SETGID yet
17183 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17184 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
17185 ac_cv_func_getloadavg_setgid=yes
17187 ac_cv_func_getloadavg_setgid=no
17192 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
17193 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17194 if test $ac_cv_func_getloadavg_setgid = yes; then
17197 cat >>confdefs.h <<\_ACEOF
17198 #define GETLOADAVG_PRIVILEGED 1
17205 if test $ac_cv_func_getloadavg_setgid = yes; then
17206 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
17207 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
17208 if test "${ac_cv_group_kmem+set}" = set; then
17209 echo $ECHO_N "(cached
) $ECHO_C" >&6
17211 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17212 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17213 # If we got an error (system does not support symlinks), try without -L.
17214 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17215 ac_cv_group_kmem=`echo $ac_ls_output \
17216 | sed -ne 's/[ ][ ]*/ /g;
17217 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17221 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
17222 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17223 KMEM_GROUP=$ac_cv_group_kmem
17225 if test "x
$ac_save_LIBS" = x; then
17226 GETLOADAVG_LIBS=$LIBS
17228 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
17234 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
17235 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
17236 if test "${ac_cv_sys_largefile_source+set}" = set; then
17237 echo $ECHO_N "(cached
) $ECHO_C" >&6
17240 cat >conftest.$ac_ext <<_ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h. */
17250 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17255 rm -f conftest.$ac_objext conftest$ac_exeext
17256 if { (ac_try="$ac_link"
17257 case "(($ac_try" in
17258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259 *) ac_try_echo=$ac_try;;
17261 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17262 (eval "$ac_link") 2>conftest.er1
17264 grep -v '^ *+' conftest.er1 >conftest.err
17266 cat conftest.err >&5
17267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17268 (exit $ac_status); } && {
17269 test -z "$ac_c_werror_flag" ||
17270 test ! -s conftest.err
17271 } && test -s conftest$ac_exeext &&
17272 $as_test_x conftest$ac_exeext; then
17273 ac_cv_sys_largefile_source=no; break
17275 echo "$as_me: failed program was
:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17282 conftest$ac_exeext conftest.$ac_ext
17283 cat >conftest.$ac_ext <<_ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h. */
17289 #define _LARGEFILE_SOURCE 1
17294 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17299 rm -f conftest.$ac_objext conftest$ac_exeext
17300 if { (ac_try="$ac_link"
17301 case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17305 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_link") 2>conftest.er1
17308 grep -v '^ *+' conftest.er1 >conftest.err
17310 cat conftest.err >&5
17311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17312 (exit $ac_status); } && {
17313 test -z "$ac_c_werror_flag" ||
17314 test ! -s conftest.err
17315 } && test -s conftest$ac_exeext &&
17316 $as_test_x conftest$ac_exeext; then
17317 ac_cv_sys_largefile_source=1; break
17319 echo "$as_me: failed program was
:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17326 conftest$ac_exeext conftest.$ac_ext
17327 ac_cv_sys_largefile_source=unknown
17331 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
17332 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17333 case $ac_cv_sys_largefile_source in #(
17336 cat >>confdefs.h <<_ACEOF
17337 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17343 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17344 # in glibc 2.1.3, but that breaks too many other things.
17345 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17346 if test $ac_cv_sys_largefile_source != unknown; then
17348 cat >>confdefs.h <<\_ACEOF
17349 #define HAVE_FSEEKO 1
17355 # Configure getopt.
17356 # getopt.m4 serial 10
17358 # The getopt module assume you want GNU getopt, with getopt_long etc,
17359 # rather than vanilla POSIX getopt. This means your your code should
17360 # always include <getopt.h> for the getopt prototypes.
17372 # Prerequisites of lib/getopt*.
17379 for ac_header in getopt.h
17381 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17382 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17383 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17384 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17385 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17386 echo $ECHO_N "(cached
) $ECHO_C" >&6
17388 ac_res=`eval echo '${'$as_ac_Header'}'`
17389 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17390 echo "${ECHO_T}$ac_res" >&6; }
17392 # Is the header compilable?
17393 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17394 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17395 cat >conftest.$ac_ext <<_ACEOF
17398 cat confdefs.h >>conftest.$ac_ext
17399 cat >>conftest.$ac_ext <<_ACEOF
17400 /* end confdefs.h. */
17401 $ac_includes_default
17402 #include <$ac_header>
17404 rm -f conftest.$ac_objext
17405 if { (ac_try="$ac_compile"
17406 case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17410 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_compile") 2>conftest.er1
17413 grep -v '^ *+' conftest.er1 >conftest.err
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17417 (exit $ac_status); } && {
17418 test -z "$ac_c_werror_flag" ||
17419 test ! -s conftest.err
17420 } && test -s conftest.$ac_objext; then
17421 ac_header_compiler=yes
17423 echo "$as_me: failed program was
:" >&5
17424 sed 's/^/| /' conftest.$ac_ext >&5
17426 ac_header_compiler=no
17429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17430 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17431 echo "${ECHO_T}$ac_header_compiler" >&6; }
17433 # Is the header present?
17434 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17435 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17436 cat >conftest.$ac_ext <<_ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h. */
17442 #include <$ac_header>
17444 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17445 case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17450 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17452 grep -v '^ *+' conftest.er1 >conftest.err
17454 cat conftest.err >&5
17455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17456 (exit $ac_status); } >/dev/null && {
17457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17458 test ! -s conftest.err
17460 ac_header_preproc=yes
17462 echo "$as_me: failed program was
:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17465 ac_header_preproc=no
17468 rm -f conftest.err conftest.$ac_ext
17469 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17470 echo "${ECHO_T}$ac_header_preproc" >&6; }
17472 # So? What about this header?
17473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17475 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17476 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17477 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17479 ac_header_preproc=yes
17482 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17483 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17484 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17485 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17486 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17487 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17488 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17489 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17490 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17492 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17493 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17497 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17498 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17499 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17500 echo $ECHO_N "(cached
) $ECHO_C" >&6
17502 eval "$as_ac_Header=\
$ac_header_preproc"
17504 ac_res=`eval echo '${'$as_ac_Header'}'`
17505 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17506 echo "${ECHO_T}$ac_res" >&6; }
17509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17510 cat >>confdefs.h <<_ACEOF
17511 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17520 if test -z "$GETOPT_H"; then
17522 for ac_func in getopt_long_only
17524 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17525 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17526 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17527 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17528 echo $ECHO_N "(cached
) $ECHO_C" >&6
17530 cat >conftest.$ac_ext <<_ACEOF
17533 cat confdefs.h >>conftest.$ac_ext
17534 cat >>conftest.$ac_ext <<_ACEOF
17535 /* end confdefs.h. */
17536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17538 #define $ac_func innocuous_$ac_func
17540 /* System header to define __stub macros and hopefully few prototypes,
17541 which can conflict with char $ac_func (); below.
17542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17543 <limits.h> exists even on freestanding compilers. */
17546 # include <limits.h>
17548 # include <assert.h>
17553 /* Override any GCC internal prototype to avoid an error.
17554 Use char because int might match the return type of a GCC
17555 builtin and then its argument prototype would still apply. */
17560 /* The GNU C library defines this for functions which it implements
17561 to always fail with ENOSYS. Some functions are actually named
17562 something starting with __ and the normal name is an alias. */
17563 #if defined __stub_$ac_func || defined __stub___$ac_func
17570 return $ac_func ();
17575 rm -f conftest.$ac_objext conftest$ac_exeext
17576 if { (ac_try="$ac_link"
17577 case "(($ac_try" in
17578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17579 *) ac_try_echo=$ac_try;;
17581 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17582 (eval "$ac_link") 2>conftest.er1
17584 grep -v '^ *+' conftest.er1 >conftest.err
17586 cat conftest.err >&5
17587 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17588 (exit $ac_status); } && {
17589 test -z "$ac_c_werror_flag" ||
17590 test ! -s conftest.err
17591 } && test -s conftest$ac_exeext &&
17592 $as_test_x conftest$ac_exeext; then
17593 eval "$as_ac_var=yes"
17595 echo "$as_me: failed program was
:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17598 eval "$as_ac_var=no
"
17601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17602 conftest$ac_exeext conftest.$ac_ext
17604 ac_res=`eval echo '${'$as_ac_var'}'`
17605 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17606 echo "${ECHO_T}$ac_res" >&6; }
17607 if test `eval echo '${'$as_ac_var'}'` = yes; then
17608 cat >>confdefs.h <<_ACEOF
17609 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17619 if test -z "$GETOPT_H"; then
17620 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
17621 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
17622 if test "${ac_cv_have_decl_optreset+set}" = set; then
17623 echo $ECHO_N "(cached
) $ECHO_C" >&6
17625 cat >conftest.$ac_ext <<_ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h. */
17631 #include <getopt.h>
17644 rm -f conftest.$ac_objext
17645 if { (ac_try="$ac_compile"
17646 case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17650 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_compile") 2>conftest.er1
17653 grep -v '^ *+' conftest.er1 >conftest.err
17655 cat conftest.err >&5
17656 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17657 (exit $ac_status); } && {
17658 test -z "$ac_c_werror_flag" ||
17659 test ! -s conftest.err
17660 } && test -s conftest.$ac_objext; then
17661 ac_cv_have_decl_optreset=yes
17663 echo "$as_me: failed program was
:" >&5
17664 sed 's/^/| /' conftest.$ac_ext >&5
17666 ac_cv_have_decl_optreset=no
17669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17671 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
17672 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
17673 if test $ac_cv_have_decl_optreset = yes; then
17679 if test -z "$GETOPT_H"; then
17680 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
17681 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
17682 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17683 echo $ECHO_N "(cached
) $ECHO_C" >&6
17685 if test "$cross_compiling" = yes; then
17686 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
17687 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
17688 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17689 echo $ECHO_N "(cached
) $ECHO_C" >&6
17691 cat >conftest.$ac_ext <<_ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17697 #include <getopt.h>
17702 #ifndef getopt_clip
17703 (void) getopt_clip;
17710 rm -f conftest.$ac_objext
17711 if { (ac_try="$ac_compile"
17712 case "(($ac_try" in
17713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714 *) ac_try_echo=$ac_try;;
17716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17717 (eval "$ac_compile") 2>conftest.er1
17719 grep -v '^ *+' conftest.er1 >conftest.err
17721 cat conftest.err >&5
17722 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17723 (exit $ac_status); } && {
17724 test -z "$ac_c_werror_flag" ||
17725 test ! -s conftest.err
17726 } && test -s conftest.$ac_objext; then
17727 ac_cv_have_decl_getopt_clip=yes
17729 echo "$as_me: failed program was
:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17732 ac_cv_have_decl_getopt_clip=no
17735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17737 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
17738 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
17739 if test $ac_cv_have_decl_getopt_clip = yes; then
17740 gl_cv_func_gnu_getopt=no
17742 gl_cv_func_gnu_getopt=yes
17746 cat >conftest.$ac_ext <<_ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17752 #include <getopt.h>
17758 myargv[0] = "conftest
";
17761 return getopt (2, myargv, "+a
") != '?';
17767 rm -f conftest$ac_exeext
17768 if { (ac_try="$ac_link"
17769 case "(($ac_try" in
17770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771 *) ac_try_echo=$ac_try;;
17773 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17774 (eval "$ac_link") 2>&5
17776 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17778 { (case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17782 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_try") 2>&5
17785 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17786 (exit $ac_status); }; }; then
17787 gl_cv_func_gnu_getopt=yes
17789 echo "$as_me: program exited with status
$ac_status" >&5
17790 echo "$as_me: failed program was
:" >&5
17791 sed 's/^/| /' conftest.$ac_ext >&5
17793 ( exit $ac_status )
17794 gl_cv_func_gnu_getopt=no
17796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17801 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
17802 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
17803 if test "$gl_cv_func_gnu_getopt" = "no
"; then
17810 if test -n "$GETOPT_H"; then
17815 cat >>confdefs.h <<\_ACEOF
17816 #define __GETOPT_PREFIX rpl_
17822 GETOPTOBJS='getopt.o getopt1.o'
17829 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
17830 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
17831 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17832 echo $ECHO_N "(cached
) $ECHO_C" >&6
17834 # Use it with a single arg.
17835 cat >conftest.$ac_ext <<_ACEOF
17838 cat confdefs.h >>conftest.$ac_ext
17839 cat >>conftest.$ac_ext <<_ACEOF
17840 /* end confdefs.h. */
17841 $ac_includes_default
17850 rm -f conftest.$ac_objext
17851 if { (ac_try="$ac_compile"
17852 case "(($ac_try" in
17853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17854 *) ac_try_echo=$ac_try;;
17856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17857 (eval "$ac_compile") 2>conftest.er1
17859 grep -v '^ *+' conftest.er1 >conftest.err
17861 cat conftest.err >&5
17862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17863 (exit $ac_status); } && {
17864 test -z "$ac_c_werror_flag" ||
17865 test ! -s conftest.err
17866 } && test -s conftest.$ac_objext; then
17867 ac_cv_func_getpgrp_void=no
17869 echo "$as_me: failed program was
:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17872 ac_cv_func_getpgrp_void=yes
17875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17878 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
17879 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
17880 if test $ac_cv_func_getpgrp_void = yes; then
17882 cat >>confdefs.h <<\_ACEOF
17883 #define GETPGRP_VOID 1
17890 for ac_func in strftime
17892 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17893 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17894 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17895 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17896 echo $ECHO_N "(cached
) $ECHO_C" >&6
17898 cat >conftest.$ac_ext <<_ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17906 #define $ac_func innocuous_$ac_func
17908 /* System header to define __stub macros and hopefully few prototypes,
17909 which can conflict with char $ac_func (); below.
17910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17911 <limits.h> exists even on freestanding compilers. */
17914 # include <limits.h>
17916 # include <assert.h>
17921 /* Override any GCC internal prototype to avoid an error.
17922 Use char because int might match the return type of a GCC
17923 builtin and then its argument prototype would still apply. */
17928 /* The GNU C library defines this for functions which it implements
17929 to always fail with ENOSYS. Some functions are actually named
17930 something starting with __ and the normal name is an alias. */
17931 #if defined __stub_$ac_func || defined __stub___$ac_func
17938 return $ac_func ();
17943 rm -f conftest.$ac_objext conftest$ac_exeext
17944 if { (ac_try="$ac_link"
17945 case "(($ac_try" in
17946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947 *) ac_try_echo=$ac_try;;
17949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17950 (eval "$ac_link") 2>conftest.er1
17952 grep -v '^ *+' conftest.er1 >conftest.err
17954 cat conftest.err >&5
17955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17956 (exit $ac_status); } && {
17957 test -z "$ac_c_werror_flag" ||
17958 test ! -s conftest.err
17959 } && test -s conftest$ac_exeext &&
17960 $as_test_x conftest$ac_exeext; then
17961 eval "$as_ac_var=yes"
17963 echo "$as_me: failed program was
:" >&5
17964 sed 's/^/| /' conftest.$ac_ext >&5
17966 eval "$as_ac_var=no
"
17969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17970 conftest$ac_exeext conftest.$ac_ext
17972 ac_res=`eval echo '${'$as_ac_var'}'`
17973 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17974 echo "${ECHO_T}$ac_res" >&6; }
17975 if test `eval echo '${'$as_ac_var'}'` = yes; then
17976 cat >>confdefs.h <<_ACEOF
17977 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17981 # strftime is in -lintl on SCO UNIX.
17982 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
17983 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
17984 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17985 echo $ECHO_N "(cached
) $ECHO_C" >&6
17987 ac_check_lib_save_LIBS=$LIBS
17988 LIBS="-lintl $LIBS"
17989 cat >conftest.$ac_ext <<_ACEOF
17992 cat confdefs.h >>conftest.$ac_ext
17993 cat >>conftest.$ac_ext <<_ACEOF
17994 /* end confdefs.h. */
17996 /* Override any GCC internal prototype to avoid an error.
17997 Use char because int might match the return type of a GCC
17998 builtin and then its argument prototype would still apply. */
18006 return strftime ();
18011 rm -f conftest.$ac_objext conftest$ac_exeext
18012 if { (ac_try="$ac_link"
18013 case "(($ac_try" in
18014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015 *) ac_try_echo=$ac_try;;
18017 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18018 (eval "$ac_link") 2>conftest.er1
18020 grep -v '^ *+' conftest.er1 >conftest.err
18022 cat conftest.err >&5
18023 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18024 (exit $ac_status); } && {
18025 test -z "$ac_c_werror_flag" ||
18026 test ! -s conftest.err
18027 } && test -s conftest$ac_exeext &&
18028 $as_test_x conftest$ac_exeext; then
18029 ac_cv_lib_intl_strftime=yes
18031 echo "$as_me: failed program was
:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18034 ac_cv_lib_intl_strftime=no
18037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18038 conftest$ac_exeext conftest.$ac_ext
18039 LIBS=$ac_check_lib_save_LIBS
18041 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18042 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18043 if test $ac_cv_lib_intl_strftime = yes; then
18044 cat >>confdefs.h <<\_ACEOF
18045 #define HAVE_STRFTIME 1
18048 LIBS="-lintl $LIBS"
18057 for ac_func in grantpt
18059 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18060 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18061 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18062 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18063 echo $ECHO_N "(cached
) $ECHO_C" >&6
18065 cat >conftest.$ac_ext <<_ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h. */
18071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18073 #define $ac_func innocuous_$ac_func
18075 /* System header to define __stub macros and hopefully few prototypes,
18076 which can conflict with char $ac_func (); below.
18077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18078 <limits.h> exists even on freestanding compilers. */
18081 # include <limits.h>
18083 # include <assert.h>
18088 /* Override any GCC internal prototype to avoid an error.
18089 Use char because int might match the return type of a GCC
18090 builtin and then its argument prototype would still apply. */
18095 /* The GNU C library defines this for functions which it implements
18096 to always fail with ENOSYS. Some functions are actually named
18097 something starting with __ and the normal name is an alias. */
18098 #if defined __stub_$ac_func || defined __stub___$ac_func
18105 return $ac_func ();
18110 rm -f conftest.$ac_objext conftest$ac_exeext
18111 if { (ac_try="$ac_link"
18112 case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_link") 2>conftest.er1
18119 grep -v '^ *+' conftest.er1 >conftest.err
18121 cat conftest.err >&5
18122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18123 (exit $ac_status); } && {
18124 test -z "$ac_c_werror_flag" ||
18125 test ! -s conftest.err
18126 } && test -s conftest$ac_exeext &&
18127 $as_test_x conftest$ac_exeext; then
18128 eval "$as_ac_var=yes"
18130 echo "$as_me: failed program was
:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18133 eval "$as_ac_var=no
"
18136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18137 conftest$ac_exeext conftest.$ac_ext
18139 ac_res=`eval echo '${'$as_ac_var'}'`
18140 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18141 echo "${ECHO_T}$ac_res" >&6; }
18142 if test `eval echo '${'$as_ac_var'}'` = yes; then
18143 cat >>confdefs.h <<_ACEOF
18144 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18151 # PTY-related GNU extensions.
18153 for ac_func in getpt
18155 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18156 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18157 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18158 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18159 echo $ECHO_N "(cached
) $ECHO_C" >&6
18161 cat >conftest.$ac_ext <<_ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h. */
18167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18169 #define $ac_func innocuous_$ac_func
18171 /* System header to define __stub macros and hopefully few prototypes,
18172 which can conflict with char $ac_func (); below.
18173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18174 <limits.h> exists even on freestanding compilers. */
18177 # include <limits.h>
18179 # include <assert.h>
18184 /* Override any GCC internal prototype to avoid an error.
18185 Use char because int might match the return type of a GCC
18186 builtin and then its argument prototype would still apply. */
18191 /* The GNU C library defines this for functions which it implements
18192 to always fail with ENOSYS. Some functions are actually named
18193 something starting with __ and the normal name is an alias. */
18194 #if defined __stub_$ac_func || defined __stub___$ac_func
18201 return $ac_func ();
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 eval "$as_ac_var=yes"
18226 echo "$as_me: failed program was
:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18229 eval "$as_ac_var=no
"
18232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18233 conftest$ac_exeext conftest.$ac_ext
18235 ac_res=`eval echo '${'$as_ac_var'}'`
18236 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18237 echo "${ECHO_T}$ac_res" >&6; }
18238 if test `eval echo '${'$as_ac_var'}'` = yes; then
18239 cat >>confdefs.h <<_ACEOF
18240 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18247 # Check this now, so that we will NOT find the above functions in ncurses.
18248 # That is because we have not set up to link ncurses in lib-src.
18249 # It's better to believe a function is not available
18250 # than to expect to find it in ncurses.
18252 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
18253 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
18254 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18255 echo $ECHO_N "(cached
) $ECHO_C" >&6
18257 ac_check_lib_save_LIBS=$LIBS
18258 LIBS="-lncurses $LIBS"
18259 cat >conftest.$ac_ext <<_ACEOF
18262 cat confdefs.h >>conftest.$ac_ext
18263 cat >>conftest.$ac_ext <<_ACEOF
18264 /* end confdefs.h. */
18266 /* Override any GCC internal prototype to avoid an error.
18267 Use char because int might match the return type of a GCC
18268 builtin and then its argument prototype would still apply. */
18281 rm -f conftest.$ac_objext conftest$ac_exeext
18282 if { (ac_try="$ac_link"
18283 case "(($ac_try" in
18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18287 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_link") 2>conftest.er1
18290 grep -v '^ *+' conftest.er1 >conftest.err
18292 cat conftest.err >&5
18293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18294 (exit $ac_status); } && {
18295 test -z "$ac_c_werror_flag" ||
18296 test ! -s conftest.err
18297 } && test -s conftest$ac_exeext &&
18298 $as_test_x conftest$ac_exeext; then
18299 ac_cv_lib_ncurses_tparm=yes
18301 echo "$as_me: failed program was
:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18304 ac_cv_lib_ncurses_tparm=no
18307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18308 conftest$ac_exeext conftest.$ac_ext
18309 LIBS=$ac_check_lib_save_LIBS
18311 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
18312 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18313 if test $ac_cv_lib_ncurses_tparm = yes; then
18314 cat >>confdefs.h <<_ACEOF
18315 #define HAVE_LIBNCURSES 1
18318 LIBS="-lncurses $LIBS"
18323 # Do we need the Hesiod library to provide the support routines?
18324 if test "$with_hesiod" = yes ; then
18325 # Don't set $LIBS here -- see comments above.
18327 { echo "$as_me:$LINENO: checking
for res_send
" >&5
18328 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
18329 if test "${ac_cv_func_res_send+set}" = set; then
18330 echo $ECHO_N "(cached
) $ECHO_C" >&6
18332 cat >conftest.$ac_ext <<_ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18338 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18340 #define res_send innocuous_res_send
18342 /* System header to define __stub macros and hopefully few prototypes,
18343 which can conflict with char res_send (); below.
18344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18345 <limits.h> exists even on freestanding compilers. */
18348 # include <limits.h>
18350 # include <assert.h>
18355 /* Override any GCC internal prototype to avoid an error.
18356 Use char because int might match the return type of a GCC
18357 builtin and then its argument prototype would still apply. */
18362 /* The GNU C library defines this for functions which it implements
18363 to always fail with ENOSYS. Some functions are actually named
18364 something starting with __ and the normal name is an alias. */
18365 #if defined __stub_res_send || defined __stub___res_send
18372 return res_send ();
18377 rm -f conftest.$ac_objext conftest$ac_exeext
18378 if { (ac_try="$ac_link"
18379 case "(($ac_try" in
18380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381 *) ac_try_echo=$ac_try;;
18383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18384 (eval "$ac_link") 2>conftest.er1
18386 grep -v '^ *+' conftest.er1 >conftest.err
18388 cat conftest.err >&5
18389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18390 (exit $ac_status); } && {
18391 test -z "$ac_c_werror_flag" ||
18392 test ! -s conftest.err
18393 } && test -s conftest$ac_exeext &&
18394 $as_test_x conftest$ac_exeext; then
18395 ac_cv_func_res_send=yes
18397 echo "$as_me: failed program was
:" >&5
18398 sed 's/^/| /' conftest.$ac_ext >&5
18400 ac_cv_func_res_send=no
18403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18404 conftest$ac_exeext conftest.$ac_ext
18406 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
18407 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
18408 if test $ac_cv_func_res_send = yes; then
18411 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
18412 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
18413 if test "${ac_cv_func___res_send+set}" = set; then
18414 echo $ECHO_N "(cached
) $ECHO_C" >&6
18416 cat >conftest.$ac_ext <<_ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h. */
18422 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18424 #define __res_send innocuous___res_send
18426 /* System header to define __stub macros and hopefully few prototypes,
18427 which can conflict with char __res_send (); below.
18428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18429 <limits.h> exists even on freestanding compilers. */
18432 # include <limits.h>
18434 # include <assert.h>
18439 /* Override any GCC internal prototype to avoid an error.
18440 Use char because int might match the return type of a GCC
18441 builtin and then its argument prototype would still apply. */
18445 char __res_send ();
18446 /* The GNU C library defines this for functions which it implements
18447 to always fail with ENOSYS. Some functions are actually named
18448 something starting with __ and the normal name is an alias. */
18449 #if defined __stub___res_send || defined __stub_____res_send
18456 return __res_send ();
18461 rm -f conftest.$ac_objext conftest$ac_exeext
18462 if { (ac_try="$ac_link"
18463 case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_link") 2>conftest.er1
18470 grep -v '^ *+' conftest.er1 >conftest.err
18472 cat conftest.err >&5
18473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18474 (exit $ac_status); } && {
18475 test -z "$ac_c_werror_flag" ||
18476 test ! -s conftest.err
18477 } && test -s conftest$ac_exeext &&
18478 $as_test_x conftest$ac_exeext; then
18479 ac_cv_func___res_send=yes
18481 echo "$as_me: failed program was
:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18484 ac_cv_func___res_send=no
18487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18488 conftest$ac_exeext conftest.$ac_ext
18490 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
18491 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
18492 if test $ac_cv_func___res_send = yes; then
18495 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
18496 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
18497 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18498 echo $ECHO_N "(cached
) $ECHO_C" >&6
18500 ac_check_lib_save_LIBS=$LIBS
18501 LIBS="-lresolv $LIBS"
18502 cat >conftest.$ac_ext <<_ACEOF
18505 cat confdefs.h >>conftest.$ac_ext
18506 cat >>conftest.$ac_ext <<_ACEOF
18507 /* end confdefs.h. */
18509 /* Override any GCC internal prototype to avoid an error.
18510 Use char because int might match the return type of a GCC
18511 builtin and then its argument prototype would still apply. */
18519 return res_send ();
18524 rm -f conftest.$ac_objext conftest$ac_exeext
18525 if { (ac_try="$ac_link"
18526 case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18530 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_link") 2>conftest.er1
18533 grep -v '^ *+' conftest.er1 >conftest.err
18535 cat conftest.err >&5
18536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18537 (exit $ac_status); } && {
18538 test -z "$ac_c_werror_flag" ||
18539 test ! -s conftest.err
18540 } && test -s conftest$ac_exeext &&
18541 $as_test_x conftest$ac_exeext; then
18542 ac_cv_lib_resolv_res_send=yes
18544 echo "$as_me: failed program was
:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18547 ac_cv_lib_resolv_res_send=no
18550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18551 conftest$ac_exeext conftest.$ac_ext
18552 LIBS=$ac_check_lib_save_LIBS
18554 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
18555 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
18556 if test $ac_cv_lib_resolv_res_send = yes; then
18559 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
18560 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
18561 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18562 echo $ECHO_N "(cached
) $ECHO_C" >&6
18564 ac_check_lib_save_LIBS=$LIBS
18565 LIBS="-lresolv $LIBS"
18566 cat >conftest.$ac_ext <<_ACEOF
18569 cat confdefs.h >>conftest.$ac_ext
18570 cat >>conftest.$ac_ext <<_ACEOF
18571 /* end confdefs.h. */
18573 /* Override any GCC internal prototype to avoid an error.
18574 Use char because int might match the return type of a GCC
18575 builtin and then its argument prototype would still apply. */
18579 char __res_send ();
18583 return __res_send ();
18588 rm -f conftest.$ac_objext conftest$ac_exeext
18589 if { (ac_try="$ac_link"
18590 case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_link") 2>conftest.er1
18597 grep -v '^ *+' conftest.er1 >conftest.err
18599 cat conftest.err >&5
18600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18601 (exit $ac_status); } && {
18602 test -z "$ac_c_werror_flag" ||
18603 test ! -s conftest.err
18604 } && test -s conftest$ac_exeext &&
18605 $as_test_x conftest$ac_exeext; then
18606 ac_cv_lib_resolv___res_send=yes
18608 echo "$as_me: failed program was
:" >&5
18609 sed 's/^/| /' conftest.$ac_ext >&5
18611 ac_cv_lib_resolv___res_send=no
18614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18615 conftest$ac_exeext conftest.$ac_ext
18616 LIBS=$ac_check_lib_save_LIBS
18618 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
18619 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
18620 if test $ac_cv_lib_resolv___res_send = yes; then
18630 if test "$resolv" = yes ; then
18633 cat >>confdefs.h <<\_ACEOF
18634 #define HAVE_LIBRESOLV 1
18640 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
18641 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
18642 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18643 echo $ECHO_N "(cached
) $ECHO_C" >&6
18645 cat >conftest.$ac_ext <<_ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h. */
18651 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18653 #define hes_getmailhost innocuous_hes_getmailhost
18655 /* System header to define __stub macros and hopefully few prototypes,
18656 which can conflict with char hes_getmailhost (); below.
18657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18658 <limits.h> exists even on freestanding compilers. */
18661 # include <limits.h>
18663 # include <assert.h>
18666 #undef hes_getmailhost
18668 /* Override any GCC internal prototype to avoid an error.
18669 Use char because int might match the return type of a GCC
18670 builtin and then its argument prototype would still apply. */
18674 char hes_getmailhost ();
18675 /* The GNU C library defines this for functions which it implements
18676 to always fail with ENOSYS. Some functions are actually named
18677 something starting with __ and the normal name is an alias. */
18678 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
18685 return hes_getmailhost ();
18690 rm -f conftest.$ac_objext conftest$ac_exeext
18691 if { (ac_try="$ac_link"
18692 case "(($ac_try" in
18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694 *) ac_try_echo=$ac_try;;
18696 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18697 (eval "$ac_link") 2>conftest.er1
18699 grep -v '^ *+' conftest.er1 >conftest.err
18701 cat conftest.err >&5
18702 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18703 (exit $ac_status); } && {
18704 test -z "$ac_c_werror_flag" ||
18705 test ! -s conftest.err
18706 } && test -s conftest$ac_exeext &&
18707 $as_test_x conftest$ac_exeext; then
18708 ac_cv_func_hes_getmailhost=yes
18710 echo "$as_me: failed program was
:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18713 ac_cv_func_hes_getmailhost=no
18716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18717 conftest$ac_exeext conftest.$ac_ext
18719 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
18720 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
18721 if test $ac_cv_func_hes_getmailhost = yes; then
18724 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
18725 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
18726 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18727 echo $ECHO_N "(cached
) $ECHO_C" >&6
18729 ac_check_lib_save_LIBS=$LIBS
18730 LIBS="-lhesiod $RESOLVLIB $LIBS"
18731 cat >conftest.$ac_ext <<_ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h. */
18738 /* Override any GCC internal prototype to avoid an error.
18739 Use char because int might match the return type of a GCC
18740 builtin and then its argument prototype would still apply. */
18744 char hes_getmailhost ();
18748 return hes_getmailhost ();
18753 rm -f conftest.$ac_objext conftest$ac_exeext
18754 if { (ac_try="$ac_link"
18755 case "(($ac_try" in
18756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757 *) ac_try_echo=$ac_try;;
18759 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18760 (eval "$ac_link") 2>conftest.er1
18762 grep -v '^ *+' conftest.er1 >conftest.err
18764 cat conftest.err >&5
18765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18766 (exit $ac_status); } && {
18767 test -z "$ac_c_werror_flag" ||
18768 test ! -s conftest.err
18769 } && test -s conftest$ac_exeext &&
18770 $as_test_x conftest$ac_exeext; then
18771 ac_cv_lib_hesiod_hes_getmailhost=yes
18773 echo "$as_me: failed program was
:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18776 ac_cv_lib_hesiod_hes_getmailhost=no
18779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18780 conftest$ac_exeext conftest.$ac_ext
18781 LIBS=$ac_check_lib_save_LIBS
18783 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18784 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
18785 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18787 cat >>confdefs.h <<\_ACEOF
18788 #define HAVE_LIBHESIOD 1
18799 # These tell us which Kerberos-related libraries to use.
18800 if test "${with_kerberos+set}" = set; then
18802 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
18803 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
18804 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18805 echo $ECHO_N "(cached
) $ECHO_C" >&6
18807 ac_check_lib_save_LIBS=$LIBS
18808 LIBS="-lcom_err $LIBS"
18809 cat >conftest.$ac_ext <<_ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18816 /* Override any GCC internal prototype to avoid an error.
18817 Use char because int might match the return type of a GCC
18818 builtin and then its argument prototype would still apply. */
18831 rm -f conftest.$ac_objext conftest$ac_exeext
18832 if { (ac_try="$ac_link"
18833 case "(($ac_try" in
18834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835 *) ac_try_echo=$ac_try;;
18837 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18838 (eval "$ac_link") 2>conftest.er1
18840 grep -v '^ *+' conftest.er1 >conftest.err
18842 cat conftest.err >&5
18843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18844 (exit $ac_status); } && {
18845 test -z "$ac_c_werror_flag" ||
18846 test ! -s conftest.err
18847 } && test -s conftest$ac_exeext &&
18848 $as_test_x conftest$ac_exeext; then
18849 ac_cv_lib_com_err_com_err=yes
18851 echo "$as_me: failed program was
:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18854 ac_cv_lib_com_err_com_err=no
18857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18858 conftest$ac_exeext conftest.$ac_ext
18859 LIBS=$ac_check_lib_save_LIBS
18861 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
18862 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
18863 if test $ac_cv_lib_com_err_com_err = yes; then
18864 cat >>confdefs.h <<_ACEOF
18865 #define HAVE_LIBCOM_ERR 1
18868 LIBS="-lcom_err $LIBS"
18873 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
18874 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
18875 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18876 echo $ECHO_N "(cached
) $ECHO_C" >&6
18878 ac_check_lib_save_LIBS=$LIBS
18879 LIBS="-lk5crypto $LIBS"
18880 cat >conftest.$ac_ext <<_ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18887 /* Override any GCC internal prototype to avoid an error.
18888 Use char because int might match the return type of a GCC
18889 builtin and then its argument prototype would still apply. */
18893 char mit_des_cbc_encrypt ();
18897 return mit_des_cbc_encrypt ();
18902 rm -f conftest.$ac_objext conftest$ac_exeext
18903 if { (ac_try="$ac_link"
18904 case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18908 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_link") 2>conftest.er1
18911 grep -v '^ *+' conftest.er1 >conftest.err
18913 cat conftest.err >&5
18914 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18915 (exit $ac_status); } && {
18916 test -z "$ac_c_werror_flag" ||
18917 test ! -s conftest.err
18918 } && test -s conftest$ac_exeext &&
18919 $as_test_x conftest$ac_exeext; then
18920 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18922 echo "$as_me: failed program was
:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18925 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18929 conftest$ac_exeext conftest.$ac_ext
18930 LIBS=$ac_check_lib_save_LIBS
18932 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18933 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
18934 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18935 cat >>confdefs.h <<_ACEOF
18936 #define HAVE_LIBK5CRYPTO 1
18939 LIBS="-lk5crypto $LIBS"
18944 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
18945 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
18946 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18947 echo $ECHO_N "(cached
) $ECHO_C" >&6
18949 ac_check_lib_save_LIBS=$LIBS
18950 LIBS="-lcrypto $LIBS"
18951 cat >conftest.$ac_ext <<_ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h. */
18958 /* Override any GCC internal prototype to avoid an error.
18959 Use char because int might match the return type of a GCC
18960 builtin and then its argument prototype would still apply. */
18964 char mit_des_cbc_encrypt ();
18968 return mit_des_cbc_encrypt ();
18973 rm -f conftest.$ac_objext conftest$ac_exeext
18974 if { (ac_try="$ac_link"
18975 case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18979 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_link") 2>conftest.er1
18982 grep -v '^ *+' conftest.er1 >conftest.err
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18986 (exit $ac_status); } && {
18987 test -z "$ac_c_werror_flag" ||
18988 test ! -s conftest.err
18989 } && test -s conftest$ac_exeext &&
18990 $as_test_x conftest$ac_exeext; then
18991 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18993 echo "$as_me: failed program was
:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18996 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19000 conftest$ac_exeext conftest.$ac_ext
19001 LIBS=$ac_check_lib_save_LIBS
19003 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19004 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19005 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19006 cat >>confdefs.h <<_ACEOF
19007 #define HAVE_LIBCRYPTO 1
19010 LIBS="-lcrypto $LIBS"
19015 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19016 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19017 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19018 echo $ECHO_N "(cached
) $ECHO_C" >&6
19020 ac_check_lib_save_LIBS=$LIBS
19021 LIBS="-lkrb5 $LIBS"
19022 cat >conftest.$ac_ext <<_ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h. */
19029 /* Override any GCC internal prototype to avoid an error.
19030 Use char because int might match the return type of a GCC
19031 builtin and then its argument prototype would still apply. */
19035 char krb5_init_context ();
19039 return krb5_init_context ();
19044 rm -f conftest.$ac_objext conftest$ac_exeext
19045 if { (ac_try="$ac_link"
19046 case "(($ac_try" in
19047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19048 *) ac_try_echo=$ac_try;;
19050 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19051 (eval "$ac_link") 2>conftest.er1
19053 grep -v '^ *+' conftest.er1 >conftest.err
19055 cat conftest.err >&5
19056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19057 (exit $ac_status); } && {
19058 test -z "$ac_c_werror_flag" ||
19059 test ! -s conftest.err
19060 } && test -s conftest$ac_exeext &&
19061 $as_test_x conftest$ac_exeext; then
19062 ac_cv_lib_krb5_krb5_init_context=yes
19064 echo "$as_me: failed program was
:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19067 ac_cv_lib_krb5_krb5_init_context=no
19070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19071 conftest$ac_exeext conftest.$ac_ext
19072 LIBS=$ac_check_lib_save_LIBS
19074 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19075 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19076 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19077 cat >>confdefs.h <<_ACEOF
19078 #define HAVE_LIBKRB5 1
19081 LIBS="-lkrb5 $LIBS"
19085 if test "${with_kerberos5+set}" != set; then
19087 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19088 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19089 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19090 echo $ECHO_N "(cached
) $ECHO_C" >&6
19092 ac_check_lib_save_LIBS=$LIBS
19093 LIBS="-ldes425 $LIBS"
19094 cat >conftest.$ac_ext <<_ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h. */
19101 /* Override any GCC internal prototype to avoid an error.
19102 Use char because int might match the return type of a GCC
19103 builtin and then its argument prototype would still apply. */
19107 char des_cbc_encrypt ();
19111 return des_cbc_encrypt ();
19116 rm -f conftest.$ac_objext conftest$ac_exeext
19117 if { (ac_try="$ac_link"
19118 case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19122 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_link") 2>conftest.er1
19125 grep -v '^ *+' conftest.er1 >conftest.err
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19129 (exit $ac_status); } && {
19130 test -z "$ac_c_werror_flag" ||
19131 test ! -s conftest.err
19132 } && test -s conftest$ac_exeext &&
19133 $as_test_x conftest$ac_exeext; then
19134 ac_cv_lib_des425_des_cbc_encrypt=yes
19136 echo "$as_me: failed program was
:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19139 ac_cv_lib_des425_des_cbc_encrypt=no
19142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19143 conftest$ac_exeext conftest.$ac_ext
19144 LIBS=$ac_check_lib_save_LIBS
19146 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19147 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19148 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19149 cat >>confdefs.h <<_ACEOF
19150 #define HAVE_LIBDES425 1
19153 LIBS="-ldes425 $LIBS"
19157 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
19158 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
19159 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19160 echo $ECHO_N "(cached
) $ECHO_C" >&6
19162 ac_check_lib_save_LIBS=$LIBS
19164 cat >conftest.$ac_ext <<_ACEOF
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19171 /* Override any GCC internal prototype to avoid an error.
19172 Use char because int might match the return type of a GCC
19173 builtin and then its argument prototype would still apply. */
19177 char des_cbc_encrypt ();
19181 return des_cbc_encrypt ();
19186 rm -f conftest.$ac_objext conftest$ac_exeext
19187 if { (ac_try="$ac_link"
19188 case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19193 (eval "$ac_link") 2>conftest.er1
19195 grep -v '^ *+' conftest.er1 >conftest.err
19197 cat conftest.err >&5
19198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19199 (exit $ac_status); } && {
19200 test -z "$ac_c_werror_flag" ||
19201 test ! -s conftest.err
19202 } && test -s conftest$ac_exeext &&
19203 $as_test_x conftest$ac_exeext; then
19204 ac_cv_lib_des_des_cbc_encrypt=yes
19206 echo "$as_me: failed program was
:" >&5
19207 sed 's/^/| /' conftest.$ac_ext >&5
19209 ac_cv_lib_des_des_cbc_encrypt=no
19212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19213 conftest$ac_exeext conftest.$ac_ext
19214 LIBS=$ac_check_lib_save_LIBS
19216 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
19217 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19218 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19219 cat >>confdefs.h <<_ACEOF
19220 #define HAVE_LIBDES 1
19230 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
19231 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
19232 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19233 echo $ECHO_N "(cached
) $ECHO_C" >&6
19235 ac_check_lib_save_LIBS=$LIBS
19236 LIBS="-lkrb4 $LIBS"
19237 cat >conftest.$ac_ext <<_ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h. */
19244 /* Override any GCC internal prototype to avoid an error.
19245 Use char because int might match the return type of a GCC
19246 builtin and then its argument prototype would still apply. */
19250 char krb_get_cred ();
19254 return krb_get_cred ();
19259 rm -f conftest.$ac_objext conftest$ac_exeext
19260 if { (ac_try="$ac_link"
19261 case "(($ac_try" in
19262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263 *) ac_try_echo=$ac_try;;
19265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19266 (eval "$ac_link") 2>conftest.er1
19268 grep -v '^ *+' conftest.er1 >conftest.err
19270 cat conftest.err >&5
19271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19272 (exit $ac_status); } && {
19273 test -z "$ac_c_werror_flag" ||
19274 test ! -s conftest.err
19275 } && test -s conftest$ac_exeext &&
19276 $as_test_x conftest$ac_exeext; then
19277 ac_cv_lib_krb4_krb_get_cred=yes
19279 echo "$as_me: failed program was
:" >&5
19280 sed 's/^/| /' conftest.$ac_ext >&5
19282 ac_cv_lib_krb4_krb_get_cred=no
19285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19286 conftest$ac_exeext conftest.$ac_ext
19287 LIBS=$ac_check_lib_save_LIBS
19289 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
19290 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19291 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19292 cat >>confdefs.h <<_ACEOF
19293 #define HAVE_LIBKRB4 1
19296 LIBS="-lkrb4 $LIBS"
19300 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
19301 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
19302 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19303 echo $ECHO_N "(cached
) $ECHO_C" >&6
19305 ac_check_lib_save_LIBS=$LIBS
19307 cat >conftest.$ac_ext <<_ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19314 /* Override any GCC internal prototype to avoid an error.
19315 Use char because int might match the return type of a GCC
19316 builtin and then its argument prototype would still apply. */
19320 char krb_get_cred ();
19324 return krb_get_cred ();
19329 rm -f conftest.$ac_objext conftest$ac_exeext
19330 if { (ac_try="$ac_link"
19331 case "(($ac_try" in
19332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333 *) ac_try_echo=$ac_try;;
19335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19336 (eval "$ac_link") 2>conftest.er1
19338 grep -v '^ *+' conftest.er1 >conftest.err
19340 cat conftest.err >&5
19341 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19342 (exit $ac_status); } && {
19343 test -z "$ac_c_werror_flag" ||
19344 test ! -s conftest.err
19345 } && test -s conftest$ac_exeext &&
19346 $as_test_x conftest$ac_exeext; then
19347 ac_cv_lib_krb_krb_get_cred=yes
19349 echo "$as_me: failed program was
:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19352 ac_cv_lib_krb_krb_get_cred=no
19355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19356 conftest$ac_exeext conftest.$ac_ext
19357 LIBS=$ac_check_lib_save_LIBS
19359 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
19360 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19361 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19362 cat >>confdefs.h <<_ACEOF
19363 #define HAVE_LIBKRB 1
19374 if test "${with_kerberos5+set}" = set; then
19376 for ac_header in krb5.h
19378 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19379 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19380 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19381 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19382 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19383 echo $ECHO_N "(cached
) $ECHO_C" >&6
19385 ac_res=`eval echo '${'$as_ac_Header'}'`
19386 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19387 echo "${ECHO_T}$ac_res" >&6; }
19389 # Is the header compilable?
19390 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19391 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19392 cat >conftest.$ac_ext <<_ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19398 $ac_includes_default
19399 #include <$ac_header>
19401 rm -f conftest.$ac_objext
19402 if { (ac_try="$ac_compile"
19403 case "(($ac_try" in
19404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405 *) ac_try_echo=$ac_try;;
19407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19408 (eval "$ac_compile") 2>conftest.er1
19410 grep -v '^ *+' conftest.er1 >conftest.err
19412 cat conftest.err >&5
19413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19414 (exit $ac_status); } && {
19415 test -z "$ac_c_werror_flag" ||
19416 test ! -s conftest.err
19417 } && test -s conftest.$ac_objext; then
19418 ac_header_compiler=yes
19420 echo "$as_me: failed program was
:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19423 ac_header_compiler=no
19426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19427 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19428 echo "${ECHO_T}$ac_header_compiler" >&6; }
19430 # Is the header present?
19431 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19432 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19433 cat >conftest.$ac_ext <<_ACEOF
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h. */
19439 #include <$ac_header>
19441 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19442 case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19449 grep -v '^ *+' conftest.er1 >conftest.err
19451 cat conftest.err >&5
19452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19453 (exit $ac_status); } >/dev/null && {
19454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19455 test ! -s conftest.err
19457 ac_header_preproc=yes
19459 echo "$as_me: failed program was
:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19462 ac_header_preproc=no
19465 rm -f conftest.err conftest.$ac_ext
19466 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19467 echo "${ECHO_T}$ac_header_preproc" >&6; }
19469 # So? What about this header?
19470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19472 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19473 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19474 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19476 ac_header_preproc=yes
19479 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19480 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19481 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19482 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19483 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19484 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19485 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19486 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19487 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19489 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19490 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19494 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19495 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19496 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19497 echo $ECHO_N "(cached
) $ECHO_C" >&6
19499 eval "$as_ac_Header=\
$ac_header_preproc"
19501 ac_res=`eval echo '${'$as_ac_Header'}'`
19502 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19503 echo "${ECHO_T}$ac_res" >&6; }
19506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19507 cat >>confdefs.h <<_ACEOF
19508 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19517 for ac_header in des.h
19519 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19520 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19521 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19522 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19523 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19524 echo $ECHO_N "(cached
) $ECHO_C" >&6
19526 ac_res=`eval echo '${'$as_ac_Header'}'`
19527 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19528 echo "${ECHO_T}$ac_res" >&6; }
19530 # Is the header compilable?
19531 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19532 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19533 cat >conftest.$ac_ext <<_ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h. */
19539 $ac_includes_default
19540 #include <$ac_header>
19542 rm -f conftest.$ac_objext
19543 if { (ac_try="$ac_compile"
19544 case "(($ac_try" in
19545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19546 *) ac_try_echo=$ac_try;;
19548 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19549 (eval "$ac_compile") 2>conftest.er1
19551 grep -v '^ *+' conftest.er1 >conftest.err
19553 cat conftest.err >&5
19554 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19555 (exit $ac_status); } && {
19556 test -z "$ac_c_werror_flag" ||
19557 test ! -s conftest.err
19558 } && test -s conftest.$ac_objext; then
19559 ac_header_compiler=yes
19561 echo "$as_me: failed program was
:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19564 ac_header_compiler=no
19567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19568 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19569 echo "${ECHO_T}$ac_header_compiler" >&6; }
19571 # Is the header present?
19572 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19573 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19574 cat >conftest.$ac_ext <<_ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h. */
19580 #include <$ac_header>
19582 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19583 case "(($ac_try" in
19584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585 *) ac_try_echo=$ac_try;;
19587 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19588 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19590 grep -v '^ *+' conftest.er1 >conftest.err
19592 cat conftest.err >&5
19593 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19594 (exit $ac_status); } >/dev/null && {
19595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19596 test ! -s conftest.err
19598 ac_header_preproc=yes
19600 echo "$as_me: failed program was
:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19603 ac_header_preproc=no
19606 rm -f conftest.err conftest.$ac_ext
19607 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19608 echo "${ECHO_T}$ac_header_preproc" >&6; }
19610 # So? What about this header?
19611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19613 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19614 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19615 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19617 ac_header_preproc=yes
19620 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19621 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19622 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19623 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19624 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19625 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19626 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19627 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19628 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19630 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19631 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19635 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19636 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19637 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19638 echo $ECHO_N "(cached
) $ECHO_C" >&6
19640 eval "$as_ac_Header=\
$ac_header_preproc"
19642 ac_res=`eval echo '${'$as_ac_Header'}'`
19643 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19644 echo "${ECHO_T}$ac_res" >&6; }
19647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19648 cat >>confdefs.h <<_ACEOF
19649 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19654 for ac_header in kerberosIV/des.h
19656 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19657 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19658 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19659 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19660 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19661 echo $ECHO_N "(cached
) $ECHO_C" >&6
19663 ac_res=`eval echo '${'$as_ac_Header'}'`
19664 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19665 echo "${ECHO_T}$ac_res" >&6; }
19667 # Is the header compilable?
19668 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19669 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19670 cat >conftest.$ac_ext <<_ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19676 $ac_includes_default
19677 #include <$ac_header>
19679 rm -f conftest.$ac_objext
19680 if { (ac_try="$ac_compile"
19681 case "(($ac_try" in
19682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683 *) ac_try_echo=$ac_try;;
19685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19686 (eval "$ac_compile") 2>conftest.er1
19688 grep -v '^ *+' conftest.er1 >conftest.err
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19692 (exit $ac_status); } && {
19693 test -z "$ac_c_werror_flag" ||
19694 test ! -s conftest.err
19695 } && test -s conftest.$ac_objext; then
19696 ac_header_compiler=yes
19698 echo "$as_me: failed program was
:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19701 ac_header_compiler=no
19704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19705 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19706 echo "${ECHO_T}$ac_header_compiler" >&6; }
19708 # Is the header present?
19709 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19710 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19711 cat >conftest.$ac_ext <<_ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19717 #include <$ac_header>
19719 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19720 case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19727 grep -v '^ *+' conftest.er1 >conftest.err
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19731 (exit $ac_status); } >/dev/null && {
19732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19733 test ! -s conftest.err
19735 ac_header_preproc=yes
19737 echo "$as_me: failed program was
:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19740 ac_header_preproc=no
19743 rm -f conftest.err conftest.$ac_ext
19744 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19745 echo "${ECHO_T}$ac_header_preproc" >&6; }
19747 # So? What about this header?
19748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19750 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19751 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19752 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19754 ac_header_preproc=yes
19757 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19758 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19759 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19760 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19761 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19762 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19763 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19764 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19765 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19767 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19768 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19772 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19773 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19774 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19775 echo $ECHO_N "(cached
) $ECHO_C" >&6
19777 eval "$as_ac_Header=\
$ac_header_preproc"
19779 ac_res=`eval echo '${'$as_ac_Header'}'`
19780 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19781 echo "${ECHO_T}$ac_res" >&6; }
19784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19785 cat >>confdefs.h <<_ACEOF
19786 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19791 for ac_header in kerberos/des.h
19793 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19794 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19795 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19796 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19797 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19798 echo $ECHO_N "(cached
) $ECHO_C" >&6
19800 ac_res=`eval echo '${'$as_ac_Header'}'`
19801 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19802 echo "${ECHO_T}$ac_res" >&6; }
19804 # Is the header compilable?
19805 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19806 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19807 cat >conftest.$ac_ext <<_ACEOF
19810 cat confdefs.h >>conftest.$ac_ext
19811 cat >>conftest.$ac_ext <<_ACEOF
19812 /* end confdefs.h. */
19813 $ac_includes_default
19814 #include <$ac_header>
19816 rm -f conftest.$ac_objext
19817 if { (ac_try="$ac_compile"
19818 case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_compile") 2>conftest.er1
19825 grep -v '^ *+' conftest.er1 >conftest.err
19827 cat conftest.err >&5
19828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19829 (exit $ac_status); } && {
19830 test -z "$ac_c_werror_flag" ||
19831 test ! -s conftest.err
19832 } && test -s conftest.$ac_objext; then
19833 ac_header_compiler=yes
19835 echo "$as_me: failed program was
:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19838 ac_header_compiler=no
19841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19843 echo "${ECHO_T}$ac_header_compiler" >&6; }
19845 # Is the header present?
19846 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19847 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19848 cat >conftest.$ac_ext <<_ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19854 #include <$ac_header>
19856 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19857 case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19861 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19864 grep -v '^ *+' conftest.er1 >conftest.err
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19868 (exit $ac_status); } >/dev/null && {
19869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19870 test ! -s conftest.err
19872 ac_header_preproc=yes
19874 echo "$as_me: failed program was
:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19877 ac_header_preproc=no
19880 rm -f conftest.err conftest.$ac_ext
19881 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19882 echo "${ECHO_T}$ac_header_preproc" >&6; }
19884 # So? What about this header?
19885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19887 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19888 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19889 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19891 ac_header_preproc=yes
19894 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19895 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19896 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19897 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19898 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19899 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19900 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19901 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19902 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19904 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19905 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19909 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19910 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19911 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19912 echo $ECHO_N "(cached
) $ECHO_C" >&6
19914 eval "$as_ac_Header=\
$ac_header_preproc"
19916 ac_res=`eval echo '${'$as_ac_Header'}'`
19917 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19918 echo "${ECHO_T}$ac_res" >&6; }
19921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19922 cat >>confdefs.h <<_ACEOF
19923 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19939 for ac_header in krb.h
19941 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19942 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19943 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19944 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19945 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19946 echo $ECHO_N "(cached
) $ECHO_C" >&6
19948 ac_res=`eval echo '${'$as_ac_Header'}'`
19949 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19950 echo "${ECHO_T}$ac_res" >&6; }
19952 # Is the header compilable?
19953 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19954 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19955 cat >conftest.$ac_ext <<_ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h. */
19961 $ac_includes_default
19962 #include <$ac_header>
19964 rm -f conftest.$ac_objext
19965 if { (ac_try="$ac_compile"
19966 case "(($ac_try" in
19967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968 *) ac_try_echo=$ac_try;;
19970 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19971 (eval "$ac_compile") 2>conftest.er1
19973 grep -v '^ *+' conftest.er1 >conftest.err
19975 cat conftest.err >&5
19976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19977 (exit $ac_status); } && {
19978 test -z "$ac_c_werror_flag" ||
19979 test ! -s conftest.err
19980 } && test -s conftest.$ac_objext; then
19981 ac_header_compiler=yes
19983 echo "$as_me: failed program was
:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19986 ac_header_compiler=no
19989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19990 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19991 echo "${ECHO_T}$ac_header_compiler" >&6; }
19993 # Is the header present?
19994 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19995 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19996 cat >conftest.$ac_ext <<_ACEOF
19999 cat confdefs.h >>conftest.$ac_ext
20000 cat >>conftest.$ac_ext <<_ACEOF
20001 /* end confdefs.h. */
20002 #include <$ac_header>
20004 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20005 case "(($ac_try" in
20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007 *) ac_try_echo=$ac_try;;
20009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20010 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20012 grep -v '^ *+' conftest.er1 >conftest.err
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20016 (exit $ac_status); } >/dev/null && {
20017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20018 test ! -s conftest.err
20020 ac_header_preproc=yes
20022 echo "$as_me: failed program was
:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20025 ac_header_preproc=no
20028 rm -f conftest.err conftest.$ac_ext
20029 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20030 echo "${ECHO_T}$ac_header_preproc" >&6; }
20032 # So? What about this header?
20033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20035 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20036 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20037 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20039 ac_header_preproc=yes
20042 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20043 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20044 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20045 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20046 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20047 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20048 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20049 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20050 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20052 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20053 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20057 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20058 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20059 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20060 echo $ECHO_N "(cached
) $ECHO_C" >&6
20062 eval "$as_ac_Header=\
$ac_header_preproc"
20064 ac_res=`eval echo '${'$as_ac_Header'}'`
20065 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20066 echo "${ECHO_T}$ac_res" >&6; }
20069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20070 cat >>confdefs.h <<_ACEOF
20071 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20076 for ac_header in kerberosIV/krb.h
20078 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20079 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20080 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20081 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20082 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20083 echo $ECHO_N "(cached
) $ECHO_C" >&6
20085 ac_res=`eval echo '${'$as_ac_Header'}'`
20086 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20087 echo "${ECHO_T}$ac_res" >&6; }
20089 # Is the header compilable?
20090 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20091 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20092 cat >conftest.$ac_ext <<_ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h. */
20098 $ac_includes_default
20099 #include <$ac_header>
20101 rm -f conftest.$ac_objext
20102 if { (ac_try="$ac_compile"
20103 case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20107 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_compile") 2>conftest.er1
20110 grep -v '^ *+' conftest.er1 >conftest.err
20112 cat conftest.err >&5
20113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20114 (exit $ac_status); } && {
20115 test -z "$ac_c_werror_flag" ||
20116 test ! -s conftest.err
20117 } && test -s conftest.$ac_objext; then
20118 ac_header_compiler=yes
20120 echo "$as_me: failed program was
:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20123 ac_header_compiler=no
20126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20127 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20128 echo "${ECHO_T}$ac_header_compiler" >&6; }
20130 # Is the header present?
20131 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20132 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20133 cat >conftest.$ac_ext <<_ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20139 #include <$ac_header>
20141 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20142 case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20149 grep -v '^ *+' conftest.er1 >conftest.err
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20153 (exit $ac_status); } >/dev/null && {
20154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20155 test ! -s conftest.err
20157 ac_header_preproc=yes
20159 echo "$as_me: failed program was
:" >&5
20160 sed 's/^/| /' conftest.$ac_ext >&5
20162 ac_header_preproc=no
20165 rm -f conftest.err conftest.$ac_ext
20166 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20167 echo "${ECHO_T}$ac_header_preproc" >&6; }
20169 # So? What about this header?
20170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20172 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20173 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20174 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20176 ac_header_preproc=yes
20179 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20180 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20181 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20182 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20183 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20184 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20185 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20186 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20187 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20189 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20190 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20194 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20195 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20196 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20197 echo $ECHO_N "(cached
) $ECHO_C" >&6
20199 eval "$as_ac_Header=\
$ac_header_preproc"
20201 ac_res=`eval echo '${'$as_ac_Header'}'`
20202 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20203 echo "${ECHO_T}$ac_res" >&6; }
20206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20207 cat >>confdefs.h <<_ACEOF
20208 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20213 for ac_header in kerberos/krb.h
20215 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20216 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20217 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20218 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20219 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20220 echo $ECHO_N "(cached
) $ECHO_C" >&6
20222 ac_res=`eval echo '${'$as_ac_Header'}'`
20223 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20224 echo "${ECHO_T}$ac_res" >&6; }
20226 # Is the header compilable?
20227 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20228 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20229 cat >conftest.$ac_ext <<_ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20235 $ac_includes_default
20236 #include <$ac_header>
20238 rm -f conftest.$ac_objext
20239 if { (ac_try="$ac_compile"
20240 case "(($ac_try" in
20241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242 *) ac_try_echo=$ac_try;;
20244 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20245 (eval "$ac_compile") 2>conftest.er1
20247 grep -v '^ *+' conftest.er1 >conftest.err
20249 cat conftest.err >&5
20250 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20251 (exit $ac_status); } && {
20252 test -z "$ac_c_werror_flag" ||
20253 test ! -s conftest.err
20254 } && test -s conftest.$ac_objext; then
20255 ac_header_compiler=yes
20257 echo "$as_me: failed program was
:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20260 ac_header_compiler=no
20263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20264 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20265 echo "${ECHO_T}$ac_header_compiler" >&6; }
20267 # Is the header present?
20268 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20269 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20270 cat >conftest.$ac_ext <<_ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h. */
20276 #include <$ac_header>
20278 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20279 case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20283 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20286 grep -v '^ *+' conftest.er1 >conftest.err
20288 cat conftest.err >&5
20289 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20290 (exit $ac_status); } >/dev/null && {
20291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20292 test ! -s conftest.err
20294 ac_header_preproc=yes
20296 echo "$as_me: failed program was
:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20299 ac_header_preproc=no
20302 rm -f conftest.err conftest.$ac_ext
20303 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20304 echo "${ECHO_T}$ac_header_preproc" >&6; }
20306 # So? What about this header?
20307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20309 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20310 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20311 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20313 ac_header_preproc=yes
20316 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20317 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20318 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20319 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20320 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20321 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20322 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20323 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20324 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20326 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20327 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20331 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20332 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20333 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20334 echo $ECHO_N "(cached
) $ECHO_C" >&6
20336 eval "$as_ac_Header=\
$ac_header_preproc"
20338 ac_res=`eval echo '${'$as_ac_Header'}'`
20339 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20340 echo "${ECHO_T}$ac_res" >&6; }
20343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20344 cat >>confdefs.h <<_ACEOF
20345 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20362 for ac_header in com_err.h
20364 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20365 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20366 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20367 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20368 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20369 echo $ECHO_N "(cached
) $ECHO_C" >&6
20371 ac_res=`eval echo '${'$as_ac_Header'}'`
20372 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20373 echo "${ECHO_T}$ac_res" >&6; }
20375 # Is the header compilable?
20376 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20377 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20378 cat >conftest.$ac_ext <<_ACEOF
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20384 $ac_includes_default
20385 #include <$ac_header>
20387 rm -f conftest.$ac_objext
20388 if { (ac_try="$ac_compile"
20389 case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20393 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20394 (eval "$ac_compile") 2>conftest.er1
20396 grep -v '^ *+' conftest.er1 >conftest.err
20398 cat conftest.err >&5
20399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20400 (exit $ac_status); } && {
20401 test -z "$ac_c_werror_flag" ||
20402 test ! -s conftest.err
20403 } && test -s conftest.$ac_objext; then
20404 ac_header_compiler=yes
20406 echo "$as_me: failed program was
:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20409 ac_header_compiler=no
20412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20413 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20414 echo "${ECHO_T}$ac_header_compiler" >&6; }
20416 # Is the header present?
20417 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20418 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20419 cat >conftest.$ac_ext <<_ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h. */
20425 #include <$ac_header>
20427 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20428 case "(($ac_try" in
20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20432 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20433 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20435 grep -v '^ *+' conftest.er1 >conftest.err
20437 cat conftest.err >&5
20438 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20439 (exit $ac_status); } >/dev/null && {
20440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20441 test ! -s conftest.err
20443 ac_header_preproc=yes
20445 echo "$as_me: failed program was
:" >&5
20446 sed 's/^/| /' conftest.$ac_ext >&5
20448 ac_header_preproc=no
20451 rm -f conftest.err conftest.$ac_ext
20452 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20453 echo "${ECHO_T}$ac_header_preproc" >&6; }
20455 # So? What about this header?
20456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20458 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20459 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20460 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20462 ac_header_preproc=yes
20465 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20466 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20467 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20468 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20469 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20470 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20471 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20472 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20473 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20475 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20476 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20480 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20481 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20482 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20483 echo $ECHO_N "(cached
) $ECHO_C" >&6
20485 eval "$as_ac_Header=\
$ac_header_preproc"
20487 ac_res=`eval echo '${'$as_ac_Header'}'`
20488 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20489 echo "${ECHO_T}$ac_res" >&6; }
20492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20493 cat >>confdefs.h <<_ACEOF
20494 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20503 # Solaris requires -lintl if you want strerror (which calls dgettext)
20504 # to return localized messages.
20506 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
20507 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
20508 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20509 echo $ECHO_N "(cached
) $ECHO_C" >&6
20511 ac_check_lib_save_LIBS=$LIBS
20512 LIBS="-lintl $LIBS"
20513 cat >conftest.$ac_ext <<_ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20520 /* Override any GCC internal prototype to avoid an error.
20521 Use char because int might match the return type of a GCC
20522 builtin and then its argument prototype would still apply. */
20530 return dgettext ();
20535 rm -f conftest.$ac_objext conftest$ac_exeext
20536 if { (ac_try="$ac_link"
20537 case "(($ac_try" in
20538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539 *) ac_try_echo=$ac_try;;
20541 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20542 (eval "$ac_link") 2>conftest.er1
20544 grep -v '^ *+' conftest.er1 >conftest.err
20546 cat conftest.err >&5
20547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20548 (exit $ac_status); } && {
20549 test -z "$ac_c_werror_flag" ||
20550 test ! -s conftest.err
20551 } && test -s conftest$ac_exeext &&
20552 $as_test_x conftest$ac_exeext; then
20553 ac_cv_lib_intl_dgettext=yes
20555 echo "$as_me: failed program was
:" >&5
20556 sed 's/^/| /' conftest.$ac_ext >&5
20558 ac_cv_lib_intl_dgettext=no
20561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20562 conftest$ac_exeext conftest.$ac_ext
20563 LIBS=$ac_check_lib_save_LIBS
20565 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
20566 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
20567 if test $ac_cv_lib_intl_dgettext = yes; then
20568 cat >>confdefs.h <<_ACEOF
20569 #define HAVE_LIBINTL 1
20572 LIBS="-lintl $LIBS"
20577 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
20578 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
20579 if test "${emacs_cv_localtime_cache+set}" = set; then
20580 echo $ECHO_N "(cached
) $ECHO_C" >&6
20582 if test x$ac_cv_func_tzset = xyes; then
20583 if test "$cross_compiling" = yes; then
20584 # If we have tzset, assume the worst when cross-compiling.
20585 emacs_cv_localtime_cache=yes
20587 cat >conftest.$ac_ext <<_ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20594 extern char **environ;
20598 for (to = from = environ; (*to = *from); from++)
20599 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20602 char TZ_GMT0[] = "TZ
=GMT0
";
20603 char TZ_PST8[] = "TZ
=PST8
";
20606 time_t now = time ((time_t *) 0);
20607 int hour_GMT0, hour_unset;
20608 if (putenv (TZ_GMT0) != 0)
20610 hour_GMT0 = localtime (&now)->tm_hour;
20612 hour_unset = localtime (&now)->tm_hour;
20613 if (putenv (TZ_PST8) != 0)
20615 if (localtime (&now)->tm_hour == hour_GMT0)
20618 if (localtime (&now)->tm_hour != hour_unset)
20623 rm -f conftest$ac_exeext
20624 if { (ac_try="$ac_link"
20625 case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20629 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20630 (eval "$ac_link") 2>&5
20632 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20634 { (case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20638 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_try") 2>&5
20641 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20642 (exit $ac_status); }; }; then
20643 emacs_cv_localtime_cache=no
20645 echo "$as_me: program exited with status
$ac_status" >&5
20646 echo "$as_me: failed program was
:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20649 ( exit $ac_status )
20650 emacs_cv_localtime_cache=yes
20652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20657 # If we lack tzset, report that localtime does not cache TZ,
20658 # since we can't invalidate the cache if we don't have tzset.
20659 emacs_cv_localtime_cache=no
20662 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
20663 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
20664 if test $emacs_cv_localtime_cache = yes; then
20666 cat >>confdefs.h <<\_ACEOF
20667 #define LOCALTIME_CACHE 1
20672 if test "x
$HAVE_TIMEVAL" = xyes; then
20674 for ac_func in gettimeofday
20676 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20677 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
20678 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
20679 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20680 echo $ECHO_N "(cached
) $ECHO_C" >&6
20682 cat >conftest.$ac_ext <<_ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h. */
20688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20690 #define $ac_func innocuous_$ac_func
20692 /* System header to define __stub macros and hopefully few prototypes,
20693 which can conflict with char $ac_func (); below.
20694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20695 <limits.h> exists even on freestanding compilers. */
20698 # include <limits.h>
20700 # include <assert.h>
20705 /* Override any GCC internal prototype to avoid an error.
20706 Use char because int might match the return type of a GCC
20707 builtin and then its argument prototype would still apply. */
20712 /* The GNU C library defines this for functions which it implements
20713 to always fail with ENOSYS. Some functions are actually named
20714 something starting with __ and the normal name is an alias. */
20715 #if defined __stub_$ac_func || defined __stub___$ac_func
20722 return $ac_func ();
20727 rm -f conftest.$ac_objext conftest$ac_exeext
20728 if { (ac_try="$ac_link"
20729 case "(($ac_try" in
20730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20731 *) ac_try_echo=$ac_try;;
20733 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20734 (eval "$ac_link") 2>conftest.er1
20736 grep -v '^ *+' conftest.er1 >conftest.err
20738 cat conftest.err >&5
20739 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20740 (exit $ac_status); } && {
20741 test -z "$ac_c_werror_flag" ||
20742 test ! -s conftest.err
20743 } && test -s conftest$ac_exeext &&
20744 $as_test_x conftest$ac_exeext; then
20745 eval "$as_ac_var=yes"
20747 echo "$as_me: failed program was
:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20750 eval "$as_ac_var=no
"
20753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20754 conftest$ac_exeext conftest.$ac_ext
20756 ac_res=`eval echo '${'$as_ac_var'}'`
20757 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20758 echo "${ECHO_T}$ac_res" >&6; }
20759 if test `eval echo '${'$as_ac_var'}'` = yes; then
20760 cat >>confdefs.h <<_ACEOF
20761 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20767 if test $ac_cv_func_gettimeofday = yes; then
20768 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
20769 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
20770 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20771 echo $ECHO_N "(cached
) $ECHO_C" >&6
20773 cat >conftest.$ac_ext <<_ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h. */
20780 #ifdef TIME_WITH_SYS_TIME
20781 #include <sys/time.h>
20784 #ifdef HAVE_SYS_TIME_H
20785 #include <sys/time.h>
20793 struct timeval time;
20794 gettimeofday (&time, 0);
20799 rm -f conftest.$ac_objext
20800 if { (ac_try="$ac_compile"
20801 case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20805 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_compile") 2>conftest.er1
20808 grep -v '^ *+' conftest.er1 >conftest.err
20810 cat conftest.err >&5
20811 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20812 (exit $ac_status); } && {
20813 test -z "$ac_c_werror_flag" ||
20814 test ! -s conftest.err
20815 } && test -s conftest.$ac_objext; then
20816 emacs_cv_gettimeofday_two_arguments=yes
20818 echo "$as_me: failed program was
:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20821 emacs_cv_gettimeofday_two_arguments=no
20824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20826 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
20827 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
20828 if test $emacs_cv_gettimeofday_two_arguments = no; then
20830 cat >>confdefs.h <<\_ACEOF
20831 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20838 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20839 { echo "$as_me:$LINENO: checking
for struct tm.tm_zone
" >&5
20840 echo $ECHO_N "checking
for struct tm.tm_zone...
$ECHO_C" >&6; }
20841 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20842 echo $ECHO_N "(cached
) $ECHO_C" >&6
20844 cat >conftest.$ac_ext <<_ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20850 #include <sys/types.h>
20851 #include <$ac_cv_struct_tm>
20857 static struct tm ac_aggr;
20858 if (ac_aggr.tm_zone)
20864 rm -f conftest.$ac_objext
20865 if { (ac_try="$ac_compile"
20866 case "(($ac_try" in
20867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868 *) ac_try_echo=$ac_try;;
20870 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20871 (eval "$ac_compile") 2>conftest.er1
20873 grep -v '^ *+' conftest.er1 >conftest.err
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20877 (exit $ac_status); } && {
20878 test -z "$ac_c_werror_flag" ||
20879 test ! -s conftest.err
20880 } && test -s conftest.$ac_objext; then
20881 ac_cv_member_struct_tm_tm_zone=yes
20883 echo "$as_me: failed program was
:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20886 cat >conftest.$ac_ext <<_ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h. */
20892 #include <sys/types.h>
20893 #include <$ac_cv_struct_tm>
20899 static struct tm ac_aggr;
20900 if (sizeof ac_aggr.tm_zone)
20906 rm -f conftest.$ac_objext
20907 if { (ac_try="$ac_compile"
20908 case "(($ac_try" in
20909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20910 *) ac_try_echo=$ac_try;;
20912 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20913 (eval "$ac_compile") 2>conftest.er1
20915 grep -v '^ *+' conftest.er1 >conftest.err
20917 cat conftest.err >&5
20918 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20919 (exit $ac_status); } && {
20920 test -z "$ac_c_werror_flag" ||
20921 test ! -s conftest.err
20922 } && test -s conftest.$ac_objext; then
20923 ac_cv_member_struct_tm_tm_zone=yes
20925 echo "$as_me: failed program was
:" >&5
20926 sed 's/^/| /' conftest.$ac_ext >&5
20928 ac_cv_member_struct_tm_tm_zone=no
20931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20936 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_tm_tm_zone" >&5
20937 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
20938 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20940 cat >>confdefs.h <<_ACEOF
20941 #define HAVE_STRUCT_TM_TM_ZONE 1
20947 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20949 cat >>confdefs.h <<\_ACEOF
20950 #define HAVE_TM_ZONE 1
20954 { echo "$as_me:$LINENO: checking whether tzname is declared
" >&5
20955 echo $ECHO_N "checking whether tzname is declared...
$ECHO_C" >&6; }
20956 if test "${ac_cv_have_decl_tzname+set}" = set; then
20957 echo $ECHO_N "(cached
) $ECHO_C" >&6
20959 cat >conftest.$ac_ext <<_ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h. */
20978 rm -f conftest.$ac_objext
20979 if { (ac_try="$ac_compile"
20980 case "(($ac_try" in
20981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982 *) ac_try_echo=$ac_try;;
20984 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20985 (eval "$ac_compile") 2>conftest.er1
20987 grep -v '^ *+' conftest.er1 >conftest.err
20989 cat conftest.err >&5
20990 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20991 (exit $ac_status); } && {
20992 test -z "$ac_c_werror_flag" ||
20993 test ! -s conftest.err
20994 } && test -s conftest.$ac_objext; then
20995 ac_cv_have_decl_tzname=yes
20997 echo "$as_me: failed program was
:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
21000 ac_cv_have_decl_tzname=no
21003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21005 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_tzname" >&5
21006 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21007 if test $ac_cv_have_decl_tzname = yes; then
21009 cat >>confdefs.h <<_ACEOF
21010 #define HAVE_DECL_TZNAME 1
21015 cat >>confdefs.h <<_ACEOF
21016 #define HAVE_DECL_TZNAME 0
21023 { echo "$as_me:$LINENO: checking
for tzname
" >&5
21024 echo $ECHO_N "checking
for tzname...
$ECHO_C" >&6; }
21025 if test "${ac_cv_var_tzname+set}" = set; then
21026 echo $ECHO_N "(cached
) $ECHO_C" >&6
21028 cat >conftest.$ac_ext <<_ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h. */
21035 #if !HAVE_DECL_TZNAME
21036 extern char *tzname[];
21042 return tzname[0][0];
21047 rm -f conftest.$ac_objext conftest$ac_exeext
21048 if { (ac_try="$ac_link"
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_link") 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); } && {
21061 test -z "$ac_c_werror_flag" ||
21062 test ! -s conftest.err
21063 } && test -s conftest$ac_exeext &&
21064 $as_test_x conftest$ac_exeext; then
21065 ac_cv_var_tzname=yes
21067 echo "$as_me: failed program was
:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21070 ac_cv_var_tzname=no
21073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21074 conftest$ac_exeext conftest.$ac_ext
21076 { echo "$as_me:$LINENO: result
: $ac_cv_var_tzname" >&5
21077 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21078 if test $ac_cv_var_tzname = yes; then
21080 cat >>confdefs.h <<\_ACEOF
21081 #define HAVE_TZNAME 1
21088 if test "$ac_cv_func_gettimeofday" = yes; then
21089 { echo "$as_me:$LINENO: checking
for struct timezone
" >&5
21090 echo $ECHO_N "checking
for struct timezone...
$ECHO_C" >&6; }
21091 if test "${emacs_cv_struct_timezone+set}" = set; then
21092 echo $ECHO_N "(cached
) $ECHO_C" >&6
21094 cat >conftest.$ac_ext <<_ACEOF
21097 cat confdefs.h >>conftest.$ac_ext
21098 cat >>conftest.$ac_ext <<_ACEOF
21099 /* end confdefs.h. */
21100 #include <sys/time.h>
21104 struct timezone tz;
21109 rm -f conftest.$ac_objext
21110 if { (ac_try="$ac_compile"
21111 case "(($ac_try" in
21112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113 *) ac_try_echo=$ac_try;;
21115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21116 (eval "$ac_compile") 2>conftest.er1
21118 grep -v '^ *+' conftest.er1 >conftest.err
21120 cat conftest.err >&5
21121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21122 (exit $ac_status); } && {
21123 test -z "$ac_c_werror_flag" ||
21124 test ! -s conftest.err
21125 } && test -s conftest.$ac_objext; then
21126 if test "$cross_compiling" = yes; then
21127 emacs_cv_struct_timezone=yes
21129 cat >conftest.$ac_ext <<_ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h. */
21136 #ifdef TIME_WITH_SYS_TIME
21137 #include <sys/time.h>
21140 #ifdef HAVE_SYS_TIME_H
21141 #include <sys/time.h>
21147 struct timeval time;
21148 struct timezone dummy;
21149 exit (gettimeofday (&time, &dummy));
21152 rm -f conftest$ac_exeext
21153 if { (ac_try="$ac_link"
21154 case "(($ac_try" in
21155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21156 *) ac_try_echo=$ac_try;;
21158 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21159 (eval "$ac_link") 2>&5
21161 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21163 { (case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_try") 2>&5
21170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21171 (exit $ac_status); }; }; then
21172 emacs_cv_struct_timezone=yes
21174 echo "$as_me: program exited with status
$ac_status" >&5
21175 echo "$as_me: failed program was
:" >&5
21176 sed 's/^/| /' conftest.$ac_ext >&5
21178 ( exit $ac_status )
21179 emacs_cv_struct_timezone=no
21181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21186 echo "$as_me: failed program was
:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21189 emacs_cv_struct_timezone=no
21192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21194 { echo "$as_me:$LINENO: result
: $emacs_cv_struct_timezone" >&5
21195 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6; }
21199 { echo "$as_me:$LINENO: checking
for socket
" >&5
21200 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21201 if test "${ac_cv_func_socket+set}" = set; then
21202 echo $ECHO_N "(cached
) $ECHO_C" >&6
21204 cat >conftest.$ac_ext <<_ACEOF
21207 cat confdefs.h >>conftest.$ac_ext
21208 cat >>conftest.$ac_ext <<_ACEOF
21209 /* end confdefs.h. */
21210 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21212 #define socket innocuous_socket
21214 /* System header to define __stub macros and hopefully few prototypes,
21215 which can conflict with char socket (); below.
21216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21217 <limits.h> exists even on freestanding compilers. */
21220 # include <limits.h>
21222 # include <assert.h>
21227 /* Override any GCC internal prototype to avoid an error.
21228 Use char because int might match the return type of a GCC
21229 builtin and then its argument prototype would still apply. */
21234 /* The GNU C library defines this for functions which it implements
21235 to always fail with ENOSYS. Some functions are actually named
21236 something starting with __ and the normal name is an alias. */
21237 #if defined __stub_socket || defined __stub___socket
21249 rm -f conftest.$ac_objext conftest$ac_exeext
21250 if { (ac_try="$ac_link"
21251 case "(($ac_try" in
21252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253 *) ac_try_echo=$ac_try;;
21255 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21256 (eval "$ac_link") 2>conftest.er1
21258 grep -v '^ *+' conftest.er1 >conftest.err
21260 cat conftest.err >&5
21261 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21262 (exit $ac_status); } && {
21263 test -z "$ac_c_werror_flag" ||
21264 test ! -s conftest.err
21265 } && test -s conftest$ac_exeext &&
21266 $as_test_x conftest$ac_exeext; then
21267 ac_cv_func_socket=yes
21269 echo "$as_me: failed program was
:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21272 ac_cv_func_socket=no
21275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21276 conftest$ac_exeext conftest.$ac_ext
21278 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21279 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21280 if test $ac_cv_func_socket = yes; then
21286 if test $ok_so_far = yes; then
21287 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21288 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21289 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21290 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21291 echo $ECHO_N "(cached
) $ECHO_C" >&6
21293 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21294 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21296 # Is the header compilable?
21297 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21298 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21299 cat >conftest.$ac_ext <<_ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h. */
21305 $ac_includes_default
21306 #include <netinet/in.h>
21308 rm -f conftest.$ac_objext
21309 if { (ac_try="$ac_compile"
21310 case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21315 (eval "$ac_compile") 2>conftest.er1
21317 grep -v '^ *+' conftest.er1 >conftest.err
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21321 (exit $ac_status); } && {
21322 test -z "$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21324 } && test -s conftest.$ac_objext; then
21325 ac_header_compiler=yes
21327 echo "$as_me: failed program was
:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21330 ac_header_compiler=no
21333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21334 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21335 echo "${ECHO_T}$ac_header_compiler" >&6; }
21337 # Is the header present?
21338 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21339 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21340 cat >conftest.$ac_ext <<_ACEOF
21343 cat confdefs.h >>conftest.$ac_ext
21344 cat >>conftest.$ac_ext <<_ACEOF
21345 /* end confdefs.h. */
21346 #include <netinet/in.h>
21348 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21349 case "(($ac_try" in
21350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351 *) ac_try_echo=$ac_try;;
21353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21354 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21356 grep -v '^ *+' conftest.er1 >conftest.err
21358 cat conftest.err >&5
21359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21360 (exit $ac_status); } >/dev/null && {
21361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21362 test ! -s conftest.err
21364 ac_header_preproc=yes
21366 echo "$as_me: failed program was
:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21369 ac_header_preproc=no
21372 rm -f conftest.err conftest.$ac_ext
21373 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21374 echo "${ECHO_T}$ac_header_preproc" >&6; }
21376 # So? What about this header?
21377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21379 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21380 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21381 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21382 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21383 ac_header_preproc=yes
21386 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21387 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21388 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21389 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21390 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21391 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21392 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21393 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21394 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21395 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21396 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21397 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21401 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21402 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21403 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21404 echo $ECHO_N "(cached
) $ECHO_C" >&6
21406 ac_cv_header_netinet_in_h=$ac_header_preproc
21408 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21409 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21412 if test $ac_cv_header_netinet_in_h = yes; then
21420 if test $ok_so_far = yes; then
21421 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21422 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21423 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21424 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21425 echo $ECHO_N "(cached
) $ECHO_C" >&6
21427 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21428 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21430 # Is the header compilable?
21431 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21432 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
21433 cat >conftest.$ac_ext <<_ACEOF
21436 cat confdefs.h >>conftest.$ac_ext
21437 cat >>conftest.$ac_ext <<_ACEOF
21438 /* end confdefs.h. */
21439 $ac_includes_default
21440 #include <arpa/inet.h>
21442 rm -f conftest.$ac_objext
21443 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
21459 ac_header_compiler=yes
21461 echo "$as_me: failed program was
:" >&5
21462 sed 's/^/| /' conftest.$ac_ext >&5
21464 ac_header_compiler=no
21467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21468 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21469 echo "${ECHO_T}$ac_header_compiler" >&6; }
21471 # Is the header present?
21472 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
21473 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
21474 cat >conftest.$ac_ext <<_ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h. */
21480 #include <arpa/inet.h>
21482 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21483 case "(($ac_try" in
21484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485 *) ac_try_echo=$ac_try;;
21487 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21488 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21490 grep -v '^ *+' conftest.er1 >conftest.err
21492 cat conftest.err >&5
21493 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21494 (exit $ac_status); } >/dev/null && {
21495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21496 test ! -s conftest.err
21498 ac_header_preproc=yes
21500 echo "$as_me: failed program was
:" >&5
21501 sed 's/^/| /' conftest.$ac_ext >&5
21503 ac_header_preproc=no
21506 rm -f conftest.err conftest.$ac_ext
21507 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21508 echo "${ECHO_T}$ac_header_preproc" >&6; }
21510 # So? What about this header?
21511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21513 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21514 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21515 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
21516 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
21517 ac_header_preproc=yes
21520 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
21521 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
21522 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
21523 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
21524 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
21525 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
21526 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21527 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21528 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
21529 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
21530 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
21531 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
21535 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21536 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21537 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21538 echo $ECHO_N "(cached
) $ECHO_C" >&6
21540 ac_cv_header_arpa_inet_h=$ac_header_preproc
21542 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21543 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21546 if test $ac_cv_header_arpa_inet_h = yes; then
21554 if test $ok_so_far = yes; then
21556 cat >>confdefs.h <<\_ACEOF
21557 #define HAVE_INET_SOCKETS 1
21563 for ac_header in sys/ioctl.h
21565 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21566 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21567 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21568 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21569 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21570 echo $ECHO_N "(cached
) $ECHO_C" >&6
21572 ac_res=`eval echo '${'$as_ac_Header'}'`
21573 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21574 echo "${ECHO_T}$ac_res" >&6; }
21576 # Is the header compilable?
21577 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21578 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21579 cat >conftest.$ac_ext <<_ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585 $ac_includes_default
21586 #include <$ac_header>
21588 rm -f conftest.$ac_objext
21589 if { (ac_try="$ac_compile"
21590 case "(($ac_try" in
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592 *) ac_try_echo=$ac_try;;
21594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21595 (eval "$ac_compile") 2>conftest.er1
21597 grep -v '^ *+' conftest.er1 >conftest.err
21599 cat conftest.err >&5
21600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21601 (exit $ac_status); } && {
21602 test -z "$ac_c_werror_flag" ||
21603 test ! -s conftest.err
21604 } && test -s conftest.$ac_objext; then
21605 ac_header_compiler=yes
21607 echo "$as_me: failed program was
:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21610 ac_header_compiler=no
21613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21614 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21615 echo "${ECHO_T}$ac_header_compiler" >&6; }
21617 # Is the header present?
21618 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21619 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21620 cat >conftest.$ac_ext <<_ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h. */
21626 #include <$ac_header>
21628 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21629 case "(($ac_try" in
21630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21631 *) ac_try_echo=$ac_try;;
21633 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21634 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21636 grep -v '^ *+' conftest.er1 >conftest.err
21638 cat conftest.err >&5
21639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21640 (exit $ac_status); } >/dev/null && {
21641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21642 test ! -s conftest.err
21644 ac_header_preproc=yes
21646 echo "$as_me: failed program was
:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21649 ac_header_preproc=no
21652 rm -f conftest.err conftest.$ac_ext
21653 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21654 echo "${ECHO_T}$ac_header_preproc" >&6; }
21656 # So? What about this header?
21657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21659 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21660 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21661 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21663 ac_header_preproc=yes
21666 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21667 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21668 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21669 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21670 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21671 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21672 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21673 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21674 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21676 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21677 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21681 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21682 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21683 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21684 echo $ECHO_N "(cached
) $ECHO_C" >&6
21686 eval "$as_ac_Header=\
$ac_header_preproc"
21688 ac_res=`eval echo '${'$as_ac_Header'}'`
21689 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21690 echo "${ECHO_T}$ac_res" >&6; }
21693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21694 cat >>confdefs.h <<_ACEOF
21695 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21703 if test -f /usr/lpp/X11/bin/smt.exp; then
21705 cat >>confdefs.h <<\_ACEOF
21706 #define HAVE_AIX_SMT_EXP 1
21711 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
21712 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
21713 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21714 { echo "$as_me:$LINENO: result
: yes" >&5
21715 echo "${ECHO_T}yes" >&6; }
21717 cat >>confdefs.h <<\_ACEOF
21718 #define HAVE_DEV_PTMX 1
21722 { echo "$as_me:$LINENO: result
: no
" >&5
21723 echo "${ECHO_T}no
" >&6; }
21726 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
21727 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
21728 if test "${ac_cv_type_pid_t+set}" = set; then
21729 echo $ECHO_N "(cached
) $ECHO_C" >&6
21731 cat >conftest.$ac_ext <<_ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h. */
21737 $ac_includes_default
21738 typedef pid_t ac__type_new_;
21742 if ((ac__type_new_ *) 0)
21744 if (sizeof (ac__type_new_))
21750 rm -f conftest.$ac_objext
21751 if { (ac_try="$ac_compile"
21752 case "(($ac_try" in
21753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754 *) ac_try_echo=$ac_try;;
21756 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21757 (eval "$ac_compile") 2>conftest.er1
21759 grep -v '^ *+' conftest.er1 >conftest.err
21761 cat conftest.err >&5
21762 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21763 (exit $ac_status); } && {
21764 test -z "$ac_c_werror_flag" ||
21765 test ! -s conftest.err
21766 } && test -s conftest.$ac_objext; then
21767 ac_cv_type_pid_t=yes
21769 echo "$as_me: failed program was
:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21772 ac_cv_type_pid_t=no
21775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21777 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
21778 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21779 if test $ac_cv_type_pid_t = yes; then
21783 cat >>confdefs.h <<_ACEOF
21790 for ac_header in vfork.h
21792 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21793 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21794 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21795 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21796 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21797 echo $ECHO_N "(cached
) $ECHO_C" >&6
21799 ac_res=`eval echo '${'$as_ac_Header'}'`
21800 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21801 echo "${ECHO_T}$ac_res" >&6; }
21803 # Is the header compilable?
21804 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21805 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21806 cat >conftest.$ac_ext <<_ACEOF
21809 cat confdefs.h >>conftest.$ac_ext
21810 cat >>conftest.$ac_ext <<_ACEOF
21811 /* end confdefs.h. */
21812 $ac_includes_default
21813 #include <$ac_header>
21815 rm -f conftest.$ac_objext
21816 if { (ac_try="$ac_compile"
21817 case "(($ac_try" in
21818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21819 *) ac_try_echo=$ac_try;;
21821 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21822 (eval "$ac_compile") 2>conftest.er1
21824 grep -v '^ *+' conftest.er1 >conftest.err
21826 cat conftest.err >&5
21827 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21828 (exit $ac_status); } && {
21829 test -z "$ac_c_werror_flag" ||
21830 test ! -s conftest.err
21831 } && test -s conftest.$ac_objext; then
21832 ac_header_compiler=yes
21834 echo "$as_me: failed program was
:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21837 ac_header_compiler=no
21840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21841 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21842 echo "${ECHO_T}$ac_header_compiler" >&6; }
21844 # Is the header present?
21845 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21846 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21847 cat >conftest.$ac_ext <<_ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h. */
21853 #include <$ac_header>
21855 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21856 case "(($ac_try" in
21857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858 *) ac_try_echo=$ac_try;;
21860 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21861 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21863 grep -v '^ *+' conftest.er1 >conftest.err
21865 cat conftest.err >&5
21866 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21867 (exit $ac_status); } >/dev/null && {
21868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21869 test ! -s conftest.err
21871 ac_header_preproc=yes
21873 echo "$as_me: failed program was
:" >&5
21874 sed 's/^/| /' conftest.$ac_ext >&5
21876 ac_header_preproc=no
21879 rm -f conftest.err conftest.$ac_ext
21880 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21881 echo "${ECHO_T}$ac_header_preproc" >&6; }
21883 # So? What about this header?
21884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21886 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21887 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21888 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21890 ac_header_preproc=yes
21893 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21894 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21895 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21896 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21897 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21898 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21899 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21900 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21901 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21903 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21904 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21908 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21909 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21910 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21911 echo $ECHO_N "(cached
) $ECHO_C" >&6
21913 eval "$as_ac_Header=\
$ac_header_preproc"
21915 ac_res=`eval echo '${'$as_ac_Header'}'`
21916 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21917 echo "${ECHO_T}$ac_res" >&6; }
21920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21921 cat >>confdefs.h <<_ACEOF
21922 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21931 for ac_func in fork vfork
21933 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21934 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21935 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21936 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21937 echo $ECHO_N "(cached
) $ECHO_C" >&6
21939 cat >conftest.$ac_ext <<_ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h. */
21945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21947 #define $ac_func innocuous_$ac_func
21949 /* System header to define __stub macros and hopefully few prototypes,
21950 which can conflict with char $ac_func (); below.
21951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21952 <limits.h> exists even on freestanding compilers. */
21955 # include <limits.h>
21957 # include <assert.h>
21962 /* Override any GCC internal prototype to avoid an error.
21963 Use char because int might match the return type of a GCC
21964 builtin and then its argument prototype would still apply. */
21969 /* The GNU C library defines this for functions which it implements
21970 to always fail with ENOSYS. Some functions are actually named
21971 something starting with __ and the normal name is an alias. */
21972 #if defined __stub_$ac_func || defined __stub___$ac_func
21979 return $ac_func ();
21984 rm -f conftest.$ac_objext conftest$ac_exeext
21985 if { (ac_try="$ac_link"
21986 case "(($ac_try" in
21987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21988 *) ac_try_echo=$ac_try;;
21990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21991 (eval "$ac_link") 2>conftest.er1
21993 grep -v '^ *+' conftest.er1 >conftest.err
21995 cat conftest.err >&5
21996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21997 (exit $ac_status); } && {
21998 test -z "$ac_c_werror_flag" ||
21999 test ! -s conftest.err
22000 } && test -s conftest$ac_exeext &&
22001 $as_test_x conftest$ac_exeext; then
22002 eval "$as_ac_var=yes"
22004 echo "$as_me: failed program was
:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22007 eval "$as_ac_var=no
"
22010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22011 conftest$ac_exeext conftest.$ac_ext
22013 ac_res=`eval echo '${'$as_ac_var'}'`
22014 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22015 echo "${ECHO_T}$ac_res" >&6; }
22016 if test `eval echo '${'$as_ac_var'}'` = yes; then
22017 cat >>confdefs.h <<_ACEOF
22018 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22024 if test "x
$ac_cv_func_fork" = xyes; then
22025 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22026 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22027 if test "${ac_cv_func_fork_works+set}" = set; then
22028 echo $ECHO_N "(cached
) $ECHO_C" >&6
22030 if test "$cross_compiling" = yes; then
22031 ac_cv_func_fork_works=cross
22033 cat >conftest.$ac_ext <<_ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h. */
22039 $ac_includes_default
22044 /* By Ruediger Kuhlmann. */
22045 return fork () < 0;
22051 rm -f conftest$ac_exeext
22052 if { (ac_try="$ac_link"
22053 case "(($ac_try" in
22054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055 *) ac_try_echo=$ac_try;;
22057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22058 (eval "$ac_link") 2>&5
22060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22062 { (case "(($ac_try" in
22063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22064 *) ac_try_echo=$ac_try;;
22066 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22067 (eval "$ac_try") 2>&5
22069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22070 (exit $ac_status); }; }; then
22071 ac_cv_func_fork_works=yes
22073 echo "$as_me: program exited with status
$ac_status" >&5
22074 echo "$as_me: failed program was
:" >&5
22075 sed 's/^/| /' conftest.$ac_ext >&5
22077 ( exit $ac_status )
22078 ac_cv_func_fork_works=no
22080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22085 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22086 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22089 ac_cv_func_fork_works=$ac_cv_func_fork
22091 if test "x
$ac_cv_func_fork_works" = xcross; then
22093 *-*-amigaos* | *-*-msdosdjgpp*)
22094 # Override, as these systems have only a dummy fork() stub
22095 ac_cv_func_fork_works=no
22098 ac_cv_func_fork_works=yes
22101 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22102 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22104 ac_cv_func_vfork_works=$ac_cv_func_vfork
22105 if test "x
$ac_cv_func_vfork" = xyes; then
22106 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22107 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22108 if test "${ac_cv_func_vfork_works+set}" = set; then
22109 echo $ECHO_N "(cached
) $ECHO_C" >&6
22111 if test "$cross_compiling" = yes; then
22112 ac_cv_func_vfork_works=cross
22114 cat >conftest.$ac_ext <<_ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h. */
22120 /* Thanks to Paul Eggert for this test. */
22121 $ac_includes_default
22122 #include <sys/wait.h>
22123 #ifdef HAVE_VFORK_H
22124 # include <vfork.h>
22126 /* On some sparc systems, changes by the child to local and incoming
22127 argument registers are propagated back to the parent. The compiler
22128 is told about this with #include <vfork.h>, but some compilers
22129 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22130 static variable whose address is put into a register that is
22131 clobbered by the vfork. */
22134 sparc_address_test (int arg)
22136 sparc_address_test (arg) int arg;
22139 static pid_t child;
22157 pid_t parent = getpid ();
22160 sparc_address_test (0);
22165 /* Here is another test for sparc vfork register problems. This
22166 test uses lots of local variables, at least as many local
22167 variables as main has allocated so far including compiler
22168 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22169 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22170 reuse the register of parent for one of the local variables,
22171 since it will think that parent can't possibly be used any more
22172 in this routine. Assigning to the local variable will thus
22173 munge parent in the parent process. */
22175 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22176 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22177 /* Convince the compiler that p..p7 are live; otherwise, it might
22178 use the same hardware register for all 8 local variables. */
22179 if (p != p1 || p != p2 || p != p3 || p != p4
22180 || p != p5 || p != p6 || p != p7)
22183 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22184 from child file descriptors. If the child closes a descriptor
22185 before it execs or exits, this munges the parent's descriptor
22186 as well. Test for this by closing stdout in the child. */
22187 _exit(close(fileno(stdout)) != 0);
22192 while (wait(&status) != child)
22195 /* Was there some problem with vforking? */
22198 /* Did the child fail? (This shouldn't happen.) */
22201 /* Did the vfork/compiler bug occur? */
22202 || parent != getpid()
22204 /* Did the file descriptor bug occur? */
22205 || fstat(fileno(stdout), &st) != 0
22210 rm -f conftest$ac_exeext
22211 if { (ac_try="$ac_link"
22212 case "(($ac_try" in
22213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214 *) ac_try_echo=$ac_try;;
22216 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22217 (eval "$ac_link") 2>&5
22219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22221 { (case "(($ac_try" in
22222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223 *) ac_try_echo=$ac_try;;
22225 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22226 (eval "$ac_try") 2>&5
22228 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22229 (exit $ac_status); }; }; then
22230 ac_cv_func_vfork_works=yes
22232 echo "$as_me: program exited with status
$ac_status" >&5
22233 echo "$as_me: failed program was
:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22236 ( exit $ac_status )
22237 ac_cv_func_vfork_works=no
22239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22244 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22245 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22248 if test "x
$ac_cv_func_fork_works" = xcross; then
22249 ac_cv_func_vfork_works=$ac_cv_func_vfork
22250 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22251 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22254 if test "x
$ac_cv_func_vfork_works" = xyes; then
22256 cat >>confdefs.h <<\_ACEOF
22257 #define HAVE_WORKING_VFORK 1
22262 cat >>confdefs.h <<\_ACEOF
22267 if test "x
$ac_cv_func_fork_works" = xyes; then
22269 cat >>confdefs.h <<\_ACEOF
22270 #define HAVE_WORKING_FORK 1
22276 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22277 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22278 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22279 echo $ECHO_N "(cached
) $ECHO_C" >&6
22281 cat >conftest.$ac_ext <<_ACEOF
22284 cat confdefs.h >>conftest.$ac_ext
22285 cat >>conftest.$ac_ext <<_ACEOF
22286 /* end confdefs.h. */
22287 #include <langinfo.h>
22291 char* cs = nl_langinfo(CODESET);
22296 rm -f conftest.$ac_objext conftest$ac_exeext
22297 if { (ac_try="$ac_link"
22298 case "(($ac_try" in
22299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22300 *) ac_try_echo=$ac_try;;
22302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22303 (eval "$ac_link") 2>conftest.er1
22305 grep -v '^ *+' conftest.er1 >conftest.err
22307 cat conftest.err >&5
22308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22309 (exit $ac_status); } && {
22310 test -z "$ac_c_werror_flag" ||
22311 test ! -s conftest.err
22312 } && test -s conftest$ac_exeext &&
22313 $as_test_x conftest$ac_exeext; then
22314 emacs_cv_langinfo_codeset=yes
22316 echo "$as_me: failed program was
:" >&5
22317 sed 's/^/| /' conftest.$ac_ext >&5
22319 emacs_cv_langinfo_codeset=no
22322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22323 conftest$ac_exeext conftest.$ac_ext
22326 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22327 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22328 if test $emacs_cv_langinfo_codeset = yes; then
22330 cat >>confdefs.h <<\_ACEOF
22331 #define HAVE_LANGINFO_CODESET 1
22336 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22337 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22338 if test "${ac_cv_type_size_t+set}" = set; then
22339 echo $ECHO_N "(cached
) $ECHO_C" >&6
22341 cat >conftest.$ac_ext <<_ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h. */
22347 $ac_includes_default
22348 typedef size_t ac__type_new_;
22352 if ((ac__type_new_ *) 0)
22354 if (sizeof (ac__type_new_))
22360 rm -f conftest.$ac_objext
22361 if { (ac_try="$ac_compile"
22362 case "(($ac_try" in
22363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364 *) ac_try_echo=$ac_try;;
22366 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22367 (eval "$ac_compile") 2>conftest.er1
22369 grep -v '^ *+' conftest.er1 >conftest.err
22371 cat conftest.err >&5
22372 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22373 (exit $ac_status); } && {
22374 test -z "$ac_c_werror_flag" ||
22375 test ! -s conftest.err
22376 } && test -s conftest.$ac_objext; then
22377 ac_cv_type_size_t=yes
22379 echo "$as_me: failed program was
:" >&5
22380 sed 's/^/| /' conftest.$ac_ext >&5
22382 ac_cv_type_size_t=no
22385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22387 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22388 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22389 if test $ac_cv_type_size_t = yes; then
22391 cat >>confdefs.h <<_ACEOF
22392 #define HAVE_SIZE_T 1
22399 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22400 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22401 if test "${ac_cv_type_mbstate_t+set}" = set; then
22402 echo $ECHO_N "(cached
) $ECHO_C" >&6
22404 cat >conftest.$ac_ext <<_ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h. */
22410 $ac_includes_default
22411 # include <wchar.h>
22415 mbstate_t x; return sizeof x;
22420 rm -f conftest.$ac_objext
22421 if { (ac_try="$ac_compile"
22422 case "(($ac_try" in
22423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22424 *) ac_try_echo=$ac_try;;
22426 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22427 (eval "$ac_compile") 2>conftest.er1
22429 grep -v '^ *+' conftest.er1 >conftest.err
22431 cat conftest.err >&5
22432 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22433 (exit $ac_status); } && {
22434 test -z "$ac_c_werror_flag" ||
22435 test ! -s conftest.err
22436 } && test -s conftest.$ac_objext; then
22437 ac_cv_type_mbstate_t=yes
22439 echo "$as_me: failed program was
:" >&5
22440 sed 's/^/| /' conftest.$ac_ext >&5
22442 ac_cv_type_mbstate_t=no
22445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22447 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
22448 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22449 if test $ac_cv_type_mbstate_t = yes; then
22451 cat >>confdefs.h <<\_ACEOF
22452 #define HAVE_MBSTATE_T 1
22457 cat >>confdefs.h <<\_ACEOF
22458 #define mbstate_t int
22463 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
22464 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
22465 if test "${emacs_cv_c_restrict+set}" = set; then
22466 echo $ECHO_N "(cached
) $ECHO_C" >&6
22468 cat >conftest.$ac_ext <<_ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474 void fred (int *restrict x);
22483 rm -f conftest.$ac_objext
22484 if { (ac_try="$ac_compile"
22485 case "(($ac_try" in
22486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22487 *) ac_try_echo=$ac_try;;
22489 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22490 (eval "$ac_compile") 2>conftest.er1
22492 grep -v '^ *+' conftest.er1 >conftest.err
22494 cat conftest.err >&5
22495 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22496 (exit $ac_status); } && {
22497 test -z "$ac_c_werror_flag" ||
22498 test ! -s conftest.err
22499 } && test -s conftest.$ac_objext; then
22500 emacs_cv_c_restrict=yes
22502 echo "$as_me: failed program was
:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22505 cat >conftest.$ac_ext <<_ACEOF
22508 cat confdefs.h >>conftest.$ac_ext
22509 cat >>conftest.$ac_ext <<_ACEOF
22510 /* end confdefs.h. */
22511 void fred (int *__restrict x);
22520 rm -f conftest.$ac_objext
22521 if { (ac_try="$ac_compile"
22522 case "(($ac_try" in
22523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22524 *) ac_try_echo=$ac_try;;
22526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22527 (eval "$ac_compile") 2>conftest.er1
22529 grep -v '^ *+' conftest.er1 >conftest.err
22531 cat conftest.err >&5
22532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22533 (exit $ac_status); } && {
22534 test -z "$ac_c_werror_flag" ||
22535 test ! -s conftest.err
22536 } && test -s conftest.$ac_objext; then
22537 emacs_cv_c_restrict=__restrict
22539 echo "$as_me: failed program was
:" >&5
22540 sed 's/^/| /' conftest.$ac_ext >&5
22542 emacs_cv_c_restrict=no
22545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22550 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
22551 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22552 case "$emacs_cv_c_restrict" in
22553 yes) emacs_restrict=restrict;;
22554 no) emacs_restrict="";;
22555 *) emacs_restrict="$emacs_cv_c_restrict";;
22557 if test "$emacs_restrict" != __restrict; then
22559 cat >>confdefs.h <<_ACEOF
22560 #define __restrict $emacs_restrict
22565 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
22566 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
22567 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22568 echo $ECHO_N "(cached
) $ECHO_C" >&6
22570 cat >conftest.$ac_ext <<_ACEOF
22573 cat confdefs.h >>conftest.$ac_ext
22574 cat >>conftest.$ac_ext <<_ACEOF
22575 /* end confdefs.h. */
22576 void fred (int x[__restrict]);
22585 rm -f conftest.$ac_objext
22586 if { (ac_try="$ac_compile"
22587 case "(($ac_try" in
22588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22589 *) ac_try_echo=$ac_try;;
22591 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22592 (eval "$ac_compile") 2>conftest.er1
22594 grep -v '^ *+' conftest.er1 >conftest.err
22596 cat conftest.err >&5
22597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22598 (exit $ac_status); } && {
22599 test -z "$ac_c_werror_flag" ||
22600 test ! -s conftest.err
22601 } && test -s conftest.$ac_objext; then
22602 emacs_cv_c_restrict_arr=yes
22604 echo "$as_me: failed program was
:" >&5
22605 sed 's/^/| /' conftest.$ac_ext >&5
22607 emacs_cv_c_restrict_arr=no
22610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22612 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
22613 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22614 if test "$emacs_cv_c_restrict_arr" = yes; then
22616 cat >>confdefs.h <<\_ACEOF
22617 #define __restrict_arr __restrict
22624 # Set up the CFLAGS for real compilation, so we can substitute it.
22625 CFLAGS="$REAL_CFLAGS"
22626 CPPFLAGS="$REAL_CPPFLAGS"
22628 #### Find out which version of Emacs this is.
22629 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22630 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
22631 if test x"${version}" = x; then
22632 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
22633 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
22634 { (exit 1); exit 1; }; }
22637 ### Specify what sort of things we'll be editing into Makefile and config.h.
22638 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22674 cat >>confdefs.h <<_ACEOF
22675 #define EMACS_CONFIGURATION "${canonical}"
22679 cat >>confdefs.h <<_ACEOF
22680 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22684 cat >>confdefs.h <<_ACEOF
22685 #define config_machfile "${machfile}"
22689 cat >>confdefs.h <<_ACEOF
22690 #define config_opsysfile "${opsysfile}"
22694 cat >>confdefs.h <<_ACEOF
22695 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22699 cat >>confdefs.h <<_ACEOF
22700 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22704 cat >>confdefs.h <<_ACEOF
22705 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22709 cat >>confdefs.h <<_ACEOF
22710 #define UNEXEC_SRC ${UNEXEC_SRC}
22714 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22716 cat >>confdefs.h <<\_ACEOF
22717 #define HAVE_X_WINDOWS 1
22721 if test "${USE_X_TOOLKIT}" != "none
" ; then
22723 cat >>confdefs.h <<\_ACEOF
22724 #define USE_X_TOOLKIT 1
22728 if test "${HAVE_X11}" = "yes" ; then
22730 cat >>confdefs.h <<\_ACEOF
22735 if test "${HAVE_XFREE386}" = "yes" ; then
22737 cat >>confdefs.h <<\_ACEOF
22738 #define HAVE_XFREE386 1
22742 if test "${HAVE_MENUS}" = "yes" ; then
22744 cat >>confdefs.h <<\_ACEOF
22745 #define HAVE_MENUS 1
22749 if test "${GNU_MALLOC}" = "yes" ; then
22751 cat >>confdefs.h <<\_ACEOF
22752 #define GNU_MALLOC 1
22756 if test "${REL_ALLOC}" = "yes" ; then
22758 cat >>confdefs.h <<\_ACEOF
22759 #define REL_ALLOC 1
22768 #### Report on what we decided to do.
22769 #### Report GTK as a toolkit, even if it doesn't use Xt.
22770 #### It makes printing result more understandable as using GTK sets
22771 #### toolkit_scroll_bars to yes by default.
22772 if test "${HAVE_GTK}" = "yes"; then
22777 Configured
for \
`${canonical}'.
22779 Where should the build process find the source code? ${srcdir}
22780 What operating system and machine description files should Emacs use?
22781 \`${opsysfile}' and \`${machfile}'
22782 What compiler should emacs be built with?
${CC} ${CFLAGS}
22783 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
22784 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
22785 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
22786 What window system should Emacs use?
${window_system}
22787 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
22789 if test -n "${x_includes}"; then
22790 echo " Where
do we
find X Windows header files?
${x_includes}"
22792 echo " Where
do we
find X Windows header files? Standard
dirs"
22794 if test -n "${x_libraries}"; then
22795 echo " Where
do we
find X Windows libraries?
${x_libraries}"
22797 echo " Where
do we
find X Windows libraries? Standard
dirs"
22800 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
22801 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
22802 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
22803 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
22804 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
22805 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
22806 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
22809 if test $USE_XASSERTS = yes; then
22810 echo " Compiling with asserts turned on.
"
22811 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22817 # Remove any trailing slashes in these variables.
22818 test "${prefix}" != NONE &&
22819 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22820 test "${exec_prefix}" != NONE &&
22821 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22823 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22824 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22825 ## from Makefile.c can correctly provide the arg `-traditional' to the
22828 cat >conftest.$ac_ext <<_ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h. */
22836 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
22837 $EGREP "yes..
yes" >/dev/null 2>&1; then
22838 CPP_NEED_TRADITIONAL=no
22840 CPP_NEED_TRADITIONAL=yes
22845 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
"
22847 ac_config_commands="$ac_config_commands default
"
22849 cat >confcache <<\_ACEOF
22850 # This file is a shell script that caches the results of configure
22851 # tests run on this system so they can be shared between configure
22852 # scripts and configure runs, see configure's option --config-cache.
22853 # It is not useful on other systems. If it contains results you don't
22854 # want to keep, you may remove or edit it.
22856 # config.status only pays attention to the cache file if you give it
22857 # the --recheck option to rerun configure.
22859 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22860 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22861 # following values.
22865 # The following way of writing the cache mishandles newlines in values,
22866 # but we know of no workaround that is simple, portable, and efficient.
22867 # So, we kill variables containing newlines.
22868 # Ultrix sh set writes to stderr and can't be redirected directly,
22869 # and sets the high bit in the cache file unless we assign to the vars.
22871 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22872 eval ac_val=\$$ac_var
22876 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
22877 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
22880 _ | IFS | as_nl) ;; #(
22881 *) $as_unset $ac_var ;;
22887 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22888 *${as_nl}ac_space=\ *)
22889 # `set' does not quote correctly, so add quotes (double-quote
22890 # substitution turns \\\\ into \\, and sed turns \\ into \).
22893 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
22896 # `set' quotes correctly as required by POSIX, so do not add quotes.
22897 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
22906 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22908 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22910 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22911 if test -w "$cache_file"; then
22912 test "x
$cache_file" != "x
/dev
/null
" &&
22913 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
22914 echo "$as_me: updating cache
$cache_file" >&6;}
22915 cat confcache >$cache_file
22917 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
22918 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
22923 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
22924 # Let make expand exec_prefix.
22925 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
22927 DEFS=-DHAVE_CONFIG_H
22931 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
22932 # 1. Remove the extension, and $U if already installed.
22933 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22934 ac_i=`echo "$ac_i" | sed "$ac_script"`
22935 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22936 # will be set to the directory where LIBOBJS objects are built.
22937 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
22938 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
22940 LIBOBJS=$ac_libobjs
22942 LTLIBOBJS=$ac_ltlibobjs
22946 : ${CONFIG_STATUS=./config.status}
22947 ac_clean_files_save=$ac_clean_files
22948 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22949 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
22950 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
22951 cat >$CONFIG_STATUS <<_ACEOF
22953 # Generated by $as_me.
22954 # Run this file to recreate the current configuration.
22955 # Compiler output produced by configure, useful for debugging
22956 # configure, is in config.log if it exists.
22959 ac_cs_recheck=false
22961 SHELL=\${CONFIG_SHELL-$SHELL}
22964 cat >>$CONFIG_STATUS <<\_ACEOF
22965 ## --------------------- ##
22966 ## M4sh Initialization. ##
22967 ## --------------------- ##
22969 # Be more Bourne compatible
22970 DUALCASE=1; export DUALCASE # for MKS sh
22971 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22974 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22975 # is contrary to our usage. Disable this feature.
22976 alias -g '${1+"$@"}'='"$@
"'
22977 setopt NO_GLOB_SUBST
22979 case `(set -o) 2>/dev/null` in
22980 *posix*) set -o posix ;;
22989 # Avoid depending upon Character Ranges.
22990 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22991 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22992 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22993 as_cr_digits='0123456789'
22994 as_cr_alnum=$as_cr_Letters$as_cr_digits
22996 # The user is always right.
22997 if test "${PATH_SEPARATOR+set}" != set; then
22998 echo "#! /bin/sh" >conf$$.sh
22999 echo "exit 0" >>conf$$.sh
23001 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23009 # Support unset when possible.
23010 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23018 # We need space, tab and new line, in precisely that order. Quoting is
23019 # there to prevent editors from complaining about space-tab.
23020 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23021 # splitting by setting IFS to empty value.)
23026 # Find who we are. Look in the path if we contain no directory separator.
23028 *[\\/]* ) as_myself
=$0 ;;
23029 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23030 for as_dir
in $PATH
23033 test -z "$as_dir" && as_dir
=.
23034 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23040 # We did not find ourselves, most probably we were run as `sh COMMAND'
23041 # in which case we are not to be found in the path.
23042 if test "x$as_myself" = x
; then
23045 if test ! -f "$as_myself"; then
23046 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23047 { (exit 1); exit 1; }
23050 # Work around bugs in pre-3.0 UWIN ksh.
23051 for as_var
in ENV MAIL MAILPATH
23052 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23060 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23061 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23062 LC_TELEPHONE LC_TIME
23064 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23065 eval $as_var=C
; export $as_var
23067 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23071 # Required to use basename.
23072 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23073 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23079 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23080 as_basename
=basename
23086 # Name of the executable.
23087 as_me
=`$as_basename -- "$0" ||
23088 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23089 X"$0" : 'X\(//\)$' \| \
23090 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23092 sed '/^.*\/\([^/][^/]*\)\/*$/{
23111 as_lineno_1
=$LINENO
23112 as_lineno_2
=$LINENO
23113 test "x$as_lineno_1" != "x$as_lineno_2" &&
23114 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23116 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23117 # uniformly replaced by the line number. The first 'sed' inserts a
23118 # line-number line after each line using $LINENO; the second 'sed'
23119 # does the real work. The second script uses 'N' to pair each
23120 # line-number line with the line containing $LINENO, and appends
23121 # trailing '-' during substitution so that $LINENO is not a special
23122 # case at line end.
23123 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23124 # scripts with optimization help from Paolo Bonzini. Blame Lee
23125 # E. McMahon (1931-1989) for sed's syntax. :-)
23137 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23140 ' >$as_me.lineno
&&
23141 chmod +x
"$as_me.lineno" ||
23142 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23143 { (exit 1); exit 1; }; }
23145 # Don't try to exec as it changes $[0], causing all sort of problems
23146 # (the dirname of $[0] is not the place where we might find the
23147 # original and so on. Autoconf is especially sensitive to this).
23148 .
"./$as_me.lineno"
23149 # Exit status is that of the last command.
23154 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23160 ECHO_C
= ECHO_N
= ECHO_T
=
23161 case `echo -n x` in
23163 case `echo 'x\c'` in
23164 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23171 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23172 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23178 rm -f conf$$ conf$$.exe conf$$.
file
23179 if test -d conf$$.dir
; then
23180 rm -f conf$$.dir
/conf$$.
file
23186 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23188 # ... but there are two gotchas:
23189 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23190 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23191 # In both cases, we have to default to `cp -p'.
23192 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23194 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23199 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23200 rmdir conf$$.dir
2>/dev
/null
23202 if mkdir
-p .
2>/dev
/null
; then
23205 test -d .
/-p && rmdir .
/-p
23209 if test -x / >/dev
/null
2>&1; then
23210 as_test_x
='test -x'
23212 if ls -dL / >/dev
/null
2>&1; then
23219 if test -d "$1"; then
23225 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23226 ???[sx]*):;;*)false;;esac;fi
23230 as_executable_p
=$as_test_x
23232 # Sed expression to map a string onto a valid CPP name.
23233 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23235 # Sed expression to map a string onto a valid variable name.
23236 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23241 # Save the log message, to keep $[0] and so on meaningful, and to
23242 # report actual input values of CONFIG_FILES etc. instead of their
23243 # values after options handling.
23245 This file was extended by $as_me, which was
23246 generated by GNU Autoconf 2.61. Invocation command line was
23248 CONFIG_FILES = $CONFIG_FILES
23249 CONFIG_HEADERS = $CONFIG_HEADERS
23250 CONFIG_LINKS = $CONFIG_LINKS
23251 CONFIG_COMMANDS = $CONFIG_COMMANDS
23254 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23259 cat >>$CONFIG_STATUS <<_ACEOF
23260 # Files that config.status was made for.
23261 config_files="$ac_config_files"
23262 config_headers="$ac_config_headers"
23263 config_commands="$ac_config_commands"
23267 cat >>$CONFIG_STATUS <<\_ACEOF
23269 \`$as_me' instantiates files from templates according to the
23270 current configuration.
23272 Usage: $0 [OPTIONS] [FILE]...
23274 -h, --help print this help, then exit
23275 -V, --version print version number and configuration settings, then exit
23276 -q, --quiet do not print progress messages
23277 -d, --debug don't remove temporary files
23278 --recheck update $as_me by reconfiguring in the same conditions
23279 --file=FILE[:TEMPLATE]
23280 instantiate the configuration file FILE
23281 --header=FILE[:TEMPLATE]
23282 instantiate the configuration header FILE
23284 Configuration files:
23287 Configuration headers:
23290 Configuration commands:
23293 Report bugs to <bug-autoconf@gnu.org>."
23296 cat >>$CONFIG_STATUS <<_ACEOF
23299 configured by $0, generated by GNU Autoconf 2.61,
23300 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23302 Copyright (C) 2006 Free Software Foundation, Inc.
23303 This config.status script is free software; the Free Software Foundation
23304 gives unlimited permission to copy, distribute and modify it."
23311 cat >>$CONFIG_STATUS <<\_ACEOF
23312 # If no file are specified by the user, then we need to provide default
23313 # value. By we need to know if files were specified by the user.
23319 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23320 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23331 # Handling of the options.
23332 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23334 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23335 echo "$ac_cs_version"; exit ;;
23336 --debug |
--debu |
--deb |
--de |
--d |
-d )
23338 --file |
--fil |
--fi |
--f )
23340 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23341 ac_need_defaults
=false
;;
23342 --header |
--heade |
--head |
--hea )
23344 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23345 ac_need_defaults
=false
;;
23347 # Conflict between --help and --header
23348 { echo "$as_me: error: ambiguous option: $1
23349 Try \`$0 --help' for more information." >&2
23350 { (exit 1); exit 1; }; };;
23351 --help |
--hel |
-h )
23352 echo "$ac_cs_usage"; exit ;;
23353 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23354 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23357 # This is an error.
23358 -*) { echo "$as_me: error: unrecognized option: $1
23359 Try \`$0 --help' for more information." >&2
23360 { (exit 1); exit 1; }; } ;;
23362 *) ac_config_targets
="$ac_config_targets $1"
23363 ac_need_defaults
=false
;;
23369 ac_configure_extra_args
=
23371 if $ac_cs_silent; then
23373 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23377 cat >>$CONFIG_STATUS <<_ACEOF
23378 if \$ac_cs_recheck; then
23379 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23380 CONFIG_SHELL=$SHELL
23381 export CONFIG_SHELL
23382 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23386 cat >>$CONFIG_STATUS <<\_ACEOF
23390 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23391 ## Running $as_me. ##
23397 cat >>$CONFIG_STATUS <<_ACEOF
23401 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23405 cat >>$CONFIG_STATUS <<\_ACEOF
23407 # Handling of arguments.
23408 for ac_config_target
in $ac_config_targets
23410 case $ac_config_target in
23411 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23412 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23413 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23414 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23415 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23416 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23417 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23418 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23419 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23420 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23421 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23422 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23424 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23425 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23426 { (exit 1); exit 1; }; };;
23431 # If the user did not use the arguments to specify the items to instantiate,
23432 # then the envvar interface is used. Set only those that are not.
23433 # We use the long form for the default assignment because of an extremely
23434 # bizarre bug on SunOS 4.1.3.
23435 if $ac_need_defaults; then
23436 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23437 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23438 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23441 # Have a temporary directory for convenience. Make it in the build tree
23442 # simply because there is no reason against having it here, and in addition,
23443 # creating and moving files from /tmp can sometimes cause problems.
23444 # Hook for its removal unless debugging.
23445 # Note that there is a small window in which the directory will not be cleaned:
23446 # after its creation but before its name has been assigned to `$tmp'.
23450 trap 'exit_status=$?
23451 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23453 trap '{ (exit 1); exit 1; }' 1 2 13 15
23455 # Create a (secure) tmp directory for tmp files.
23458 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23459 test -n "$tmp" && test -d "$tmp"
23462 tmp
=.
/conf$$
-$RANDOM
23463 (umask 077 && mkdir
"$tmp")
23466 echo "$me: cannot create a temporary directory in ." >&2
23467 { (exit 1); exit 1; }
23471 # Set up the sed scripts for CONFIG_FILES section.
23474 # No need to generate the scripts if there are no CONFIG_FILES.
23475 # This happens for instance when ./config.status config.h
23476 if test -n "$CONFIG_FILES"; then
23483 for ac_last_try
in false false false false false
:; do
23484 cat >conf$
$subs.
sed <<_ACEOF
23485 SHELL!$SHELL$ac_delim
23486 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23487 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23488 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23489 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23490 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23491 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23492 exec_prefix!$exec_prefix$ac_delim
23493 prefix!$prefix$ac_delim
23494 program_transform_name!$program_transform_name$ac_delim
23495 bindir!$bindir$ac_delim
23496 sbindir!$sbindir$ac_delim
23497 libexecdir!$libexecdir$ac_delim
23498 datarootdir!$datarootdir$ac_delim
23499 datadir!$datadir$ac_delim
23500 sysconfdir!$sysconfdir$ac_delim
23501 sharedstatedir!$sharedstatedir$ac_delim
23502 localstatedir!$localstatedir$ac_delim
23503 includedir!$includedir$ac_delim
23504 oldincludedir!$oldincludedir$ac_delim
23505 docdir!$docdir$ac_delim
23506 infodir!$infodir$ac_delim
23507 htmldir!$htmldir$ac_delim
23508 dvidir!$dvidir$ac_delim
23509 pdfdir!$pdfdir$ac_delim
23510 psdir!$psdir$ac_delim
23511 libdir!$libdir$ac_delim
23512 localedir!$localedir$ac_delim
23513 mandir!$mandir$ac_delim
23514 DEFS!$DEFS$ac_delim
23515 ECHO_C!$ECHO_C$ac_delim
23516 ECHO_N!$ECHO_N$ac_delim
23517 ECHO_T!$ECHO_T$ac_delim
23518 LIBS!$LIBS$ac_delim
23519 build_alias!$build_alias$ac_delim
23520 host_alias!$host_alias$ac_delim
23521 target_alias!$target_alias$ac_delim
23522 MAINT!$MAINT$ac_delim
23523 build!$build$ac_delim
23524 build_cpu!$build_cpu$ac_delim
23525 build_vendor!$build_vendor$ac_delim
23526 build_os!$build_os$ac_delim
23527 host!$host$ac_delim
23528 host_cpu!$host_cpu$ac_delim
23529 host_vendor!$host_vendor$ac_delim
23530 host_os!$host_os$ac_delim
23532 CFLAGS!$CFLAGS$ac_delim
23533 LDFLAGS!$LDFLAGS$ac_delim
23534 CPPFLAGS!$CPPFLAGS$ac_delim
23535 ac_ct_CC!$ac_ct_CC$ac_delim
23536 EXEEXT!$EXEEXT$ac_delim
23537 OBJEXT!$OBJEXT$ac_delim
23539 GREP!$GREP$ac_delim
23540 EGREP!$EGREP$ac_delim
23541 LN_S!$LN_S$ac_delim
23542 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23543 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23544 INSTALL_DATA!$INSTALL_DATA$ac_delim
23545 RANLIB!$RANLIB$ac_delim
23546 INSTALL_INFO!$INSTALL_INFO$ac_delim
23547 GZIP_PROG!$GZIP_PROG$ac_delim
23548 LIBSOUND!$LIBSOUND$ac_delim
23549 PKG_CONFIG!$PKG_CONFIG$ac_delim
23550 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23551 ALSA_LIBS!$ALSA_LIBS$ac_delim
23552 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23553 SET_MAKE!$SET_MAKE$ac_delim
23554 XMKMF!$XMKMF$ac_delim
23555 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23556 GTK_LIBS!$GTK_LIBS$ac_delim
23557 ALLOCA!$ALLOCA$ac_delim
23558 liblockfile!$liblockfile$ac_delim
23559 LIBOBJS!$LIBOBJS$ac_delim
23560 NEED_SETGID!$NEED_SETGID$ac_delim
23561 KMEM_GROUP!$KMEM_GROUP$ac_delim
23562 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23563 GETOPT_H!$GETOPT_H$ac_delim
23564 GETOPTOBJS!$GETOPTOBJS$ac_delim
23565 version!$version$ac_delim
23566 configuration!$configuration$ac_delim
23567 canonical!$canonical$ac_delim
23568 srcdir!$srcdir$ac_delim
23569 lispdir!$lispdir$ac_delim
23570 locallisppath!$locallisppath$ac_delim
23571 lisppath!$lisppath$ac_delim
23572 x_default_search_path!$x_default_search_path$ac_delim
23573 etcdir!$etcdir$ac_delim
23574 archlibdir!$archlibdir$ac_delim
23575 bitmapdir!$bitmapdir$ac_delim
23576 gamedir!$gamedir$ac_delim
23577 gameuser!$gameuser$ac_delim
23578 c_switch_system!$c_switch_system$ac_delim
23579 c_switch_machine!$c_switch_machine$ac_delim
23580 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23581 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23584 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23586 elif $ac_last_try; then
23587 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23588 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23589 { (exit 1); exit 1; }; }
23591 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23595 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23596 if test -n "$ac_eof"; then
23597 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23598 ac_eof
=`expr $ac_eof + 1`
23601 cat >>$CONFIG_STATUS <<_ACEOF
23602 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23603 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23606 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23607 s/^/s,@/; s/!/@,|#_!!_#|/
23610 s/'"$ac_delim"'$/,g/; t
23612 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23613 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23614 rm -f conf$
$subs.
sed
23615 cat >>$CONFIG_STATUS <<_ACEOF
23621 for ac_last_try
in false false false false false
:; do
23622 cat >conf$
$subs.
sed <<_ACEOF
23623 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23624 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23625 machfile!$machfile$ac_delim
23626 opsysfile!$opsysfile$ac_delim
23627 carbon_appdir!$carbon_appdir$ac_delim
23628 LTLIBOBJS!$LTLIBOBJS$ac_delim
23631 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23633 elif $ac_last_try; then
23634 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23635 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23636 { (exit 1); exit 1; }; }
23638 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23642 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23643 if test -n "$ac_eof"; then
23644 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23645 ac_eof
=`expr $ac_eof + 1`
23648 cat >>$CONFIG_STATUS <<_ACEOF
23649 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23650 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23653 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23654 s/^/s,@/; s/!/@,|#_!!_#|/
23657 s/'"$ac_delim"'$/,g/; t
23659 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23660 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23661 rm -f conf$
$subs.
sed
23662 cat >>$CONFIG_STATUS <<_ACEOF
23669 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23670 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23671 # trailing colons and then remove the whole line if VPATH becomes empty
23672 # (actually we leave an empty line to preserve line numbers).
23673 if test "x$srcdir" = x.
; then
23674 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23675 s/:*\$(srcdir):*/:/
23676 s/:*\${srcdir}:*/:/
23678 s/^\([^=]*=[ ]*\):*/\1/
23684 cat >>$CONFIG_STATUS <<\_ACEOF
23685 fi # test -n "$CONFIG_FILES"
23688 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
23691 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23693 case $ac_mode$ac_tag in
23695 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23696 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23697 { (exit 1); exit 1; }; };;
23698 :[FH
]-) ac_tag
=-:-;;
23699 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23716 -) ac_f
="$tmp/stdin";;
23717 *) # Look for the file first in the build tree, then in the source tree
23718 # (if the path is not absolute). The absolute path cannot be DOS-style,
23719 # because $ac_f cannot contain `:'.
23723 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23725 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23726 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23727 { (exit 1); exit 1; }; };;
23729 ac_file_inputs
="$ac_file_inputs $ac_f"
23732 # Let's still pretend it is `configure' which instantiates (i.e., don't
23733 # use $as_me), people would be surprised to read:
23734 # /* config.h. Generated by config.status. */
23735 configure_input
="Generated from "`IFS=:
23736 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23737 if test x
"$ac_file" != x-
; then
23738 configure_input
="$ac_file. $configure_input"
23739 { echo "$as_me:$LINENO: creating $ac_file" >&5
23740 echo "$as_me: creating $ac_file" >&6;}
23744 *:-:* |
*:-) cat >"$tmp/stdin";;
23749 ac_dir
=`$as_dirname -- "$ac_file" ||
23750 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23751 X"$ac_file" : 'X\(//\)[^/]' \| \
23752 X"$ac_file" : 'X\(//\)$' \| \
23753 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23759 /^X\(\/\/\)[^/].*/{
23774 -*) as_dir
=.
/$as_dir;;
23776 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
23780 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23781 *) as_qdir
=$as_dir;;
23783 as_dirs
="'$as_qdir' $as_dirs"
23784 as_dir
=`$as_dirname -- "$as_dir" ||
23785 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23786 X"$as_dir" : 'X\(//\)[^/]' \| \
23787 X"$as_dir" : 'X\(//\)$' \| \
23788 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23794 /^X\(\/\/\)[^/].*/{
23807 test -d "$as_dir" && break
23809 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23810 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23811 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23812 { (exit 1); exit 1; }; }; }
23816 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23818 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23819 # A ".." for each directory in $ac_dir_suffix.
23820 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23821 case $ac_top_builddir_sub in
23822 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23823 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23826 ac_abs_top_builddir
=$ac_pwd
23827 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23828 # for backward compatibility:
23829 ac_top_builddir
=$ac_top_build_prefix
23832 .
) # We are building in place.
23834 ac_top_srcdir
=$ac_top_builddir_sub
23835 ac_abs_top_srcdir
=$ac_pwd ;;
23836 [\\/]* | ?
:[\\/]* ) # Absolute name.
23837 ac_srcdir
=$srcdir$ac_dir_suffix;
23838 ac_top_srcdir
=$srcdir
23839 ac_abs_top_srcdir
=$srcdir ;;
23840 *) # Relative name.
23841 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23842 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23843 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23845 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23855 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23856 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23860 cat >>$CONFIG_STATUS <<\_ACEOF
23861 # If the template does not know about datarootdir, expand it.
23862 # FIXME: This hack should be removed a few years after 2.60.
23863 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23865 case `sed -n '/datarootdir/ {
23874 ' $ac_file_inputs` in
23875 *datarootdir
*) ac_datarootdir_seen
=yes;;
23876 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23877 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23878 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23880 cat >>$CONFIG_STATUS <<_ACEOF
23881 ac_datarootdir_hack='
23882 s&@datadir@&$datadir&g
23883 s&@docdir@&$docdir&g
23884 s&@infodir@&$infodir&g
23885 s&@localedir@&$localedir&g
23886 s&@mandir@&$mandir&g
23887 s&\\\${datarootdir}&$datarootdir&g' ;;
23891 # Neutralize VPATH when `$srcdir' = `.'.
23892 # Shell code in configure.ac might set extrasub.
23893 # FIXME: do we really want to maintain this feature?
23894 cat >>$CONFIG_STATUS <<_ACEOF
23898 cat >>$CONFIG_STATUS <<\_ACEOF
23900 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23901 s
&@configure_input@
&$configure_input&;t t
23902 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23903 s
&@srcdir@
&$ac_srcdir&;t t
23904 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23905 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23906 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23907 s
&@builddir@
&$ac_builddir&;t t
23908 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23909 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23910 s
&@INSTALL@
&$ac_INSTALL&;t t
23911 $ac_datarootdir_hack
23912 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
23914 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23915 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23916 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23917 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23918 which seems to be undefined. Please make sure it is defined." >&5
23919 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23920 which seems to be undefined. Please make sure it is defined." >&2;}
23924 -) cat "$tmp/out"; rm -f "$tmp/out";;
23925 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23934 # Transform confdefs.h into a sed script `conftest.defines', that
23935 # substitutes the proper values into config.h.in to produce config.h.
23936 rm -f conftest.defines conftest.
tail
23937 # First, append a space to every undef/define line, to ease matching.
23938 echo 's/$/ /' >conftest.defines
23939 # Then, protect against being on the right side of a sed subst, or in
23940 # an unquoted here document, in config.status. If some macros were
23941 # called several times there might be several #defines for the same
23942 # symbol, which is useless. But do not sort them, since the last
23943 # AC_DEFINE must be honored.
23944 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
23945 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23946 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23947 # PARAMS is the parameter list in the macro definition--in most cases, it's
23948 # just an empty string.
23949 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23950 ac_dB
='\\)[ (].*,\\1define\\2'
23958 s/^[ ]*#[ ]*define[ ][ ]*//
23963 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23964 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23965 ' >>conftest.defines
23967 # Remove the space that was appended to ease matching.
23968 # Then replace #undef with comments. This is necessary, for
23969 # example, in the case of _POSIX_SOURCE, which is predefined and required
23970 # on some systems where configure will not decide to define it.
23971 # (The regexp can be short, since the line contains either #define or #undef.)
23973 s,^[ #]*u.*,/* & */,' >>conftest.defines
23975 # Break up conftest.defines:
23976 ac_max_sed_lines
=50
23978 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23979 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23980 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23982 ac_in
='$ac_file_inputs'
23983 ac_out
='"$tmp/out1"'
23984 ac_nxt
='"$tmp/out2"'
23988 # Write a here document:
23989 cat >>$CONFIG_STATUS <<_ACEOF
23990 # First, check the format of the line:
23991 cat >"\$tmp/defines.sed" <<\\CEOF
23992 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23993 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23997 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
23999 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24000 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24001 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24002 grep . conftest.
tail >/dev
/null ||
break
24003 rm -f conftest.defines
24004 mv conftest.
tail conftest.defines
24006 rm -f conftest.defines conftest.
tail
24008 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24009 cat >>$CONFIG_STATUS <<\_ACEOF
24010 if test x
"$ac_file" != x-
; then
24011 echo "/* $configure_input */" >"$tmp/config.h"
24012 cat "$ac_result" >>"$tmp/config.h"
24013 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24014 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24015 echo "$as_me: $ac_file is unchanged" >&6;}
24018 mv "$tmp/config.h" $ac_file
24021 echo "/* $configure_input */"
24027 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24028 echo "$as_me: executing $ac_file commands" >&6;}
24033 case $ac_file$ac_mode in
24036 ### Make the necessary directories, if they don't exist.
24037 for dir
in etc lisp
; do
24038 test -d ${dir} || mkdir
${dir}
24041 # Build src/Makefile from ${srcdir}/src/Makefile.c
24042 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24043 # This must be done after src/config.h is built, since we rely on that file.
24045 # Now get this: Some word that is part of the ${srcdir} directory name
24046 # or the ${configuration} value might, just might, happen to be an
24047 # identifier like `sun4' or `i386' or something, and be predefined by
24048 # the C preprocessor to some helpful value like 1, or maybe the empty
24049 # string. Needless to say consequent macro substitutions are less
24050 # than conducive to the makefile finding the correct directory.
24051 undefs
="`echo $top_srcdir $configuration $canonical |
24052 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24053 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24056 echo creating src
/epaths.h
24057 ${MAKE-make} epaths-force
24059 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24060 # `..' to `. .' unless invoked with -traditional
24062 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24063 CPPFLAGS
="$CPPFLAGS -traditional"
24066 echo creating lib-src
/Makefile
24068 rm -f junk.c junk1.c junk2.c
24069 sed -e '/start of cpp stuff/q' \
24070 < Makefile.c
> junk1.c
24071 sed -e '1,/start of cpp stuff/d'\
24072 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24073 < Makefile.c
> junk.c
24074 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24075 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24076 cat junk1.c junk2.c
> Makefile.new
24077 rm -f junk.c junk1.c junk2.c
24078 chmod 444 Makefile.new
24079 mv -f Makefile.new Makefile
24082 echo creating src
/Makefile
24084 rm -f junk.c junk1.c junk2.c
24085 sed -e '/start of cpp stuff/q' \
24086 < Makefile.c
> junk1.c
24087 sed -e '1,/start of cpp stuff/d'\
24088 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24089 < Makefile.c
> junk.c
24090 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24091 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24092 cat junk1.c junk2.c
> Makefile.new
24093 rm -f junk.c junk1.c junk2.c
24094 chmod 444 Makefile.new
24095 mv -f Makefile.new Makefile
24098 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24099 echo creating src
/.gdbinit
24100 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24103 # This is how we know whether to re-run configure in certain cases.
24104 touch src
/config.stamp
24112 { (exit 0); exit 0; }
24114 chmod +x
$CONFIG_STATUS
24115 ac_clean_files
=$ac_clean_files_save
24118 # configure is writing to config.log, and then calls config.status.
24119 # config.status does its own redirection, appending to config.log.
24120 # Unfortunately, on DOS this fails, as config.log is still kept open
24121 # by configure, so config.status won't be able to write to it; its
24122 # output is simply discarded. So we exec the FD to /dev/null,
24123 # effectively closing config.log, so it can be properly (re)opened and
24124 # appended to by config.status. When coming back to configure, we
24125 # need to make the FD available again.
24126 if test "$no_create" != yes; then
24128 ac_config_status_args
=
24129 test "$silent" = yes &&
24130 ac_config_status_args
="$ac_config_status_args --quiet"
24132 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24134 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24135 # would make configure fail if this is the last instruction.
24136 $ac_cs_success ||
{ (exit 1); exit 1; }