2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="src/lisp.h"
580 ac_config_libobj_dir
=src
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
628 program_transform_name
716 x_default_search_path
733 ac_precious_vars
='build_alias
745 # Initialize some variables set by options.
747 ac_init_version
=false
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
757 program_transform_name
=s
,x
,x
,
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir
='${exec_prefix}/bin'
772 sbindir
='${exec_prefix}/sbin'
773 libexecdir
='${exec_prefix}/libexec'
774 datarootdir
='${prefix}/share'
775 datadir
='${datarootdir}'
776 sysconfdir
='${prefix}/etc'
777 sharedstatedir
='${prefix}/com'
778 localstatedir
='${prefix}/var'
779 includedir
='${prefix}/include'
780 oldincludedir
='/usr/include'
781 docdir
='${datarootdir}/doc/${PACKAGE}'
782 infodir
='${datarootdir}/info'
787 libdir
='${exec_prefix}/lib'
788 localedir
='${datarootdir}/locale'
789 mandir
='${datarootdir}/man'
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\
$ac_option
803 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 # Accept the important Cygnus configure options, so we can diagnose typos.
809 case $ac_dashdash$ac_option in
813 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
815 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
818 -build |
--build |
--buil |
--bui |
--bu)
819 ac_prev
=build_alias
;;
820 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
821 build_alias
=$ac_optarg ;;
823 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
824 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
825 ac_prev
=cache_file
;;
826 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
827 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
828 cache_file
=$ac_optarg ;;
831 cache_file
=config.cache
;;
833 -datadir |
--datadir |
--datadi |
--datad)
835 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
836 datadir
=$ac_optarg ;;
838 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
839 |
--dataroo |
--dataro |
--datar)
840 ac_prev
=datarootdir
;;
841 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
842 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
843 datarootdir
=$ac_optarg ;;
845 -disable-* |
--disable-*)
846 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_
$ac_feature=no
;;
854 -docdir |
--docdir |
--docdi |
--doc |
--do)
856 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
859 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
861 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
864 -enable-* |
--enable-*)
865 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_
$ac_feature=\
$ac_optarg ;;
873 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
874 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
875 |
--exec |
--exe |
--ex)
876 ac_prev
=exec_prefix
;;
877 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
878 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
879 |
--exec=* |
--exe=* |
--ex=*)
880 exec_prefix
=$ac_optarg ;;
882 -gas |
--gas |
--ga |
--g)
883 # Obsolete; use --with-gas.
886 -help |
--help |
--hel |
--he |
-h)
888 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
889 ac_init_help
=recursive
;;
890 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
891 ac_init_help
=short
;;
893 -host |
--host |
--hos |
--ho)
894 ac_prev
=host_alias
;;
895 -host=* |
--host=* |
--hos=* |
--ho=*)
896 host_alias
=$ac_optarg ;;
898 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
900 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
902 htmldir
=$ac_optarg ;;
904 -includedir |
--includedir |
--includedi |
--included |
--include \
905 |
--includ |
--inclu |
--incl |
--inc)
906 ac_prev
=includedir
;;
907 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
908 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
909 includedir
=$ac_optarg ;;
911 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
913 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
914 infodir
=$ac_optarg ;;
916 -libdir |
--libdir |
--libdi |
--libd)
918 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
921 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
922 |
--libexe |
--libex |
--libe)
923 ac_prev
=libexecdir
;;
924 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
925 |
--libexe=* |
--libex=* |
--libe=*)
926 libexecdir
=$ac_optarg ;;
928 -localedir |
--localedir |
--localedi |
--localed |
--locale)
930 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
931 localedir
=$ac_optarg ;;
933 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
934 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
935 ac_prev
=localstatedir
;;
936 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
937 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
938 localstatedir
=$ac_optarg ;;
940 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
942 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
946 # Obsolete; use --without-fp.
949 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
950 |
--no-cr |
--no-c |
-n)
953 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
954 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
957 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
958 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
959 |
--oldin |
--oldi |
--old |
--ol |
--o)
960 ac_prev
=oldincludedir
;;
961 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
962 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
963 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
964 oldincludedir
=$ac_optarg ;;
966 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
968 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
971 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
972 |
--program-pre |
--program-pr |
--program-p)
973 ac_prev
=program_prefix
;;
974 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
975 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
976 program_prefix
=$ac_optarg ;;
978 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
979 |
--program-suf |
--program-su |
--program-s)
980 ac_prev
=program_suffix
;;
981 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
982 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
983 program_suffix
=$ac_optarg ;;
985 -program-transform-name |
--program-transform-name \
986 |
--program-transform-nam |
--program-transform-na \
987 |
--program-transform-n |
--program-transform- \
988 |
--program-transform |
--program-transfor \
989 |
--program-transfo |
--program-transf \
990 |
--program-trans |
--program-tran \
991 |
--progr-tra |
--program-tr |
--program-t)
992 ac_prev
=program_transform_name
;;
993 -program-transform-name=* |
--program-transform-name=* \
994 |
--program-transform-nam=* |
--program-transform-na=* \
995 |
--program-transform-n=* |
--program-transform-=* \
996 |
--program-transform=* |
--program-transfor=* \
997 |
--program-transfo=* |
--program-transf=* \
998 |
--program-trans=* |
--program-tran=* \
999 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1000 program_transform_name
=$ac_optarg ;;
1002 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1004 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1005 pdfdir
=$ac_optarg ;;
1007 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1009 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1012 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1013 |
-silent |
--silent |
--silen |
--sile |
--sil)
1016 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1018 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1020 sbindir
=$ac_optarg ;;
1022 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1023 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1024 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1026 ac_prev
=sharedstatedir
;;
1027 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1028 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1029 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1031 sharedstatedir
=$ac_optarg ;;
1033 -site |
--site |
--sit)
1035 -site=* |
--site=* |
--sit=*)
1038 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1040 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1041 srcdir
=$ac_optarg ;;
1043 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1044 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1045 ac_prev
=sysconfdir
;;
1046 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1047 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1048 sysconfdir
=$ac_optarg ;;
1050 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1051 ac_prev
=target_alias
;;
1052 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1053 target_alias
=$ac_optarg ;;
1055 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1058 -version |
--version |
--versio |
--versi |
--vers |
-V)
1059 ac_init_version
=: ;;
1062 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_
$ac_package=\
$ac_optarg ;;
1070 -without-* |
--without-*)
1071 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_
$ac_package=no
;;
1080 # Obsolete; use --with-x.
1083 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1084 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1085 ac_prev
=x_includes
;;
1086 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1087 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1088 x_includes
=$ac_optarg ;;
1090 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1091 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1092 ac_prev
=x_libraries
;;
1093 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1094 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1095 x_libraries
=$ac_optarg ;;
1097 -*) { echo "$as_me: error: unrecognized option: $ac_option
1098 Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
1103 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1107 { (exit 1); exit 1; }; }
1108 eval $ac_envvar=\
$ac_optarg
1109 export $ac_envvar ;;
1112 # FIXME: should be removed in autoconf 3.0.
1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1122 if test -n "$ac_prev"; then
1123 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1124 { echo "$as_me: error: missing argument to $ac_option" >&2
1125 { (exit 1); exit 1; }; }
1128 # Be sure to have absolute directory names.
1129 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1134 eval ac_val
=\$
$ac_var
1136 [\\/$
]* | ?
:[\\/]* ) continue;;
1137 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
1143 # There might be people who depend on the old broken behavior: `$host'
1144 # used to hold the argument of --host etc.
1145 # FIXME: To remove some day.
1148 target
=$target_alias
1150 # FIXME: To remove some day.
1151 if test "x$host_alias" != x
; then
1152 if test "x$build_alias" = x
; then
1153 cross_compiling
=maybe
1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1162 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1164 test "$silent" = yes && exec 6>/dev
/null
1167 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1168 ac_ls_di
=`ls -di .` &&
1169 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1170 { echo "$as_me: error: Working directory cannot be determined" >&2
1171 { (exit 1); exit 1; }; }
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 { echo "$as_me: error: pwd does not report name of working directory" >&2
1174 { (exit 1); exit 1; }; }
1177 # Find the source files, if location was not specified.
1178 if test -z "$srcdir"; then
1179 ac_srcdir_defaulted
=yes
1180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir
=`$as_dirname -- "$0" ||
1182 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
1185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1209 ac_srcdir_defaulted
=no
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1214 { (exit 1); exit 1; }; }
1216 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1219 { (exit 1); exit 1; }; }
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1229 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1231 for ac_var
in $ac_precious_vars; do
1232 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1234 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1239 # Report the --help message.
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1245 \`configure' configures this package to adapt to many kinds of systems.
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1252 Defaults for the options are specified in brackets.
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1276 For better control, use the options below.
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1303 --program-prefix=PREFIX prepend PREFIX to installed program names
1304 --program-suffix=SUFFIX append SUFFIX to installed program names
1305 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1308 --x-includes=DIR X include files are
in DIR
1309 --x-libraries=DIR X library files are
in DIR
1312 --build=BUILD configure
for building on BUILD
[guessed
]
1313 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1317 if test -n "$ac_init_help"; then
1322 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1323 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1324 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1325 specify
install directory
for Emacs.app on Mac OS X
1326 --enable-font-backend compile code of font-backend support
1327 --enable-asserts compile code with asserts enabled
1328 --enable-maintainer-mode enable make rules and dependencies not useful
1329 (and sometimes confusing
) to the casual installer
1330 --enable-locallisppath=PATH
1331 directories Emacs should search
for lisp files
1332 specific to this site
1333 --disable-largefile omit support
for large files
1336 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1337 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1338 --without-gcc don
't use GCC to compile Emacs if GCC is found
1339 --without-pop don't support POP
mail retrieval with movemail
1340 --with-kerberos support Kerberos-authenticated POP
1341 --with-kerberos5 support Kerberos version
5 authenticated POP
1342 --with-hesiod support Hesiod to get the POP server
host
1343 --without-sound don
't compile with sound support
1344 --with-x-toolkit=KIT use an X toolkit
1345 (KIT = yes/lucid/athena/motif/gtk/no)
1346 --with-xpm use -lXpm for displaying XPM images
1347 --with-jpeg use -ljpeg for displaying JPEG images
1348 --with-tiff use -ltiff for displaying TIFF images
1349 --with-gif use -lgif (or -lungif) for displaying GIF images
1350 --with-png use -lpng for displaying PNG images
1351 --with-freetype use -lfreetype for local fonts support
1352 --with-xft use -lXft for anti aliased fonts
1353 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1354 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1355 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1356 --without-toolkit-scroll-bars
1357 don't use Motif or Xaw3d scroll bars
1358 --without-xim don
't use X11 XIM
1359 --without-carbon don't use Carbon GUI on Mac OS X
1360 --with-x use the X Window System
1362 Some influential environment variables
:
1363 CC C compiler
command
1364 CFLAGS C compiler flags
1365 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1366 nonstandard directory
<lib dir
>
1367 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1368 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1369 you have headers
in a nonstandard directory
<include dir
>
1371 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1373 Use these variables to override the choices made by
`configure' or to help
1374 it to find libraries and programs with nonstandard names/locations.
1380 if test "$ac_init_help" = "recursive"; then
1381 # If there are subdirs, report their specific --help.
1382 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1383 test -d "$ac_dir" || continue
1387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1389 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1390 # A ".." for each directory in $ac_dir_suffix.
1391 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1392 case $ac_top_builddir_sub in
1393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1397 ac_abs_top_builddir=$ac_pwd
1398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1399 # for backward compatibility:
1400 ac_top_builddir=$ac_top_build_prefix
1403 .) # We are building in place.
1405 ac_top_srcdir=$ac_top_builddir_sub
1406 ac_abs_top_srcdir=$ac_pwd ;;
1407 [\\/]* | ?:[\\/]* ) # Absolute name.
1408 ac_srcdir=$srcdir$ac_dir_suffix;
1409 ac_top_srcdir=$srcdir
1410 ac_abs_top_srcdir=$srcdir ;;
1412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1413 ac_top_srcdir=$ac_top_build_prefix$srcdir
1414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1418 cd "$ac_dir" || { ac_status=$?; continue; }
1419 # Check for guested configure.
1420 if test -f "$ac_srcdir/configure.gnu"; then
1422 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1423 elif test -f "$ac_srcdir/configure"; then
1425 $SHELL "$ac_srcdir/configure" --help=recursive
1427 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1429 cd "$ac_pwd" || { ac_status=$?; break; }
1433 test -n "$ac_init_help" && exit $ac_status
1434 if $ac_init_version; then
1437 generated by GNU Autoconf 2.61
1439 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1440 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1441 This configure script is free software; the Free Software Foundation
1442 gives unlimited permission to copy, distribute and modify it.
1446 cat >config.log <<_ACEOF
1447 This file contains any messages produced by compilers while
1448 running configure, to aid debugging if configure makes a mistake.
1450 It was created by $as_me, which was
1451 generated by GNU Autoconf 2.61. Invocation command line was
1463 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1464 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1465 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1466 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1467 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1469 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1470 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1472 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1473 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1474 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1475 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1476 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1477 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1478 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 test -z "$as_dir" && as_dir=.
1487 echo "PATH: $as_dir"
1503 # Keep a trace of the command line.
1504 # Strip out --no-create and --no-recursion so they do not pile up.
1505 # Strip out --silent because we don't want to record it for future runs.
1506 # Also quote any args containing shell meta-characters.
1507 # Make two passes to allow for proper duplicate-argument suppression.
1511 ac_must_keep_next=false
1517 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1519 | -silent | --silent | --silen | --sile | --sil)
1522 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1525 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1527 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1528 if test $ac_must_keep_next = true; then
1529 ac_must_keep_next=false # Got value, back to normal.
1532 *=* | --config-cache | -C | -disable-* | --disable-* \
1533 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1534 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1535 | -with-* | --with-* | -without-* | --without-* | --x)
1536 case "$ac_configure_args0 " in
1537 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1540 -* ) ac_must_keep_next=true ;;
1543 ac_configure_args="$ac_configure_args '$ac_arg'"
1548 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1549 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1551 # When interrupted or exit'd, cleanup temporary files, and complete
1552 # config.log. We remove comments because anyway the quotes in there
1553 # would cause problems or look ugly.
1554 # WARNING: Use '\'' to represent an apostrophe within the trap.
1555 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1556 trap 'exit_status=$?
1557 # Save into config.log some information that might help in debugging.
1562 ## ---------------- ##
1563 ## Cache variables. ##
1564 ## ---------------- ##
1567 # The following way of writing the cache mishandles newlines in values,
1569 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1570 eval ac_val=\$$ac_var
1574 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1575 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1578 _ | IFS | as_nl) ;; #(
1579 *) $as_unset $ac_var ;;
1584 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1585 *${as_nl}ac_space=\ *)
1587 "s/'\''/'\''\\\\'\'''\''/g;
1588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1599 ## ----------------- ##
1600 ## Output variables. ##
1601 ## ----------------- ##
1604 for ac_var in $ac_subst_vars
1606 eval ac_val=\$$ac_var
1608 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1610 echo "$ac_var='\''$ac_val'\''"
1614 if test -n "$ac_subst_files"; then
1616 ## ------------------- ##
1617 ## File substitutions. ##
1618 ## ------------------- ##
1621 for ac_var in $ac_subst_files
1623 eval ac_val=\$$ac_var
1625 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627 echo "$ac_var='\''$ac_val'\''"
1632 if test -s confdefs.h; then
1642 test "$ac_signal" != 0 &&
1643 echo "$as_me: caught signal $ac_signal"
1644 echo "$as_me: exit $exit_status"
1646 rm -f core *.core core.conftest.* &&
1647 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1650 for ac_signal in 1 2 13 15; do
1651 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1655 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1656 rm -f -r conftest* confdefs.h
1658 # Predefined preprocessor variables.
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_NAME "$PACKAGE_NAME"
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_STRING "$PACKAGE_STRING"
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1685 # Let the site file select an alternate cache file if it wants to.
1686 # Prefer explicitly selected file to automatically selected ones.
1687 if test -n "$CONFIG_SITE"; then
1688 set x "$CONFIG_SITE"
1689 elif test "x$prefix" != xNONE; then
1690 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1692 set x "$ac_default_prefix/share/config.site" \
1693 "$ac_default_prefix/etc/config.site"
1698 if test -r "$ac_site_file"; then
1699 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1700 echo "$as_me: loading site script $ac_site_file" >&6;}
1701 sed 's/^/| /' "$ac_site_file" >&5
1706 if test -r "$cache_file"; then
1707 # Some versions of bash will fail to source /dev/null (special
1708 # files actually), so we avoid doing that.
1709 if test -f "$cache_file"; then
1710 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1711 echo "$as_me: loading cache $cache_file" >&6;}
1713 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1714 *) . "./$cache_file";;
1718 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1719 echo "$as_me: creating cache $cache_file" >&6;}
1723 ac_header_list="$ac_header_list sys/time.h"
1724 ac_header_list="$ac_header_list unistd.h"
1725 ac_func_list="$ac_func_list alarm"
1726 # Check that the precious variables saved in the cache have kept the same
1728 ac_cache_corrupted=false
1729 for ac_var in $ac_precious_vars; do
1730 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1731 eval ac_new_set=\$ac_env_${ac_var}_set
1732 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1733 eval ac_new_val=\$ac_env_${ac_var}_value
1734 case $ac_old_set,$ac_new_set in
1736 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1737 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1738 ac_cache_corrupted=: ;;
1740 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1741 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1742 ac_cache_corrupted=: ;;
1745 if test "x$ac_old_val" != "x$ac_new_val"; then
1746 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1747 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1748 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1749 echo "$as_me: former value
: $ac_old_val" >&2;}
1750 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1751 echo "$as_me: current value
: $ac_new_val" >&2;}
1752 ac_cache_corrupted=:
1755 # Pass precious variables to config.status.
1756 if test "$ac_new_set" = set; then
1758 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1759 *) ac_arg=$ac_var=$ac_new_val ;;
1761 case " $ac_configure_args " in
1762 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1763 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1767 if $ac_cache_corrupted; then
1768 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1769 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1770 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1771 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1772 { (exit 1); exit 1; }; }
1792 ac_cpp='$CPP $CPPFLAGS'
1793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1798 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1801 test "$program_prefix" != NONE &&
1802 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1803 # Use a double $ so make ignores it.
1804 test "$program_suffix" != NONE &&
1805 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1806 # Double any \ or $. echo might interpret backslashes.
1807 # By default was `s
,x
,x
', remove it if useless.
1808 cat <<\_ACEOF >conftest.sed
1809 s/[\\$]/&&/g;s/;s,x,x,$//
1811 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1815 lispdir='${datadir}/emacs
/${version}/lisp
'
1816 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1817 '${datadir}/emacs
/site-lisp
'
1818 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1819 etcdir='${datadir}/emacs
/${version}/etc
'
1820 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1821 docdir='${datadir}/emacs
/${version}/etc
'
1822 gamedir='${localstatedir}/games
/emacs
'
1827 # Check whether --with-gcc was given.
1828 if test "${with_gcc+set}" = set; then
1833 # Check whether --with-pop was given.
1834 if test "${with_pop+set}" = set; then
1835 withval=$with_pop; if test "$withval" = yes; then
1836 cat >>confdefs.h <<\_ACEOF
1837 #define MAIL_USE_POP 1
1843 cat >>confdefs.h <<\_ACEOF
1844 #define MAIL_USE_POP 1
1851 # Check whether --with-kerberos was given.
1852 if test "${with_kerberos+set}" = set; then
1853 withval=$with_kerberos; if test "$withval" = yes; then
1854 cat >>confdefs.h <<\_ACEOF
1863 # Check whether --with-kerberos5 was given.
1864 if test "${with_kerberos5+set}" = set; then
1865 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1866 if test "${with_kerberos+set}" != set; then
1868 cat >>confdefs.h <<\_ACEOF
1874 cat >>confdefs.h <<\_ACEOF
1882 # Check whether --with-hesiod was given.
1883 if test "${with_hesiod+set}" = set; then
1884 withval=$with_hesiod; if test "$withval" = yes; then
1886 cat >>confdefs.h <<\_ACEOF
1895 # Check whether --with-sound was given.
1896 if test "${with_sound+set}" = set; then
1897 withval=$with_sound;
1902 # Check whether --with-x-toolkit was given.
1903 if test "${with_x_toolkit+set}" = set; then
1904 withval=$with_x_toolkit; case "${withval}" in
1905 y | ye | yes ) val=gtk ;;
1907 l | lu | luc | luci | lucid ) val=lucid ;;
1908 a | at | ath | athe | athen | athena ) val=athena ;;
1909 m | mo | mot | moti | motif ) val=motif ;;
1910 g | gt | gtk ) val=gtk ;;
1912 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1913 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1914 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1915 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1916 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1917 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1918 { (exit 1); exit 1; }; }
1926 # Check whether --with-xpm was given.
1927 if test "${with_xpm+set}" = set; then
1932 # Check whether --with-jpeg was given.
1933 if test "${with_jpeg+set}" = set; then
1938 # Check whether --with-tiff was given.
1939 if test "${with_tiff+set}" = set; then
1944 # Check whether --with-gif was given.
1945 if test "${with_gif+set}" = set; then
1950 # Check whether --with-png was given.
1951 if test "${with_png+set}" = set; then
1956 # Check whether --with-freetype was given.
1957 if test "${with_freetype+set}" = set; then
1958 withval=$with_freetype;
1962 # Check whether --with-xft was given.
1963 if test "${with_xft+set}" = set; then
1968 # Check whether --with-gpm was given.
1969 if test "${with_gpm+set}" = set; then
1974 # Check whether --with-gtk was given.
1975 if test "${with_gtk+set}" = set; then
1980 # Check whether --with-pkg-config-prog was given.
1981 if test "${with_pkg_config_prog+set}" = set; then
1982 withval=$with_pkg_config_prog;
1986 # Check whether --with-toolkit-scroll-bars was given.
1987 if test "${with_toolkit_scroll_bars+set}" = set; then
1988 withval=$with_toolkit_scroll_bars;
1992 # Check whether --with-xim was given.
1993 if test "${with_xim+set}" = set; then
1998 # Check whether --with-carbon was given.
1999 if test "${with_carbon+set}" = set; then
2000 withval=$with_carbon;
2003 # Check whether --enable-carbon-app was given.
2004 if test "${enable_carbon_app+set}" = set; then
2005 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2009 # Check whether --enable-font-backend was given.
2010 if test "${enable_font_backend+set}" = set; then
2011 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2017 # Check whether --enable-asserts was given.
2018 if test "${enable_asserts+set}" = set; then
2019 enableval=$enable_asserts; USE_XASSERTS=$enableval
2025 # Check whether --enable-maintainer-mode was given.
2026 if test "${enable_maintainer_mode+set}" = set; then
2027 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2029 USE_MAINTAINER_MODE=no
2032 if test $USE_MAINTAINER_MODE = yes; then
2039 # Check whether --enable-locallisppath was given.
2040 if test "${enable_locallisppath+set}" = set; then
2041 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2043 elif test "${enableval}" != "yes"; then
2044 locallisppath=${enableval}
2049 #### Make srcdir absolute, if it isn't already. It
's important to
2050 #### avoid running the path through pwd unnecessarily, since pwd can
2051 #### give you automounter prefixes, which can go away. We do all this
2052 #### so Emacs can find its files when run uninstalled.
2053 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2058 ## We may be able to use the $PWD environment variable to make this
2059 ## absolute. But sometimes PWD is inaccurate.
2060 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2061 ## but that tested only for a well-formed and valid PWD,
2062 ## it did not object when PWD was well-formed and valid but just wrong.
2063 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2067 srcdir
="`(cd ${srcdir}; pwd)`"
2070 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2073 #### Check if the source directory already has a configured system in it.
2074 if test `pwd` != `(cd ${srcdir} && pwd)` \
2075 && test -f "${srcdir}/src/config.h" ; then
2076 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2077 as a build directory right now; it has been configured in its own
2078 right. To configure in another directory as well, you MUST
2079 use GNU make. If you do not have GNU make, then you must
2080 now do \`make distclean' in ${srcdir},
2081 and then run $0 again." >&5
2082 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2083 as a build directory right now; it has been configured in its own
2084 right. To configure in another directory as well, you MUST
2085 use GNU make. If you do not have GNU make, then you must
2086 now do \`make distclean' in ${srcdir},
2087 and then run $0 again." >&2;}
2090 #### Given the configuration name, set machfile and opsysfile to the
2091 #### names of the m/*.h and s/*.h files we should use.
2093 ### Canonicalize the configuration name.
2096 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2097 if test -f "$ac_dir/install-sh"; then
2099 ac_install_sh
="$ac_aux_dir/install-sh -c"
2101 elif test -f "$ac_dir/install.sh"; then
2103 ac_install_sh
="$ac_aux_dir/install.sh -c"
2105 elif test -f "$ac_dir/shtool"; then
2107 ac_install_sh
="$ac_aux_dir/shtool install -c"
2111 if test -z "$ac_aux_dir"; then
2112 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2113 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2114 { (exit 1); exit 1; }; }
2117 # These three variables are undocumented and unsupported,
2118 # and are intended to be withdrawn in a future Autoconf release.
2119 # They can cause serious problems if a builder's source tree is in a directory
2120 # whose full name contains unusual characters.
2121 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2122 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2123 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2126 # Make sure we can run config.sub.
2127 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2128 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2129 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2130 { (exit 1); exit 1; }; }
2132 { echo "$as_me:$LINENO: checking build system type" >&5
2133 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2134 if test "${ac_cv_build+set}" = set; then
2135 echo $ECHO_N "(cached) $ECHO_C" >&6
2137 ac_build_alias
=$build_alias
2138 test "x$ac_build_alias" = x
&&
2139 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2140 test "x$ac_build_alias" = x
&&
2141 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2142 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2143 { (exit 1); exit 1; }; }
2144 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2145 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2146 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2147 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2151 echo "${ECHO_T}$ac_cv_build" >&6; }
2152 case $ac_cv_build in
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2155 echo "$as_me: error: invalid value of canonical build" >&2;}
2156 { (exit 1); exit 1; }; };;
2159 ac_save_IFS
=$IFS; IFS
='-'
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2169 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2172 { echo "$as_me:$LINENO: checking host system type" >&5
2173 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2174 if test "${ac_cv_host+set}" = set; then
2175 echo $ECHO_N "(cached) $ECHO_C" >&6
2177 if test "x$host_alias" = x
; then
2178 ac_cv_host
=$ac_cv_build
2180 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2181 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2182 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2183 { (exit 1); exit 1; }; }
2187 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2188 echo "${ECHO_T}$ac_cv_host" >&6; }
2191 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2192 echo "$as_me: error: invalid value of canonical host" >&2;}
2193 { (exit 1); exit 1; }; };;
2196 ac_save_IFS
=$IFS; IFS
='-'
2202 # Remember, the first character of IFS is used to create $*,
2203 # except with old shells:
2206 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2210 configuration
=${host_alias-${build_alias-$host}}
2214 ### If you add support for a new configuration, add code to this
2215 ### switch statement to recognize your configuration name and select
2216 ### the appropriate operating system and machine description files.
2218 ### You would hope that you could choose an m/*.h file pretty much
2219 ### based on the machine portion of the configuration name, and an s-
2220 ### file based on the operating system portion. However, it turns out
2221 ### that each m/*.h file is pretty manufacturer-specific - for
2222 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2223 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2224 ### machines. So we basically have to have a special case for each
2225 ### configuration name.
2227 ### As far as handling version numbers on operating systems is
2228 ### concerned, make sure things will fail in a fixable way. If
2229 ### /etc/MACHINES doesn't say anything about version numbers, be
2230 ### prepared to handle anything reasonably. If version numbers
2231 ### matter, be sure /etc/MACHINES says something about it.
2233 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2234 ### "System V Release 4"; he writes, "The old convention encouraged
2235 ### confusion between `system' and `release' levels'."
2237 machine
='' opsys
='' unported
=no
2238 case "${canonical}" in
2243 case "${canonical}" in
2244 alpha
*-*-freebsd*) machine
=alpha
;;
2245 ia64-
*-freebsd*) machine
=ia64
;;
2246 sparc64-
*-freebsd*) machine
=sparc
;;
2247 powerpc-
*-freebsd*) machine
=macppc
;;
2248 i
[3456]86-*-freebsd*) machine
=intel386
;;
2249 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2256 if test -f /usr
/lib
/crti.o
; then
2258 cat >>confdefs.h
<<\_ACEOF
2264 case "${canonical}" in
2265 alpha
*-*-netbsd*) machine
=alpha
;;
2266 i
[3456]86-*-netbsd*) machine
=intel386
;;
2268 # This is somewhat bogus.
2269 machine
=hp9000s300
;;
2270 mips-
*-netbsd*) machine
=pmax
;;
2271 mipsel-
*-netbsd*) machine
=pmax
;;
2272 mipseb-
*-netbsd*) machine
=pmax
;;
2273 ns32k-
*-netbsd*) machine
=ns32000
;;
2274 powerpc-
*-netbsd*) machine
=macppc
;;
2275 sparc
*-*-netbsd*) machine
=sparc
;;
2276 vax-
*-netbsd*) machine
=vax
;;
2277 arm-
*-netbsd*) machine
=arm
;;
2278 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2279 hppa-
*-netbsd*) machine
=hp800
;;
2280 shle-
*-netbsd*) machine
=sh3el
;;
2287 case "${canonical}" in
2288 alpha
*-*-openbsd*) machine
=alpha
;;
2289 arm-
*-openbsd*) machine
=arm
;;
2290 hppa-
*-openbsd*) machine
=hp9000s300
;;
2291 i386-
*-openbsd*) machine
=intel386
;;
2292 m68k-
*-openbsd*) machine
=hp9000s300
;;
2293 m88k-
*-openbsd*) machine
=aviion
;;
2294 mips64-
*-openbsd*) machine
=mips64
;;
2295 powerpc-
*-openbsd*) machine
=macppc
;;
2296 sh-
*-openbsd*) machine
=sh3el
;;
2297 sparc
*-*-openbsd*) machine
=sparc
;;
2298 vax-
*-openbsd*) machine
=vax
;;
2299 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2306 case "${canonical}" in
2307 i
[3456]86-*-lynxos*) machine
=intel386
;;
2308 powerpc-
*-lynxos*) machine
=powerpc
;;
2313 arm-acorn-riscix1.1
* )
2314 machine
=acorn opsys
=riscix1-1
2316 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2317 ## This name is riscix12 instead of riscix1.2
2318 ## to avoid a file name conflict on MSDOS.
2319 machine
=acorn opsys
=riscix12
2325 case "${canonical}" in
2326 i
[345]86-*-bsdi*) machine
=intel386
;;
2327 sparc-
*-bsdi*) machine
=sparc
;;
2328 powerpc-
*-bsdi*) machine
=macppc
;;
2330 case "${canonical}" in
2331 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2332 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2333 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2334 *-*-bsdi3* ) opsys
=bsdos3
;;
2335 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2340 ## Strictly speaking, we need the version of the alliant operating
2341 ## system to choose the right machine file, but currently the
2342 ## configuration name doesn't tell us enough to choose the right
2343 ## one; we need to give alliants their own operating system name to
2344 ## do this right. When someone cares, they can help us.
2346 machine
=alliant4 opsys
=bsd4-2
2349 machine
=alliant-2800 opsys
=bsd4-3
2352 ## Alpha (DEC) machines.
2354 machine
=alpha opsys
=osf1
2355 # This is needed to find X11R6.1 libraries for certain tests.
2356 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2357 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2358 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2359 # due to non-traditional preprocessing with the current compiler
2360 # defaults. OSF 4 can also have that compiler version, and there
2361 # seems always to have been a usable /usr/bin/cpp.
2362 NON_GNU_CPP
=/usr
/bin
/cpp
2363 case "${canonical}" in
2364 alpha
*-dec-osf[5-9]*)
2369 alpha
*-*-linux-gnu* )
2370 machine
=alpha opsys
=gnu-linux
2374 machine
=arm opsys
=gnu-linux
2379 machine
=altos opsys
=usg5-2
2384 machine
=amdahl opsys
=usg5-2-2
2387 ## Apollo, Domain/OS
2389 machine
=apollo opsys
=bsd4-3
2392 ## Apple Darwin / Mac OS X
2394 case "${canonical}" in
2395 i
[3456]86-* ) machine
=intel386
;;
2396 powerpc-
* ) machine
=powermac
;;
2400 # Define CPP as follows to make autoconf work correctly.
2401 CPP
="${CC-cc} -E -no-cpp-precomp"
2402 # Use fink packages if available.
2403 if test -d /sw
/include
&& test -d /sw
/lib
; then
2404 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2405 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2406 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2410 ## AT&T 3b2, 3b5, 3b15, 3b20
2412 machine
=att3b opsys
=usg5-2-2
2415 ## AT&T 3b1 - The Mighty Unix PC!
2417 machine
=7300 opsys
=usg5-2-2
2422 machine
=ibmrs6000 opsys
=aix3-2
2427 machine
=dpx2 opsys
=usg5-3
2432 machine
=sps7 opsys
=usg5-2
2435 ## CCI 5/32, 6/32 -- see "Tahoe".
2438 ## I don't know what configuration name to use for this; config.sub
2439 ## doesn't seem to know anything about it. Hey, Celerity users, get
2440 ## in touch with us!
2441 celerity-celerity-bsd
* )
2442 machine
=celerity opsys
=bsd4-2
2446 ## What operating systems does this chip run that Emacs has been
2450 ## We'll use the catch-all code at the bottom to guess the
2451 ## operating system.
2455 mips-compaq-nonstopux
* )
2456 machine
=nonstopux opsys
=nonstopux
2460 *-convex-bsd* |
*-convex-convexos* )
2461 machine
=convex opsys
=bsd4-3
2462 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2463 NON_GNU_CPP
="cc -E -P"
2467 i
[3456]86-cubix-sysv* )
2468 machine
=intel386 opsys
=usg5-3
2472 cydra
*-cydrome-sysv* )
2473 machine
=cydra5 opsys
=usg5-3
2476 ## Data General AViiON Machines
2477 ## DG changed naming conventions with the release of 5.4.4.10, they
2478 ## dropped the initial 5.4 but left the intervening R. Because of the
2479 ## R this shouldn't conflict with older versions of the OS (which I
2480 ## think were named like dgux4.*). In addition, DG new AViiONs series
2481 ## uses either Motorola M88k or Intel Pentium CPUs.
2482 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2483 machine
=aviion opsys
=dgux4
2485 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2486 ## This name is dgux5-4-3 instead of dgux5-4r3
2487 ## to avoid a file name conflict on MSDOS.
2488 machine
=aviion opsys
=dgux5-4-3
2490 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2491 machine
=aviion opsys
=dgux5-4r2
2494 machine
=aviion opsys
=dgux
2497 ## Data General AViiON Intel (x86) Machines
2498 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2499 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2500 i
[345]86-dg-dguxR4* )
2501 machine
=aviion-intel opsys
=dgux4
2505 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2506 machine
=pmax opsys
=bsd4-2
2508 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2509 machine
=pmax opsys
=bsd4-3
2512 machine
=pmax opsys
=ultrix4-3
2515 machine
=pmax opsys
=osf1
2517 mips-dec-mach_bsd4.3
* )
2518 machine
=pmax opsys
=mach-bsd4-3
2521 ## Motorola Delta machines
2522 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2523 machine
=delta opsys
=usg5-3
2524 if test -z "`type gnucc | grep 'not found'`"
2526 if test -s /etc
/167config
2527 then CC
="gnucc -m68040"
2528 else CC
="gnucc -m68881"
2531 if test -z "`type gcc | grep 'not found'`"
2537 m88k-motorola-sysv4
* )
2538 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2539 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2540 # I hope there are not other 4.0 versions for this machine
2541 # which really need usg5-4 instead.
2542 machine
=delta88k opsys
=usg5-4-2
2544 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2545 machine
=delta88k opsys
=usg5-3
2550 machine
=dual opsys
=usg5-2
2552 m68
*-dual-uniplus* )
2553 machine
=dual opsys
=unipl5-2
2558 machine
=elxsi opsys
=usg5-2
2563 machine
=ns16000 opsys
=umax
2566 ## The GEC 63 - apparently, this port isn't really finished yet.
2567 # I'm sure we finished off the last of the machines, though. -- fx
2569 ## Gould Power Node and NP1
2571 machine
=gould opsys
=bsd4-2
2574 machine
=gould opsys
=bsd4-3
2577 machine
=gould-np1 opsys
=bsd4-3
2580 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2581 ## as far as Emacs is concerned).
2583 # Build needs to be different on 7.0 and later releases
2584 case "`uname -r`" in
2585 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2586 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2588 NON_GNU_CPP
="/lib/cpp"
2590 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2592 machine
=nh3000 opsys
=cxux
2594 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2595 powerpc-harris-powerunix
)
2596 machine
=nh6000 opsys
=powerunix
2597 NON_GNU_CPP
="cc -Xo -E -P"
2599 ## SR2001/SR2201 running HI-UX/MPP
2600 hppa1.1
-hitachi-hiuxmpp* )
2601 machine
=sr2k opsys
=hiuxmpp
2603 hppa1.1
-hitachi-hiuxwe2* )
2604 machine
=sr2k opsys
=hiuxwe2
2607 xps
*-honeywell-sysv* )
2608 machine
=xps100 opsys
=usg5-2
2611 ## HP 9000 series 200 or 300
2613 machine
=hp9000s300 opsys
=bsd4-3
2615 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2617 case "`uname -r`" in
2618 ## Someone's system reports A.B8.05 for this.
2619 ## I wonder what other possibilities there are.
2620 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2621 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2622 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2623 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2624 *) machine
=hp9000s300 opsys
=hpux
;;
2628 ## HP 9000 series 700 and 800, running HP/UX
2630 machine
=hp800 opsys
=hpux
2633 machine
=hp800 opsys
=hpux8
2635 hppa
*-hp-hpux9shr* )
2636 machine
=hp800 opsys
=hpux9shr
2639 machine
=hp800 opsys
=hpux9
2641 hppa
*-hp-hpux10.2
* )
2642 machine
=hp800 opsys
=hpux10-20
2645 machine
=hp800 opsys
=hpux10
2647 hppa
*-hp-hpux1[1-9]* )
2648 machine
=hp800 opsys
=hpux11
2649 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2652 hppa
*-*-linux-gnu* )
2653 machine
=hp800 opsys
=gnu-linux
2656 ## HP 9000 series 700 and 800, running HP/UX
2658 ## Cross-compilation? Nah!
2659 case "`uname -r`" in
2660 ## Someone's system reports A.B8.05 for this.
2661 ## I wonder what other possibilities there are.
2662 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2663 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2664 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2665 *) machine
=hp800 opsys
=hpux10
;;
2669 machine
=hp800 opsys
=nextstep
2674 machine
=orion opsys
=bsd4-2
2676 clipper-orion-bsd
* )
2677 machine
=orion105 opsys
=bsd4-2
2681 i
[3456]86-ibm-aix1.1
* )
2682 machine
=ibmps2-aix opsys
=usg5-2-2
2684 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2685 machine
=ibmps2-aix opsys
=usg5-3
2688 machine
=ibm370aix opsys
=usg5-3
2691 machine
=ibms390 opsys
=gnu-linux
2693 s390x-
*-linux-gnu* )
2694 machine
=ibms390x opsys
=gnu-linux
2696 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2697 machine
=ibmrs6000 opsys
=aix3-1
2699 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2700 machine
=ibmrs6000 opsys
=aix3-2-5
2702 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2703 machine
=ibmrs6000 opsys
=aix4-1
2705 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2706 machine
=ibmrs6000 opsys
=aix4-2
2708 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2709 machine
=ibmrs6000 opsys
=aix4-2
2711 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2712 machine
=ibmrs6000 opsys
=aix4-2
2714 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2715 machine
=ibmrs6000 opsys
=aix4
2717 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2718 machine
=ibmrs6000 opsys
=aix4-1
2720 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2721 machine
=ibmrs6000 opsys
=aix3-2
2724 machine
=ibmrt opsys
=bsd4-3
2727 machine
=ibmrt opsys
=bsd4-2
2730 machine
=ibmrt opsys
=bsd4-3
2733 machine
=ibmrt opsys
=bsd4-2
2736 machine
=ibmrt opsys
=bsd4-3
2739 machine
=ibmrt opsys
=bsd4-3
2742 machine
=ibmrt-aix opsys
=usg5-2-2
2745 ## Integrated Solutions `Optimum V'
2747 machine
=isi-ov opsys
=bsd4-2
2750 machine
=isi-ov opsys
=bsd4-3
2753 ## Intel 386 machines where we do care about the manufacturer
2754 i
[3456]86-intsys-sysv* )
2755 machine
=is386 opsys
=usg5-2-2
2759 i
[3456]86-prime-sysv* )
2760 machine
=i386 opsys
=usg5-3
2763 ## Sequent Symmetry running Dynix
2764 i
[3456]86-sequent-bsd* )
2765 machine
=symmetry opsys
=bsd4-3
2768 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2769 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2770 machine
=sequent-ptx opsys
=ptx4
2771 NON_GNU_CPP
=/lib
/cpp
2774 ## Sequent Symmetry running DYNIX/ptx
2775 ## Use the old cpp rather than the newer ANSI one.
2776 i
[3456]86-sequent-ptx* )
2777 machine
=sequent-ptx opsys
=ptx
2778 NON_GNU_CPP
="/lib/cpp"
2781 ## ncr machine running svr4.3.
2782 i
[3456]86-ncr-sysv4.3
)
2783 machine
=ncr386 opsys
=usg5-4-3
2786 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2787 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2788 i
[3456]86-ncr-sysv* )
2789 machine
=ncr386 opsys
=usg5-4-2
2792 ## Intel Paragon OSF/1
2794 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2799 machine
=i860 opsys
=usg5-4
2800 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2801 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2804 ## Macintosh PowerPC
2805 powerpc
*-*-linux-gnu* )
2806 machine
=macppc opsys
=gnu-linux
2809 ## Masscomp machines
2810 m68
*-masscomp-rtu* )
2811 machine
=masscomp opsys
=rtu
2814 ## Megatest machines
2815 m68
*-megatest-bsd* )
2816 machine
=mega68 opsys
=bsd4-2
2819 ## Workstations sold by MIPS
2820 ## This is not necessarily all workstations using the MIPS processor -
2821 ## Irises are produced by SGI, and DECstations by DEC.
2823 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2824 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2825 ## it gives for choosing between the alternatives seems to be "Use
2826 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2827 ## the BSD world." I'll assume that these are instructions for
2828 ## handling two odd situations, and that every other situation
2829 ## should use mips.h and usg5-2-2, they being listed first.
2832 ## Fall through to the general code at the bottom to decide on the OS.
2834 mips-mips-riscos4
* )
2835 machine
=mips4 opsys
=bsd4-3
2836 NON_GNU_CC
="cc -systype bsd43"
2837 NON_GNU_CPP
="cc -systype bsd43 -E"
2839 mips-mips-riscos5
* )
2840 machine
=mips4 opsys
=riscos5
2841 NON_GNU_CC
="cc -systype bsd43"
2842 NON_GNU_CPP
="cc -systype bsd43 -E"
2845 machine
=mips opsys
=bsd4-3
2848 machine
=mips opsys
=usg5-2-2
2852 m68
*-next-* | m68k-
*-nextstep* )
2853 machine
=m68k opsys
=nextstep
2856 ## The complete machine from National Semiconductor
2858 machine
=ns32000 opsys
=usg5-2
2862 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2863 machine
=tower32 opsys
=usg5-2-2
2865 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2866 machine
=tower32v3 opsys
=usg5-3
2871 machine
=ews4800 opsys
=ux4800
2874 ## Nixdorf Targon 31
2875 m68
*-nixdorf-sysv* )
2876 machine
=targon31 opsys
=usg5-2-2
2881 machine
=nu opsys
=usg5-2
2886 machine
=plexus opsys
=usg5-2
2890 ## I don't really have any idea what sort of processor the Pyramid has,
2891 ## so I'm assuming it is its own architecture.
2892 pyramid-pyramid-bsd
* )
2893 machine
=pyramid opsys
=bsd4-2
2897 ns32k-sequent-bsd4.2
* )
2898 machine
=sequent opsys
=bsd4-2
2900 ns32k-sequent-bsd4.3
* )
2901 machine
=sequent opsys
=bsd4-3
2905 mips-siemens-sysv
* | mips-sni-sysv
*)
2906 machine
=mips-siemens opsys
=usg5-4
2907 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2908 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2911 ## Silicon Graphics machines
2912 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2914 machine
=irist opsys
=iris3-5
2916 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2917 machine
=irist opsys
=iris3-6
2921 machine
=iris4d opsys
=irix3-3
2924 machine
=iris4d opsys
=irix4-0
2927 machine
=iris4d opsys
=irix6-5
2928 # Without defining _LANGUAGE_C, things get masked out in the headers
2929 # so that, for instance, grepping for `free' in stdlib.h fails and
2930 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2931 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2932 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2935 machine
=iris4d opsys
=irix6-0
2936 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2937 # but presumably it does no harm.
2938 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2939 # -32 probably isn't necessary in later v.6s -- anyone know which?
2940 NON_GCC_TEST_OPTIONS
=-32
2942 mips-sgi-irix5.
[01]* )
2943 machine
=iris4d opsys
=irix5-0
2945 mips-sgi-irix5
* | mips-sgi-irix
* )
2946 machine
=iris4d opsys
=irix5-2
2951 machine
=news opsys
=bsd4-2
2954 machine
=news opsys
=bsd4-3
2956 m68
*-sony-newsos3* | m68
*-sony-news3*)
2957 machine
=news opsys
=bsd4-3
2959 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2960 machine
=news-risc opsys
=bsd4-3
2962 mips-sony-newsos6
* )
2963 machine
=news-r6 opsys
=newsos6
2966 machine
=news-risc opsys
=newsos5
2971 machine
=stride opsys
=usg5-2
2975 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2976 machine
=sparc opsys
=gnu-linux
2979 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2980 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2981 | rs6000-
*-solaris2*)
2982 case "${canonical}" in
2983 m68
*-sunos1* ) machine
=sun1
;;
2984 m68
*-sunos2* ) machine
=sun2
;;
2985 m68
* ) machine
=sun3
;;
2986 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2987 i
[3456]86-*-* ) machine
=intel386
;;
2988 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2989 powerpcle
* ) machine
=powerpcle
;;
2990 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2991 sparc
* ) machine
=sparc
;;
2994 case "${canonical}" in
2995 ## The Sun386 didn't get past 4.0.
2996 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2997 *-sunos4.0
* ) opsys
=sunos4-0
;;
2998 *-sunos4.1.
[3-9]*noshare
)
2999 ## This name is sunos413 instead of sunos4-1-3
3000 ## to avoid a file name conflict on MSDOS.
3002 NON_GNU_CPP
=/usr
/lib
/cpp
3003 NON_GCC_TEST_OPTIONS
=-Bstatic
3004 GCC_TEST_OPTIONS
=-static
3006 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
3008 NON_GNU_CPP
=/usr
/lib
/cpp
3010 *-sunos4* |
*-sunos )
3012 NON_GCC_TEST_OPTIONS
=-Bstatic
3013 GCC_TEST_OPTIONS
=-static
3015 *-sunos5.3
* |
*-solaris2.3
* )
3017 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3019 *-sunos5.4
* |
*-solaris2.4
* )
3021 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3024 *-sunos5.5
* |
*-solaris2.5
* )
3026 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3029 *-sunos5.6
* |
*-solaris2.6
* )
3031 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3034 *-sunos5* |
*-solaris* )
3036 emacs_check_sunpro_c
=yes
3037 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3041 ## Watch out for a compiler that we know will not work.
3042 case "${canonical}" in
3043 *-solaris* |
*-sunos5* )
3044 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3045 ## /usr/ucb/cc doesn't work;
3046 ## we should find some other compiler that does work.
3054 machine
=sparc opsys
=nextstep
3058 m68
*-tadpole-sysv* )
3059 machine
=tad68k opsys
=usg5-3
3063 tahoe-tahoe-bsd4.2
* )
3064 machine
=tahoe opsys
=bsd4-2
3066 tahoe-tahoe-bsd4.3
* )
3067 machine
=tahoe opsys
=bsd4-3
3070 ## Tandem Integrity S2
3072 machine
=tandem-s2 opsys
=usg5-3
3076 m88k-tektronix-sysv3
* )
3077 machine
=tekxd88 opsys
=usg5-3
3080 ## Tektronix 16000 box (6130?)
3081 ns16k-tektronix-bsd
* )
3082 machine
=ns16000 opsys
=bsd4-2
3085 ## src/m/tek4300.h hints that this is a m68k machine.
3086 m68
*-tektronix-bsd* )
3087 machine
=tek4300 opsys
=bsd4-3
3091 ## We seem to have lost the machine-description file titan.h!
3093 machine
=titan opsys
=usg5-3
3096 ## Ustation E30 (SS5E)
3097 m68
*-unisys-uniplus* )
3098 machine
=ustation opsystem
=unipl5-2
3104 case "${canonical}" in
3105 *-bsd4.1
* ) opsys
=bsd4-1
;;
3106 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3107 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3108 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3109 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3110 *-vms* ) opsys
=vms
;;
3116 ns16k-whitechapel-
* )
3118 ## We don't know what sort of OS runs on these; we'll let the
3119 ## operating system guessing code below try.
3124 machine
=wicat opsys
=usg5-2
3129 machine
=ia64 opsys
=gnu-linux
3132 ## Intel 386 machines where we don't care about the manufacturer
3135 case "${canonical}" in
3136 *-cygwin ) opsys
=cygwin
;;
3137 *-darwin* ) opsys
=darwin
3138 CPP
="${CC-cc} -E -no-cpp-precomp"
3140 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3141 *-isc2.2
* ) opsys
=isc2-2
;;
3142 *-isc4.0
* ) opsys
=isc4-0
;;
3143 *-isc4.
* ) opsys
=isc4-1
3144 GCC_TEST_OPTIONS
=-posix
3145 NON_GCC_TEST_OPTIONS
=-Xp
3147 *-isc* ) opsys
=isc3-0
;;
3148 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3149 *-esix* ) opsys
=esix
;;
3150 *-xenix* ) opsys
=xenix
;;
3151 *-linux-gnu* ) opsys
=gnu-linux
;;
3152 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3153 *-sco3.2v5
* ) opsys
=sco5
3154 NON_GNU_CPP
=/lib
/cpp
3155 # Prevent -belf from being passed to $CPP.
3156 # /lib/cpp does not accept it.
3157 OVERRIDE_CPPFLAGS
=" "
3159 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3160 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3161 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3162 *-386bsd* ) opsys
=386bsd
;;
3163 *-nextstep* ) opsys
=nextstep
;;
3164 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3168 ## m68k Linux-based GNU system
3170 machine
=m68k opsys
=gnu-linux
3173 ## Mips Linux-based GNU system
3174 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3175 machine
=mips opsys
=gnu-linux
3179 sparc-fujitsu-sysv4
* )
3180 machine
=sparc opsys
=uxpds
3181 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3186 f301-fujitsu-uxpv4.1
)
3187 machine
=f301 opsys
=uxpv
3190 ## AMD x86-64 Linux-based GNU system
3191 x86_64-
*-linux-gnu* )
3192 machine
=amdx86-64 opsys
=gnu-linux
3195 ## Tensilica Xtensa Linux-based GNU system
3196 xtensa-
*-linux-gnu* )
3197 machine
=xtensa opsys
=gnu-linux
3205 ### If the code above didn't choose an operating system, just choose
3206 ### an operating system based on the configuration name. You really
3207 ### only want to use this when you have no idea what the right
3208 ### operating system is; if you know what operating systems a machine
3209 ### runs, it's cleaner to make it explicit in the case statement
3211 if test x
"${opsys}" = x
; then
3212 case "${canonical}" in
3213 *-gnu* ) opsys
=gnu
;;
3214 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3215 *-bsd4.2
) opsys
=bsd4-2
;;
3216 *-bsd4.3
) opsys
=bsd4-3
;;
3217 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3218 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3219 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3220 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3221 *-sysv4.2uw
* ) opsys
=unixware
;;
3222 *-sysv5uw* ) opsys
=unixware
;;
3223 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3224 *-sysv4.1
* |
*-sysvr4.1
* )
3225 NON_GNU_CPP
=/usr
/lib
/cpp
3227 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3228 if [ x
$NON_GNU_CPP = x
]; then
3229 if [ -f /usr
/ccs
/lib
/cpp
]; then
3230 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3232 NON_GNU_CPP
=/lib
/cpp
3236 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3245 if test $unported = yes; then
3246 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3247 Check \`etc/MACHINES' for recognized configuration names." >&5
3248 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3249 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3250 { (exit 1); exit 1; }; }
3253 machfile
="m/${machine}.h"
3254 opsysfile
="s/${opsys}.h"
3257 #### Choose a compiler.
3258 test -n "$CC" && cc_specified
=yes
3260 # Save the value of CFLAGS that the user specified.
3261 SPECIFIED_CFLAGS
="$CFLAGS"
3264 "yes" ) CC
="gcc" GCC
=yes ;;
3265 "no" ) : ${CC=cc} ;;
3269 ac_cpp
='$CPP $CPPFLAGS'
3270 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3271 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3272 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3273 if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3275 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3278 if test "${ac_cv_prog_CC+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC
="$CC" # Let the user override the test.
3284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3288 test -z "$as_dir" && as_dir
=.
3289 for ac_exec_ext
in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 if test -n "$CC"; then
3303 { echo "$as_me:$LINENO: result: $CC" >&5
3304 echo "${ECHO_T}$CC" >&6; }
3306 { echo "$as_me:$LINENO: result: no" >&5
3307 echo "${ECHO_T}no" >&6; }
3312 if test -z "$ac_cv_prog_CC"; then
3314 # Extract the first word of "gcc", so it can be a program name with args.
3315 set dummy gcc
; ac_word
=$2
3316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3318 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3321 if test -n "$ac_ct_CC"; then
3322 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3328 test -z "$as_dir" && as_dir
=.
3329 for ac_exec_ext
in '' $ac_executable_extensions; do
3330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331 ac_cv_prog_ac_ct_CC
="gcc"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3341 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3342 if test -n "$ac_ct_CC"; then
3343 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3344 echo "${ECHO_T}$ac_ct_CC" >&6; }
3346 { echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6; }
3350 if test "x$ac_ct_CC" = x
; then
3353 case $cross_compiling:$ac_tool_warned in
3355 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3356 whose name does not start with the host triplet. If you think this
3357 configuration is useful to you, please write to autoconf@gnu.org." >&5
3358 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3359 whose name does not start with the host triplet. If you think this
3360 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3361 ac_tool_warned
=yes ;;
3369 if test -z "$CC"; then
3370 if test -n "$ac_tool_prefix"; then
3371 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3372 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3375 if test "${ac_cv_prog_CC+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 if test -n "$CC"; then
3379 ac_cv_prog_CC
="$CC" # Let the user override the test.
3381 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3385 test -z "$as_dir" && as_dir
=.
3386 for ac_exec_ext
in '' $ac_executable_extensions; do
3387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3388 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 if test -n "$CC"; then
3400 { echo "$as_me:$LINENO: result: $CC" >&5
3401 echo "${ECHO_T}$CC" >&6; }
3403 { echo "$as_me:$LINENO: result: no" >&5
3404 echo "${ECHO_T}no" >&6; }
3410 if test -z "$CC"; then
3411 # Extract the first word of "cc", so it can be a program name with args.
3412 set dummy cc
; ac_word
=$2
3413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3415 if test "${ac_cv_prog_CC+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 if test -n "$CC"; then
3419 ac_cv_prog_CC
="$CC" # Let the user override the test.
3422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3426 test -z "$as_dir" && as_dir
=.
3427 for ac_exec_ext
in '' $ac_executable_extensions; do
3428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3429 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3430 ac_prog_rejected
=yes
3434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 if test $ac_prog_rejected = yes; then
3442 # We found a bogon in the path, so make sure we never use it.
3443 set dummy
$ac_cv_prog_CC
3445 if test $# != 0; then
3446 # We chose a different compiler from the bogus one.
3447 # However, it has the same basename, so the bogon will be chosen
3448 # first if we set CC to just the basename; use the full file name.
3450 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3456 if test -n "$CC"; then
3457 { echo "$as_me:$LINENO: result: $CC" >&5
3458 echo "${ECHO_T}$CC" >&6; }
3460 { echo "$as_me:$LINENO: result: no" >&5
3461 echo "${ECHO_T}no" >&6; }
3466 if test -z "$CC"; then
3467 if test -n "$ac_tool_prefix"; then
3468 for ac_prog
in cl.exe
3470 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3471 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3474 if test "${ac_cv_prog_CC+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3477 if test -n "$CC"; then
3478 ac_cv_prog_CC
="$CC" # Let the user override the test.
3480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3484 test -z "$as_dir" && as_dir
=.
3485 for ac_exec_ext
in '' $ac_executable_extensions; do
3486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3487 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3498 if test -n "$CC"; then
3499 { echo "$as_me:$LINENO: result: $CC" >&5
3500 echo "${ECHO_T}$CC" >&6; }
3502 { echo "$as_me:$LINENO: result: no" >&5
3503 echo "${ECHO_T}no" >&6; }
3507 test -n "$CC" && break
3510 if test -z "$CC"; then
3512 for ac_prog
in cl.exe
3514 # Extract the first word of "$ac_prog", so it can be a program name with args.
3515 set dummy
$ac_prog; ac_word
=$2
3516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3518 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3519 echo $ECHO_N "(cached) $ECHO_C" >&6
3521 if test -n "$ac_ct_CC"; then
3522 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3524 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3528 test -z "$as_dir" && as_dir
=.
3529 for ac_exec_ext
in '' $ac_executable_extensions; do
3530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3531 ac_cv_prog_ac_ct_CC
="$ac_prog"
3532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3541 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3542 if test -n "$ac_ct_CC"; then
3543 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3544 echo "${ECHO_T}$ac_ct_CC" >&6; }
3546 { echo "$as_me:$LINENO: result: no" >&5
3547 echo "${ECHO_T}no" >&6; }
3551 test -n "$ac_ct_CC" && break
3554 if test "x$ac_ct_CC" = x
; then
3557 case $cross_compiling:$ac_tool_warned in
3559 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3560 whose name does not start with the host triplet. If you think this
3561 configuration is useful to you, please write to autoconf@gnu.org." >&5
3562 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3563 whose name does not start with the host triplet. If you think this
3564 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3565 ac_tool_warned
=yes ;;
3574 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3575 See \`config.log' for more details." >&5
3576 echo "$as_me: error: no acceptable C compiler found in \$PATH
3577 See \`config.log' for more details." >&2;}
3578 { (exit 1); exit 1; }; }
3580 # Provide some information about the compiler.
3581 echo "$as_me:$LINENO: checking for C compiler version" >&5
3582 ac_compiler
=`set X $ac_compile; echo $2`
3583 { (ac_try
="$ac_compiler --version >&5"
3585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3586 *) ac_try_echo=$ac_try;;
3588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3589 (eval "$ac_compiler --version >&5") 2>&5
3591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592 (exit $ac_status); }
3593 { (ac_try="$ac_compiler -v >&5"
3595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3596 *) ac_try_echo
=$ac_try;;
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599 (eval "$ac_compiler -v >&5") 2>&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); }
3603 { (ac_try
="$ac_compiler -V >&5"
3605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_compiler -V >&5") 2>&5
3611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612 (exit $ac_status); }
3614 cat >conftest.$ac_ext <<_ACEOF
3617 cat confdefs.h >>conftest.$ac_ext
3618 cat >>conftest.$ac_ext <<_ACEOF
3619 /* end confdefs.h. */
3629 ac_clean_files_save=$ac_clean_files
3630 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3631 # Try to create an executable without -o first, disregard a.out.
3632 # It will help us diagnose broken compilers, and finding out an intuition
3634 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3635 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3636 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3638 # List of possible output files, starting from the most likely.
3639 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3640 # only as a last resort. b.out is created by i960 compilers.
3641 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3643 # The IRIX 6 linker writes into existing files which may not be
3644 # executable, retaining their permissions. Remove them first so a
3645 # subsequent execution test works.
3647 for ac_file in $ac_files
3650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3651 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3656 if { (ac_try="$ac_link_default"
3658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659 *) ac_try_echo=$ac_try;;
3661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3662 (eval "$ac_link_default") 2>&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; then
3666 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3667 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3668 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3669 # so that the user can short-circuit this test for compilers unknown to
3671 for ac_file
in $ac_files ''
3673 test -f "$ac_file" ||
continue
3675 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3678 # We found the default executable, but exeext='' is most
3682 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3684 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3686 # We set ac_cv_exeext here because the later test for it is not
3687 # safe: cross compilers may not add the suffix if given an `-o'
3688 # argument, so we may need to know it at that point already.
3689 # Even if this section looks crufty: it has the advantage of
3696 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3702 { echo "$as_me:$LINENO: result: $ac_file" >&5
3703 echo "${ECHO_T}$ac_file" >&6; }
3704 if test -z "$ac_file"; then
3705 echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.
$ac_ext >&5
3708 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3709 See \`config.log' for more details." >&5
3710 echo "$as_me: error: C compiler cannot create executables
3711 See \`config.log' for more details." >&2;}
3712 { (exit 77); exit 77; }; }
3715 ac_exeext
=$ac_cv_exeext
3717 # Check that the compiler produces executables we can run. If not, either
3718 # the compiler is broken, or we cross compile.
3719 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3720 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3721 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3722 # If not cross compiling, check that we can run a simple program.
3723 if test "$cross_compiling" != yes; then
3724 if { ac_try
='./$ac_file'
3725 { (case "(($ac_try" in
3726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3730 (eval "$ac_try") 2>&5
3732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3733 (exit $ac_status); }; }; then
3736 if test "$cross_compiling" = maybe; then
3739 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3740 If you meant to cross compile, use \`--host'.
3741 See \`config.log' for more details.
" >&5
3742 echo "$as_me: error
: cannot run C compiled programs.
3743 If you meant to cross compile
, use \
`--host'.
3744 See \`config.log
' for more details." >&2;}
3745 { (exit 1); exit 1; }; }
3749 { echo "$as_me:$LINENO: result: yes" >&5
3750 echo "${ECHO_T}yes" >&6; }
3752 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3753 ac_clean_files=$ac_clean_files_save
3754 # Check that the compiler produces executables we can run. If not, either
3755 # the compiler is broken, or we cross compile.
3756 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3757 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3758 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3759 echo "${ECHO_T}$cross_compiling" >&6; }
3761 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3762 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3763 if { (ac_try="$ac_link"
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3769 (eval "$ac_link") 2>&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); }; then
3773 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3774 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3775 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3777 for ac_file
in conftest.exe conftest conftest.
*; do
3778 test -f "$ac_file" ||
continue
3780 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3781 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3787 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3788 See \`config.log' for more details." >&5
3789 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3790 See \`config.log' for more details." >&2;}
3791 { (exit 1); exit 1; }; }
3794 rm -f conftest
$ac_cv_exeext
3795 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3796 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3798 rm -f conftest.
$ac_ext
3799 EXEEXT
=$ac_cv_exeext
3801 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3802 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3803 if test "${ac_cv_objext+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 cat >conftest.
$ac_ext <<_ACEOF
3809 cat confdefs.h
>>conftest.
$ac_ext
3810 cat >>conftest.
$ac_ext <<_ACEOF
3811 /* end confdefs.h. */
3821 rm -f conftest.o conftest.obj
3822 if { (ac_try
="$ac_compile"
3824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3828 (eval "$ac_compile") 2>&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); }; then
3832 for ac_file in conftest.o conftest.obj conftest.*; do
3833 test -f "$ac_file" || continue;
3835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3836 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3841 echo "$as_me: failed program was:" >&5
3842 sed 's/^/| /' conftest.$ac_ext >&5
3844 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3845 See \`config.log
' for more details." >&5
3846 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3847 See \`config.log' for more details.
" >&2;}
3848 { (exit 1); exit 1; }; }
3851 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3853 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3854 echo "${ECHO_T}$ac_cv_objext" >&6; }
3855 OBJEXT=$ac_cv_objext
3857 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3858 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3859 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3860 echo $ECHO_N "(cached
) $ECHO_C" >&6
3862 cat >conftest.$ac_ext <<_ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3880 rm -f conftest.$ac_objext
3881 if { (ac_try="$ac_compile"
3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3884 *) ac_try_echo=$ac_try;;
3886 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3887 (eval "$ac_compile") 2>conftest.er1
3889 grep -v '^ *+' conftest.er1 >conftest.err
3891 cat conftest.err >&5
3892 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3893 (exit $ac_status); } && {
3894 test -z "$ac_c_werror_flag" ||
3895 test ! -s conftest.err
3896 } && test -s conftest.$ac_objext; then
3899 echo "$as_me: failed program was
:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3909 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3910 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3911 GCC=`test $ac_compiler_gnu = yes && echo yes`
3912 ac_test_CFLAGS=${CFLAGS+set}
3913 ac_save_CFLAGS=$CFLAGS
3914 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3915 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3916 if test "${ac_cv_prog_cc_g+set}" = set; then
3917 echo $ECHO_N "(cached
) $ECHO_C" >&6
3919 ac_save_c_werror_flag=$ac_c_werror_flag
3920 ac_c_werror_flag=yes
3923 cat >conftest.$ac_ext <<_ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3938 rm -f conftest.$ac_objext
3939 if { (ac_try="$ac_compile"
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3944 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3945 (eval "$ac_compile") 2>conftest.er1
3947 grep -v '^ *+' conftest.er1 >conftest.err
3949 cat conftest.err >&5
3950 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3951 (exit $ac_status); } && {
3952 test -z "$ac_c_werror_flag" ||
3953 test ! -s conftest.err
3954 } && test -s conftest.$ac_objext; then
3957 echo "$as_me: failed program was
:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3961 cat >conftest.$ac_ext <<_ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3976 rm -f conftest.$ac_objext
3977 if { (ac_try="$ac_compile"
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3982 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3983 (eval "$ac_compile") 2>conftest.er1
3985 grep -v '^ *+' conftest.er1 >conftest.err
3987 cat conftest.err >&5
3988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3989 (exit $ac_status); } && {
3990 test -z "$ac_c_werror_flag" ||
3991 test ! -s conftest.err
3992 } && test -s conftest.$ac_objext; then
3995 echo "$as_me: failed program was
:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3998 ac_c_werror_flag=$ac_save_c_werror_flag
4000 cat >conftest.$ac_ext <<_ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4015 rm -f conftest.$ac_objext
4016 if { (ac_try="$ac_compile"
4018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4019 *) ac_try_echo=$ac_try;;
4021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4022 (eval "$ac_compile") 2>conftest.er1
4024 grep -v '^ *+' conftest.er1 >conftest.err
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4028 (exit $ac_status); } && {
4029 test -z "$ac_c_werror_flag" ||
4030 test ! -s conftest.err
4031 } && test -s conftest.$ac_objext; then
4034 echo "$as_me: failed program was
:" >&5
4035 sed 's/^/| /' conftest.$ac_ext >&5
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4047 ac_c_werror_flag=$ac_save_c_werror_flag
4049 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4050 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4051 if test "$ac_test_CFLAGS" = set; then
4052 CFLAGS=$ac_save_CFLAGS
4053 elif test $ac_cv_prog_cc_g = yes; then
4054 if test "$GCC" = yes; then
4060 if test "$GCC" = yes; then
4066 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4067 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4068 if test "${ac_cv_prog_cc_c89+set}" = set; then
4069 echo $ECHO_N "(cached
) $ECHO_C" >&6
4071 ac_cv_prog_cc_c89=no
4073 cat >conftest.$ac_ext <<_ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h. */
4081 #include <sys/types.h>
4082 #include <sys/stat.h>
4083 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4084 struct buf { int x; };
4085 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4086 static char *e (p, i)
4092 static char *f (char * (*g) (char **, int), char **p, ...)
4097 s = g (p, va_arg (v,int));
4102 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4103 function prototypes and stuff, but not '\xHH' hex character constants.
4104 These don't provoke an error unfortunately, instead are silently treated
4105 as 'x'. The following induces an error, until -std is added to get
4106 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4107 array size at least. It's necessary to write '\x00'==0 to get something
4108 that's true only with -std. */
4109 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4111 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4112 inside strings and character constants. */
4114 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4116 int test (int i, double x);
4117 struct s1 {int (*f) (int a);};
4118 struct s2 {int (*f) (double a);};
4119 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4125 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4130 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4131 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4133 CC="$ac_save_CC $ac_arg"
4134 rm -f conftest.$ac_objext
4135 if { (ac_try="$ac_compile"
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_compile") 2>conftest.er1
4143 grep -v '^ *+' conftest.er1 >conftest.err
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4147 (exit $ac_status); } && {
4148 test -z "$ac_c_werror_flag" ||
4149 test ! -s conftest.err
4150 } && test -s conftest.$ac_objext; then
4151 ac_cv_prog_cc_c89=$ac_arg
4153 echo "$as_me: failed program was
:" >&5
4154 sed 's/^/| /' conftest.$ac_ext >&5
4159 rm -f core conftest.err conftest.$ac_objext
4160 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4162 rm -f conftest.$ac_ext
4167 case "x
$ac_cv_prog_cc_c89" in
4169 { echo "$as_me:$LINENO: result
: none needed
" >&5
4170 echo "${ECHO_T}none needed
" >&6; } ;;
4172 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4173 echo "${ECHO_T}unsupported
" >&6; } ;;
4175 CC="$CC $ac_cv_prog_cc_c89"
4176 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4177 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4182 ac_cpp='$CPP $CPPFLAGS'
4183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4188 # On Suns, sometimes $CPP names a directory.
4189 if test -n "$CPP" && test -d "$CPP"; then
4193 ## If not using gcc, and on Solaris, and no CPP specified, see if
4194 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4195 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4196 test x"$CPP" = x; then
4197 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
4198 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
4200 if test "${emacs_cv_sunpro_c+set}" = set; then
4201 echo $ECHO_N "(cached
) $ECHO_C" >&6
4203 cat >conftest.$ac_ext <<_ACEOF
4206 cat confdefs.h >>conftest.$ac_ext
4207 cat >>conftest.$ac_ext <<_ACEOF
4208 /* end confdefs.h. */
4221 rm -f conftest.$ac_objext conftest$ac_exeext
4222 if { (ac_try="$ac_link"
4224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4225 *) ac_try_echo=$ac_try;;
4227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4228 (eval "$ac_link") 2>conftest.er1
4230 grep -v '^ *+' conftest.er1 >conftest.err
4232 cat conftest.err >&5
4233 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4234 (exit $ac_status); } && {
4235 test -z "$ac_c_werror_flag" ||
4236 test ! -s conftest.err
4237 } && test -s conftest$ac_exeext &&
4238 $as_test_x conftest$ac_exeext; then
4239 emacs_cv_sunpro_c=yes
4241 echo "$as_me: failed program was
:" >&5
4242 sed 's/^/| /' conftest.$ac_ext >&5
4244 emacs_cv_sunpro_c=no
4247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4248 conftest$ac_exeext conftest.$ac_ext
4251 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4252 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4254 if test x"$emacs_cv_sunpro_c" = xyes; then
4255 NON_GNU_CPP="$CC -E -Xs"
4259 #### Some systems specify a CPP to use unless we are using GCC.
4260 #### Now that we know whether we are using GCC, we can decide whether
4261 #### to use that one.
4262 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4267 #### Some systems specify a CC to use unless we are using GCC.
4268 #### Now that we know whether we are using GCC, we can decide whether
4269 #### to use that one.
4270 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4271 test x$cc_specified != xyes
4276 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4278 CC="$CC $GCC_TEST_OPTIONS"
4281 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4283 CC="$CC $NON_GCC_TEST_OPTIONS"
4287 ac_cpp='$CPP $CPPFLAGS'
4288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4292 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4293 # On Suns, sometimes $CPP names a directory.
4294 if test -n "$CPP" && test -d "$CPP"; then
4297 if test -z "$CPP"; then
4298 if test "${ac_cv_prog_CPP+set}" = set; then
4299 echo $ECHO_N "(cached
) $ECHO_C" >&6
4301 # Double quotes because CPP needs to be expanded
4302 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4305 for ac_c_preproc_warn_flag in '' yes
4307 # Use a header file that comes with gcc, so configuring glibc
4308 # with a fresh cross-compiler works.
4309 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4310 # <limits.h> exists even on freestanding compilers.
4311 # On the NeXT, cc -E runs the code through the compiler's parser,
4312 # not just through cpp. "Syntax error
" is here to catch this case.
4313 cat >conftest.$ac_ext <<_ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4320 # include <limits.h>
4322 # include <assert.h>
4326 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4334 grep -v '^ *+' conftest.er1 >conftest.err
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4338 (exit $ac_status); } >/dev/null && {
4339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4340 test ! -s conftest.err
4344 echo "$as_me: failed program was
:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4347 # Broken: fails on valid input.
4351 rm -f conftest.err conftest.$ac_ext
4353 # OK, works on sane cases. Now check whether nonexistent headers
4354 # can be detected and how.
4355 cat >conftest.$ac_ext <<_ACEOF
4358 cat confdefs.h >>conftest.$ac_ext
4359 cat >>conftest.$ac_ext <<_ACEOF
4360 /* end confdefs.h. */
4361 #include <ac_nonexistent.h>
4363 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4371 grep -v '^ *+' conftest.er1 >conftest.err
4373 cat conftest.err >&5
4374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4375 (exit $ac_status); } >/dev/null && {
4376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4377 test ! -s conftest.err
4379 # Broken: success on invalid input.
4382 echo "$as_me: failed program was
:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 # Passes both tests.
4390 rm -f conftest.err conftest.$ac_ext
4393 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4394 rm -f conftest.err conftest.$ac_ext
4395 if $ac_preproc_ok; then
4407 { echo "$as_me:$LINENO: result
: $CPP" >&5
4408 echo "${ECHO_T}$CPP" >&6; }
4410 for ac_c_preproc_warn_flag in '' yes
4412 # Use a header file that comes with gcc, so configuring glibc
4413 # with a fresh cross-compiler works.
4414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4415 # <limits.h> exists even on freestanding compilers.
4416 # On the NeXT, cc -E runs the code through the compiler's parser,
4417 # not just through cpp. "Syntax error
" is here to catch this case.
4418 cat >conftest.$ac_ext <<_ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4425 # include <limits.h>
4427 # include <assert.h>
4431 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4436 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4439 grep -v '^ *+' conftest.er1 >conftest.err
4441 cat conftest.err >&5
4442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4443 (exit $ac_status); } >/dev/null && {
4444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4445 test ! -s conftest.err
4449 echo "$as_me: failed program was
:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4452 # Broken: fails on valid input.
4456 rm -f conftest.err conftest.$ac_ext
4458 # OK, works on sane cases. Now check whether nonexistent headers
4459 # can be detected and how.
4460 cat >conftest.$ac_ext <<_ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4466 #include <ac_nonexistent.h>
4468 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4473 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4474 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4476 grep -v '^ *+' conftest.er1 >conftest.err
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4480 (exit $ac_status); } >/dev/null && {
4481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4482 test ! -s conftest.err
4484 # Broken: success on invalid input.
4487 echo "$as_me: failed program was
:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 # Passes both tests.
4495 rm -f conftest.err conftest.$ac_ext
4498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4499 rm -f conftest.err conftest.$ac_ext
4500 if $ac_preproc_ok; then
4503 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4504 See \
`config.log' for more details." >&5
4505 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4506 See \`config.log
' for more details." >&2;}
4507 { (exit 1); exit 1; }; }
4511 ac_cpp='$CPP $CPPFLAGS'
4512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4513 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4517 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4518 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4519 if test "${ac_cv_path_GREP+set}" = set; then
4520 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 # Extract the first word of "grep ggrep" to use in msg output
4523 if test -z "$GREP"; then
4524 set dummy grep ggrep; ac_prog_name=$2
4525 if test "${ac_cv_path_GREP+set}" = set; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 ac_path_GREP_found=false
4529 # Loop through the user's path and
test for each of PROGNAME-LIST
4530 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4531 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4534 test -z "$as_dir" && as_dir
=.
4535 for ac_prog
in grep ggrep
; do
4536 for ac_exec_ext
in '' $ac_executable_extensions; do
4537 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4538 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4539 # Check for GNU ac_path_GREP and select it if it is found.
4540 # Check for GNU $ac_path_GREP
4541 case `"$ac_path_GREP" --version 2>&1` in
4543 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4546 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4549 cat "conftest.in" "conftest.in" >"conftest.tmp"
4550 mv "conftest.tmp" "conftest.in"
4551 cp "conftest.in" "conftest.nl"
4552 echo 'GREP' >> "conftest.nl"
4553 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4554 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4555 ac_count
=`expr $ac_count + 1`
4556 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4557 # Best one so far, save it but keep looking for a better one
4558 ac_cv_path_GREP
="$ac_path_GREP"
4559 ac_path_GREP_max
=$ac_count
4561 # 10*(2^10) chars as input seems more than enough
4562 test $ac_count -gt 10 && break
4564 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4568 $ac_path_GREP_found && break 3
4578 GREP
="$ac_cv_path_GREP"
4579 if test -z "$GREP"; then
4580 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4581 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4582 { (exit 1); exit 1; }; }
4586 ac_cv_path_GREP
=$GREP
4591 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4592 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4593 GREP
="$ac_cv_path_GREP"
4596 { echo "$as_me:$LINENO: checking for egrep" >&5
4597 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4598 if test "${ac_cv_path_EGREP+set}" = set; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4601 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4602 then ac_cv_path_EGREP
="$GREP -E"
4604 # Extract the first word of "egrep" to use in msg output
4605 if test -z "$EGREP"; then
4606 set dummy
egrep; ac_prog_name
=$2
4607 if test "${ac_cv_path_EGREP+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 ac_path_EGREP_found
=false
4611 # Loop through the user's path and test for each of PROGNAME-LIST
4612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4613 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4616 test -z "$as_dir" && as_dir
=.
4617 for ac_prog
in egrep; do
4618 for ac_exec_ext
in '' $ac_executable_extensions; do
4619 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4620 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4621 # Check for GNU ac_path_EGREP and select it if it is found.
4622 # Check for GNU $ac_path_EGREP
4623 case `"$ac_path_EGREP" --version 2>&1` in
4625 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4628 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4631 cat "conftest.in" "conftest.in" >"conftest.tmp"
4632 mv "conftest.tmp" "conftest.in"
4633 cp "conftest.in" "conftest.nl"
4634 echo 'EGREP' >> "conftest.nl"
4635 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4636 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4637 ac_count
=`expr $ac_count + 1`
4638 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4639 # Best one so far, save it but keep looking for a better one
4640 ac_cv_path_EGREP
="$ac_path_EGREP"
4641 ac_path_EGREP_max
=$ac_count
4643 # 10*(2^10) chars as input seems more than enough
4644 test $ac_count -gt 10 && break
4646 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4650 $ac_path_EGREP_found && break 3
4660 EGREP
="$ac_cv_path_EGREP"
4661 if test -z "$EGREP"; then
4662 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4663 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4664 { (exit 1); exit 1; }; }
4668 ac_cv_path_EGREP
=$EGREP
4674 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4675 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4676 EGREP
="$ac_cv_path_EGREP"
4680 { echo "$as_me:$LINENO: checking for AIX" >&5
4681 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4682 cat >conftest.
$ac_ext <<_ACEOF
4685 cat confdefs.h
>>conftest.
$ac_ext
4686 cat >>conftest.
$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4694 $EGREP "yes" >/dev
/null
2>&1; then
4695 { echo "$as_me:$LINENO: result: yes" >&5
4696 echo "${ECHO_T}yes" >&6; }
4697 cat >>confdefs.h
<<\_ACEOF
4698 #define _ALL_SOURCE 1
4702 { echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6; }
4709 cat >>confdefs.h
<<\_ACEOF
4710 #define _GNU_SOURCE 1
4715 ### Use -Wno-pointer-sign if the compiler supports it
4716 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4717 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4718 SAVE_CFLAGS
="$CFLAGS"
4719 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4720 cat >conftest.
$ac_ext <<_ACEOF
4723 cat confdefs.h
>>conftest.
$ac_ext
4724 cat >>conftest.
$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4735 rm -f conftest.
$ac_objext
4736 if { (ac_try
="$ac_compile"
4738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4739 *) ac_try_echo=$ac_try;;
4741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4742 (eval "$ac_compile") 2>conftest.er1
4744 grep -v '^ *+' conftest.er1 >conftest.err
4746 cat conftest.err >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); } && {
4749 test -z "$ac_c_werror_flag" ||
4750 test ! -s conftest.err
4751 } && test -s conftest.$ac_objext; then
4754 echo "$as_me: failed program was:" >&5
4755 sed 's/^/| /' conftest.$ac_ext >&5
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 if test $has_option = yes; then
4762 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4764 { echo "$as_me:$LINENO: result: $has_option" >&5
4765 echo "${ECHO_T}$has_option" >&6; }
4766 CFLAGS="$SAVE_CFLAGS"
4770 #### Some other nice autoconf tests.
4772 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4773 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4775 if test "$LN_S" = "ln -s"; then
4776 { echo "$as_me:$LINENO: result: yes" >&5
4777 echo "${ECHO_T}yes" >&6; }
4779 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4780 echo "${ECHO_T}no, using $LN_S" >&6; }
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4788 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4789 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4790 # On Suns, sometimes $CPP names a directory.
4791 if test -n "$CPP" && test -d "$CPP"; then
4794 if test -z "$CPP"; then
4795 if test "${ac_cv_prog_CPP+set}" = set; then
4796 echo $ECHO_N "(cached) $ECHO_C" >&6
4798 # Double quotes because CPP needs to be expanded
4799 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4802 for ac_c_preproc_warn_flag in '' yes
4804 # Use a header file that comes with gcc, so configuring glibc
4805 # with a fresh cross-compiler works.
4806 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4807 # <limits.h> exists even on freestanding compilers.
4808 # On the NeXT, cc -E runs the code through the compiler's parser,
4809 # not just through cpp. "Syntax error" is here to catch this case.
4810 cat >conftest.$ac_ext <<_ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h. */
4817 # include <limits.h>
4819 # include <assert.h>
4823 if { (ac_try="$ac_cpp conftest.$ac_ext"
4825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4826 *) ac_try_echo
=$ac_try;;
4828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4831 grep -v '^ *+' conftest.er1
>conftest.err
4833 cat conftest.err
>&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } >/dev
/null
&& {
4836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4837 test ! -s conftest.err
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.
$ac_ext >&5
4844 # Broken: fails on valid input.
4848 rm -f conftest.err conftest.
$ac_ext
4850 # OK, works on sane cases. Now check whether nonexistent headers
4851 # can be detected and how.
4852 cat >conftest.
$ac_ext <<_ACEOF
4855 cat confdefs.h
>>conftest.
$ac_ext
4856 cat >>conftest.
$ac_ext <<_ACEOF
4857 /* end confdefs.h. */
4858 #include <ac_nonexistent.h>
4860 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4868 grep -v '^ *+' conftest.er1 >conftest.err
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } >/dev/null && {
4873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4874 test ! -s conftest.err
4876 # Broken: success on invalid input.
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4882 # Passes both tests.
4887 rm -f conftest.err conftest.$ac_ext
4890 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4891 rm -f conftest.err conftest.
$ac_ext
4892 if $ac_preproc_ok; then
4904 { echo "$as_me:$LINENO: result: $CPP" >&5
4905 echo "${ECHO_T}$CPP" >&6; }
4907 for ac_c_preproc_warn_flag
in '' yes
4909 # Use a header file that comes with gcc, so configuring glibc
4910 # with a fresh cross-compiler works.
4911 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4912 # <limits.h> exists even on freestanding compilers.
4913 # On the NeXT, cc -E runs the code through the compiler's parser,
4914 # not just through cpp. "Syntax error" is here to catch this case.
4915 cat >conftest.
$ac_ext <<_ACEOF
4918 cat confdefs.h
>>conftest.
$ac_ext
4919 cat >>conftest.
$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4922 # include <limits.h>
4924 # include <assert.h>
4928 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4934 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4936 grep -v '^ *+' conftest.er1 >conftest.err
4938 cat conftest.err >&5
4939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4940 (exit $ac_status); } >/dev/null && {
4941 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4942 test ! -s conftest.err
4946 echo "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4949 # Broken: fails on valid input.
4953 rm -f conftest.err conftest.$ac_ext
4955 # OK, works on sane cases. Now check whether nonexistent headers
4956 # can be detected and how.
4957 cat >conftest.$ac_ext <<_ACEOF
4960 cat confdefs.h >>conftest.$ac_ext
4961 cat >>conftest.$ac_ext <<_ACEOF
4962 /* end confdefs.h. */
4963 #include <ac_nonexistent.h>
4965 if { (ac_try="$ac_cpp conftest.$ac_ext"
4967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4968 *) ac_try_echo
=$ac_try;;
4970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4971 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4973 grep -v '^ *+' conftest.er1
>conftest.err
4975 cat conftest.err
>&5
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); } >/dev
/null
&& {
4978 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4979 test ! -s conftest.err
4981 # Broken: success on invalid input.
4984 echo "$as_me: failed program was:" >&5
4985 sed 's/^/| /' conftest.
$ac_ext >&5
4987 # Passes both tests.
4992 rm -f conftest.err conftest.
$ac_ext
4995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4996 rm -f conftest.err conftest.
$ac_ext
4997 if $ac_preproc_ok; then
5000 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5001 See \`config.log' for more details." >&5
5002 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5003 See \`config.log' for more details." >&2;}
5004 { (exit 1); exit 1; }; }
5008 ac_cpp
='$CPP $CPPFLAGS'
5009 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5013 # Find a good install program. We prefer a C program (faster),
5014 # so one script is as good as another. But avoid the broken or
5015 # incompatible versions:
5016 # SysV /etc/install, /usr/sbin/install
5017 # SunOS /usr/etc/install
5018 # IRIX /sbin/install
5020 # AmigaOS /C/install, which installs bootblocks on floppy discs
5021 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5022 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5023 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5024 # OS/2's system install, which has a completely different semantic
5025 # ./install, which can be erroneously created by make from ./install.sh.
5026 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5027 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5028 if test -z "$INSTALL"; then
5029 if test "${ac_cv_path_install+set}" = set; then
5030 echo $ECHO_N "(cached) $ECHO_C" >&6
5032 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5036 test -z "$as_dir" && as_dir
=.
5037 # Account for people who put trailing slashes in PATH elements.
5039 .
/ | .
// |
/cC
/* | \
5040 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5041 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5044 # OSF1 and SCO ODT 3.0 have their own names for install.
5045 # Don't use installbsd from OSF since it installs stuff as root
5047 for ac_prog
in ginstall scoinst
install; do
5048 for ac_exec_ext
in '' $ac_executable_extensions; do
5049 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5050 if test $ac_prog = install &&
5051 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5052 # AIX install. It has an incompatible calling convention.
5054 elif test $ac_prog = install &&
5055 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5056 # program-specific install script used by HP pwplus--don't use.
5059 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5072 if test "${ac_cv_path_install+set}" = set; then
5073 INSTALL
=$ac_cv_path_install
5075 # As a last resort, use the slow shell script. Don't cache a
5076 # value for INSTALL within a source directory, because that will
5077 # break other packages using the cache if that directory is
5078 # removed, or if the value is a relative name.
5079 INSTALL
=$ac_install_sh
5082 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5083 echo "${ECHO_T}$INSTALL" >&6; }
5085 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5086 # It thinks the first close brace ends the variable substitution.
5087 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5089 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5091 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5093 if test "x$RANLIB" = x
; then
5094 if test -n "$ac_tool_prefix"; then
5095 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5096 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5099 if test "${ac_cv_prog_RANLIB+set}" = set; then
5100 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 if test -n "$RANLIB"; then
5103 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5109 test -z "$as_dir" && as_dir
=.
5110 for ac_exec_ext
in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5113 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 RANLIB
=$ac_cv_prog_RANLIB
5123 if test -n "$RANLIB"; then
5124 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5125 echo "${ECHO_T}$RANLIB" >&6; }
5127 { echo "$as_me:$LINENO: result: no" >&5
5128 echo "${ECHO_T}no" >&6; }
5133 if test -z "$ac_cv_prog_RANLIB"; then
5134 ac_ct_RANLIB
=$RANLIB
5135 # Extract the first word of "ranlib", so it can be a program name with args.
5136 set dummy ranlib
; ac_word
=$2
5137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5139 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5140 echo $ECHO_N "(cached) $ECHO_C" >&6
5142 if test -n "$ac_ct_RANLIB"; then
5143 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5145 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5149 test -z "$as_dir" && as_dir
=.
5150 for ac_exec_ext
in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5163 if test -n "$ac_ct_RANLIB"; then
5164 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5165 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5167 { echo "$as_me:$LINENO: result: no" >&5
5168 echo "${ECHO_T}no" >&6; }
5171 if test "x$ac_ct_RANLIB" = x
; then
5174 case $cross_compiling:$ac_tool_warned in
5176 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5177 whose name does not start with the host triplet. If you think this
5178 configuration is useful to you, please write to autoconf@gnu.org." >&5
5179 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5180 whose name does not start with the host triplet. If you think this
5181 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5182 ac_tool_warned
=yes ;;
5184 RANLIB
=$ac_ct_RANLIB
5187 RANLIB
="$ac_cv_prog_RANLIB"
5191 # Extract the first word of "install-info", so it can be a program name with args.
5192 set dummy install-info
; ac_word
=$2
5193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5195 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 case $INSTALL_INFO in
5200 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5207 test -z "$as_dir" && as_dir
=.
5208 for ac_exec_ext
in '' $ac_executable_extensions; do
5209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5221 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5222 if test -n "$INSTALL_INFO"; then
5223 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5224 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5226 { echo "$as_me:$LINENO: result: no" >&5
5227 echo "${ECHO_T}no" >&6; }
5231 # Extract the first word of "install-info", so it can be a program name with args.
5232 set dummy install-info
; ac_word
=$2
5233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5235 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 case $INSTALL_INFO in
5240 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5244 for as_dir
in /usr
/sbin
5247 test -z "$as_dir" && as_dir
=.
5248 for ac_exec_ext
in '' $ac_executable_extensions; do
5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5261 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5262 if test -n "$INSTALL_INFO"; then
5263 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5264 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5266 { echo "$as_me:$LINENO: result: no" >&5
5267 echo "${ECHO_T}no" >&6; }
5271 # Extract the first word of "install-info", so it can be a program name with args.
5272 set dummy install-info
; ac_word
=$2
5273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5275 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5276 echo $ECHO_N "(cached) $ECHO_C" >&6
5278 case $INSTALL_INFO in
5280 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5287 test -z "$as_dir" && as_dir
=.
5288 for ac_exec_ext
in '' $ac_executable_extensions; do
5289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5290 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5298 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5302 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5303 if test -n "$INSTALL_INFO"; then
5304 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5305 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5307 { echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6; }
5312 # Extract the first word of "gzip", so it can be a program name with args.
5313 set dummy
gzip; ac_word
=$2
5314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5316 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5324 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5328 test -z "$as_dir" && as_dir
=.
5329 for ac_exec_ext
in '' $ac_executable_extensions; do
5330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5343 if test -n "$GZIP_PROG"; then
5344 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5345 echo "${ECHO_T}$GZIP_PROG" >&6; }
5347 { echo "$as_me:$LINENO: result: no" >&5
5348 echo "${ECHO_T}no" >&6; }
5354 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5356 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5359 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5361 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5365 late_LDFLAGS
=$LDFLAGS
5366 if test "$GCC" = yes; then
5367 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5369 LDFLAGS
="$LDFLAGS -znocombreloc"
5372 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5373 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5374 cat >conftest.
$ac_ext <<_ACEOF
5377 rm -f conftest.
$ac_objext conftest
$ac_exeext
5378 if { (ac_try
="$ac_link"
5380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5381 *) ac_try_echo=$ac_try;;
5383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5384 (eval "$ac_link") 2>conftest.er1
5386 grep -v '^ *+' conftest.er1 >conftest.err
5388 cat conftest.err >&5
5389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390 (exit $ac_status); } && {
5391 test -z "$ac_c_werror_flag" ||
5392 test ! -s conftest.err
5393 } && test -s conftest$ac_exeext &&
5394 $as_test_x conftest$ac_exeext; then
5395 { echo "$as_me:$LINENO: result: yes" >&5
5396 echo "${ECHO_T}yes" >&6; }
5398 echo "$as_me: failed program was:" >&5
5399 sed 's/^/| /' conftest.$ac_ext >&5
5401 LDFLAGS=$late_LDFLAGS
5402 { echo "$as_me:$LINENO: result: no" >&5
5403 echo "${ECHO_T}no" >&6; }
5406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5407 conftest$ac_exeext conftest.$ac_ext
5409 #### Extract some information from the operating system and machine files.
5411 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5412 - which libraries the lib-src programs will want, and
5413 - whether the GNU malloc routines are usable..." >&5
5414 echo "$as_me: checking the machine- and system-dependent files to find out
5415 - which libraries the lib-src programs will want, and
5416 - whether the GNU malloc routines are usable..." >&6;}
5418 ### First figure out CFLAGS (which we use for running the compiler here)
5419 ### and REAL_CFLAGS (which we use for real compilation).
5420 ### The two are the same except on a few systems, where they are made
5421 ### different to work around various lossages. For example,
5422 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5423 ### as implying static linking.
5425 ### If the CFLAGS env var is specified, we use that value
5426 ### instead of the default.
5428 ### It's not important that this name contain the PID; you can't run
5429 ### two configures in the same directory and have anything work
5431 tempcname="conftest.c"
5434 #include "'${srcdir}'/src/'${opsysfile}'"
5435 #include "'${srcdir}'/src/'${machfile}'"
5436 #ifndef LIBS_MACHINE
5437 #define LIBS_MACHINE
5442 #ifndef C_SWITCH_SYSTEM
5443 #define C_SWITCH_SYSTEM
5445 #ifndef C_SWITCH_MACHINE
5446 #define C_SWITCH_MACHINE
5448 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5449 configure___ c_switch_system=C_SWITCH_SYSTEM
5450 configure___ c_switch_machine=C_SWITCH_MACHINE
5453 #define LIB_X11_LIB -lX11
5456 #ifndef LIBX11_MACHINE
5457 #define LIBX11_MACHINE
5460 #ifndef LIBX11_SYSTEM
5461 #define LIBX11_SYSTEM
5463 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5466 configure___ unexec=UNEXEC
5468 configure___ unexec=unexec.o
5471 #ifdef SYSTEM_MALLOC
5472 configure___ system_malloc=yes
5474 configure___ system_malloc=no
5477 #ifdef USE_MMAP_FOR_BUFFERS
5478 configure___ use_mmap_for_buffers=yes
5480 configure___ use_mmap_for_buffers=no
5483 #ifndef C_DEBUG_SWITCH
5484 #define C_DEBUG_SWITCH -g
5487 #ifndef C_OPTIMIZE_SWITCH
5489 #define C_OPTIMIZE_SWITCH -O2
5491 #define C_OPTIMIZE_SWITCH -O
5495 #ifndef C_WARNINGS_SWITCH
5496 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5499 #ifndef LD_SWITCH_MACHINE
5500 #define LD_SWITCH_MACHINE
5503 #ifndef LD_SWITCH_SYSTEM
5504 #define LD_SWITCH_SYSTEM
5507 #ifndef LD_SWITCH_X_SITE_AUX
5508 #define LD_SWITCH_X_SITE_AUX
5511 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5512 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5514 #ifdef THIS_IS_CONFIGURE
5516 /* Get the CFLAGS for tests in configure. */
5518 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5520 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5523 #else /* not THIS_IS_CONFIGURE */
5525 /* Get the CFLAGS for real compilation. */
5527 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5529 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5532 #endif /* not THIS_IS_CONFIGURE */
5535 # The value of CPP is a quoted variable reference, so we need to do this
5536 # to get its actual value...
5537 CPP=`eval "echo $CPP"`
5538 eval `${CPP} -Isrc ${tempcname} \
5539 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5540 if test "x$SPECIFIED_CFLAGS" = x; then
5541 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5542 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5544 REAL_CFLAGS="$CFLAGS"
5548 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5550 ### Make sure subsequent tests use flags consistent with the build flags.
5552 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5553 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5555 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5560 # Check whether --enable-largefile was given.
5561 if test "${enable_largefile+set}" = set; then
5562 enableval=$enable_largefile;
5565 if test "$enable_largefile" != no; then
5567 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5568 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5569 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5570 echo $ECHO_N "(cached) $ECHO_C" >&6
5572 ac_cv_sys_largefile_CC=no
5573 if test "$GCC" != yes; then
5576 # IRIX 6.2 and later do not support large files by default,
5577 # so use the C compiler's -n32 option if that helps.
5578 cat >conftest.$ac_ext <<_ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5584 #include <sys/types.h>
5585 /* Check that off_t can represent 2**63 - 1 correctly.
5586 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5587 since some C++ compilers masquerading as C compilers
5588 incorrectly reject 9223372036854775807. */
5589 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5590 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5591 && LARGE_OFF_T % 2147483647 == 1)
5601 rm -f conftest.$ac_objext
5602 if { (ac_try="$ac_compile"
5604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5605 *) ac_try_echo
=$ac_try;;
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_compile") 2>conftest.er1
5610 grep -v '^ *+' conftest.er1
>conftest.err
5612 cat conftest.err
>&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } && {
5615 test -z "$ac_c_werror_flag" ||
5616 test ! -s conftest.err
5617 } && test -s conftest.
$ac_objext; then
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.
$ac_ext >&5
5626 rm -f core conftest.err conftest.
$ac_objext
5628 rm -f conftest.
$ac_objext
5629 if { (ac_try
="$ac_compile"
5631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5632 *) ac_try_echo=$ac_try;;
5634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5635 (eval "$ac_compile") 2>conftest.er1
5637 grep -v '^ *+' conftest.er1 >conftest.err
5639 cat conftest.err >&5
5640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5641 (exit $ac_status); } && {
5642 test -z "$ac_c_werror_flag" ||
5643 test ! -s conftest.err
5644 } && test -s conftest.$ac_objext; then
5645 ac_cv_sys_largefile_CC=' -n32'; break
5647 echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5653 rm -f core conftest.err conftest.$ac_objext
5657 rm -f conftest.$ac_ext
5660 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5661 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5662 if test "$ac_cv_sys_largefile_CC" != no; then
5663 CC=$CC$ac_cv_sys_largefile_CC
5666 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5667 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5668 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 cat >conftest.$ac_ext <<_ACEOF
5675 cat confdefs.h >>conftest.$ac_ext
5676 cat >>conftest.$ac_ext <<_ACEOF
5677 /* end confdefs.h. */
5678 #include <sys/types.h>
5679 /* Check that off_t can represent 2**63 - 1 correctly.
5680 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5681 since some C++ compilers masquerading as C compilers
5682 incorrectly reject 9223372036854775807. */
5683 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5684 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5685 && LARGE_OFF_T % 2147483647 == 1)
5695 rm -f conftest.$ac_objext
5696 if { (ac_try="$ac_compile"
5698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5699 *) ac_try_echo
=$ac_try;;
5701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5702 (eval "$ac_compile") 2>conftest.er1
5704 grep -v '^ *+' conftest.er1
>conftest.err
5706 cat conftest.err
>&5
5707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5708 (exit $ac_status); } && {
5709 test -z "$ac_c_werror_flag" ||
5710 test ! -s conftest.err
5711 } && test -s conftest.
$ac_objext; then
5712 ac_cv_sys_file_offset_bits
=no
; break
5714 echo "$as_me: failed program was:" >&5
5715 sed 's/^/| /' conftest.
$ac_ext >&5
5720 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5721 cat >conftest.
$ac_ext <<_ACEOF
5724 cat confdefs.h
>>conftest.
$ac_ext
5725 cat >>conftest.
$ac_ext <<_ACEOF
5726 /* end confdefs.h. */
5727 #define _FILE_OFFSET_BITS 64
5728 #include <sys/types.h>
5729 /* Check that off_t can represent 2**63 - 1 correctly.
5730 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5731 since some C++ compilers masquerading as C compilers
5732 incorrectly reject 9223372036854775807. */
5733 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5734 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5735 && LARGE_OFF_T % 2147483647 == 1)
5745 rm -f conftest.
$ac_objext
5746 if { (ac_try
="$ac_compile"
5748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5749 *) ac_try_echo=$ac_try;;
5751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5752 (eval "$ac_compile") 2>conftest.er1
5754 grep -v '^ *+' conftest.er1 >conftest.err
5756 cat conftest.err >&5
5757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758 (exit $ac_status); } && {
5759 test -z "$ac_c_werror_flag" ||
5760 test ! -s conftest.err
5761 } && test -s conftest.$ac_objext; then
5762 ac_cv_sys_file_offset_bits=64; break
5764 echo "$as_me: failed program was:" >&5
5765 sed 's/^/| /' conftest.$ac_ext >&5
5770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5771 ac_cv_sys_file_offset_bits=unknown
5775 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5776 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5777 case $ac_cv_sys_file_offset_bits in #(
5780 cat >>confdefs.h <<_ACEOF
5781 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5786 if test $ac_cv_sys_file_offset_bits = unknown; then
5787 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5788 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5789 if test "${ac_cv_sys_large_files+set}" = set; then
5790 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 cat >conftest.$ac_ext <<_ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 #include <sys/types.h>
5800 /* Check that off_t can represent 2**63 - 1 correctly.
5801 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5802 since some C++ compilers masquerading as C compilers
5803 incorrectly reject 9223372036854775807. */
5804 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5805 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5806 && LARGE_OFF_T % 2147483647 == 1)
5816 rm -f conftest.$ac_objext
5817 if { (ac_try="$ac_compile"
5819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5820 *) ac_try_echo
=$ac_try;;
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5825 grep -v '^ *+' conftest.er1
>conftest.err
5827 cat conftest.err
>&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } && {
5830 test -z "$ac_c_werror_flag" ||
5831 test ! -s conftest.err
5832 } && test -s conftest.
$ac_objext; then
5833 ac_cv_sys_large_files
=no
; break
5835 echo "$as_me: failed program was:" >&5
5836 sed 's/^/| /' conftest.
$ac_ext >&5
5841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5842 cat >conftest.
$ac_ext <<_ACEOF
5845 cat confdefs.h
>>conftest.
$ac_ext
5846 cat >>conftest.
$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #define _LARGE_FILES 1
5849 #include <sys/types.h>
5850 /* Check that off_t can represent 2**63 - 1 correctly.
5851 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5852 since some C++ compilers masquerading as C compilers
5853 incorrectly reject 9223372036854775807. */
5854 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5856 && LARGE_OFF_T % 2147483647 == 1)
5866 rm -f conftest.
$ac_objext
5867 if { (ac_try
="$ac_compile"
5869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5870 *) ac_try_echo=$ac_try;;
5872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5873 (eval "$ac_compile") 2>conftest.er1
5875 grep -v '^ *+' conftest.er1 >conftest.err
5877 cat conftest.err >&5
5878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5879 (exit $ac_status); } && {
5880 test -z "$ac_c_werror_flag" ||
5881 test ! -s conftest.err
5882 } && test -s conftest.$ac_objext; then
5883 ac_cv_sys_large_files=1; break
5885 echo "$as_me: failed program was:" >&5
5886 sed 's/^/| /' conftest.$ac_ext >&5
5891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892 ac_cv_sys_large_files=unknown
5896 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5897 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5898 case $ac_cv_sys_large_files in #(
5901 cat >>confdefs.h <<_ACEOF
5902 #define _LARGE_FILES $ac_cv_sys_large_files
5912 ### The standard library on x86-64 GNU/Linux distributions can
5913 ### be located in either /usr/lib64 or /usr/lib.
5914 case "${canonical}" in
5915 x86_64-*-linux-gnu* )
5916 if test -d /usr/lib64; then
5918 cat >>confdefs.h <<\_ACEOF
5919 #define HAVE_X86_64_LIB64_DIR 1
5928 if test "${with_sound}" != "no"; then
5929 # Sound support for GNU/Linux and the free BSDs.
5930 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5931 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5932 if test "${ac_cv_header_stdc+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 cat >conftest.$ac_ext <<_ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5954 rm -f conftest.$ac_objext
5955 if { (ac_try="$ac_compile"
5957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5958 *) ac_try_echo
=$ac_try;;
5960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961 (eval "$ac_compile") 2>conftest.er1
5963 grep -v '^ *+' conftest.er1
>conftest.err
5965 cat conftest.err
>&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); } && {
5968 test -z "$ac_c_werror_flag" ||
5969 test ! -s conftest.err
5970 } && test -s conftest.
$ac_objext; then
5971 ac_cv_header_stdc
=yes
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.
$ac_ext >&5
5976 ac_cv_header_stdc
=no
5979 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5981 if test $ac_cv_header_stdc = yes; then
5982 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5983 cat >conftest.
$ac_ext <<_ACEOF
5986 cat confdefs.h
>>conftest.
$ac_ext
5987 cat >>conftest.
$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5993 $EGREP "memchr" >/dev
/null
2>&1; then
5996 ac_cv_header_stdc
=no
6002 if test $ac_cv_header_stdc = yes; then
6003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6004 cat >conftest.
$ac_ext <<_ACEOF
6007 cat confdefs.h
>>conftest.
$ac_ext
6008 cat >>conftest.
$ac_ext <<_ACEOF
6009 /* end confdefs.h. */
6013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6014 $EGREP "free" >/dev
/null
2>&1; then
6017 ac_cv_header_stdc
=no
6023 if test $ac_cv_header_stdc = yes; then
6024 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6025 if test "$cross_compiling" = yes; then
6028 cat >conftest.
$ac_ext <<_ACEOF
6031 cat confdefs.h
>>conftest.
$ac_ext
6032 cat >>conftest.
$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6036 #if ((' ' & 0x0FF) == 0x020)
6037 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6038 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6040 # define ISLOWER(c) \
6041 (('a' <= (c) && (c) <= 'i') \
6042 || ('j' <= (c) && (c) <= 'r') \
6043 || ('s' <= (c) && (c) <= 'z'))
6044 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6047 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6052 for (i = 0; i < 256; i++)
6053 if (XOR (islower (i), ISLOWER (i))
6054 || toupper (i) != TOUPPER (i))
6059 rm -f conftest
$ac_exeext
6060 if { (ac_try
="$ac_link"
6062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6063 *) ac_try_echo=$ac_try;;
6065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6066 (eval "$ac_link") 2>&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6070 { (case "(($ac_try" in
6071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6072 *) ac_try_echo
=$ac_try;;
6074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6075 (eval "$ac_try") 2>&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); }; }; then
6081 echo "$as_me: program exited with status $ac_status" >&5
6082 echo "$as_me: failed program was:" >&5
6083 sed 's/^/| /' conftest.
$ac_ext >&5
6086 ac_cv_header_stdc
=no
6088 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6094 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6095 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6096 if test $ac_cv_header_stdc = yes; then
6098 cat >>confdefs.h
<<\_ACEOF
6099 #define STDC_HEADERS 1
6104 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6114 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6115 inttypes.h stdint.h unistd.h
6117 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6120 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6121 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 cat >conftest.
$ac_ext <<_ACEOF
6126 cat confdefs.h
>>conftest.
$ac_ext
6127 cat >>conftest.
$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 $ac_includes_default
6131 #include <$ac_header>
6133 rm -f conftest.
$ac_objext
6134 if { (ac_try
="$ac_compile"
6136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_compile") 2>conftest.er1
6142 grep -v '^ *+' conftest.er1 >conftest.err
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } && {
6147 test -z "$ac_c_werror_flag" ||
6148 test ! -s conftest.err
6149 } && test -s conftest.$ac_objext; then
6150 eval "$as_ac_Header=yes"
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6155 eval "$as_ac_Header=no"
6158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6160 ac_res=`eval echo '${'$as_ac_Header'}'`
6161 { echo "$as_me:$LINENO: result: $ac_res" >&5
6162 echo "${ECHO_T}$ac_res" >&6; }
6163 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6164 cat >>confdefs.h <<_ACEOF
6165 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6176 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6178 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6180 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6181 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6182 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6183 echo $ECHO_N "(cached) $ECHO_C" >&6
6185 ac_res=`eval echo '${'$as_ac_Header'}'`
6186 { echo "$as_me:$LINENO: result: $ac_res" >&5
6187 echo "${ECHO_T}$ac_res" >&6; }
6189 # Is the header compilable?
6190 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6191 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6192 cat >conftest.$ac_ext <<_ACEOF
6195 cat confdefs.h >>conftest.$ac_ext
6196 cat >>conftest.$ac_ext <<_ACEOF
6197 /* end confdefs.h. */
6198 $ac_includes_default
6199 #include <$ac_header>
6201 rm -f conftest.$ac_objext
6202 if { (ac_try="$ac_compile"
6204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6205 *) ac_try_echo
=$ac_try;;
6207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208 (eval "$ac_compile") 2>conftest.er1
6210 grep -v '^ *+' conftest.er1
>conftest.err
6212 cat conftest.err
>&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } && {
6215 test -z "$ac_c_werror_flag" ||
6216 test ! -s conftest.err
6217 } && test -s conftest.
$ac_objext; then
6218 ac_header_compiler
=yes
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.
$ac_ext >&5
6223 ac_header_compiler
=no
6226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6227 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6228 echo "${ECHO_T}$ac_header_compiler" >&6; }
6230 # Is the header present?
6231 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6232 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6233 cat >conftest.
$ac_ext <<_ACEOF
6236 cat confdefs.h
>>conftest.
$ac_ext
6237 cat >>conftest.
$ac_ext <<_ACEOF
6238 /* end confdefs.h. */
6239 #include <$ac_header>
6241 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6244 *) ac_try_echo=$ac_try;;
6246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6249 grep -v '^ *+' conftest.er1 >conftest.err
6251 cat conftest.err >&5
6252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6253 (exit $ac_status); } >/dev/null && {
6254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6255 test ! -s conftest.err
6257 ac_header_preproc=yes
6259 echo "$as_me: failed program was:" >&5
6260 sed 's/^/| /' conftest.$ac_ext >&5
6262 ac_header_preproc=no
6265 rm -f conftest.err conftest.$ac_ext
6266 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6267 echo "${ECHO_T}$ac_header_preproc" >&6; }
6269 # So? What about this header?
6270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6276 ac_header_preproc=yes
6279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6286 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 eval "$as_ac_Header=\$ac_header_preproc"
6301 ac_res=`eval echo '${'$as_ac_Header'}'`
6302 { echo "$as_me:$LINENO: result: $ac_res" >&5
6303 echo "${ECHO_T}$ac_res" >&6; }
6306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6307 cat >>confdefs.h <<_ACEOF
6308 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6315 # Emulation library used on NetBSD.
6316 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6317 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6318 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6319 echo $ECHO_N "(cached) $ECHO_C" >&6
6321 ac_check_lib_save_LIBS=$LIBS
6322 LIBS="-lossaudio $LIBS"
6323 cat >conftest.$ac_ext <<_ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6330 /* Override any GCC internal prototype to avoid an error.
6331 Use char because int might match the return type of a GCC
6332 builtin and then its argument prototype would still apply. */
6340 return _oss_ioctl ();
6345 rm -f conftest.$ac_objext conftest$ac_exeext
6346 if { (ac_try="$ac_link"
6348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6349 *) ac_try_echo
=$ac_try;;
6351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6352 (eval "$ac_link") 2>conftest.er1
6354 grep -v '^ *+' conftest.er1
>conftest.err
6356 cat conftest.err
>&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); } && {
6359 test -z "$ac_c_werror_flag" ||
6360 test ! -s conftest.err
6361 } && test -s conftest
$ac_exeext &&
6362 $as_test_x conftest
$ac_exeext; then
6363 ac_cv_lib_ossaudio__oss_ioctl
=yes
6365 echo "$as_me: failed program was:" >&5
6366 sed 's/^/| /' conftest.
$ac_ext >&5
6368 ac_cv_lib_ossaudio__oss_ioctl
=no
6371 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6372 conftest
$ac_exeext conftest.
$ac_ext
6373 LIBS
=$ac_check_lib_save_LIBS
6375 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6376 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6377 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6386 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6387 if test "X${with_pkg_config_prog}" != X
; then
6388 PKG_CONFIG
="${with_pkg_config_prog}"
6393 if test -z "$PKG_CONFIG"; then
6394 # Extract the first word of "pkg-config", so it can be a program name with args.
6395 set dummy pkg-config
; ac_word
=$2
6396 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6397 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6398 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6403 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6406 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6410 test -z "$as_dir" && as_dir
=.
6411 for ac_exec_ext
in '' $ac_executable_extensions; do
6412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6421 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6425 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6426 if test -n "$PKG_CONFIG"; then
6427 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6428 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6430 { echo "$as_me:$LINENO: result: no" >&5
6431 echo "${ECHO_T}no" >&6; }
6437 if test "$PKG_CONFIG" = "no" ; then
6440 PKG_CONFIG_MIN_VERSION
=0.9.0
6441 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6442 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6443 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6445 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6446 { echo "$as_me:$LINENO: result: yes" >&5
6447 echo "${ECHO_T}yes" >&6; }
6450 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6451 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6452 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6453 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6454 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6456 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6457 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6458 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6459 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6460 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6462 { echo "$as_me:$LINENO: result: no" >&5
6463 echo "${ECHO_T}no" >&6; }
6466 ## If we have a custom action on failure, don't print errors, but
6467 ## do set a variable so people can do so.
6468 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6475 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6476 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6480 if test $succeeded = yes; then
6486 if test $HAVE_ALSA = yes; then
6487 SAVE_CFLAGS
="$CFLAGS"
6488 SAVE_LDFLAGS
="$LDFLAGS"
6489 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6490 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6491 cat >conftest.
$ac_ext <<_ACEOF
6494 cat confdefs.h
>>conftest.
$ac_ext
6495 cat >>conftest.
$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6497 #include <asoundlib.h>
6501 snd_lib_error_set_handler (0);
6506 rm -f conftest.
$ac_objext
6507 if { (ac_try
="$ac_compile"
6509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6510 *) ac_try_echo=$ac_try;;
6512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513 (eval "$ac_compile") 2>conftest.er1
6515 grep -v '^ *+' conftest.er1 >conftest.err
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } && {
6520 test -z "$ac_c_werror_flag" ||
6521 test ! -s conftest.err
6522 } && test -s conftest.$ac_objext; then
6523 emacs_alsa_normal=yes
6525 echo "$as_me: failed program was:" >&5
6526 sed 's/^/| /' conftest.$ac_ext >&5
6528 emacs_alsa_normal=no
6531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 if test "$emacs_alsa_normal" != yes; then
6533 cat >conftest.$ac_ext <<_ACEOF
6536 cat confdefs.h >>conftest.$ac_ext
6537 cat >>conftest.$ac_ext <<_ACEOF
6538 /* end confdefs.h. */
6539 #include <alsa/asoundlib.h>
6543 snd_lib_error_set_handler (0);
6548 rm -f conftest.$ac_objext
6549 if { (ac_try="$ac_compile"
6551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6552 *) ac_try_echo
=$ac_try;;
6554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6555 (eval "$ac_compile") 2>conftest.er1
6557 grep -v '^ *+' conftest.er1
>conftest.err
6559 cat conftest.err
>&5
6560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561 (exit $ac_status); } && {
6562 test -z "$ac_c_werror_flag" ||
6563 test ! -s conftest.err
6564 } && test -s conftest.
$ac_objext; then
6565 emacs_alsa_subdir
=yes
6567 echo "$as_me: failed program was:" >&5
6568 sed 's/^/| /' conftest.
$ac_ext >&5
6570 emacs_alsa_subdir
=no
6573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6574 if test "$emacs_alsa_subdir" != yes; then
6575 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6576 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6577 { (exit 1); exit 1; }; }
6579 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6582 CFLAGS
="$SAVE_CFLAGS"
6583 LDFLAGS
="$SAVE_LDFLAGS"
6584 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6585 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6587 cat >>confdefs.h
<<\_ACEOF
6620 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6621 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6622 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6623 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6626 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6627 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6628 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6629 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6630 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 ac_res
=`eval echo '${'$as_ac_Header'}'`
6634 { echo "$as_me:$LINENO: result: $ac_res" >&5
6635 echo "${ECHO_T}$ac_res" >&6; }
6637 # Is the header compilable?
6638 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6639 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6640 cat >conftest.
$ac_ext <<_ACEOF
6643 cat confdefs.h
>>conftest.
$ac_ext
6644 cat >>conftest.
$ac_ext <<_ACEOF
6645 /* end confdefs.h. */
6646 $ac_includes_default
6647 #include <$ac_header>
6649 rm -f conftest.
$ac_objext
6650 if { (ac_try
="$ac_compile"
6652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6653 *) ac_try_echo=$ac_try;;
6655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6656 (eval "$ac_compile") 2>conftest.er1
6658 grep -v '^ *+' conftest.er1 >conftest.err
6660 cat conftest.err >&5
6661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6662 (exit $ac_status); } && {
6663 test -z "$ac_c_werror_flag" ||
6664 test ! -s conftest.err
6665 } && test -s conftest.$ac_objext; then
6666 ac_header_compiler=yes
6668 echo "$as_me: failed program was:" >&5
6669 sed 's/^/| /' conftest.$ac_ext >&5
6671 ac_header_compiler=no
6674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6675 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6676 echo "${ECHO_T}$ac_header_compiler" >&6; }
6678 # Is the header present?
6679 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6680 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6681 cat >conftest.$ac_ext <<_ACEOF
6684 cat confdefs.h >>conftest.$ac_ext
6685 cat >>conftest.$ac_ext <<_ACEOF
6686 /* end confdefs.h. */
6687 #include <$ac_header>
6689 if { (ac_try="$ac_cpp conftest.$ac_ext"
6691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6692 *) ac_try_echo
=$ac_try;;
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6697 grep -v '^ *+' conftest.er1
>conftest.err
6699 cat conftest.err
>&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } >/dev
/null
&& {
6702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6703 test ! -s conftest.err
6705 ac_header_preproc
=yes
6707 echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.
$ac_ext >&5
6710 ac_header_preproc
=no
6713 rm -f conftest.err conftest.
$ac_ext
6714 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6715 echo "${ECHO_T}$ac_header_preproc" >&6; }
6717 # So? What about this header?
6718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6724 ac_header_preproc
=yes
6727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6734 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6742 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6743 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6744 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 eval "$as_ac_Header=\$ac_header_preproc"
6749 ac_res
=`eval echo '${'$as_ac_Header'}'`
6750 { echo "$as_me:$LINENO: result: $ac_res" >&5
6751 echo "${ECHO_T}$ac_res" >&6; }
6754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6755 cat >>confdefs.h
<<_ACEOF
6756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6764 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6765 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6766 cat >conftest.
$ac_ext <<_ACEOF
6769 cat confdefs.h
>>conftest.
$ac_ext
6770 cat >>conftest.
$ac_ext <<_ACEOF
6771 /* end confdefs.h. */
6772 #include <sys/personality.h>
6776 personality (PER_LINUX32)
6781 rm -f conftest.
$ac_objext
6782 if { (ac_try
="$ac_compile"
6784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6785 *) ac_try_echo=$ac_try;;
6787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6788 (eval "$ac_compile") 2>conftest.er1
6790 grep -v '^ *+' conftest.er1 >conftest.err
6792 cat conftest.err >&5
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); } && {
6795 test -z "$ac_c_werror_flag" ||
6796 test ! -s conftest.err
6797 } && test -s conftest.$ac_objext; then
6798 emacs_cv_personality_linux32=yes
6800 echo "$as_me: failed program was:" >&5
6801 sed 's/^/| /' conftest.$ac_ext >&5
6803 emacs_cv_personality_linux32=no
6806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6808 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6810 if test $emacs_cv_personality_linux32 = yes; then
6812 cat >>confdefs.h <<\_ACEOF
6813 #define HAVE_PERSONALITY_LINUX32 1
6819 for ac_header in term.h
6821 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6825 echo $ECHO_N "(cached) $ECHO_C" >&6
6827 cat >conftest.$ac_ext <<_ACEOF
6830 cat confdefs.h >>conftest.$ac_ext
6831 cat >>conftest.$ac_ext <<_ACEOF
6832 /* end confdefs.h. */
6833 #include <$ac_header>
6835 if { (ac_try="$ac_cpp conftest.$ac_ext"
6837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6838 *) ac_try_echo
=$ac_try;;
6840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6843 grep -v '^ *+' conftest.er1
>conftest.err
6845 cat conftest.err
>&5
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); } >/dev
/null
&& {
6848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6849 test ! -s conftest.err
6851 eval "$as_ac_Header=yes"
6853 echo "$as_me: failed program was:" >&5
6854 sed 's/^/| /' conftest.
$ac_ext >&5
6856 eval "$as_ac_Header=no"
6859 rm -f conftest.err conftest.
$ac_ext
6861 ac_res
=`eval echo '${'$as_ac_Header'}'`
6862 { echo "$as_me:$LINENO: result: $ac_res" >&5
6863 echo "${ECHO_T}$ac_res" >&6; }
6864 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6865 cat >>confdefs.h
<<_ACEOF
6866 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6873 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6874 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6875 if test "${ac_cv_header_stdc+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 cat >conftest.
$ac_ext <<_ACEOF
6881 cat confdefs.h
>>conftest.
$ac_ext
6882 cat >>conftest.
$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6897 rm -f conftest.
$ac_objext
6898 if { (ac_try
="$ac_compile"
6900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6901 *) ac_try_echo=$ac_try;;
6903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6904 (eval "$ac_compile") 2>conftest.er1
6906 grep -v '^ *+' conftest.er1 >conftest.err
6908 cat conftest.err >&5
6909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6910 (exit $ac_status); } && {
6911 test -z "$ac_c_werror_flag" ||
6912 test ! -s conftest.err
6913 } && test -s conftest.$ac_objext; then
6914 ac_cv_header_stdc=yes
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6919 ac_cv_header_stdc=no
6922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6924 if test $ac_cv_header_stdc = yes; then
6925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6926 cat >conftest.$ac_ext <<_ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6936 $EGREP "memchr" >/dev/null 2>&1; then
6939 ac_cv_header_stdc=no
6945 if test $ac_cv_header_stdc = yes; then
6946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6947 cat >conftest.$ac_ext <<_ACEOF
6950 cat confdefs.h >>conftest.$ac_ext
6951 cat >>conftest.$ac_ext <<_ACEOF
6952 /* end confdefs.h. */
6956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6957 $EGREP "free" >/dev/null 2>&1; then
6960 ac_cv_header_stdc=no
6966 if test $ac_cv_header_stdc = yes; then
6967 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6968 if test "$cross_compiling" = yes; then
6971 cat >conftest.$ac_ext <<_ACEOF
6974 cat confdefs.h >>conftest.$ac_ext
6975 cat >>conftest.$ac_ext <<_ACEOF
6976 /* end confdefs.h. */
6979 #if ((' ' & 0x0FF) == 0x020)
6980 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6981 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6983 # define ISLOWER(c) \
6984 (('a' <= (c) && (c) <= 'i') \
6985 || ('j' <= (c) && (c) <= 'r') \
6986 || ('s' <= (c) && (c) <= 'z'))
6987 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6990 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6995 for (i = 0; i < 256; i++)
6996 if (XOR (islower (i), ISLOWER (i))
6997 || toupper (i) != TOUPPER (i))
7002 rm -f conftest$ac_exeext
7003 if { (ac_try="$ac_link"
7005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7006 *) ac_try_echo
=$ac_try;;
7008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7009 (eval "$ac_link") 2>&5
7011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7012 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7013 { (case "(($ac_try" in
7014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7015 *) ac_try_echo=$ac_try;;
7017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7018 (eval "$ac_try") 2>&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); }; }; then
7024 echo "$as_me: program exited with status $ac_status" >&5
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7029 ac_cv_header_stdc=no
7031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7037 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7038 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7039 if test $ac_cv_header_stdc = yes; then
7041 cat >>confdefs.h <<\_ACEOF
7042 #define STDC_HEADERS 1
7047 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7048 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7049 if test "${ac_cv_header_time+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 cat >conftest.$ac_ext <<_ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h. */
7058 #include <sys/types.h>
7059 #include <sys/time.h>
7065 if ((struct tm *) 0)
7071 rm -f conftest.$ac_objext
7072 if { (ac_try="$ac_compile"
7074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7075 *) ac_try_echo
=$ac_try;;
7077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7078 (eval "$ac_compile") 2>conftest.er1
7080 grep -v '^ *+' conftest.er1
>conftest.err
7082 cat conftest.err
>&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && {
7085 test -z "$ac_c_werror_flag" ||
7086 test ! -s conftest.err
7087 } && test -s conftest.
$ac_objext; then
7088 ac_cv_header_time
=yes
7090 echo "$as_me: failed program was:" >&5
7091 sed 's/^/| /' conftest.
$ac_ext >&5
7093 ac_cv_header_time
=no
7096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7098 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7099 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7100 if test $ac_cv_header_time = yes; then
7102 cat >>confdefs.h
<<\_ACEOF
7103 #define TIME_WITH_SYS_TIME 1
7108 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7109 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7110 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7113 cat >conftest.
$ac_ext <<_ACEOF
7116 cat confdefs.h
>>conftest.
$ac_ext
7117 cat >>conftest.
$ac_ext <<_ACEOF
7118 /* end confdefs.h. */
7119 $ac_includes_default
7131 rm -f conftest.
$ac_objext
7132 if { (ac_try
="$ac_compile"
7134 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7135 *) ac_try_echo=$ac_try;;
7137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7138 (eval "$ac_compile") 2>conftest.er1
7140 grep -v '^ *+' conftest.er1 >conftest.err
7142 cat conftest.err >&5
7143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7144 (exit $ac_status); } && {
7145 test -z "$ac_c_werror_flag" ||
7146 test ! -s conftest.err
7147 } && test -s conftest.$ac_objext; then
7148 ac_cv_have_decl_sys_siglist=yes
7150 echo "$as_me: failed program was:" >&5
7151 sed 's/^/| /' conftest.$ac_ext >&5
7153 ac_cv_have_decl_sys_siglist=no
7156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7159 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7160 if test $ac_cv_have_decl_sys_siglist = yes; then
7162 cat >>confdefs.h <<_ACEOF
7163 #define HAVE_DECL_SYS_SIGLIST 1
7168 cat >>confdefs.h <<_ACEOF
7169 #define HAVE_DECL_SYS_SIGLIST 0
7176 if test $ac_cv_have_decl_sys_siglist != yes; then
7177 # For Tru64, at least:
7178 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7179 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7180 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7181 echo $ECHO_N "(cached) $ECHO_C" >&6
7183 cat >conftest.$ac_ext <<_ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h. */
7189 $ac_includes_default
7193 #ifndef __sys_siglist
7194 (void) __sys_siglist;
7201 rm -f conftest.$ac_objext
7202 if { (ac_try="$ac_compile"
7204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7205 *) ac_try_echo
=$ac_try;;
7207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7208 (eval "$ac_compile") 2>conftest.er1
7210 grep -v '^ *+' conftest.er1
>conftest.err
7212 cat conftest.err
>&5
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); } && {
7215 test -z "$ac_c_werror_flag" ||
7216 test ! -s conftest.err
7217 } && test -s conftest.
$ac_objext; then
7218 ac_cv_have_decl___sys_siglist
=yes
7220 echo "$as_me: failed program was:" >&5
7221 sed 's/^/| /' conftest.
$ac_ext >&5
7223 ac_cv_have_decl___sys_siglist
=no
7226 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7228 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7229 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7230 if test $ac_cv_have_decl___sys_siglist = yes; then
7232 cat >>confdefs.h
<<_ACEOF
7233 #define HAVE_DECL___SYS_SIGLIST 1
7238 cat >>confdefs.h
<<_ACEOF
7239 #define HAVE_DECL___SYS_SIGLIST 0
7246 if test $ac_cv_have_decl___sys_siglist = yes; then
7248 cat >>confdefs.h
<<\_ACEOF
7249 #define sys_siglist __sys_siglist
7254 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7255 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7256 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7257 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 cat >conftest.
$ac_ext <<_ACEOF
7262 cat confdefs.h
>>conftest.
$ac_ext
7263 cat >>conftest.
$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7265 #include <sys/types.h>
7266 #include <sys/wait.h>
7268 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7271 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7279 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7284 rm -f conftest.
$ac_objext
7285 if { (ac_try
="$ac_compile"
7287 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7288 *) ac_try_echo=$ac_try;;
7290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7291 (eval "$ac_compile") 2>conftest.er1
7293 grep -v '^ *+' conftest.er1 >conftest.err
7295 cat conftest.err >&5
7296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7297 (exit $ac_status); } && {
7298 test -z "$ac_c_werror_flag" ||
7299 test ! -s conftest.err
7300 } && test -s conftest.$ac_objext; then
7301 ac_cv_header_sys_wait_h=yes
7303 echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7306 ac_cv_header_sys_wait_h=no
7309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7311 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7312 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7313 if test $ac_cv_header_sys_wait_h = yes; then
7315 cat >>confdefs.h <<\_ACEOF
7316 #define HAVE_SYS_WAIT_H 1
7322 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7323 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7324 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 cat >conftest.$ac_ext <<_ACEOF
7330 cat confdefs.h >>conftest.$ac_ext
7331 cat >>conftest.$ac_ext <<_ACEOF
7332 /* end confdefs.h. */
7333 #ifdef TIME_WITH_SYS_TIME
7334 #include <sys/time.h>
7337 #ifdef HAVE_SYS_TIME_H
7338 #include <sys/time.h>
7349 static struct utimbuf x; x.actime = x.modtime;
7354 rm -f conftest.$ac_objext
7355 if { (ac_try="$ac_compile"
7357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7358 *) ac_try_echo
=$ac_try;;
7360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7361 (eval "$ac_compile") 2>conftest.er1
7363 grep -v '^ *+' conftest.er1
>conftest.err
7365 cat conftest.err
>&5
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); } && {
7368 test -z "$ac_c_werror_flag" ||
7369 test ! -s conftest.err
7370 } && test -s conftest.
$ac_objext; then
7371 emacs_cv_struct_utimbuf
=yes
7373 echo "$as_me: failed program was:" >&5
7374 sed 's/^/| /' conftest.
$ac_ext >&5
7376 emacs_cv_struct_utimbuf
=no
7379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7381 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7382 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7383 if test $emacs_cv_struct_utimbuf = yes; then
7385 cat >>confdefs.h
<<\_ACEOF
7386 #define HAVE_STRUCT_UTIMBUF 1
7391 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7392 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7393 if test "${ac_cv_type_signal+set}" = set; then
7394 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 cat >conftest.
$ac_ext <<_ACEOF
7399 cat confdefs.h
>>conftest.
$ac_ext
7400 cat >>conftest.
$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7402 #include <sys/types.h>
7408 return *(signal (0, 0)) (0) == 1;
7413 rm -f conftest.
$ac_objext
7414 if { (ac_try
="$ac_compile"
7416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7417 *) ac_try_echo=$ac_try;;
7419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7420 (eval "$ac_compile") 2>conftest.er1
7422 grep -v '^ *+' conftest.er1 >conftest.err
7424 cat conftest.err >&5
7425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && {
7427 test -z "$ac_c_werror_flag" ||
7428 test ! -s conftest.err
7429 } && test -s conftest.$ac_objext; then
7430 ac_cv_type_signal=int
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7435 ac_cv_type_signal=void
7438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7441 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7443 cat >>confdefs.h <<_ACEOF
7444 #define RETSIGTYPE $ac_cv_type_signal
7449 { echo "$as_me:$LINENO: checking for speed_t" >&5
7450 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7451 if test "${emacs_cv_speed_t+set}" = set; then
7452 echo $ECHO_N "(cached) $ECHO_C" >&6
7454 cat >conftest.$ac_ext <<_ACEOF
7457 cat confdefs.h >>conftest.$ac_ext
7458 cat >>conftest.$ac_ext <<_ACEOF
7459 /* end confdefs.h. */
7460 #include <termios.h>
7469 rm -f conftest.$ac_objext
7470 if { (ac_try="$ac_compile"
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_compile") 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); } && {
7483 test -z "$ac_c_werror_flag" ||
7484 test ! -s conftest.err
7485 } && test -s conftest.
$ac_objext; then
7486 emacs_cv_speed_t
=yes
7488 echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.
$ac_ext >&5
7494 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7496 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7497 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7498 if test $emacs_cv_speed_t = yes; then
7500 cat >>confdefs.h
<<\_ACEOF
7501 #define HAVE_SPEED_T 1
7506 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7507 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7508 if test "${emacs_cv_struct_timeval+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 cat >conftest.
$ac_ext <<_ACEOF
7514 cat confdefs.h
>>conftest.
$ac_ext
7515 cat >>conftest.
$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 #ifdef TIME_WITH_SYS_TIME
7518 #include <sys/time.h>
7521 #ifdef HAVE_SYS_TIME_H
7522 #include <sys/time.h>
7530 static struct timeval x; x.tv_sec = x.tv_usec;
7535 rm -f conftest.
$ac_objext
7536 if { (ac_try
="$ac_compile"
7538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542 (eval "$ac_compile") 2>conftest.er1
7544 grep -v '^ *+' conftest.er1 >conftest.err
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } && {
7549 test -z "$ac_c_werror_flag" ||
7550 test ! -s conftest.err
7551 } && test -s conftest.$ac_objext; then
7552 emacs_cv_struct_timeval=yes
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7557 emacs_cv_struct_timeval=no
7560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7562 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7563 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7564 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7565 if test $emacs_cv_struct_timeval = yes; then
7567 cat >>confdefs.h <<\_ACEOF
7568 #define HAVE_TIMEVAL 1
7573 { echo "$as_me:$LINENO: checking for struct exception" >&5
7574 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7575 if test "${emacs_cv_struct_exception+set}" = set; then
7576 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 cat >conftest.$ac_ext <<_ACEOF
7581 cat confdefs.h >>conftest.$ac_ext
7582 cat >>conftest.$ac_ext <<_ACEOF
7583 /* end confdefs.h. */
7588 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7593 rm -f conftest.$ac_objext
7594 if { (ac_try="$ac_compile"
7596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7597 *) ac_try_echo
=$ac_try;;
7599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7600 (eval "$ac_compile") 2>conftest.er1
7602 grep -v '^ *+' conftest.er1
>conftest.err
7604 cat conftest.err
>&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); } && {
7607 test -z "$ac_c_werror_flag" ||
7608 test ! -s conftest.err
7609 } && test -s conftest.
$ac_objext; then
7610 emacs_cv_struct_exception
=yes
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.
$ac_ext >&5
7615 emacs_cv_struct_exception
=no
7618 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7620 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7621 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7622 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7623 if test $emacs_cv_struct_exception != yes; then
7625 cat >>confdefs.h
<<\_ACEOF
7626 #define NO_MATHERR 1
7632 for ac_header
in sys
/socket.h
7634 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7635 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7637 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7638 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 ac_res
=`eval echo '${'$as_ac_Header'}'`
7642 { echo "$as_me:$LINENO: result: $ac_res" >&5
7643 echo "${ECHO_T}$ac_res" >&6; }
7645 # Is the header compilable?
7646 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7647 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7648 cat >conftest.
$ac_ext <<_ACEOF
7651 cat confdefs.h
>>conftest.
$ac_ext
7652 cat >>conftest.
$ac_ext <<_ACEOF
7653 /* end confdefs.h. */
7654 $ac_includes_default
7655 #include <$ac_header>
7657 rm -f conftest.
$ac_objext
7658 if { (ac_try
="$ac_compile"
7660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_compile") 2>conftest.er1
7666 grep -v '^ *+' conftest.er1 >conftest.err
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } && {
7671 test -z "$ac_c_werror_flag" ||
7672 test ! -s conftest.err
7673 } && test -s conftest.$ac_objext; then
7674 ac_header_compiler=yes
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7679 ac_header_compiler=no
7682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7684 echo "${ECHO_T}$ac_header_compiler" >&6; }
7686 # Is the header present?
7687 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7689 cat >conftest.$ac_ext <<_ACEOF
7692 cat confdefs.h >>conftest.$ac_ext
7693 cat >>conftest.$ac_ext <<_ACEOF
7694 /* end confdefs.h. */
7695 #include <$ac_header>
7697 if { (ac_try="$ac_cpp conftest.$ac_ext"
7699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7700 *) ac_try_echo
=$ac_try;;
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7705 grep -v '^ *+' conftest.er1
>conftest.err
7707 cat conftest.err
>&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } >/dev
/null
&& {
7710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7713 ac_header_preproc
=yes
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.
$ac_ext >&5
7718 ac_header_preproc
=no
7721 rm -f conftest.err conftest.
$ac_ext
7722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7723 echo "${ECHO_T}$ac_header_preproc" >&6; }
7725 # So? What about this header?
7726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7729 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7731 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7732 ac_header_preproc
=yes
7735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7736 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7738 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7740 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7742 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7744 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7746 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7752 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7753 echo $ECHO_N "(cached) $ECHO_C" >&6
7755 eval "$as_ac_Header=\$ac_header_preproc"
7757 ac_res
=`eval echo '${'$as_ac_Header'}'`
7758 { echo "$as_me:$LINENO: result: $ac_res" >&5
7759 echo "${ECHO_T}$ac_res" >&6; }
7762 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7763 cat >>confdefs.h
<<_ACEOF
7764 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7772 for ac_header
in net
/if.h
7774 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7775 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7776 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7777 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7778 echo $ECHO_N "(cached) $ECHO_C" >&6
7780 cat >conftest.
$ac_ext <<_ACEOF
7783 cat confdefs.h
>>conftest.
$ac_ext
7784 cat >>conftest.
$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7786 $ac_includes_default
7787 #if HAVE_SYS_SOCKET_H
7788 #include <sys/socket.h>
7791 #include <$ac_header>
7793 rm -f conftest.
$ac_objext
7794 if { (ac_try
="$ac_compile"
7796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7797 *) ac_try_echo=$ac_try;;
7799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7800 (eval "$ac_compile") 2>conftest.er1
7802 grep -v '^ *+' conftest.er1 >conftest.err
7804 cat conftest.err >&5
7805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } && {
7807 test -z "$ac_c_werror_flag" ||
7808 test ! -s conftest.err
7809 } && test -s conftest.$ac_objext; then
7810 eval "$as_ac_Header=yes"
7812 echo "$as_me: failed program was:" >&5
7813 sed 's/^/| /' conftest.$ac_ext >&5
7815 eval "$as_ac_Header=no"
7818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7820 ac_res=`eval echo '${'$as_ac_Header'}'`
7821 { echo "$as_me:$LINENO: result: $ac_res" >&5
7822 echo "${ECHO_T}$ac_res" >&6; }
7823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7824 cat >>confdefs.h <<_ACEOF
7825 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7833 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7834 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7835 if test "${ac_cv_struct_tm+set}" = set; then
7836 echo $ECHO_N "(cached) $ECHO_C" >&6
7838 cat >conftest.$ac_ext <<_ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7844 #include <sys/types.h>
7851 int *p = &tm.tm_sec;
7857 rm -f conftest.$ac_objext
7858 if { (ac_try="$ac_compile"
7860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7861 *) ac_try_echo
=$ac_try;;
7863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864 (eval "$ac_compile") 2>conftest.er1
7866 grep -v '^ *+' conftest.er1
>conftest.err
7868 cat conftest.err
>&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } && {
7871 test -z "$ac_c_werror_flag" ||
7872 test ! -s conftest.err
7873 } && test -s conftest.
$ac_objext; then
7874 ac_cv_struct_tm
=time.h
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.
$ac_ext >&5
7879 ac_cv_struct_tm
=sys
/time.h
7882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7884 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7885 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7886 if test $ac_cv_struct_tm = sys
/time.h
; then
7888 cat >>confdefs.h
<<\_ACEOF
7889 #define TM_IN_SYS_TIME 1
7894 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7895 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7896 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7899 cat >conftest.
$ac_ext <<_ACEOF
7902 cat confdefs.h
>>conftest.
$ac_ext
7903 cat >>conftest.
$ac_ext <<_ACEOF
7904 /* end confdefs.h. */
7905 #include <sys/types.h>
7906 #include <$ac_cv_struct_tm>
7912 static struct tm ac_aggr;
7913 if (ac_aggr.tm_zone)
7919 rm -f conftest.
$ac_objext
7920 if { (ac_try
="$ac_compile"
7922 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7926 (eval "$ac_compile") 2>conftest.er1
7928 grep -v '^ *+' conftest.er1 >conftest.err
7930 cat conftest.err >&5
7931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7932 (exit $ac_status); } && {
7933 test -z "$ac_c_werror_flag" ||
7934 test ! -s conftest.err
7935 } && test -s conftest.$ac_objext; then
7936 ac_cv_member_struct_tm_tm_zone=yes
7938 echo "$as_me: failed program was:" >&5
7939 sed 's/^/| /' conftest.$ac_ext >&5
7941 cat >conftest.$ac_ext <<_ACEOF
7944 cat confdefs.h >>conftest.$ac_ext
7945 cat >>conftest.$ac_ext <<_ACEOF
7946 /* end confdefs.h. */
7947 #include <sys/types.h>
7948 #include <$ac_cv_struct_tm>
7954 static struct tm ac_aggr;
7955 if (sizeof ac_aggr.tm_zone)
7961 rm -f conftest.$ac_objext
7962 if { (ac_try="$ac_compile"
7964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7965 *) ac_try_echo
=$ac_try;;
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_compile") 2>conftest.er1
7970 grep -v '^ *+' conftest.er1
>conftest.err
7972 cat conftest.err
>&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && {
7975 test -z "$ac_c_werror_flag" ||
7976 test ! -s conftest.err
7977 } && test -s conftest.
$ac_objext; then
7978 ac_cv_member_struct_tm_tm_zone
=yes
7980 echo "$as_me: failed program was:" >&5
7981 sed 's/^/| /' conftest.
$ac_ext >&5
7983 ac_cv_member_struct_tm_tm_zone
=no
7986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7989 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7991 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7992 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7993 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7995 cat >>confdefs.h
<<_ACEOF
7996 #define HAVE_STRUCT_TM_TM_ZONE 1
8002 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8004 cat >>confdefs.h
<<\_ACEOF
8005 #define HAVE_TM_ZONE 1
8009 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8010 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8011 if test "${ac_cv_have_decl_tzname+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 cat >conftest.
$ac_ext <<_ACEOF
8017 cat confdefs.h
>>conftest.
$ac_ext
8018 cat >>conftest.
$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8033 rm -f conftest.
$ac_objext
8034 if { (ac_try
="$ac_compile"
8036 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8037 *) ac_try_echo=$ac_try;;
8039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8040 (eval "$ac_compile") 2>conftest.er1
8042 grep -v '^ *+' conftest.er1 >conftest.err
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } && {
8047 test -z "$ac_c_werror_flag" ||
8048 test ! -s conftest.err
8049 } && test -s conftest.$ac_objext; then
8050 ac_cv_have_decl_tzname=yes
8052 echo "$as_me: failed program was:" >&5
8053 sed 's/^/| /' conftest.$ac_ext >&5
8055 ac_cv_have_decl_tzname=no
8058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8061 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8062 if test $ac_cv_have_decl_tzname = yes; then
8064 cat >>confdefs.h <<_ACEOF
8065 #define HAVE_DECL_TZNAME 1
8070 cat >>confdefs.h <<_ACEOF
8071 #define HAVE_DECL_TZNAME 0
8078 { echo "$as_me:$LINENO: checking for tzname" >&5
8079 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8080 if test "${ac_cv_var_tzname+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 cat >conftest.$ac_ext <<_ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8090 #if !HAVE_DECL_TZNAME
8091 extern char *tzname[];
8097 return tzname[0][0];
8102 rm -f conftest.$ac_objext conftest$ac_exeext
8103 if { (ac_try="$ac_link"
8105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8106 *) ac_try_echo
=$ac_try;;
8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_link") 2>conftest.er1
8111 grep -v '^ *+' conftest.er1
>conftest.err
8113 cat conftest.err
>&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } && {
8116 test -z "$ac_c_werror_flag" ||
8117 test ! -s conftest.err
8118 } && test -s conftest
$ac_exeext &&
8119 $as_test_x conftest
$ac_exeext; then
8120 ac_cv_var_tzname
=yes
8122 echo "$as_me: failed program was:" >&5
8123 sed 's/^/| /' conftest.
$ac_ext >&5
8128 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8129 conftest
$ac_exeext conftest.
$ac_ext
8131 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8132 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8133 if test $ac_cv_var_tzname = yes; then
8135 cat >>confdefs.h
<<\_ACEOF
8136 #define HAVE_TZNAME 1
8142 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8143 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8144 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 cat >conftest.
$ac_ext <<_ACEOF
8150 cat confdefs.h
>>conftest.
$ac_ext
8151 cat >>conftest.
$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8158 static struct tm ac_aggr;
8159 if (ac_aggr.tm_gmtoff)
8165 rm -f conftest.
$ac_objext
8166 if { (ac_try
="$ac_compile"
8168 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_compile") 2>conftest.er1
8174 grep -v '^ *+' conftest.er1 >conftest.err
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && {
8179 test -z "$ac_c_werror_flag" ||
8180 test ! -s conftest.err
8181 } && test -s conftest.$ac_objext; then
8182 ac_cv_member_struct_tm_tm_gmtoff=yes
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8187 cat >conftest.$ac_ext <<_ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h. */
8198 static struct tm ac_aggr;
8199 if (sizeof ac_aggr.tm_gmtoff)
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8209 *) ac_try_echo
=$ac_try;;
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_compile") 2>conftest.er1
8214 grep -v '^ *+' conftest.er1
>conftest.err
8216 cat conftest.err
>&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } && {
8219 test -z "$ac_c_werror_flag" ||
8220 test ! -s conftest.err
8221 } && test -s conftest.
$ac_objext; then
8222 ac_cv_member_struct_tm_tm_gmtoff
=yes
8224 echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.
$ac_ext >&5
8227 ac_cv_member_struct_tm_tm_gmtoff
=no
8230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8235 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8236 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8237 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8239 cat >>confdefs.h
<<\_ACEOF
8240 #define HAVE_TM_GMTOFF 1
8245 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8246 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8247 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 cat >conftest.
$ac_ext <<_ACEOF
8253 cat confdefs.h
>>conftest.
$ac_ext
8254 cat >>conftest.
$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 $ac_includes_default
8257 #if HAVE_SYS_SOCKET_H
8258 #include <sys/socket.h>
8267 static struct ifreq ac_aggr;
8268 if (ac_aggr.ifr_flags)
8274 rm -f conftest.
$ac_objext
8275 if { (ac_try
="$ac_compile"
8277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8283 grep -v '^ *+' conftest.er1 >conftest.err
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.$ac_objext; then
8291 ac_cv_member_struct_ifreq_ifr_flags=yes
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8296 cat >conftest.$ac_ext <<_ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 $ac_includes_default
8303 #if HAVE_SYS_SOCKET_H
8304 #include <sys/socket.h>
8313 static struct ifreq ac_aggr;
8314 if (sizeof ac_aggr.ifr_flags)
8320 rm -f conftest.$ac_objext
8321 if { (ac_try="$ac_compile"
8323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8324 *) ac_try_echo
=$ac_try;;
8326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327 (eval "$ac_compile") 2>conftest.er1
8329 grep -v '^ *+' conftest.er1
>conftest.err
8331 cat conftest.err
>&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } && {
8334 test -z "$ac_c_werror_flag" ||
8335 test ! -s conftest.err
8336 } && test -s conftest.
$ac_objext; then
8337 ac_cv_member_struct_ifreq_ifr_flags
=yes
8339 echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.
$ac_ext >&5
8342 ac_cv_member_struct_ifreq_ifr_flags
=no
8345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8350 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8351 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8352 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8354 cat >>confdefs.h
<<_ACEOF
8355 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8360 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8361 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8362 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 cat >conftest.
$ac_ext <<_ACEOF
8368 cat confdefs.h
>>conftest.
$ac_ext
8369 cat >>conftest.
$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 #if HAVE_SYS_SOCKET_H
8373 #include <sys/socket.h>
8382 static struct ifreq ac_aggr;
8383 if (ac_aggr.ifr_hwaddr)
8389 rm -f conftest.
$ac_objext
8390 if { (ac_try
="$ac_compile"
8392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1 >conftest.err
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.$ac_objext; then
8406 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 cat >conftest.$ac_ext <<_ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h. */
8417 $ac_includes_default
8418 #if HAVE_SYS_SOCKET_H
8419 #include <sys/socket.h>
8428 static struct ifreq ac_aggr;
8429 if (sizeof ac_aggr.ifr_hwaddr)
8435 rm -f conftest.$ac_objext
8436 if { (ac_try="$ac_compile"
8438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8439 *) ac_try_echo
=$ac_try;;
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_compile") 2>conftest.er1
8444 grep -v '^ *+' conftest.er1
>conftest.err
8446 cat conftest.err
>&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && {
8449 test -z "$ac_c_werror_flag" ||
8450 test ! -s conftest.err
8451 } && test -s conftest.
$ac_objext; then
8452 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.
$ac_ext >&5
8457 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8465 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8466 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8467 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8469 cat >>confdefs.h
<<_ACEOF
8470 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8475 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8476 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8477 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8478 echo $ECHO_N "(cached) $ECHO_C" >&6
8480 cat >conftest.
$ac_ext <<_ACEOF
8483 cat confdefs.h
>>conftest.
$ac_ext
8484 cat >>conftest.
$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8486 $ac_includes_default
8487 #if HAVE_SYS_SOCKET_H
8488 #include <sys/socket.h>
8497 static struct ifreq ac_aggr;
8498 if (ac_aggr.ifr_netmask)
8504 rm -f conftest.
$ac_objext
8505 if { (ac_try
="$ac_compile"
8507 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_compile") 2>conftest.er1
8513 grep -v '^ *+' conftest.er1 >conftest.err
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } && {
8518 test -z "$ac_c_werror_flag" ||
8519 test ! -s conftest.err
8520 } && test -s conftest.$ac_objext; then
8521 ac_cv_member_struct_ifreq_ifr_netmask=yes
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8526 cat >conftest.$ac_ext <<_ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 $ac_includes_default
8533 #if HAVE_SYS_SOCKET_H
8534 #include <sys/socket.h>
8543 static struct ifreq ac_aggr;
8544 if (sizeof ac_aggr.ifr_netmask)
8550 rm -f conftest.$ac_objext
8551 if { (ac_try="$ac_compile"
8553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8554 *) ac_try_echo
=$ac_try;;
8556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8557 (eval "$ac_compile") 2>conftest.er1
8559 grep -v '^ *+' conftest.er1
>conftest.err
8561 cat conftest.err
>&5
8562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563 (exit $ac_status); } && {
8564 test -z "$ac_c_werror_flag" ||
8565 test ! -s conftest.err
8566 } && test -s conftest.
$ac_objext; then
8567 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.
$ac_ext >&5
8572 ac_cv_member_struct_ifreq_ifr_netmask
=no
8575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8580 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8581 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8582 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8584 cat >>confdefs.h
<<_ACEOF
8585 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8590 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8591 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8592 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8593 echo $ECHO_N "(cached) $ECHO_C" >&6
8595 cat >conftest.
$ac_ext <<_ACEOF
8598 cat confdefs.h
>>conftest.
$ac_ext
8599 cat >>conftest.
$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8601 $ac_includes_default
8602 #if HAVE_SYS_SOCKET_H
8603 #include <sys/socket.h>
8612 static struct ifreq ac_aggr;
8613 if (ac_aggr.ifr_broadaddr)
8619 rm -f conftest.
$ac_objext
8620 if { (ac_try
="$ac_compile"
8622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_compile") 2>conftest.er1
8628 grep -v '^ *+' conftest.er1 >conftest.err
8630 cat conftest.err >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } && {
8633 test -z "$ac_c_werror_flag" ||
8634 test ! -s conftest.err
8635 } && test -s conftest.$ac_objext; then
8636 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8641 cat >conftest.$ac_ext <<_ACEOF
8644 cat confdefs.h >>conftest.$ac_ext
8645 cat >>conftest.$ac_ext <<_ACEOF
8646 /* end confdefs.h. */
8647 $ac_includes_default
8648 #if HAVE_SYS_SOCKET_H
8649 #include <sys/socket.h>
8658 static struct ifreq ac_aggr;
8659 if (sizeof ac_aggr.ifr_broadaddr)
8665 rm -f conftest.$ac_objext
8666 if { (ac_try="$ac_compile"
8668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8669 *) ac_try_echo
=$ac_try;;
8671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8672 (eval "$ac_compile") 2>conftest.er1
8674 grep -v '^ *+' conftest.er1
>conftest.err
8676 cat conftest.err
>&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 (exit $ac_status); } && {
8679 test -z "$ac_c_werror_flag" ||
8680 test ! -s conftest.err
8681 } && test -s conftest.
$ac_objext; then
8682 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8684 echo "$as_me: failed program was:" >&5
8685 sed 's/^/| /' conftest.
$ac_ext >&5
8687 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8690 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8693 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8695 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8696 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8697 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8699 cat >>confdefs.h
<<_ACEOF
8700 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8705 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8706 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8707 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8710 cat >conftest.
$ac_ext <<_ACEOF
8713 cat confdefs.h
>>conftest.
$ac_ext
8714 cat >>conftest.
$ac_ext <<_ACEOF
8715 /* end confdefs.h. */
8716 $ac_includes_default
8717 #if HAVE_SYS_SOCKET_H
8718 #include <sys/socket.h>
8727 static struct ifreq ac_aggr;
8728 if (ac_aggr.ifr_addr)
8734 rm -f conftest.
$ac_objext
8735 if { (ac_try
="$ac_compile"
8737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8738 *) ac_try_echo=$ac_try;;
8740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8741 (eval "$ac_compile") 2>conftest.er1
8743 grep -v '^ *+' conftest.er1 >conftest.err
8745 cat conftest.err >&5
8746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8747 (exit $ac_status); } && {
8748 test -z "$ac_c_werror_flag" ||
8749 test ! -s conftest.err
8750 } && test -s conftest.$ac_objext; then
8751 ac_cv_member_struct_ifreq_ifr_addr=yes
8753 echo "$as_me: failed program was:" >&5
8754 sed 's/^/| /' conftest.$ac_ext >&5
8756 cat >conftest.$ac_ext <<_ACEOF
8759 cat confdefs.h >>conftest.$ac_ext
8760 cat >>conftest.$ac_ext <<_ACEOF
8761 /* end confdefs.h. */
8762 $ac_includes_default
8763 #if HAVE_SYS_SOCKET_H
8764 #include <sys/socket.h>
8773 static struct ifreq ac_aggr;
8774 if (sizeof ac_aggr.ifr_addr)
8780 rm -f conftest.$ac_objext
8781 if { (ac_try="$ac_compile"
8783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8784 *) ac_try_echo
=$ac_try;;
8786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8787 (eval "$ac_compile") 2>conftest.er1
8789 grep -v '^ *+' conftest.er1
>conftest.err
8791 cat conftest.err
>&5
8792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8793 (exit $ac_status); } && {
8794 test -z "$ac_c_werror_flag" ||
8795 test ! -s conftest.err
8796 } && test -s conftest.
$ac_objext; then
8797 ac_cv_member_struct_ifreq_ifr_addr
=yes
8799 echo "$as_me: failed program was:" >&5
8800 sed 's/^/| /' conftest.
$ac_ext >&5
8802 ac_cv_member_struct_ifreq_ifr_addr
=no
8805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8808 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8810 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8811 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8812 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8814 cat >>confdefs.h
<<_ACEOF
8815 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8823 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8824 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8825 if test "$ac_cv_prog_cc_c89" != no
; then
8826 { echo "$as_me:$LINENO: result: yes" >&5
8827 echo "${ECHO_T}yes" >&6; }
8829 cat >>confdefs.h
<<\_ACEOF
8830 #define PROTOTYPES 1
8834 cat >>confdefs.h
<<\_ACEOF
8835 #define __PROTOTYPES 1
8839 { echo "$as_me:$LINENO: result: no" >&5
8840 echo "${ECHO_T}no" >&6; }
8843 { echo "$as_me:$LINENO: checking for working volatile" >&5
8844 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8845 if test "${ac_cv_c_volatile+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 cat >conftest.
$ac_ext <<_ACEOF
8851 cat confdefs.h
>>conftest.
$ac_ext
8852 cat >>conftest.
$ac_ext <<_ACEOF
8853 /* end confdefs.h. */
8860 int * volatile y = (int *) 0;
8866 rm -f conftest.
$ac_objext
8867 if { (ac_try
="$ac_compile"
8869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8870 *) ac_try_echo=$ac_try;;
8872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8873 (eval "$ac_compile") 2>conftest.er1
8875 grep -v '^ *+' conftest.er1 >conftest.err
8877 cat conftest.err >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); } && {
8880 test -z "$ac_c_werror_flag" ||
8881 test ! -s conftest.err
8882 } && test -s conftest.$ac_objext; then
8883 ac_cv_c_volatile=yes
8885 echo "$as_me: failed program was:" >&5
8886 sed 's/^/| /' conftest.$ac_ext >&5
8891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8893 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8894 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8895 if test $ac_cv_c_volatile = no; then
8897 cat >>confdefs.h <<\_ACEOF
8903 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8904 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8905 if test "${ac_cv_c_const+set}" = set; then
8906 echo $ECHO_N "(cached) $ECHO_C" >&6
8908 cat >conftest.$ac_ext <<_ACEOF
8911 cat confdefs.h >>conftest.$ac_ext
8912 cat >>conftest.$ac_ext <<_ACEOF
8913 /* end confdefs.h. */
8918 /* FIXME: Include the comments suggested by Paul. */
8920 /* Ultrix mips cc rejects this. */
8921 typedef int charset[2];
8923 /* SunOS 4.1.1 cc rejects this. */
8924 char const *const *pcpcc;
8926 /* NEC SVR4.0.2 mips cc rejects this. */
8927 struct point {int x, y;};
8928 static struct point const zero = {0,0};
8929 /* AIX XL C 1.02.0.0 rejects this.
8930 It does not let you subtract one const X* pointer from another in
8931 an arm of an if-expression whose if-part is not a constant
8933 const char *g = "string";
8934 pcpcc = &g + (g ? g-g : 0);
8935 /* HPUX 7.0 cc rejects these. */
8937 ppc = (char**) pcpcc;
8938 pcpcc = (char const *const *) ppc;
8939 { /* SCO 3.2v4 cc rejects this. */
8941 char const *s = 0 ? (char *) 0 : (char const *) 0;
8946 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8948 const int *foo = &x[0];
8951 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8952 typedef const int *iptr;
8956 { /* AIX XL C 1.02.0.0 rejects this saying
8957 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8958 struct s { int j; const int *ap[3]; };
8959 struct s *b; b->j = 5;
8961 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8965 return !cs[0] && !zero.x;
8972 rm -f conftest.$ac_objext
8973 if { (ac_try="$ac_compile"
8975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8976 *) ac_try_echo
=$ac_try;;
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_compile") 2>conftest.er1
8981 grep -v '^ *+' conftest.er1
>conftest.err
8983 cat conftest.err
>&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 (exit $ac_status); } && {
8986 test -z "$ac_c_werror_flag" ||
8987 test ! -s conftest.err
8988 } && test -s conftest.
$ac_objext; then
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.
$ac_ext >&5
8997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8999 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9000 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9001 if test $ac_cv_c_const = no
; then
9003 cat >>confdefs.h
<<\_ACEOF
9009 { echo "$as_me:$LINENO: checking for void * support" >&5
9010 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9011 if test "${emacs_cv_void_star+set}" = set; then
9012 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 cat >conftest.
$ac_ext <<_ACEOF
9017 cat confdefs.h
>>conftest.
$ac_ext
9018 cat >>conftest.
$ac_ext <<_ACEOF
9019 /* end confdefs.h. */
9029 rm -f conftest.
$ac_objext
9030 if { (ac_try
="$ac_compile"
9032 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9033 *) ac_try_echo=$ac_try;;
9035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9036 (eval "$ac_compile") 2>conftest.er1
9038 grep -v '^ *+' conftest.er1 >conftest.err
9040 cat conftest.err >&5
9041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } && {
9043 test -z "$ac_c_werror_flag" ||
9044 test ! -s conftest.err
9045 } && test -s conftest.$ac_objext; then
9046 emacs_cv_void_star=yes
9048 echo "$as_me: failed program was:" >&5
9049 sed 's/^/| /' conftest.$ac_ext >&5
9051 emacs_cv_void_star=no
9054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9056 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9057 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9058 if test $emacs_cv_void_star = yes; then
9059 cat >>confdefs.h <<\_ACEOF
9060 #define POINTER_TYPE void
9064 cat >>confdefs.h <<\_ACEOF
9065 #define POINTER_TYPE char
9074 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9075 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9076 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9077 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9080 cat >conftest.make <<\_ACEOF
9083 @echo '@@@%%%=$(MAKE)=@@@%%%'
9085 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9086 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9088 eval ac_cv_prog_make_${ac_make}_set=yes;;
9090 eval ac_cv_prog_make_${ac_make}_set=no;;
9094 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9095 { echo "$as_me:$LINENO: result: yes" >&5
9096 echo "${ECHO_T}yes" >&6; }
9099 { echo "$as_me:$LINENO: result: no" >&5
9100 echo "${ECHO_T}no" >&6; }
9101 SET_MAKE="MAKE=${MAKE-make}"
9105 { echo "$as_me:$LINENO: checking for long file names" >&5
9106 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9107 if test "${ac_cv_sys_long_file_names+set}" = set; then
9108 echo $ECHO_N "(cached) $ECHO_C" >&6
9110 ac_cv_sys_long_file_names=yes
9111 # Test for long file names in all the places we know might matter:
9112 # . the current directory, where building will happen
9113 # $prefix/lib where we will be installing things
9114 # $exec_prefix/lib likewise
9115 # $TMPDIR if set, where it might want to write temporary files
9116 # /tmp where it might want to write temporary files
9119 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9120 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9121 # in the usual case where exec_prefix is '${prefix}'.
9123 . | /* | ?:[\\/]*) ;; #(
9126 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9127 ac_xdir=$ac_dir/cf$$
9128 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9129 ac_tf1=$ac_xdir/conftest9012345
9130 ac_tf2=$ac_xdir/conftest9012346
9131 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9132 ac_cv_sys_long_file_names=no
9133 rm -f -r "$ac_xdir" 2>/dev/null
9134 test $ac_cv_sys_long_file_names = no && break
9137 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9138 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9139 if test $ac_cv_sys_long_file_names = yes; then
9141 cat >>confdefs.h <<\_ACEOF
9142 #define HAVE_LONG_FILE_NAMES 1
9148 #### Choose a window system.
9150 { echo "$as_me:$LINENO: checking for X" >&5
9151 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9154 # Check whether --with-x was given.
9155 if test "${with_x+set}" = set; then
9159 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9160 if test "x$with_x" = xno; then
9161 # The user explicitly disabled X.
9164 case $x_includes,$x_libraries in #(
9165 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9166 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9167 { (exit 1); exit 1; }; };; #(
9168 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9169 echo $ECHO_N "(cached) $ECHO_C" >&6
9171 # One or both of the vars are not set, and there is no cached value.
9172 ac_x_includes=no ac_x_libraries=no
9173 rm -f -r conftest.dir
9174 if mkdir conftest.dir; then
9176 cat >Imakefile <<'_ACEOF'
9178 @echo incroot='${INCROOT}'
9180 @echo usrlibdir='${USRLIBDIR}'
9182 @echo libdir='${LIBDIR}'
9184 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9185 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9186 for ac_var in incroot usrlibdir libdir; do
9187 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9189 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9190 for ac_extension in a so sl; do
9191 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9192 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9193 ac_im_usrlibdir=$ac_im_libdir; break
9196 # Screen out bogus values from the imake configuration. They are
9197 # bogus both because they are the default anyway, and because
9198 # using them would break gcc on systems where it needs fixed includes.
9199 case $ac_im_incroot in
9200 /usr/include) ac_x_includes= ;;
9201 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9203 case $ac_im_usrlibdir in
9205 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9209 rm -f -r conftest.dir
9212 # Standard set of common directories for X headers.
9213 # Check X11 before X11Rn because it is often a symlink to the current release.
9225 /usr/local/X11/include
9226 /usr/local/X11R6/include
9227 /usr/local/X11R5/include
9228 /usr/local/X11R4/include
9230 /usr/local/include/X11
9231 /usr/local/include/X11R6
9232 /usr/local/include/X11R5
9233 /usr/local/include/X11R4
9237 /usr/XFree86/include/X11
9241 /usr/unsupported/include
9243 /usr/local/x11r5/include
9244 /usr/lpp/Xamples/include
9246 /usr/openwin/include
9247 /usr/openwin/share/include'
9249 if test "$ac_x_includes" = no; then
9250 # Guess where to find include files, by looking for Xlib.h.
9251 # First, try using that file with no special directory specified.
9252 cat >conftest.$ac_ext <<_ACEOF
9255 cat confdefs.h >>conftest.$ac_ext
9256 cat >>conftest.$ac_ext <<_ACEOF
9257 /* end confdefs.h. */
9258 #include <X11/Xlib.h>
9260 if { (ac_try="$ac_cpp conftest.$ac_ext"
9262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9263 *) ac_try_echo
=$ac_try;;
9265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9268 grep -v '^ *+' conftest.er1
>conftest.err
9270 cat conftest.err
>&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); } >/dev
/null
&& {
9273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9274 test ! -s conftest.err
9276 # We can compile using X headers with no special include directory.
9279 echo "$as_me: failed program was:" >&5
9280 sed 's/^/| /' conftest.
$ac_ext >&5
9282 for ac_dir
in $ac_x_header_dirs; do
9283 if test -r "$ac_dir/X11/Xlib.h"; then
9284 ac_x_includes
=$ac_dir
9290 rm -f conftest.err conftest.
$ac_ext
9291 fi # $ac_x_includes = no
9293 if test "$ac_x_libraries" = no
; then
9294 # Check for the libraries.
9295 # See if we find them without any special options.
9296 # Don't add to $LIBS permanently.
9299 cat >conftest.
$ac_ext <<_ACEOF
9302 cat confdefs.h
>>conftest.
$ac_ext
9303 cat >>conftest.
$ac_ext <<_ACEOF
9304 /* end confdefs.h. */
9305 #include <X11/Xlib.h>
9314 rm -f conftest.
$ac_objext conftest
$ac_exeext
9315 if { (ac_try
="$ac_link"
9317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9318 *) ac_try_echo=$ac_try;;
9320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9321 (eval "$ac_link") 2>conftest.er1
9323 grep -v '^ *+' conftest.er1 >conftest.err
9325 cat conftest.err >&5
9326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9327 (exit $ac_status); } && {
9328 test -z "$ac_c_werror_flag" ||
9329 test ! -s conftest.err
9330 } && test -s conftest$ac_exeext &&
9331 $as_test_x conftest$ac_exeext; then
9333 # We can link X programs with no special library path.
9336 echo "$as_me: failed program was:" >&5
9337 sed 's/^/| /' conftest.$ac_ext >&5
9340 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9342 # Don't even attempt the hair of trying to link an X program!
9343 for ac_extension in a so sl; do
9344 if test -r "$ac_dir/libX11.$ac_extension"; then
9345 ac_x_libraries=$ac_dir
9352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9353 conftest$ac_exeext conftest.$ac_ext
9354 fi # $ac_x_libraries = no
9356 case $ac_x_includes,$ac_x_libraries in #(
9358 # Didn't find X, or a directory has "'" in its name.
9359 ac_cv_have_x="have_x=no";; #(
9361 # Record where we found X for the cache.
9362 ac_cv_have_x="have_x=yes\
9363 ac_x_includes='$ac_x_includes'\
9364 ac_x_libraries='$ac_x_libraries'"
9370 eval "$ac_cv_have_x"
9373 if test "$have_x" != yes; then
9374 { echo "$as_me:$LINENO: result: $have_x" >&5
9375 echo "${ECHO_T}$have_x" >&6; }
9378 # If each of the values was on the command line, it overrides each guess.
9379 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9380 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9381 # Update the cache value to reflect the command line values.
9382 ac_cv_have_x="have_x=yes\
9383 ac_x_includes='$x_includes'\
9384 ac_x_libraries='$x_libraries'"
9385 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9386 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9389 if test "$no_x" = yes; then
9395 if test "${x_libraries}" != NONE; then
9396 if test -n "${x_libraries}"; then
9397 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9398 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9400 x_default_search_path=""
9401 x_search_path=${x_libraries}
9402 if test -z "${x_search_path}"; then
9403 x_search_path=/usr/lib
9405 for x_library in `echo ${x_search_path}: | \
9406 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9408 ${x_library}/X11/%L/%T/%N%C%S:\
9409 ${x_library}/X11/%l/%T/%N%C%S:\
9410 ${x_library}/X11/%T/%N%C%S:\
9411 ${x_library}/X11/%L/%T/%N%S:\
9412 ${x_library}/X11/%l/%T/%N%S:\
9413 ${x_library}/X11/%T/%N%S"
9414 if test x"${x_default_search_path}" = x; then
9415 x_default_search_path=${x_search_path}
9417 x_default_search_path="${x_search_path}:${x_default_search_path}"
9421 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9422 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9425 if test x"${x_includes}" = x; then
9426 bitmapdir=/usr/include/X11/bitmaps
9428 # accumulate include directories that have X11 bitmap subdirectories
9430 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9431 if test -d "${bmd}/X11/bitmaps"; then
9432 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9434 if test -d "${bmd}/bitmaps"; then
9435 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9438 if test ${bmd_acc} != "dummyval"; then
9439 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9444 if test "${with_carbon}" != no; then
9445 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9446 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9447 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9448 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
9451 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9452 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9454 # Is the header compilable?
9455 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9456 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9457 cat >conftest.$ac_ext <<_ACEOF
9460 cat confdefs.h >>conftest.$ac_ext
9461 cat >>conftest.$ac_ext <<_ACEOF
9462 /* end confdefs.h. */
9463 $ac_includes_default
9464 #include <Carbon/Carbon.h>
9466 rm -f conftest.$ac_objext
9467 if { (ac_try="$ac_compile"
9469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9470 *) ac_try_echo
=$ac_try;;
9472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473 (eval "$ac_compile") 2>conftest.er1
9475 grep -v '^ *+' conftest.er1
>conftest.err
9477 cat conftest.err
>&5
9478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9479 (exit $ac_status); } && {
9480 test -z "$ac_c_werror_flag" ||
9481 test ! -s conftest.err
9482 } && test -s conftest.
$ac_objext; then
9483 ac_header_compiler
=yes
9485 echo "$as_me: failed program was:" >&5
9486 sed 's/^/| /' conftest.
$ac_ext >&5
9488 ac_header_compiler
=no
9491 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9493 echo "${ECHO_T}$ac_header_compiler" >&6; }
9495 # Is the header present?
9496 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9497 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9498 cat >conftest.
$ac_ext <<_ACEOF
9501 cat confdefs.h
>>conftest.
$ac_ext
9502 cat >>conftest.
$ac_ext <<_ACEOF
9503 /* end confdefs.h. */
9504 #include <Carbon/Carbon.h>
9506 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9509 *) ac_try_echo=$ac_try;;
9511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9514 grep -v '^ *+' conftest.er1 >conftest.err
9516 cat conftest.err >&5
9517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9518 (exit $ac_status); } >/dev/null && {
9519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9520 test ! -s conftest.err
9522 ac_header_preproc=yes
9524 echo "$as_me: failed program was:" >&5
9525 sed 's/^/| /' conftest.$ac_ext >&5
9527 ac_header_preproc=no
9530 rm -f conftest.err conftest.$ac_ext
9531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9532 echo "${ECHO_T}$ac_header_preproc" >&6; }
9534 # So? What about this header?
9535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9537 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9538 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9539 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9540 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9541 ac_header_preproc=yes
9544 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9545 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9546 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9547 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9548 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9549 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9550 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9551 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9552 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9553 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9554 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9555 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9559 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9560 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9561 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9564 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9566 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9567 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9570 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9576 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9577 if test "${with_carbon+set}" != set \
9578 && test "${carbon_appdir_x+set}" != set; then
9579 for var in with_x with_x_toolkit with_gtk with_xim \
9580 with_xpm with_jpeg with_tiff with_gif with_png; do
9581 if eval test \"\${$var+set}\" = set; then
9588 if test "${HAVE_CARBON}" = yes; then
9592 case "${window_system}" in
9596 case "${with_x_toolkit}" in
9597 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9598 motif ) USE_X_TOOLKIT=MOTIF ;;
9600 USE_X_TOOLKIT=none ;;
9601 no ) USE_X_TOOLKIT=none ;;
9603 if test x"$with_gtk" = xyes; then
9618 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9619 # Extract the first word of "X", so it can be a program name with args.
9620 set dummy X; ac_word=$2
9621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9623 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9624 echo $ECHO_N "(cached) $ECHO_C" >&6
9626 if test -n "$HAVE_XSERVER"; then
9627 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9633 test -z "$as_dir" && as_dir=.
9634 for ac_exec_ext in '' $ac_executable_extensions; do
9635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9636 ac_cv_prog_HAVE_XSERVER="true"
9637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9644 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9647 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9648 if test -n "$HAVE_XSERVER"; then
9649 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9650 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9652 { echo "$as_me:$LINENO: result: no" >&5
9653 echo "${ECHO_T}no" >&6; }
9657 if test "$HAVE_XSERVER" = true ||
9658 test -n "$DISPLAY" ||
9659 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9660 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9661 were found. You should install the relevant development files for X
9662 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9663 sure you have development files for image handling, i.e.
9664 tiff, gif, jpeg, png and xpm.
9665 If you are sure you want Emacs compiled without X window support, pass
9668 echo "$as_me: error: You seem to be running X, but no X development libraries
9669 were found. You should install the relevant development files for X
9670 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9671 sure you have development files for image handling, i.e.
9672 tiff, gif, jpeg, png and xpm.
9673 If you are sure you want Emacs compiled without X window support, pass
9675 to configure." >&2;}
9676 { (exit 1); exit 1; }; }
9680 ### If we're using X11, we should use the X menu package.
9683 yes ) HAVE_MENUS=yes ;;
9686 if test "${opsys}" = "hpux9"; then
9687 case "${x_libraries}" in
9689 opsysfile="s/hpux9-x11r4.h"
9694 if test "${opsys}" = "hpux9shr"; then
9695 case "${x_libraries}" in
9697 opsysfile="s/hpux9shxr4.h"
9702 ### Compute the unexec source name from the object name.
9703 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9705 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9706 # Assume not, until told otherwise.
9709 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9710 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9711 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9712 echo $ECHO_N "(cached) $ECHO_C" >&6
9714 cat >conftest.$ac_ext <<_ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h. */
9720 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9722 #define malloc_get_state innocuous_malloc_get_state
9724 /* System header to define __stub macros and hopefully few prototypes,
9725 which can conflict with char malloc_get_state (); below.
9726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9727 <limits.h> exists even on freestanding compilers. */
9730 # include <limits.h>
9732 # include <assert.h>
9735 #undef malloc_get_state
9737 /* Override any GCC internal prototype to avoid an error.
9738 Use char because int might match the return type of a GCC
9739 builtin and then its argument prototype would still apply. */
9743 char malloc_get_state ();
9744 /* The GNU C library defines this for functions which it implements
9745 to always fail with ENOSYS. Some functions are actually named
9746 something starting with __ and the normal name is an alias. */
9747 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9754 return malloc_get_state ();
9759 rm -f conftest.$ac_objext conftest$ac_exeext
9760 if { (ac_try="$ac_link"
9762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9763 *) ac_try_echo
=$ac_try;;
9765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9766 (eval "$ac_link") 2>conftest.er1
9768 grep -v '^ *+' conftest.er1
>conftest.err
9770 cat conftest.err
>&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); } && {
9773 test -z "$ac_c_werror_flag" ||
9774 test ! -s conftest.err
9775 } && test -s conftest
$ac_exeext &&
9776 $as_test_x conftest
$ac_exeext; then
9777 ac_cv_func_malloc_get_state
=yes
9779 echo "$as_me: failed program was:" >&5
9780 sed 's/^/| /' conftest.
$ac_ext >&5
9782 ac_cv_func_malloc_get_state
=no
9785 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9786 conftest
$ac_exeext conftest.
$ac_ext
9788 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9789 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9790 if test $ac_cv_func_malloc_get_state = yes; then
9796 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9797 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9798 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9799 echo $ECHO_N "(cached) $ECHO_C" >&6
9801 cat >conftest.
$ac_ext <<_ACEOF
9804 cat confdefs.h
>>conftest.
$ac_ext
9805 cat >>conftest.
$ac_ext <<_ACEOF
9806 /* end confdefs.h. */
9807 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9809 #define malloc_set_state innocuous_malloc_set_state
9811 /* System header to define __stub macros and hopefully few prototypes,
9812 which can conflict with char malloc_set_state (); below.
9813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9814 <limits.h> exists even on freestanding compilers. */
9817 # include <limits.h>
9819 # include <assert.h>
9822 #undef malloc_set_state
9824 /* Override any GCC internal prototype to avoid an error.
9825 Use char because int might match the return type of a GCC
9826 builtin and then its argument prototype would still apply. */
9830 char malloc_set_state ();
9831 /* The GNU C library defines this for functions which it implements
9832 to always fail with ENOSYS. Some functions are actually named
9833 something starting with __ and the normal name is an alias. */
9834 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9841 return malloc_set_state ();
9846 rm -f conftest.
$ac_objext conftest
$ac_exeext
9847 if { (ac_try
="$ac_link"
9849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9850 *) ac_try_echo=$ac_try;;
9852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9853 (eval "$ac_link") 2>conftest.er1
9855 grep -v '^ *+' conftest.er1 >conftest.err
9857 cat conftest.err >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); } && {
9860 test -z "$ac_c_werror_flag" ||
9861 test ! -s conftest.err
9862 } && test -s conftest$ac_exeext &&
9863 $as_test_x conftest$ac_exeext; then
9864 ac_cv_func_malloc_set_state=yes
9866 echo "$as_me: failed program was:" >&5
9867 sed 's/^/| /' conftest.$ac_ext >&5
9869 ac_cv_func_malloc_set_state=no
9872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9873 conftest$ac_exeext conftest.$ac_ext
9875 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9876 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9877 if test $ac_cv_func_malloc_set_state = yes; then
9883 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9884 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9885 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9886 echo $ECHO_N "(cached) $ECHO_C" >&6
9888 cat >conftest.$ac_ext <<_ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9894 extern void (* __after_morecore_hook)();
9898 __after_morecore_hook = 0
9903 rm -f conftest.$ac_objext conftest$ac_exeext
9904 if { (ac_try="$ac_link"
9906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9907 *) ac_try_echo
=$ac_try;;
9909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9910 (eval "$ac_link") 2>conftest.er1
9912 grep -v '^ *+' conftest.er1
>conftest.err
9914 cat conftest.err
>&5
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); } && {
9917 test -z "$ac_c_werror_flag" ||
9918 test ! -s conftest.err
9919 } && test -s conftest
$ac_exeext &&
9920 $as_test_x conftest
$ac_exeext; then
9921 emacs_cv_var___after_morecore_hook
=yes
9923 echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.
$ac_ext >&5
9926 emacs_cv_var___after_morecore_hook
=no
9929 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9930 conftest
$ac_exeext conftest.
$ac_ext
9932 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9933 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9934 if test $emacs_cv_var___after_morecore_hook = no
; then
9937 if test "${system_malloc}" = "yes"; then
9940 (The GNU allocators don't work with this system configuration.)"
9942 if test "$doug_lea_malloc" = "yes" ; then
9943 if test "$GNU_MALLOC" = yes ; then
9945 (Using Doug Lea's new malloc from the GNU C Library.)"
9948 cat >>confdefs.h
<<\_ACEOF
9949 #define DOUG_LEA_MALLOC 1
9954 if test x
"${REL_ALLOC}" = x
; then
9955 REL_ALLOC
=${GNU_MALLOC}
9961 for ac_header
in stdlib.h unistd.h
9963 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9964 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9967 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9970 ac_res
=`eval echo '${'$as_ac_Header'}'`
9971 { echo "$as_me:$LINENO: result: $ac_res" >&5
9972 echo "${ECHO_T}$ac_res" >&6; }
9974 # Is the header compilable?
9975 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9976 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9977 cat >conftest.
$ac_ext <<_ACEOF
9980 cat confdefs.h
>>conftest.
$ac_ext
9981 cat >>conftest.
$ac_ext <<_ACEOF
9982 /* end confdefs.h. */
9983 $ac_includes_default
9984 #include <$ac_header>
9986 rm -f conftest.
$ac_objext
9987 if { (ac_try
="$ac_compile"
9989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9990 *) ac_try_echo=$ac_try;;
9992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9993 (eval "$ac_compile") 2>conftest.er1
9995 grep -v '^ *+' conftest.er1 >conftest.err
9997 cat conftest.err >&5
9998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9999 (exit $ac_status); } && {
10000 test -z "$ac_c_werror_flag" ||
10001 test ! -s conftest.err
10002 } && test -s conftest.$ac_objext; then
10003 ac_header_compiler=yes
10005 echo "$as_me: failed program was:" >&5
10006 sed 's/^/| /' conftest.$ac_ext >&5
10008 ac_header_compiler=no
10011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10013 echo "${ECHO_T}$ac_header_compiler" >&6; }
10015 # Is the header present?
10016 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10018 cat >conftest.$ac_ext <<_ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024 #include <$ac_header>
10026 if { (ac_try="$ac_cpp conftest.$ac_ext"
10027 case "(($ac_try" in
10028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10029 *) ac_try_echo
=$ac_try;;
10031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10034 grep -v '^ *+' conftest.er1
>conftest.err
10036 cat conftest.err
>&5
10037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038 (exit $ac_status); } >/dev
/null
&& {
10039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10040 test ! -s conftest.err
10042 ac_header_preproc
=yes
10044 echo "$as_me: failed program was:" >&5
10045 sed 's/^/| /' conftest.
$ac_ext >&5
10047 ac_header_preproc
=no
10050 rm -f conftest.err conftest.
$ac_ext
10051 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10052 echo "${ECHO_T}$ac_header_preproc" >&6; }
10054 # So? What about this header?
10055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10057 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10058 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10059 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10061 ac_header_preproc
=yes
10064 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10065 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10066 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10067 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10068 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10069 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10070 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10071 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10072 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10074 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10075 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10081 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 eval "$as_ac_Header=\$ac_header_preproc"
10086 ac_res
=`eval echo '${'$as_ac_Header'}'`
10087 { echo "$as_me:$LINENO: result: $ac_res" >&5
10088 echo "${ECHO_T}$ac_res" >&6; }
10091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10092 cat >>confdefs.h
<<_ACEOF
10093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10101 for ac_func
in getpagesize
10103 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10104 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10105 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10106 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10109 cat >conftest.
$ac_ext <<_ACEOF
10112 cat confdefs.h
>>conftest.
$ac_ext
10113 cat >>conftest.
$ac_ext <<_ACEOF
10114 /* end confdefs.h. */
10115 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10117 #define $ac_func innocuous_$ac_func
10119 /* System header to define __stub macros and hopefully few prototypes,
10120 which can conflict with char $ac_func (); below.
10121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10122 <limits.h> exists even on freestanding compilers. */
10125 # include <limits.h>
10127 # include <assert.h>
10132 /* Override any GCC internal prototype to avoid an error.
10133 Use char because int might match the return type of a GCC
10134 builtin and then its argument prototype would still apply. */
10139 /* The GNU C library defines this for functions which it implements
10140 to always fail with ENOSYS. Some functions are actually named
10141 something starting with __ and the normal name is an alias. */
10142 #if defined __stub_$ac_func || defined __stub___$ac_func
10149 return $ac_func ();
10154 rm -f conftest.
$ac_objext conftest
$ac_exeext
10155 if { (ac_try
="$ac_link"
10156 case "(($ac_try" in
10157 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_link") 2>conftest.er1
10163 grep -v '^ *+' conftest.er1 >conftest.err
10165 cat conftest.err >&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } && {
10168 test -z "$ac_c_werror_flag" ||
10169 test ! -s conftest.err
10170 } && test -s conftest$ac_exeext &&
10171 $as_test_x conftest$ac_exeext; then
10172 eval "$as_ac_var=yes"
10174 echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10177 eval "$as_ac_var=no"
10180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10181 conftest$ac_exeext conftest.$ac_ext
10183 ac_res=`eval echo '${'$as_ac_var'}'`
10184 { echo "$as_me:$LINENO: result: $ac_res" >&5
10185 echo "${ECHO_T}$ac_res" >&6; }
10186 if test `eval echo '${'$as_ac_var'}'` = yes; then
10187 cat >>confdefs.h <<_ACEOF
10188 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10194 { echo "$as_me:$LINENO: checking for working mmap" >&5
10195 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10196 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 if test "$cross_compiling" = yes; then
10200 ac_cv_func_mmap_fixed_mapped=no
10202 cat >conftest.$ac_ext <<_ACEOF
10205 cat confdefs.h >>conftest.$ac_ext
10206 cat >>conftest.$ac_ext <<_ACEOF
10207 /* end confdefs.h. */
10208 $ac_includes_default
10209 /* malloc might have been renamed as rpl_malloc. */
10212 /* Thanks to Mike Haertel and Jim Avera for this test.
10213 Here is a matrix of mmap possibilities:
10214 mmap private not fixed
10215 mmap private fixed at somewhere currently unmapped
10216 mmap private fixed at somewhere already mapped
10217 mmap shared not fixed
10218 mmap shared fixed at somewhere currently unmapped
10219 mmap shared fixed at somewhere already mapped
10220 For private mappings, we should verify that changes cannot be read()
10221 back from the file, nor mmap's back from the file at a different
10222 address. (There have been systems where private was not correctly
10223 implemented like the infamous i386 svr4.0, and systems where the
10224 VM page cache was not coherent with the file system buffer cache
10225 like early versions of FreeBSD and possibly contemporary NetBSD.)
10226 For shared mappings, we should conversely verify that changes get
10227 propagated back to all the places they're supposed to be.
10229 Grep wants private fixed already mapped.
10230 The main things grep needs to know about mmap are:
10231 * does it exist and is it safe to write into the mmap'd area
10232 * how to use it (BSD variants) */
10235 #include <sys/mman.h>
10237 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10241 /* This mess was copied from the GNU getpagesize.h. */
10242 #ifndef HAVE_GETPAGESIZE
10243 /* Assume that all systems that can run configure have sys/param.h. */
10244 # ifndef HAVE_SYS_PARAM_H
10245 # define HAVE_SYS_PARAM_H 1
10248 # ifdef _SC_PAGESIZE
10249 # define getpagesize() sysconf(_SC_PAGESIZE)
10250 # else /* no _SC_PAGESIZE */
10251 # ifdef HAVE_SYS_PARAM_H
10252 # include <sys/param.h>
10253 # ifdef EXEC_PAGESIZE
10254 # define getpagesize() EXEC_PAGESIZE
10255 # else /* no EXEC_PAGESIZE */
10257 # define getpagesize() NBPG * CLSIZE
10260 # endif /* no CLSIZE */
10261 # else /* no NBPG */
10263 # define getpagesize() NBPC
10264 # else /* no NBPC */
10266 # define getpagesize() PAGESIZE
10267 # endif /* PAGESIZE */
10268 # endif /* no NBPC */
10269 # endif /* no NBPG */
10270 # endif /* no EXEC_PAGESIZE */
10271 # else /* no HAVE_SYS_PARAM_H */
10272 # define getpagesize() 8192 /* punt totally */
10273 # endif /* no HAVE_SYS_PARAM_H */
10274 # endif /* no _SC_PAGESIZE */
10276 #endif /* no HAVE_GETPAGESIZE */
10281 char *data, *data2, *data3;
10285 pagesize = getpagesize ();
10287 /* First, make a file with some known garbage in it. */
10288 data = (char *) malloc (pagesize);
10291 for (i = 0; i < pagesize; ++i)
10292 *(data + i) = rand ();
10294 fd = creat ("conftest.mmap", 0600);
10297 if (write (fd, data, pagesize) != pagesize)
10301 /* Next, try to mmap the file at a fixed address which already has
10302 something else allocated at it. If we can, also make sure that
10303 we see the same garbage. */
10304 fd = open ("conftest.mmap", O_RDWR);
10307 data2 = (char *) malloc (2 * pagesize);
10310 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10311 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10312 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10314 for (i = 0; i < pagesize; ++i)
10315 if (*(data + i) != *(data2 + i))
10318 /* Finally, make sure that changes to the mapped area do not
10319 percolate back to the file as seen by read(). (This is a bug on
10320 some variants of i386 svr4.0.) */
10321 for (i = 0; i < pagesize; ++i)
10322 *(data2 + i) = *(data2 + i) + 1;
10323 data3 = (char *) malloc (pagesize);
10326 if (read (fd, data3, pagesize) != pagesize)
10328 for (i = 0; i < pagesize; ++i)
10329 if (*(data + i) != *(data3 + i))
10335 rm -f conftest$ac_exeext
10336 if { (ac_try="$ac_link"
10337 case "(($ac_try" in
10338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10339 *) ac_try_echo
=$ac_try;;
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342 (eval "$ac_link") 2>&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10346 { (case "(($ac_try" in
10347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10348 *) ac_try_echo=$ac_try;;
10350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10351 (eval "$ac_try") 2>&5
10353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354 (exit $ac_status); }; }; then
10355 ac_cv_func_mmap_fixed_mapped=yes
10357 echo "$as_me: program exited with status $ac_status" >&5
10358 echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10361 ( exit $ac_status )
10362 ac_cv_func_mmap_fixed_mapped=no
10364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10369 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10370 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10371 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10373 cat >>confdefs.h <<\_ACEOF
10374 #define HAVE_MMAP 1
10378 rm -f conftest.mmap
10380 if test $use_mmap_for_buffers = yes; then
10384 LIBS="$libsrc_libs $LIBS"
10387 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10388 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10389 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 ac_check_lib_save_LIBS=$LIBS
10393 LIBS="-ldnet $LIBS"
10394 cat >conftest.$ac_ext <<_ACEOF
10397 cat confdefs.h >>conftest.$ac_ext
10398 cat >>conftest.$ac_ext <<_ACEOF
10399 /* end confdefs.h. */
10401 /* Override any GCC internal prototype to avoid an error.
10402 Use char because int might match the return type of a GCC
10403 builtin and then its argument prototype would still apply. */
10411 return dnet_ntoa ();
10416 rm -f conftest.$ac_objext conftest$ac_exeext
10417 if { (ac_try="$ac_link"
10418 case "(($ac_try" in
10419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10420 *) ac_try_echo
=$ac_try;;
10422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10423 (eval "$ac_link") 2>conftest.er1
10425 grep -v '^ *+' conftest.er1
>conftest.err
10427 cat conftest.err
>&5
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); } && {
10430 test -z "$ac_c_werror_flag" ||
10431 test ! -s conftest.err
10432 } && test -s conftest
$ac_exeext &&
10433 $as_test_x conftest
$ac_exeext; then
10434 ac_cv_lib_dnet_dnet_ntoa
=yes
10436 echo "$as_me: failed program was:" >&5
10437 sed 's/^/| /' conftest.
$ac_ext >&5
10439 ac_cv_lib_dnet_dnet_ntoa
=no
10442 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10443 conftest
$ac_exeext conftest.
$ac_ext
10444 LIBS
=$ac_check_lib_save_LIBS
10446 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10447 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10448 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10449 cat >>confdefs.h
<<_ACEOF
10450 #define HAVE_LIBDNET 1
10453 LIBS
="-ldnet $LIBS"
10458 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10459 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10460 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10463 ac_check_lib_save_LIBS
=$LIBS
10464 LIBS
="-lXbsd $LIBS"
10465 cat >conftest.
$ac_ext <<_ACEOF
10468 cat confdefs.h
>>conftest.
$ac_ext
10469 cat >>conftest.
$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10481 rm -f conftest.
$ac_objext conftest
$ac_exeext
10482 if { (ac_try
="$ac_link"
10483 case "(($ac_try" in
10484 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488 (eval "$ac_link") 2>conftest.er1
10490 grep -v '^ *+' conftest.er1 >conftest.err
10492 cat conftest.err >&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } && {
10495 test -z "$ac_c_werror_flag" ||
10496 test ! -s conftest.err
10497 } && test -s conftest$ac_exeext &&
10498 $as_test_x conftest$ac_exeext; then
10499 ac_cv_lib_Xbsd_main=yes
10501 echo "$as_me: failed program was:" >&5
10502 sed 's/^/| /' conftest.$ac_ext >&5
10504 ac_cv_lib_Xbsd_main=no
10507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10508 conftest$ac_exeext conftest.$ac_ext
10509 LIBS=$ac_check_lib_save_LIBS
10511 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10512 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10513 if test $ac_cv_lib_Xbsd_main = yes; then
10514 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10519 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10520 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10521 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10522 echo $ECHO_N "(cached) $ECHO_C" >&6
10524 ac_check_lib_save_LIBS=$LIBS
10525 LIBS="-lpthreads $LIBS"
10526 cat >conftest.$ac_ext <<_ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10533 /* Override any GCC internal prototype to avoid an error.
10534 Use char because int might match the return type of a GCC
10535 builtin and then its argument prototype would still apply. */
10543 return cma_open ();
10548 rm -f conftest.$ac_objext conftest$ac_exeext
10549 if { (ac_try="$ac_link"
10550 case "(($ac_try" in
10551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10552 *) ac_try_echo
=$ac_try;;
10554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10555 (eval "$ac_link") 2>conftest.er1
10557 grep -v '^ *+' conftest.er1
>conftest.err
10559 cat conftest.err
>&5
10560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10561 (exit $ac_status); } && {
10562 test -z "$ac_c_werror_flag" ||
10563 test ! -s conftest.err
10564 } && test -s conftest
$ac_exeext &&
10565 $as_test_x conftest
$ac_exeext; then
10566 ac_cv_lib_pthreads_cma_open
=yes
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.
$ac_ext >&5
10571 ac_cv_lib_pthreads_cma_open
=no
10574 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10575 conftest
$ac_exeext conftest.
$ac_ext
10576 LIBS
=$ac_check_lib_save_LIBS
10578 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10579 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10580 if test $ac_cv_lib_pthreads_cma_open = yes; then
10581 cat >>confdefs.h
<<_ACEOF
10582 #define HAVE_LIBPTHREADS 1
10585 LIBS
="-lpthreads $LIBS"
10590 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10591 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10592 if test -d /usr
/X386
/include
; then
10594 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10598 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10599 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10604 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10605 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10606 if test "${gdb_cv_bigtoc+set}" = set; then
10607 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10612 *) gdb_cv_bigtoc
=-bbigtoc ;;
10615 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10616 cat >conftest.
$ac_ext <<_ACEOF
10619 cat confdefs.h
>>conftest.
$ac_ext
10620 cat >>conftest.
$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10631 rm -f conftest.
$ac_objext conftest
$ac_exeext
10632 if { (ac_try
="$ac_link"
10633 case "(($ac_try" in
10634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10635 *) ac_try_echo=$ac_try;;
10637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10638 (eval "$ac_link") 2>conftest.er1
10640 grep -v '^ *+' conftest.er1 >conftest.err
10642 cat conftest.err >&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && {
10645 test -z "$ac_c_werror_flag" ||
10646 test ! -s conftest.err
10647 } && test -s conftest$ac_exeext &&
10648 $as_test_x conftest$ac_exeext; then
10651 echo "$as_me: failed program was:" >&5
10652 sed 's/^/| /' conftest.$ac_ext >&5
10657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10658 conftest$ac_exeext conftest.$ac_ext
10661 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10662 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10666 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10667 # used for the tests that follow. We set them back to REAL_CFLAGS and
10668 # REAL_CPPFLAGS later on.
10670 REAL_CPPFLAGS="$CPPFLAGS"
10672 if test "${HAVE_X11}" = "yes"; then
10673 DEFS="$C_SWITCH_X_SITE $DEFS"
10674 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10676 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10677 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10679 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10680 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10681 # but it's more convenient here to set LD_RUN_PATH
10682 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10683 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10684 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10688 if test "${opsys}" = "gnu-linux"; then
10689 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10690 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10691 cat >conftest.$ac_ext <<_ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10701 XOpenDisplay ("foo");
10706 rm -f conftest.$ac_objext conftest$ac_exeext
10707 if { (ac_try="$ac_link"
10708 case "(($ac_try" in
10709 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10710 *) ac_try_echo
=$ac_try;;
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_link") 2>conftest.er1
10715 grep -v '^ *+' conftest.er1
>conftest.err
10717 cat conftest.err
>&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } && {
10720 test -z "$ac_c_werror_flag" ||
10721 test ! -s conftest.err
10722 } && test -s conftest
$ac_exeext &&
10723 $as_test_x conftest
$ac_exeext; then
10724 xlinux_first_failure
=no
10726 echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.
$ac_ext >&5
10729 xlinux_first_failure
=yes
10732 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10733 conftest
$ac_exeext conftest.
$ac_ext
10734 if test "${xlinux_first_failure}" = "yes"; then
10735 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10736 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10737 OLD_CPPFLAGS
="$CPPFLAGS"
10739 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10740 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10741 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10742 LIBS
="$LIBS -b i486-linuxaout"
10743 cat >conftest.
$ac_ext <<_ACEOF
10746 cat confdefs.h
>>conftest.
$ac_ext
10747 cat >>conftest.
$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10753 XOpenDisplay ("foo");
10758 rm -f conftest.
$ac_objext conftest
$ac_exeext
10759 if { (ac_try
="$ac_link"
10760 case "(($ac_try" in
10761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_link") 2>conftest.er1
10767 grep -v '^ *+' conftest.er1 >conftest.err
10769 cat conftest.err >&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } && {
10772 test -z "$ac_c_werror_flag" ||
10773 test ! -s conftest.err
10774 } && test -s conftest$ac_exeext &&
10775 $as_test_x conftest$ac_exeext; then
10776 xlinux_second_failure=no
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10781 xlinux_second_failure=yes
10784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10786 if test "${xlinux_second_failure}" = "yes"; then
10787 # If we get the same failure with -b, there is no use adding -b.
10788 # So take it out. This plays safe.
10789 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10790 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10791 CPPFLAGS="$OLD_CPPFLAGS"
10793 { echo "$as_me:$LINENO: result: no" >&5
10794 echo "${ECHO_T}no" >&6; }
10796 { echo "$as_me:$LINENO: result: yes" >&5
10797 echo "${ECHO_T}yes" >&6; }
10800 { echo "$as_me:$LINENO: result: no" >&5
10801 echo "${ECHO_T}no" >&6; }
10805 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10806 # header files included from there.
10807 { echo "$as_me:$LINENO: checking for Xkb" >&5
10808 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10809 cat >conftest.$ac_ext <<_ACEOF
10812 cat confdefs.h >>conftest.$ac_ext
10813 cat >>conftest.$ac_ext <<_ACEOF
10814 /* end confdefs.h. */
10815 #include <X11/Xlib.h>
10816 #include <X11/XKBlib.h>
10820 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10825 rm -f conftest.$ac_objext conftest$ac_exeext
10826 if { (ac_try="$ac_link"
10827 case "(($ac_try" in
10828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10829 *) ac_try_echo
=$ac_try;;
10831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10832 (eval "$ac_link") 2>conftest.er1
10834 grep -v '^ *+' conftest.er1
>conftest.err
10836 cat conftest.err
>&5
10837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10838 (exit $ac_status); } && {
10839 test -z "$ac_c_werror_flag" ||
10840 test ! -s conftest.err
10841 } && test -s conftest
$ac_exeext &&
10842 $as_test_x conftest
$ac_exeext; then
10845 echo "$as_me: failed program was:" >&5
10846 sed 's/^/| /' conftest.
$ac_ext >&5
10851 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10852 conftest
$ac_exeext conftest.
$ac_ext
10853 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10854 echo "${ECHO_T}$emacs_xkb" >&6; }
10855 if test $emacs_xkb = yes; then
10857 cat >>confdefs.h
<<\_ACEOF
10858 #define HAVE_XKBGETKEYBOARD 1
10867 for ac_func
in XrmSetDatabase XScreenResourceString \
10868 XScreenNumberOfScreen XSetWMProtocols
10870 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10871 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10872 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10873 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10876 cat >conftest.
$ac_ext <<_ACEOF
10879 cat confdefs.h
>>conftest.
$ac_ext
10880 cat >>conftest.
$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10884 #define $ac_func innocuous_$ac_func
10886 /* System header to define __stub macros and hopefully few prototypes,
10887 which can conflict with char $ac_func (); below.
10888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10889 <limits.h> exists even on freestanding compilers. */
10892 # include <limits.h>
10894 # include <assert.h>
10899 /* Override any GCC internal prototype to avoid an error.
10900 Use char because int might match the return type of a GCC
10901 builtin and then its argument prototype would still apply. */
10906 /* The GNU C library defines this for functions which it implements
10907 to always fail with ENOSYS. Some functions are actually named
10908 something starting with __ and the normal name is an alias. */
10909 #if defined __stub_$ac_func || defined __stub___$ac_func
10916 return $ac_func ();
10921 rm -f conftest.
$ac_objext conftest
$ac_exeext
10922 if { (ac_try
="$ac_link"
10923 case "(($ac_try" in
10924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_link") 2>conftest.er1
10930 grep -v '^ *+' conftest.er1 >conftest.err
10932 cat conftest.err >&5
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } && {
10935 test -z "$ac_c_werror_flag" ||
10936 test ! -s conftest.err
10937 } && test -s conftest$ac_exeext &&
10938 $as_test_x conftest$ac_exeext; then
10939 eval "$as_ac_var=yes"
10941 echo "$as_me: failed program was:" >&5
10942 sed 's/^/| /' conftest.$ac_ext >&5
10944 eval "$as_ac_var=no"
10947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10948 conftest$ac_exeext conftest.$ac_ext
10950 ac_res=`eval echo '${'$as_ac_var'}'`
10951 { echo "$as_me:$LINENO: result: $ac_res" >&5
10952 echo "${ECHO_T}$ac_res" >&6; }
10953 if test `eval echo '${'$as_ac_var'}'` = yes; then
10954 cat >>confdefs.h <<_ACEOF
10955 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10963 if test "${window_system}" = "x11"; then
10964 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10965 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10966 if test "${emacs_cv_x11_version_6+set}" = set; then
10967 echo $ECHO_N "(cached) $ECHO_C" >&6
10969 cat >conftest.$ac_ext <<_ACEOF
10972 cat confdefs.h >>conftest.$ac_ext
10973 cat >>conftest.$ac_ext <<_ACEOF
10974 /* end confdefs.h. */
10975 #include <X11/Xlib.h>
10979 #if XlibSpecificationRelease < 6
10987 rm -f conftest.$ac_objext conftest$ac_exeext
10988 if { (ac_try="$ac_link"
10989 case "(($ac_try" in
10990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10991 *) ac_try_echo
=$ac_try;;
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_link") 2>conftest.er1
10996 grep -v '^ *+' conftest.er1
>conftest.err
10998 cat conftest.err
>&5
10999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000 (exit $ac_status); } && {
11001 test -z "$ac_c_werror_flag" ||
11002 test ! -s conftest.err
11003 } && test -s conftest
$ac_exeext &&
11004 $as_test_x conftest
$ac_exeext; then
11005 emacs_cv_x11_version_6
=yes
11007 echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.
$ac_ext >&5
11010 emacs_cv_x11_version_6
=no
11013 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11014 conftest
$ac_exeext conftest.
$ac_ext
11017 if test $emacs_cv_x11_version_6 = yes; then
11018 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11019 echo "${ECHO_T}6 or newer" >&6; }
11021 cat >>confdefs.h
<<\_ACEOF
11022 #define HAVE_X11R6 1
11026 { echo "$as_me:$LINENO: result: before 6" >&5
11027 echo "${ECHO_T}before 6" >&6; }
11031 if test "${window_system}" = "x11"; then
11032 { echo "$as_me:$LINENO: checking X11 version 5" >&5
11033 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
11034 if test "${emacs_cv_x11_version_5+set}" = set; then
11035 echo $ECHO_N "(cached) $ECHO_C" >&6
11037 cat >conftest.
$ac_ext <<_ACEOF
11040 cat confdefs.h
>>conftest.
$ac_ext
11041 cat >>conftest.
$ac_ext <<_ACEOF
11042 /* end confdefs.h. */
11043 #include <X11/Xlib.h>
11047 #if XlibSpecificationRelease < 5
11055 rm -f conftest.
$ac_objext conftest
$ac_exeext
11056 if { (ac_try
="$ac_link"
11057 case "(($ac_try" in
11058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11059 *) ac_try_echo=$ac_try;;
11061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11062 (eval "$ac_link") 2>conftest.er1
11064 grep -v '^ *+' conftest.er1 >conftest.err
11066 cat conftest.err >&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } && {
11069 test -z "$ac_c_werror_flag" ||
11070 test ! -s conftest.err
11071 } && test -s conftest$ac_exeext &&
11072 $as_test_x conftest$ac_exeext; then
11073 emacs_cv_x11_version_5=yes
11075 echo "$as_me: failed program was:" >&5
11076 sed 's/^/| /' conftest.$ac_ext >&5
11078 emacs_cv_x11_version_5=no
11081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11082 conftest$ac_exeext conftest.$ac_ext
11085 if test $emacs_cv_x11_version_5 = yes; then
11086 { echo "$as_me:$LINENO: result: 5 or newer" >&5
11087 echo "${ECHO_T}5 or newer" >&6; }
11090 cat >>confdefs.h <<\_ACEOF
11091 #define HAVE_X11R5 1
11096 { echo "$as_me:$LINENO: result: before 5" >&5
11097 echo "${ECHO_T}before 5" >&6; }
11102 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11105 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11106 test "$USE_X_TOOLKIT" = "maybe"; then
11107 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11108 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11109 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11110 { (exit 1); exit 1; }; };
11114 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11116 if test "X${with_pkg_config_prog}" != X; then
11117 PKG_CONFIG="${with_pkg_config_prog}"
11122 if test -z "$PKG_CONFIG"; then
11123 # Extract the first word of "pkg-config", so it can be a program name with args.
11124 set dummy pkg-config; ac_word=$2
11125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11127 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11130 case $PKG_CONFIG in
11132 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11136 for as_dir in $PATH
11139 test -z "$as_dir" && as_dir=.
11140 for ac_exec_ext in '' $ac_executable_extensions; do
11141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11142 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11150 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11154 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11155 if test -n "$PKG_CONFIG"; then
11156 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11157 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11159 { echo "$as_me:$LINENO: result: no" >&5
11160 echo "${ECHO_T}no" >&6; }
11166 if test "$PKG_CONFIG" = "no" ; then
11169 PKG_CONFIG_MIN_VERSION=0.9.0
11170 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11171 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11172 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11174 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11175 { echo "$as_me:$LINENO: result: yes" >&5
11176 echo "${ECHO_T}yes" >&6; }
11179 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11180 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11181 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11182 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11183 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11185 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11186 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11187 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11188 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11189 echo "${ECHO_T}$GTK_LIBS" >&6; }
11191 { echo "$as_me:$LINENO: result: no" >&5
11192 echo "${ECHO_T}no" >&6; }
11195 ## If we have a custom action on failure, don't print errors, but
11196 ## do set a variable so people can do so.
11197 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11204 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11205 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11209 if test $succeeded = yes; then
11215 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11216 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11217 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11218 { (exit 1); exit 1; }; }
11223 if test x"$pkg_check_gtk" = xyes; then
11227 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11228 CFLAGS="$CFLAGS $GTK_CFLAGS"
11229 LIBS="$GTK_LIBS $LIBS"
11232 for ac_func in gtk_main
11234 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11238 echo $ECHO_N "(cached) $ECHO_C" >&6
11240 cat >conftest.$ac_ext <<_ACEOF
11243 cat confdefs.h >>conftest.$ac_ext
11244 cat >>conftest.$ac_ext <<_ACEOF
11245 /* end confdefs.h. */
11246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11247 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11248 #define $ac_func innocuous_$ac_func
11250 /* System header to define __stub macros and hopefully few prototypes,
11251 which can conflict with char $ac_func (); below.
11252 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11253 <limits.h> exists even on freestanding compilers. */
11256 # include <limits.h>
11258 # include <assert.h>
11263 /* Override any GCC internal prototype to avoid an error.
11264 Use char because int might match the return type of a GCC
11265 builtin and then its argument prototype would still apply. */
11270 /* The GNU C library defines this for functions which it implements
11271 to always fail with ENOSYS. Some functions are actually named
11272 something starting with __ and the normal name is an alias. */
11273 #if defined __stub_$ac_func || defined __stub___$ac_func
11280 return $ac_func ();
11285 rm -f conftest.$ac_objext conftest$ac_exeext
11286 if { (ac_try="$ac_link"
11287 case "(($ac_try" in
11288 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11289 *) ac_try_echo
=$ac_try;;
11291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_link") 2>conftest.er1
11294 grep -v '^ *+' conftest.er1
>conftest.err
11296 cat conftest.err
>&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } && {
11299 test -z "$ac_c_werror_flag" ||
11300 test ! -s conftest.err
11301 } && test -s conftest
$ac_exeext &&
11302 $as_test_x conftest
$ac_exeext; then
11303 eval "$as_ac_var=yes"
11305 echo "$as_me: failed program was:" >&5
11306 sed 's/^/| /' conftest.
$ac_ext >&5
11308 eval "$as_ac_var=no"
11311 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11312 conftest
$ac_exeext conftest.
$ac_ext
11314 ac_res
=`eval echo '${'$as_ac_var'}'`
11315 { echo "$as_me:$LINENO: result: $ac_res" >&5
11316 echo "${ECHO_T}$ac_res" >&6; }
11317 if test `eval echo '${'$as_ac_var'}'` = yes; then
11318 cat >>confdefs.h
<<_ACEOF
11319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11325 if test "${GTK_COMPILES}" != "yes"; then
11326 if test "$USE_X_TOOLKIT" != "maybe"; then
11327 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11328 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11329 { (exit 1); exit 1; }; };
11334 cat >>confdefs.h
<<\_ACEOF
11344 if test "${HAVE_GTK}" = "yes"; then
11346 if test "$with_toolkit_scroll_bars" != no
; then
11347 with_toolkit_scroll_bars
=yes
11350 HAVE_GTK_MULTIDISPLAY
=no
11352 for ac_func
in gdk_display_open
11354 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11357 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11358 echo $ECHO_N "(cached) $ECHO_C" >&6
11360 cat >conftest.
$ac_ext <<_ACEOF
11363 cat confdefs.h
>>conftest.
$ac_ext
11364 cat >>conftest.
$ac_ext <<_ACEOF
11365 /* end confdefs.h. */
11366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11368 #define $ac_func innocuous_$ac_func
11370 /* System header to define __stub macros and hopefully few prototypes,
11371 which can conflict with char $ac_func (); below.
11372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11373 <limits.h> exists even on freestanding compilers. */
11376 # include <limits.h>
11378 # include <assert.h>
11383 /* Override any GCC internal prototype to avoid an error.
11384 Use char because int might match the return type of a GCC
11385 builtin and then its argument prototype would still apply. */
11390 /* The GNU C library defines this for functions which it implements
11391 to always fail with ENOSYS. Some functions are actually named
11392 something starting with __ and the normal name is an alias. */
11393 #if defined __stub_$ac_func || defined __stub___$ac_func
11400 return $ac_func ();
11405 rm -f conftest.
$ac_objext conftest
$ac_exeext
11406 if { (ac_try
="$ac_link"
11407 case "(($ac_try" in
11408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11409 *) ac_try_echo=$ac_try;;
11411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412 (eval "$ac_link") 2>conftest.er1
11414 grep -v '^ *+' conftest.er1 >conftest.err
11416 cat conftest.err >&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); } && {
11419 test -z "$ac_c_werror_flag" ||
11420 test ! -s conftest.err
11421 } && test -s conftest$ac_exeext &&
11422 $as_test_x conftest$ac_exeext; then
11423 eval "$as_ac_var=yes"
11425 echo "$as_me: failed program was:" >&5
11426 sed 's/^/| /' conftest.$ac_ext >&5
11428 eval "$as_ac_var=no"
11431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11432 conftest$ac_exeext conftest.$ac_ext
11434 ac_res=`eval echo '${'$as_ac_var'}'`
11435 { echo "$as_me:$LINENO: result: $ac_res" >&5
11436 echo "${ECHO_T}$ac_res" >&6; }
11437 if test `eval echo '${'$as_ac_var'}'` = yes; then
11438 cat >>confdefs.h <<_ACEOF
11439 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11441 HAVE_GTK_MULTIDISPLAY=yes
11445 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11447 cat >>confdefs.h <<\_ACEOF
11448 #define HAVE_GTK_MULTIDISPLAY 1
11452 HAVE_GTK_FILE_SELECTION=no
11454 for ac_func in gtk_file_selection_new
11456 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11462 cat >conftest.$ac_ext <<_ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11470 #define $ac_func innocuous_$ac_func
11472 /* System header to define __stub macros and hopefully few prototypes,
11473 which can conflict with char $ac_func (); below.
11474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11475 <limits.h> exists even on freestanding compilers. */
11478 # include <limits.h>
11480 # include <assert.h>
11485 /* Override any GCC internal prototype to avoid an error.
11486 Use char because int might match the return type of a GCC
11487 builtin and then its argument prototype would still apply. */
11492 /* The GNU C library defines this for functions which it implements
11493 to always fail with ENOSYS. Some functions are actually named
11494 something starting with __ and the normal name is an alias. */
11495 #if defined __stub_$ac_func || defined __stub___$ac_func
11502 return $ac_func ();
11507 rm -f conftest.$ac_objext conftest$ac_exeext
11508 if { (ac_try="$ac_link"
11509 case "(($ac_try" in
11510 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11511 *) ac_try_echo
=$ac_try;;
11513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514 (eval "$ac_link") 2>conftest.er1
11516 grep -v '^ *+' conftest.er1
>conftest.err
11518 cat conftest.err
>&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } && {
11521 test -z "$ac_c_werror_flag" ||
11522 test ! -s conftest.err
11523 } && test -s conftest
$ac_exeext &&
11524 $as_test_x conftest
$ac_exeext; then
11525 eval "$as_ac_var=yes"
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.
$ac_ext >&5
11530 eval "$as_ac_var=no"
11533 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11534 conftest
$ac_exeext conftest.
$ac_ext
11536 ac_res
=`eval echo '${'$as_ac_var'}'`
11537 { echo "$as_me:$LINENO: result: $ac_res" >&5
11538 echo "${ECHO_T}$ac_res" >&6; }
11539 if test `eval echo '${'$as_ac_var'}'` = yes; then
11540 cat >>confdefs.h
<<_ACEOF
11541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11543 HAVE_GTK_FILE_SELECTION
=yes
11548 HAVE_GTK_FILE_CHOOSER
=no
11550 for ac_func
in gtk_file_chooser_dialog_new
11552 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11553 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11554 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11555 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 cat >conftest.
$ac_ext <<_ACEOF
11561 cat confdefs.h
>>conftest.
$ac_ext
11562 cat >>conftest.
$ac_ext <<_ACEOF
11563 /* end confdefs.h. */
11564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11566 #define $ac_func innocuous_$ac_func
11568 /* System header to define __stub macros and hopefully few prototypes,
11569 which can conflict with char $ac_func (); below.
11570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11571 <limits.h> exists even on freestanding compilers. */
11574 # include <limits.h>
11576 # include <assert.h>
11581 /* Override any GCC internal prototype to avoid an error.
11582 Use char because int might match the return type of a GCC
11583 builtin and then its argument prototype would still apply. */
11588 /* The GNU C library defines this for functions which it implements
11589 to always fail with ENOSYS. Some functions are actually named
11590 something starting with __ and the normal name is an alias. */
11591 #if defined __stub_$ac_func || defined __stub___$ac_func
11598 return $ac_func ();
11603 rm -f conftest.
$ac_objext conftest
$ac_exeext
11604 if { (ac_try
="$ac_link"
11605 case "(($ac_try" in
11606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11607 *) ac_try_echo=$ac_try;;
11609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11610 (eval "$ac_link") 2>conftest.er1
11612 grep -v '^ *+' conftest.er1 >conftest.err
11614 cat conftest.err >&5
11615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11616 (exit $ac_status); } && {
11617 test -z "$ac_c_werror_flag" ||
11618 test ! -s conftest.err
11619 } && test -s conftest$ac_exeext &&
11620 $as_test_x conftest$ac_exeext; then
11621 eval "$as_ac_var=yes"
11623 echo "$as_me: failed program was:" >&5
11624 sed 's/^/| /' conftest.$ac_ext >&5
11626 eval "$as_ac_var=no"
11629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11630 conftest$ac_exeext conftest.$ac_ext
11632 ac_res=`eval echo '${'$as_ac_var'}'`
11633 { echo "$as_me:$LINENO: result: $ac_res" >&5
11634 echo "${ECHO_T}$ac_res" >&6; }
11635 if test `eval echo '${'$as_ac_var'}'` = yes; then
11636 cat >>confdefs.h <<_ACEOF
11637 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11639 HAVE_GTK_FILE_CHOOSER=yes
11644 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11645 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11647 cat >>confdefs.h <<\_ACEOF
11648 #define HAVE_GTK_FILE_BOTH 1
11653 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11654 HAVE_GTK_AND_PTHREAD=no
11656 for ac_header in pthread.h
11658 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11665 ac_res=`eval echo '${'$as_ac_Header'}'`
11666 { echo "$as_me:$LINENO: result: $ac_res" >&5
11667 echo "${ECHO_T}$ac_res" >&6; }
11669 # Is the header compilable?
11670 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11671 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11672 cat >conftest.$ac_ext <<_ACEOF
11675 cat confdefs.h >>conftest.$ac_ext
11676 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h. */
11678 $ac_includes_default
11679 #include <$ac_header>
11681 rm -f conftest.$ac_objext
11682 if { (ac_try="$ac_compile"
11683 case "(($ac_try" in
11684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11685 *) ac_try_echo
=$ac_try;;
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_compile") 2>conftest.er1
11690 grep -v '^ *+' conftest.er1
>conftest.err
11692 cat conftest.err
>&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } && {
11695 test -z "$ac_c_werror_flag" ||
11696 test ! -s conftest.err
11697 } && test -s conftest.
$ac_objext; then
11698 ac_header_compiler
=yes
11700 echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.
$ac_ext >&5
11703 ac_header_compiler
=no
11706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11708 echo "${ECHO_T}$ac_header_compiler" >&6; }
11710 # Is the header present?
11711 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11712 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11713 cat >conftest.
$ac_ext <<_ACEOF
11716 cat confdefs.h
>>conftest.
$ac_ext
11717 cat >>conftest.
$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11719 #include <$ac_header>
11721 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11722 case "(($ac_try" in
11723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11724 *) ac_try_echo=$ac_try;;
11726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11729 grep -v '^ *+' conftest.er1 >conftest.err
11731 cat conftest.err >&5
11732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11733 (exit $ac_status); } >/dev/null && {
11734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11735 test ! -s conftest.err
11737 ac_header_preproc=yes
11739 echo "$as_me: failed program was:" >&5
11740 sed 's/^/| /' conftest.$ac_ext >&5
11742 ac_header_preproc=no
11745 rm -f conftest.err conftest.$ac_ext
11746 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11747 echo "${ECHO_T}$ac_header_preproc" >&6; }
11749 # So? What about this header?
11750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11752 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11753 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11756 ac_header_preproc=yes
11759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11760 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11762 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11764 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11765 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11766 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11769 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11770 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11774 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11777 echo $ECHO_N "(cached) $ECHO_C" >&6
11779 eval "$as_ac_Header=\$ac_header_preproc"
11781 ac_res=`eval echo '${'$as_ac_Header'}'`
11782 { echo "$as_me:$LINENO: result: $ac_res" >&5
11783 echo "${ECHO_T}$ac_res" >&6; }
11786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11787 cat >>confdefs.h <<_ACEOF
11788 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11795 if test "$ac_cv_header_pthread_h"; then
11796 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11797 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11798 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 ac_check_lib_save_LIBS=$LIBS
11802 LIBS="-lpthread $LIBS"
11803 cat >conftest.$ac_ext <<_ACEOF
11806 cat confdefs.h >>conftest.$ac_ext
11807 cat >>conftest.$ac_ext <<_ACEOF
11808 /* end confdefs.h. */
11810 /* Override any GCC internal prototype to avoid an error.
11811 Use char because int might match the return type of a GCC
11812 builtin and then its argument prototype would still apply. */
11816 char pthread_self ();
11820 return pthread_self ();
11825 rm -f conftest.$ac_objext conftest$ac_exeext
11826 if { (ac_try="$ac_link"
11827 case "(($ac_try" in
11828 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11829 *) ac_try_echo
=$ac_try;;
11831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11832 (eval "$ac_link") 2>conftest.er1
11834 grep -v '^ *+' conftest.er1
>conftest.err
11836 cat conftest.err
>&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); } && {
11839 test -z "$ac_c_werror_flag" ||
11840 test ! -s conftest.err
11841 } && test -s conftest
$ac_exeext &&
11842 $as_test_x conftest
$ac_exeext; then
11843 ac_cv_lib_pthread_pthread_self
=yes
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.
$ac_ext >&5
11848 ac_cv_lib_pthread_pthread_self
=no
11851 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11852 conftest
$ac_exeext conftest.
$ac_ext
11853 LIBS
=$ac_check_lib_save_LIBS
11855 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11856 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11857 if test $ac_cv_lib_pthread_pthread_self = yes; then
11858 HAVE_GTK_AND_PTHREAD
=yes
11862 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11863 GTK_LIBS
="$GTK_LIBS -lpthread"
11865 cat >>confdefs.h
<<\_ACEOF
11866 #define HAVE_GTK_AND_PTHREAD 1
11874 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11875 if test x
"${HAVE_X11R5}" != xyes
; then
11878 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11879 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11880 if test "${emacs_cv_xaw3d+set}" = set; then
11881 echo $ECHO_N "(cached) $ECHO_C" >&6
11883 cat >conftest.
$ac_ext <<_ACEOF
11886 cat confdefs.h
>>conftest.
$ac_ext
11887 cat >>conftest.
$ac_ext <<_ACEOF
11888 /* end confdefs.h. */
11890 #include <X11/Intrinsic.h>
11891 #include <X11/Xaw3d/Simple.h>
11900 rm -f conftest.
$ac_objext conftest
$ac_exeext
11901 if { (ac_try
="$ac_link"
11902 case "(($ac_try" in
11903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_link") 2>conftest.er1
11909 grep -v '^ *+' conftest.er1 >conftest.err
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && {
11914 test -z "$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 } && test -s conftest$ac_exeext &&
11917 $as_test_x conftest$ac_exeext; then
11920 echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11927 conftest$ac_exeext conftest.$ac_ext
11930 if test $emacs_cv_xaw3d = yes; then
11931 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11932 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11933 USE_X_TOOLKIT=LUCID
11936 cat >>confdefs.h <<\_ACEOF
11937 #define HAVE_XAW3D 1
11941 { echo "$as_me:$LINENO: result: no" >&5
11942 echo "${ECHO_T}no" >&6; }
11943 { echo "$as_me:$LINENO: checking for libXaw" >&5
11944 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11945 if test "${emacs_cv_xaw+set}" = set; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 cat >conftest.$ac_ext <<_ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11955 #include <X11/Intrinsic.h>
11956 #include <X11/Xaw/Simple.h>
11965 rm -f conftest.$ac_objext conftest$ac_exeext
11966 if { (ac_try="$ac_link"
11967 case "(($ac_try" in
11968 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11969 *) ac_try_echo
=$ac_try;;
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_link") 2>conftest.er1
11974 grep -v '^ *+' conftest.er1
>conftest.err
11976 cat conftest.err
>&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && {
11979 test -z "$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11981 } && test -s conftest
$ac_exeext &&
11982 $as_test_x conftest
$ac_exeext; then
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.
$ac_ext >&5
11991 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11992 conftest
$ac_exeext conftest.
$ac_ext
11995 if test $emacs_cv_xaw = yes; then
11996 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11997 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11998 USE_X_TOOLKIT
=LUCID
11999 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12000 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12001 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12002 { (exit 1); exit 1; }; }
12004 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12005 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12012 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12014 if test "${USE_X_TOOLKIT}" != "none"; then
12015 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12016 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12017 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 cat >conftest.
$ac_ext <<_ACEOF
12023 cat confdefs.h
>>conftest.
$ac_ext
12024 cat >>conftest.
$ac_ext <<_ACEOF
12025 /* end confdefs.h. */
12026 #include <X11/Intrinsic.h>
12030 #if XtSpecificationRelease < 6
12038 rm -f conftest.
$ac_objext conftest
$ac_exeext
12039 if { (ac_try
="$ac_link"
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_link") 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_exeext &&
12055 $as_test_x conftest$ac_exeext; then
12056 emacs_cv_x11_toolkit_version_6=yes
12058 echo "$as_me: failed program was:" >&5
12059 sed 's/^/| /' conftest.$ac_ext >&5
12061 emacs_cv_x11_toolkit_version_6=no
12064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12065 conftest$ac_exeext conftest.$ac_ext
12068 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12069 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12070 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12071 echo "${ECHO_T}6 or newer" >&6; }
12073 cat >>confdefs.h <<\_ACEOF
12074 #define HAVE_X11XTR6 1
12078 { echo "$as_me:$LINENO: result: before 6" >&5
12079 echo "${ECHO_T}before 6" >&6; }
12083 if test x$HAVE_X11XTR6 = xyes; then
12084 LIBS="-lXt -lSM -lICE $LIBS"
12089 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12090 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12091 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12092 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 ac_check_lib_save_LIBS=$LIBS
12096 cat >conftest.$ac_ext <<_ACEOF
12099 cat confdefs.h >>conftest.$ac_ext
12100 cat >>conftest.$ac_ext <<_ACEOF
12101 /* end confdefs.h. */
12103 /* Override any GCC internal prototype to avoid an error.
12104 Use char because int might match the return type of a GCC
12105 builtin and then its argument prototype would still apply. */
12109 char XmuConvertStandardSelection ();
12113 return XmuConvertStandardSelection ();
12118 rm -f conftest.$ac_objext conftest$ac_exeext
12119 if { (ac_try="$ac_link"
12120 case "(($ac_try" in
12121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12122 *) ac_try_echo
=$ac_try;;
12124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12125 (eval "$ac_link") 2>conftest.er1
12127 grep -v '^ *+' conftest.er1
>conftest.err
12129 cat conftest.err
>&5
12130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12131 (exit $ac_status); } && {
12132 test -z "$ac_c_werror_flag" ||
12133 test ! -s conftest.err
12134 } && test -s conftest
$ac_exeext &&
12135 $as_test_x conftest
$ac_exeext; then
12136 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12138 echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.
$ac_ext >&5
12141 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12144 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12145 conftest
$ac_exeext conftest.
$ac_ext
12146 LIBS
=$ac_check_lib_save_LIBS
12148 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12149 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12150 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12151 cat >>confdefs.h
<<_ACEOF
12152 #define HAVE_LIBXMU 1
12159 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12162 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12163 if test "${HAVE_X11}" = "yes"; then
12164 if test "${USE_X_TOOLKIT}" != "none"; then
12166 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12167 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12168 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 ac_check_lib_save_LIBS
=$LIBS
12172 LIBS
="-lXext $LIBS"
12173 cat >conftest.
$ac_ext <<_ACEOF
12176 cat confdefs.h
>>conftest.
$ac_ext
12177 cat >>conftest.
$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12180 /* Override any GCC internal prototype to avoid an error.
12181 Use char because int might match the return type of a GCC
12182 builtin and then its argument prototype would still apply. */
12186 char XShapeQueryExtension ();
12190 return XShapeQueryExtension ();
12195 rm -f conftest.
$ac_objext conftest
$ac_exeext
12196 if { (ac_try
="$ac_link"
12197 case "(($ac_try" in
12198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_link") 2>conftest.er1
12204 grep -v '^ *+' conftest.er1 >conftest.err
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } && {
12209 test -z "$ac_c_werror_flag" ||
12210 test ! -s conftest.err
12211 } && test -s conftest$ac_exeext &&
12212 $as_test_x conftest$ac_exeext; then
12213 ac_cv_lib_Xext_XShapeQueryExtension=yes
12215 echo "$as_me: failed program was:" >&5
12216 sed 's/^/| /' conftest.$ac_ext >&5
12218 ac_cv_lib_Xext_XShapeQueryExtension=no
12221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12222 conftest$ac_exeext conftest.$ac_ext
12223 LIBS=$ac_check_lib_save_LIBS
12225 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12226 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12227 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12228 cat >>confdefs.h <<_ACEOF
12229 #define HAVE_LIBXEXT 1
12232 LIBS="-lXext $LIBS"
12239 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12240 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12241 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12242 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12243 echo $ECHO_N "(cached) $ECHO_C" >&6
12245 cat >conftest.$ac_ext <<_ACEOF
12248 cat confdefs.h >>conftest.$ac_ext
12249 cat >>conftest.$ac_ext <<_ACEOF
12250 /* end confdefs.h. */
12255 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12258 Motif version prior to 2.1.
12264 rm -f conftest.$ac_objext
12265 if { (ac_try="$ac_compile"
12266 case "(($ac_try" in
12267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12268 *) ac_try_echo
=$ac_try;;
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271 (eval "$ac_compile") 2>conftest.er1
12273 grep -v '^ *+' conftest.er1
>conftest.err
12275 cat conftest.err
>&5
12276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12277 (exit $ac_status); } && {
12278 test -z "$ac_c_werror_flag" ||
12279 test ! -s conftest.err
12280 } && test -s conftest.
$ac_objext; then
12281 emacs_cv_motif_version_2_1
=yes
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.
$ac_ext >&5
12286 emacs_cv_motif_version_2_1
=no
12289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12291 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12292 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12293 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12294 if test $emacs_cv_motif_version_2_1 = yes; then
12297 cat >>confdefs.h
<<\_ACEOF
12298 #define HAVE_MOTIF_2_1 1
12301 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12302 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12303 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12304 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 ac_check_lib_save_LIBS
=$LIBS
12308 cat >conftest.
$ac_ext <<_ACEOF
12311 cat confdefs.h
>>conftest.
$ac_ext
12312 cat >>conftest.
$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12315 /* Override any GCC internal prototype to avoid an error.
12316 Use char because int might match the return type of a GCC
12317 builtin and then its argument prototype would still apply. */
12321 char XpCreateContext ();
12325 return XpCreateContext ();
12330 rm -f conftest.
$ac_objext conftest
$ac_exeext
12331 if { (ac_try
="$ac_link"
12332 case "(($ac_try" in
12333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12334 *) ac_try_echo=$ac_try;;
12336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12337 (eval "$ac_link") 2>conftest.er1
12339 grep -v '^ *+' conftest.er1 >conftest.err
12341 cat conftest.err >&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); } && {
12344 test -z "$ac_c_werror_flag" ||
12345 test ! -s conftest.err
12346 } && test -s conftest$ac_exeext &&
12347 $as_test_x conftest$ac_exeext; then
12348 ac_cv_lib_Xp_XpCreateContext=yes
12350 echo "$as_me: failed program was:" >&5
12351 sed 's/^/| /' conftest.$ac_ext >&5
12353 ac_cv_lib_Xp_XpCreateContext=no
12356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12357 conftest$ac_exeext conftest.$ac_ext
12358 LIBS=$ac_check_lib_save_LIBS
12360 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12361 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12362 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12366 if test ${HAVE_LIBXP} = yes; then
12368 cat >>confdefs.h <<\_ACEOF
12369 #define HAVE_LIBXP 1
12374 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12375 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12376 if test "${emacs_cv_lesstif+set}" = set; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12379 # We put this in CFLAGS temporarily to precede other -I options
12380 # that might be in CFLAGS temporarily.
12381 # We put this in CPPFLAGS where it precedes the other -I options.
12382 OLD_CPPFLAGS=$CPPFLAGS
12384 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12385 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12386 cat >conftest.$ac_ext <<_ACEOF
12389 cat confdefs.h >>conftest.$ac_ext
12390 cat >>conftest.$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12392 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12401 rm -f conftest.$ac_objext
12402 if { (ac_try="$ac_compile"
12403 case "(($ac_try" in
12404 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12405 *) ac_try_echo
=$ac_try;;
12407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12408 (eval "$ac_compile") 2>conftest.er1
12410 grep -v '^ *+' conftest.er1
>conftest.err
12412 cat conftest.err
>&5
12413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12414 (exit $ac_status); } && {
12415 test -z "$ac_c_werror_flag" ||
12416 test ! -s conftest.err
12417 } && test -s conftest.
$ac_objext; then
12418 emacs_cv_lesstif
=yes
12420 echo "$as_me: failed program was:" >&5
12421 sed 's/^/| /' conftest.
$ac_ext >&5
12423 emacs_cv_lesstif
=no
12426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12428 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12429 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12430 if test $emacs_cv_lesstif = yes; then
12431 # Make sure this -I option remains in CPPFLAGS after it is set
12432 # back to REAL_CPPFLAGS.
12433 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12434 # have those other -I options anyway. Ultimately, having this
12435 # directory ultimately in CPPFLAGS will be enough.
12436 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12437 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12440 CPPFLAGS
=$OLD_CPPFLAGS
12447 USE_TOOLKIT_SCROLL_BARS
=no
12448 if test "${with_toolkit_scroll_bars}" != "no"; then
12449 if test "${USE_X_TOOLKIT}" != "none"; then
12450 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12451 cat >>confdefs.h
<<\_ACEOF
12452 #define USE_TOOLKIT_SCROLL_BARS 1
12456 USE_TOOLKIT_SCROLL_BARS
=yes
12457 elif test "${HAVE_XAW3D}" = "yes"; then
12458 cat >>confdefs.h
<<\_ACEOF
12459 #define USE_TOOLKIT_SCROLL_BARS 1
12462 USE_TOOLKIT_SCROLL_BARS
=yes
12464 elif test "${HAVE_GTK}" = "yes"; then
12465 cat >>confdefs.h
<<\_ACEOF
12466 #define USE_TOOLKIT_SCROLL_BARS 1
12469 USE_TOOLKIT_SCROLL_BARS
=yes
12470 elif test "${HAVE_CARBON}" = "yes"; then
12471 cat >>confdefs.h
<<\_ACEOF
12472 #define USE_TOOLKIT_SCROLL_BARS 1
12475 USE_TOOLKIT_SCROLL_BARS
=yes
12479 cat >conftest.
$ac_ext <<_ACEOF
12482 cat confdefs.h
>>conftest.
$ac_ext
12483 cat >>conftest.
$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12486 #include <X11/Xlib.h>
12487 #include <X11/Xresource.h>
12496 rm -f conftest.
$ac_objext
12497 if { (ac_try
="$ac_compile"
12498 case "(($ac_try" in
12499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12500 *) ac_try_echo=$ac_try;;
12502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12503 (eval "$ac_compile") 2>conftest.er1
12505 grep -v '^ *+' conftest.er1 >conftest.err
12507 cat conftest.err >&5
12508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12509 (exit $ac_status); } && {
12510 test -z "$ac_c_werror_flag" ||
12511 test ! -s conftest.err
12512 } && test -s conftest.$ac_objext; then
12515 cat >>confdefs.h <<\_ACEOF
12520 echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12529 if test "${with_xim}" != "no"; then
12531 cat >>confdefs.h <<\_ACEOF
12538 if test "${HAVE_XIM}" != "no"; then
12539 late_CFLAGS=$CFLAGS
12540 if test "$GCC" = yes; then
12541 CFLAGS="$CFLAGS --pedantic-errors"
12543 cat >conftest.$ac_ext <<_ACEOF
12546 cat confdefs.h >>conftest.$ac_ext
12547 cat >>conftest.$ac_ext <<_ACEOF
12548 /* end confdefs.h. */
12550 #include <X11/Xlib.h>
12551 #include <X11/Xresource.h>
12560 XPointer *client_data;
12562 /* If we're not using GCC, it's probably not XFree86, and this is
12563 probably right, but we can't use something like --pedantic-errors. */
12564 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12565 char*, XIMProc, XPointer*);
12567 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12573 rm -f conftest.$ac_objext
12574 if { (ac_try="$ac_compile"
12575 case "(($ac_try" in
12576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12577 *) ac_try_echo
=$ac_try;;
12579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12580 (eval "$ac_compile") 2>conftest.er1
12582 grep -v '^ *+' conftest.er1
>conftest.err
12584 cat conftest.err
>&5
12585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12586 (exit $ac_status); } && {
12587 test -z "$ac_c_werror_flag" ||
12588 test ! -s conftest.err
12589 } && test -s conftest.
$ac_objext; then
12590 emacs_cv_arg6_star
=yes
12592 echo "$as_me: failed program was:" >&5
12593 sed 's/^/| /' conftest.
$ac_ext >&5
12598 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12600 if test "$emacs_cv_arg6_star" = yes; then
12601 cat >>confdefs.h
<<\_ACEOF
12602 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12606 cat >>confdefs.h
<<\_ACEOF
12607 #define XRegisterIMInstantiateCallback_arg6 XPointer
12611 CFLAGS
=$late_CFLAGS
12614 ### For font-backend
12615 if test "${USE_FONT_BACKEND}" = "yes"; then
12618 cat >>confdefs.h
<<\_ACEOF
12619 #define USE_FONT_BACKEND 1
12623 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12625 if test "${HAVE_X11}" = "yes"; then
12626 if test "x${with_freetype}" = "xno"; then
12629 if test "x${with_xft}" != "xno"; then
12631 if test "X${with_pkg_config_prog}" != X
; then
12632 PKG_CONFIG
="${with_pkg_config_prog}"
12638 if test -z "$PKG_CONFIG"; then
12639 # Extract the first word of "pkg-config", so it can be a program name with args.
12640 set dummy pkg-config
; ac_word
=$2
12641 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12642 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12643 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 case $PKG_CONFIG in
12648 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12652 for as_dir
in $PATH
12655 test -z "$as_dir" && as_dir
=.
12656 for ac_exec_ext
in '' $ac_executable_extensions; do
12657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12658 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12666 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12670 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12671 if test -n "$PKG_CONFIG"; then
12672 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12673 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12675 { echo "$as_me:$LINENO: result: no" >&5
12676 echo "${ECHO_T}no" >&6; }
12682 if test "$PKG_CONFIG" = "no" ; then
12685 PKG_CONFIG_MIN_VERSION
=0.9.0
12686 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12687 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12688 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12690 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12691 { echo "$as_me:$LINENO: result: yes" >&5
12692 echo "${ECHO_T}yes" >&6; }
12695 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12696 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12697 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12698 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12699 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12701 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12702 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12703 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12704 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12705 echo "${ECHO_T}$XFT_LIBS" >&6; }
12707 { echo "$as_me:$LINENO: result: no" >&5
12708 echo "${ECHO_T}no" >&6; }
12711 ## If we have a custom action on failure, don't print errors, but
12712 ## do set a variable so people can do so.
12713 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12720 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12721 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12725 if test $succeeded = yes; then
12731 if test "$HAVE_XFT" != no
; then
12732 OLD_CPPFLAGS
="$CPPFLAGS"
12733 OLD_CFLAGS
="$CFLAGS"
12735 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12736 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12737 LIBS
="$XFT_LIBS $LIBS"
12738 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12739 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12740 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12741 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12742 echo $ECHO_N "(cached) $ECHO_C" >&6
12744 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12745 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12747 # Is the header compilable?
12748 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12749 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12750 cat >conftest.
$ac_ext <<_ACEOF
12753 cat confdefs.h
>>conftest.
$ac_ext
12754 cat >>conftest.
$ac_ext <<_ACEOF
12755 /* end confdefs.h. */
12756 $ac_includes_default
12757 #include <X11/Xft/Xft.h>
12759 rm -f conftest.
$ac_objext
12760 if { (ac_try
="$ac_compile"
12761 case "(($ac_try" in
12762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12763 *) ac_try_echo=$ac_try;;
12765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12766 (eval "$ac_compile") 2>conftest.er1
12768 grep -v '^ *+' conftest.er1 >conftest.err
12770 cat conftest.err >&5
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } && {
12773 test -z "$ac_c_werror_flag" ||
12774 test ! -s conftest.err
12775 } && test -s conftest.$ac_objext; then
12776 ac_header_compiler=yes
12778 echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12781 ac_header_compiler=no
12784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12786 echo "${ECHO_T}$ac_header_compiler" >&6; }
12788 # Is the header present?
12789 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12790 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12791 cat >conftest.$ac_ext <<_ACEOF
12794 cat confdefs.h >>conftest.$ac_ext
12795 cat >>conftest.$ac_ext <<_ACEOF
12796 /* end confdefs.h. */
12797 #include <X11/Xft/Xft.h>
12799 if { (ac_try="$ac_cpp conftest.$ac_ext"
12800 case "(($ac_try" in
12801 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12802 *) ac_try_echo
=$ac_try;;
12804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12807 grep -v '^ *+' conftest.er1
>conftest.err
12809 cat conftest.err
>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); } >/dev
/null
&& {
12812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12813 test ! -s conftest.err
12815 ac_header_preproc
=yes
12817 echo "$as_me: failed program was:" >&5
12818 sed 's/^/| /' conftest.
$ac_ext >&5
12820 ac_header_preproc
=no
12823 rm -f conftest.err conftest.
$ac_ext
12824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12825 echo "${ECHO_T}$ac_header_preproc" >&6; }
12827 # So? What about this header?
12828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12830 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12831 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12832 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12833 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12834 ac_header_preproc
=yes
12837 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12838 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12839 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12840 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12841 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12842 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12843 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12844 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12845 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12846 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12847 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12848 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12852 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12853 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12854 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12855 echo $ECHO_N "(cached) $ECHO_C" >&6
12857 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12859 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12860 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12863 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12864 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12865 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12866 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12867 echo $ECHO_N "(cached) $ECHO_C" >&6
12869 ac_check_lib_save_LIBS
=$LIBS
12870 LIBS
="-lXft $XFT_LIBS $LIBS"
12871 cat >conftest.
$ac_ext <<_ACEOF
12874 cat confdefs.h
>>conftest.
$ac_ext
12875 cat >>conftest.
$ac_ext <<_ACEOF
12876 /* end confdefs.h. */
12878 /* Override any GCC internal prototype to avoid an error.
12879 Use char because int might match the return type of a GCC
12880 builtin and then its argument prototype would still apply. */
12884 char XftFontOpen ();
12888 return XftFontOpen ();
12893 rm -f conftest.
$ac_objext conftest
$ac_exeext
12894 if { (ac_try
="$ac_link"
12895 case "(($ac_try" in
12896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_link") 2>conftest.er1
12902 grep -v '^ *+' conftest.er1 >conftest.err
12904 cat conftest.err >&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } && {
12907 test -z "$ac_c_werror_flag" ||
12908 test ! -s conftest.err
12909 } && test -s conftest$ac_exeext &&
12910 $as_test_x conftest$ac_exeext; then
12911 ac_cv_lib_Xft_XftFontOpen=yes
12913 echo "$as_me: failed program was:" >&5
12914 sed 's/^/| /' conftest.$ac_ext >&5
12916 ac_cv_lib_Xft_XftFontOpen=no
12919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12920 conftest$ac_exeext conftest.$ac_ext
12921 LIBS=$ac_check_lib_save_LIBS
12923 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12924 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12925 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12933 if test "${HAVE_XFT}" = "yes"; then
12935 cat >>confdefs.h <<\_ACEOF
12940 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12942 CFLAGS="$OLD_CPPFLAGS"
12943 CFLAGS="$OLD_CFLAGS"
12951 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12952 if test "${HAVE_XFT}" = "yes"; then
12954 elif test "x${with_freetype}" != "xno"; then
12955 if test "X${with_pkg_config_prog}" != X; then
12956 PKG_CONFIG="${with_pkg_config_prog}"
12962 if test -z "$PKG_CONFIG"; then
12963 # Extract the first word of "pkg-config", so it can be a program name with args.
12964 set dummy pkg-config; ac_word=$2
12965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12967 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12968 echo $ECHO_N "(cached) $ECHO_C" >&6
12970 case $PKG_CONFIG in
12972 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12976 for as_dir in $PATH
12979 test -z "$as_dir" && as_dir=.
12980 for ac_exec_ext in '' $ac_executable_extensions; do
12981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12982 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12990 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12994 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12995 if test -n "$PKG_CONFIG"; then
12996 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12997 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12999 { echo "$as_me:$LINENO: result: no" >&5
13000 echo "${ECHO_T}no" >&6; }
13006 if test "$PKG_CONFIG" = "no" ; then
13009 PKG_CONFIG_MIN_VERSION=0.9.0
13010 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13011 { echo "$as_me:$LINENO: checking for freetype2" >&5
13012 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13014 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13015 { echo "$as_me:$LINENO: result: yes" >&5
13016 echo "${ECHO_T}yes" >&6; }
13019 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13020 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13021 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
13022 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13023 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13025 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13026 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13027 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
13028 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13029 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13031 { echo "$as_me:$LINENO: result: no" >&5
13032 echo "${ECHO_T}no" >&6; }
13035 ## If we have a custom action on failure, don't print errors
, but
13036 ## do set a variable so people can do so.
13037 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13044 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13045 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13049 if test $succeeded = yes; then
13055 if test "${HAVE_FREETYPE}" = "yes"; then
13059 if test -z "$PKG_CONFIG"; then
13060 # Extract the first word of "pkg-config", so it can be a program name with args.
13061 set dummy pkg-config
; ac_word
=$2
13062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13064 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
13067 case $PKG_CONFIG in
13069 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13072 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13073 for as_dir
in $PATH
13076 test -z "$as_dir" && as_dir
=.
13077 for ac_exec_ext
in '' $ac_executable_extensions; do
13078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13079 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13087 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13091 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13092 if test -n "$PKG_CONFIG"; then
13093 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13094 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13096 { echo "$as_me:$LINENO: result: no" >&5
13097 echo "${ECHO_T}no" >&6; }
13103 if test "$PKG_CONFIG" = "no" ; then
13106 PKG_CONFIG_MIN_VERSION
=0.9.0
13107 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13108 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13109 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13111 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13112 { echo "$as_me:$LINENO: result: yes" >&5
13113 echo "${ECHO_T}yes" >&6; }
13116 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13117 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13118 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13119 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13120 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13122 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13123 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13124 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13125 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13126 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13128 { echo "$as_me:$LINENO: result: no" >&5
13129 echo "${ECHO_T}no" >&6; }
13130 FONTCONFIG_CFLAGS
=""
13132 ## If we have a custom action on failure, don't print errors, but
13133 ## do set a variable so people can do so.
13134 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13141 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13142 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13146 if test $succeeded = yes; then
13152 if test "${HAVE_FC}" = "no"; then
13157 if test "${HAVE_FREETYPE}" = "yes"; then
13159 cat >>confdefs.h
<<\_ACEOF
13160 #define HAVE_FREETYPE 1
13163 # Extract the first word of "libotf-config", so it can be a program name with args.
13164 set dummy libotf-config
; ac_word
=$2
13165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13167 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13168 echo $ECHO_N "(cached) $ECHO_C" >&6
13170 if test -n "$HAVE_LIBOTF"; then
13171 ac_cv_prog_HAVE_LIBOTF
="$HAVE_LIBOTF" # Let the user override the test.
13173 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13174 for as_dir
in $PATH
13177 test -z "$as_dir" && as_dir
=.
13178 for ac_exec_ext
in '' $ac_executable_extensions; do
13179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13180 ac_cv_prog_HAVE_LIBOTF
="yes"
13181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13188 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF
="no"
13191 HAVE_LIBOTF
=$ac_cv_prog_HAVE_LIBOTF
13192 if test -n "$HAVE_LIBOTF"; then
13193 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13194 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13196 { echo "$as_me:$LINENO: result: no" >&5
13197 echo "${ECHO_T}no" >&6; }
13201 if test "${HAVE_LIBOTF}" = "yes"; then
13203 { echo "$as_me:$LINENO: checking for OTF_get_features in -lotf" >&5
13204 echo $ECHO_N "checking for OTF_get_features in -lotf... $ECHO_C" >&6; }
13205 if test "${ac_cv_lib_otf_OTF_get_features+set}" = set; then
13206 echo $ECHO_N "(cached) $ECHO_C" >&6
13208 ac_check_lib_save_LIBS
=$LIBS
13210 cat >conftest.
$ac_ext <<_ACEOF
13213 cat confdefs.h
>>conftest.
$ac_ext
13214 cat >>conftest.
$ac_ext <<_ACEOF
13215 /* end confdefs.h. */
13217 /* Override any GCC internal prototype to avoid an error.
13218 Use char because int might match the return type of a GCC
13219 builtin and then its argument prototype would still apply. */
13223 char OTF_get_features ();
13227 return OTF_get_features ();
13232 rm -f conftest.
$ac_objext conftest
$ac_exeext
13233 if { (ac_try
="$ac_link"
13234 case "(($ac_try" in
13235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13236 *) ac_try_echo=$ac_try;;
13238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13239 (eval "$ac_link") 2>conftest.er1
13241 grep -v '^ *+' conftest.er1 >conftest.err
13243 cat conftest.err >&5
13244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13245 (exit $ac_status); } && {
13246 test -z "$ac_c_werror_flag" ||
13247 test ! -s conftest.err
13248 } && test -s conftest$ac_exeext &&
13249 $as_test_x conftest$ac_exeext; then
13250 ac_cv_lib_otf_OTF_get_features=yes
13252 echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.$ac_ext >&5
13255 ac_cv_lib_otf_OTF_get_features=no
13258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13259 conftest$ac_exeext conftest.$ac_ext
13260 LIBS=$ac_check_lib_save_LIBS
13262 { echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_features" >&5
13263 echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_features" >&6; }
13264 if test $ac_cv_lib_otf_OTF_get_features = yes; then
13265 cat >>confdefs.h <<_ACEOF
13266 #define HAVE_LIBOTF 1
13275 if test "${HAVE_LIBOTF}" = "yes"; then
13277 cat >>confdefs.h <<\_ACEOF
13278 #define HAVE_LIBOTF 1
13281 LIBOTF_CFLAGS=`libotf-config
--cflags`
13282 LIBOTF_LIBS=`libotf-config
--libs`
13295 ### Use -lXpm if available, unless `--with-xpm=no
'.
13297 if test "${HAVE_X11}" = "yes"; then
13298 if test "${with_xpm}" != "no"; then
13299 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13300 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13301 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13302 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13306 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13308 # Is the header compilable?
13309 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13310 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13311 cat >conftest.$ac_ext <<_ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h. */
13317 $ac_includes_default
13318 #include <X11/xpm.h>
13320 rm -f conftest.$ac_objext
13321 if { (ac_try="$ac_compile"
13322 case "(($ac_try" in
13323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327 (eval "$ac_compile") 2>conftest.er1
13329 grep -v '^
*+' conftest.er1 >conftest.err
13331 cat conftest.err >&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } && {
13334 test -z "$ac_c_werror_flag" ||
13335 test ! -s conftest.err
13336 } && test -s conftest.$ac_objext; then
13337 ac_header_compiler=yes
13339 echo "$as_me: failed program was:" >&5
13340 sed 's
/^
/|
/' conftest.$ac_ext >&5
13342 ac_header_compiler=no
13345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13346 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13347 echo "${ECHO_T}$ac_header_compiler" >&6; }
13349 # Is the header present?
13350 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13351 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13352 cat >conftest.$ac_ext <<_ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13358 #include <X11/xpm.h>
13360 if { (ac_try="$ac_cpp conftest.$ac_ext"
13361 case "(($ac_try" in
13362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13363 *) ac_try_echo=$ac_try;;
13365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13368 grep -v '^
*+' conftest.er1 >conftest.err
13370 cat conftest.err >&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); } >/dev/null && {
13373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13374 test ! -s conftest.err
13376 ac_header_preproc=yes
13378 echo "$as_me: failed program was:" >&5
13379 sed 's
/^
/|
/' conftest.$ac_ext >&5
13381 ac_header_preproc=no
13384 rm -f conftest.err conftest.$ac_ext
13385 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13386 echo "${ECHO_T}$ac_header_preproc" >&6; }
13388 # So? What about this header?
13389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13391 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13392 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13393 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
13394 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
13395 ac_header_preproc=yes
13398 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13399 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13401 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13402 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13403 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13405 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
13407 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
13408 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13409 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13413 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13414 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13415 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13416 echo $ECHO_N "(cached) $ECHO_C" >&6
13418 ac_cv_header_X11_xpm_h=$ac_header_preproc
13420 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13421 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13424 if test $ac_cv_header_X11_xpm_h = yes; then
13425 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13426 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13427 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 ac_check_lib_save_LIBS=$LIBS
13431 LIBS="-lXpm -lX11 $LIBS"
13432 cat >conftest.$ac_ext <<_ACEOF
13435 cat confdefs.h >>conftest.$ac_ext
13436 cat >>conftest.$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13439 /* Override any GCC internal prototype to avoid an error.
13440 Use char because int might match the return type of a GCC
13441 builtin and then its argument prototype would still apply. */
13445 char XpmReadFileToPixmap ();
13449 return XpmReadFileToPixmap ();
13454 rm -f conftest.$ac_objext conftest$ac_exeext
13455 if { (ac_try="$ac_link"
13456 case "(($ac_try" in
13457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461 (eval "$ac_link") 2>conftest.er1
13463 grep -v '^
*+' conftest.er1 >conftest.err
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } && {
13468 test -z "$ac_c_werror_flag" ||
13469 test ! -s conftest.err
13470 } && test -s conftest$ac_exeext &&
13471 $as_test_x conftest$ac_exeext; then
13472 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13474 echo "$as_me: failed program was:" >&5
13475 sed 's
/^
/|
/' conftest.$ac_ext >&5
13477 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13481 conftest$ac_exeext conftest.$ac_ext
13482 LIBS=$ac_check_lib_save_LIBS
13484 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13485 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13486 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13493 if test "${HAVE_XPM}" = "yes"; then
13494 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13495 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13496 cat >conftest.$ac_ext <<_ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h. */
13502 #include "X11/xpm.h"
13503 #ifndef XpmReturnAllocPixels
13504 no_return_alloc_pixels
13508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13509 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13517 if test "${HAVE_XPM}" = "yes"; then
13518 { echo "$as_me:$LINENO: result: yes" >&5
13519 echo "${ECHO_T}yes" >&6; }
13521 { echo "$as_me:$LINENO: result: no" >&5
13522 echo "${ECHO_T}no" >&6; }
13527 if test "${HAVE_XPM}" = "yes"; then
13529 cat >>confdefs.h <<\_ACEOF
13536 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13538 if test "${HAVE_X11}" = "yes"; then
13539 if test "${with_jpeg}" != "no"; then
13540 if test "${ac_cv_header_jerror_h+set}" = set; then
13541 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13542 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13543 if test "${ac_cv_header_jerror_h+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13546 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13547 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13549 # Is the header compilable?
13550 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13551 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13552 cat >conftest.
$ac_ext <<_ACEOF
13555 cat confdefs.h
>>conftest.
$ac_ext
13556 cat >>conftest.
$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 $ac_includes_default
13559 #include <jerror.h>
13561 rm -f conftest.
$ac_objext
13562 if { (ac_try
="$ac_compile"
13563 case "(($ac_try" in
13564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568 (eval "$ac_compile") 2>conftest.er1
13570 grep -v '^ *+' conftest.er1 >conftest.err
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } && {
13575 test -z "$ac_c_werror_flag" ||
13576 test ! -s conftest.err
13577 } && test -s conftest.$ac_objext; then
13578 ac_header_compiler=yes
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 ac_header_compiler=no
13586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13588 echo "${ECHO_T}$ac_header_compiler" >&6; }
13590 # Is the header present?
13591 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13592 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13593 cat >conftest.$ac_ext <<_ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 #include <jerror.h>
13601 if { (ac_try="$ac_cpp conftest.$ac_ext"
13602 case "(($ac_try" in
13603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13604 *) ac_try_echo
=$ac_try;;
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13609 grep -v '^ *+' conftest.er1
>conftest.err
13611 cat conftest.err
>&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } >/dev
/null
&& {
13614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13615 test ! -s conftest.err
13617 ac_header_preproc
=yes
13619 echo "$as_me: failed program was:" >&5
13620 sed 's/^/| /' conftest.
$ac_ext >&5
13622 ac_header_preproc
=no
13625 rm -f conftest.err conftest.
$ac_ext
13626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13627 echo "${ECHO_T}$ac_header_preproc" >&6; }
13629 # So? What about this header?
13630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13632 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13633 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13634 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13635 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13636 ac_header_preproc
=yes
13639 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13640 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13641 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13642 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13643 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13644 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13646 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13648 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13650 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13654 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13655 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13656 if test "${ac_cv_header_jerror_h+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 ac_cv_header_jerror_h
=$ac_header_preproc
13661 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13662 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13665 if test $ac_cv_header_jerror_h = yes; then
13666 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13667 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13668 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13671 ac_check_lib_save_LIBS
=$LIBS
13672 LIBS
="-ljpeg $LIBS"
13673 cat >conftest.
$ac_ext <<_ACEOF
13676 cat confdefs.h
>>conftest.
$ac_ext
13677 cat >>conftest.
$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13680 /* Override any GCC internal prototype to avoid an error.
13681 Use char because int might match the return type of a GCC
13682 builtin and then its argument prototype would still apply. */
13686 char jpeg_destroy_compress ();
13690 return jpeg_destroy_compress ();
13695 rm -f conftest.
$ac_objext conftest
$ac_exeext
13696 if { (ac_try
="$ac_link"
13697 case "(($ac_try" in
13698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13699 *) ac_try_echo=$ac_try;;
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702 (eval "$ac_link") 2>conftest.er1
13704 grep -v '^ *+' conftest.er1 >conftest.err
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } && {
13709 test -z "$ac_c_werror_flag" ||
13710 test ! -s conftest.err
13711 } && test -s conftest$ac_exeext &&
13712 $as_test_x conftest$ac_exeext; then
13713 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13718 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13722 conftest$ac_exeext conftest.$ac_ext
13723 LIBS=$ac_check_lib_save_LIBS
13725 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13726 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13727 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13737 if test "${HAVE_JPEG}" = "yes"; then
13738 cat >>confdefs.h <<\_ACEOF
13739 #define HAVE_JPEG 1
13742 cat >conftest.$ac_ext <<_ACEOF
13745 cat confdefs.h >>conftest.$ac_ext
13746 cat >>conftest.$ac_ext <<_ACEOF
13747 /* end confdefs.h. */
13748 #include <jpeglib.h>
13749 version=JPEG_LIB_VERSION
13752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13753 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13754 cat >>confdefs.h <<\_ACEOF
13755 #define HAVE_JPEG 1
13759 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13760 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13768 ### Use -lpng if available, unless `--with-png=no
'.
13770 if test "${HAVE_X11}" = "yes"; then
13771 if test "${with_png}" != "no"; then
13772 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13773 # in /usr/include/libpng.
13776 for ac_header in png.h libpng/png.h
13778 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13785 ac_res=`eval echo '${'$as_ac_Header'}'`
13786 { echo "$as_me:$LINENO: result: $ac_res" >&5
13787 echo "${ECHO_T}$ac_res" >&6; }
13789 # Is the header compilable?
13790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13792 cat >conftest.$ac_ext <<_ACEOF
13795 cat confdefs.h >>conftest.$ac_ext
13796 cat >>conftest.$ac_ext <<_ACEOF
13797 /* end confdefs.h. */
13798 $ac_includes_default
13799 #include <$ac_header>
13801 rm -f conftest.$ac_objext
13802 if { (ac_try="$ac_compile"
13803 case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_compile") 2>conftest.er1
13810 grep -v '^
*+' conftest.er1 >conftest.err
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } && {
13815 test -z "$ac_c_werror_flag" ||
13816 test ! -s conftest.err
13817 } && test -s conftest.$ac_objext; then
13818 ac_header_compiler=yes
13820 echo "$as_me: failed program was:" >&5
13821 sed 's
/^
/|
/' conftest.$ac_ext >&5
13823 ac_header_compiler=no
13826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13828 echo "${ECHO_T}$ac_header_compiler" >&6; }
13830 # Is the header present?
13831 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13833 cat >conftest.$ac_ext <<_ACEOF
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13839 #include <$ac_header>
13841 if { (ac_try="$ac_cpp conftest.$ac_ext"
13842 case "(($ac_try" in
13843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844 *) ac_try_echo=$ac_try;;
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13849 grep -v '^
*+' conftest.er1 >conftest.err
13851 cat conftest.err >&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } >/dev/null && {
13854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13855 test ! -s conftest.err
13857 ac_header_preproc=yes
13859 echo "$as_me: failed program was:" >&5
13860 sed 's
/^
/|
/' conftest.$ac_ext >&5
13862 ac_header_preproc=no
13865 rm -f conftest.err conftest.$ac_ext
13866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13867 echo "${ECHO_T}$ac_header_preproc" >&6; }
13869 # So? What about this header?
13870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
13875 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
13876 ac_header_preproc=yes
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
13888 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
13889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13896 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13899 eval "$as_ac_Header=\$ac_header_preproc"
13901 ac_res=`eval echo '${'$as_ac_Header'}'`
13902 { echo "$as_me:$LINENO: result: $ac_res" >&5
13903 echo "${ECHO_T}$ac_res" >&6; }
13906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13907 cat >>confdefs.h <<_ACEOF
13908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13915 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13916 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13917 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13918 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13921 ac_check_lib_save_LIBS=$LIBS
13922 LIBS="-lpng -lz -lm $LIBS"
13923 cat >conftest.$ac_ext <<_ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13930 /* Override any GCC internal prototype to avoid an error.
13931 Use char because int might match the return type of a GCC
13932 builtin and then its argument prototype would still apply. */
13936 char png_get_channels ();
13940 return png_get_channels ();
13945 rm -f conftest.$ac_objext conftest$ac_exeext
13946 if { (ac_try="$ac_link"
13947 case "(($ac_try" in
13948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_link") 2>conftest.er1
13954 grep -v '^
*+' conftest.er1 >conftest.err
13956 cat conftest.err >&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); } && {
13959 test -z "$ac_c_werror_flag" ||
13960 test ! -s conftest.err
13961 } && test -s conftest$ac_exeext &&
13962 $as_test_x conftest$ac_exeext; then
13963 ac_cv_lib_png_png_get_channels=yes
13965 echo "$as_me: failed program was:" >&5
13966 sed 's
/^
/|
/' conftest.$ac_ext >&5
13968 ac_cv_lib_png_png_get_channels=no
13971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13972 conftest$ac_exeext conftest.$ac_ext
13973 LIBS=$ac_check_lib_save_LIBS
13975 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13976 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13977 if test $ac_cv_lib_png_png_get_channels = yes; then
13984 if test "${HAVE_PNG}" = "yes"; then
13986 cat >>confdefs.h <<\_ACEOF
13993 ### Use -ltiff if available, unless `--with-tiff=no'.
13995 if test "${HAVE_X11}" = "yes"; then
13996 if test "${with_tiff}" != "no"; then
13997 if test "${ac_cv_header_tiffio_h+set}" = set; then
13998 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13999 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14000 if test "${ac_cv_header_tiffio_h+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14003 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14004 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14006 # Is the header compilable?
14007 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14008 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14009 cat >conftest.
$ac_ext <<_ACEOF
14012 cat confdefs.h
>>conftest.
$ac_ext
14013 cat >>conftest.
$ac_ext <<_ACEOF
14014 /* end confdefs.h. */
14015 $ac_includes_default
14016 #include <tiffio.h>
14018 rm -f conftest.
$ac_objext
14019 if { (ac_try
="$ac_compile"
14020 case "(($ac_try" in
14021 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14022 *) ac_try_echo=$ac_try;;
14024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14025 (eval "$ac_compile") 2>conftest.er1
14027 grep -v '^ *+' conftest.er1 >conftest.err
14029 cat conftest.err >&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } && {
14032 test -z "$ac_c_werror_flag" ||
14033 test ! -s conftest.err
14034 } && test -s conftest.$ac_objext; then
14035 ac_header_compiler=yes
14037 echo "$as_me: failed program was:" >&5
14038 sed 's/^/| /' conftest.$ac_ext >&5
14040 ac_header_compiler=no
14043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14045 echo "${ECHO_T}$ac_header_compiler" >&6; }
14047 # Is the header present?
14048 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14049 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14050 cat >conftest.$ac_ext <<_ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h. */
14056 #include <tiffio.h>
14058 if { (ac_try="$ac_cpp conftest.$ac_ext"
14059 case "(($ac_try" in
14060 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14061 *) ac_try_echo
=$ac_try;;
14063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14066 grep -v '^ *+' conftest.er1
>conftest.err
14068 cat conftest.err
>&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } >/dev
/null
&& {
14071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14072 test ! -s conftest.err
14074 ac_header_preproc
=yes
14076 echo "$as_me: failed program was:" >&5
14077 sed 's/^/| /' conftest.
$ac_ext >&5
14079 ac_header_preproc
=no
14082 rm -f conftest.err conftest.
$ac_ext
14083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14084 echo "${ECHO_T}$ac_header_preproc" >&6; }
14086 # So? What about this header?
14087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14089 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14090 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14091 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14092 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14093 ac_header_preproc
=yes
14096 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14097 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14099 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14101 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14103 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14105 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14107 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14111 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14112 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14113 if test "${ac_cv_header_tiffio_h+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 ac_cv_header_tiffio_h
=$ac_header_preproc
14118 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14119 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14122 if test $ac_cv_header_tiffio_h = yes; then
14124 # At least one tiff package requires the jpeg library.
14125 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
14126 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14127 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14128 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14131 ac_check_lib_save_LIBS
=$LIBS
14132 LIBS
="-ltiff $tifflibs $LIBS"
14133 cat >conftest.
$ac_ext <<_ACEOF
14136 cat confdefs.h
>>conftest.
$ac_ext
14137 cat >>conftest.
$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14140 /* Override any GCC internal prototype to avoid an error.
14141 Use char because int might match the return type of a GCC
14142 builtin and then its argument prototype would still apply. */
14146 char TIFFGetVersion ();
14150 return TIFFGetVersion ();
14155 rm -f conftest.
$ac_objext conftest
$ac_exeext
14156 if { (ac_try
="$ac_link"
14157 case "(($ac_try" in
14158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14159 *) ac_try_echo=$ac_try;;
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162 (eval "$ac_link") 2>conftest.er1
14164 grep -v '^ *+' conftest.er1 >conftest.err
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } && {
14169 test -z "$ac_c_werror_flag" ||
14170 test ! -s conftest.err
14171 } && test -s conftest$ac_exeext &&
14172 $as_test_x conftest$ac_exeext; then
14173 ac_cv_lib_tiff_TIFFGetVersion=yes
14175 echo "$as_me: failed program was:" >&5
14176 sed 's/^/| /' conftest.$ac_ext >&5
14178 ac_cv_lib_tiff_TIFFGetVersion=no
14181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14182 conftest$ac_exeext conftest.$ac_ext
14183 LIBS=$ac_check_lib_save_LIBS
14185 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14186 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14187 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14196 if test "${HAVE_TIFF}" = "yes"; then
14198 cat >>confdefs.h <<\_ACEOF
14199 #define HAVE_TIFF 1
14205 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
14207 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14208 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14209 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14210 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14211 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14215 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14217 # Is the header compilable?
14218 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14219 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14220 cat >conftest.$ac_ext <<_ACEOF
14223 cat confdefs.h >>conftest.$ac_ext
14224 cat >>conftest.$ac_ext <<_ACEOF
14225 /* end confdefs.h. */
14226 $ac_includes_default
14227 #include <gif_lib.h>
14229 rm -f conftest.$ac_objext
14230 if { (ac_try="$ac_compile"
14231 case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_compile") 2>conftest.er1
14238 grep -v '^
*+' conftest.er1 >conftest.err
14240 cat conftest.err >&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); } && {
14243 test -z "$ac_c_werror_flag" ||
14244 test ! -s conftest.err
14245 } && test -s conftest.$ac_objext; then
14246 ac_header_compiler=yes
14248 echo "$as_me: failed program was:" >&5
14249 sed 's
/^
/|
/' conftest.$ac_ext >&5
14251 ac_header_compiler=no
14254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14255 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14256 echo "${ECHO_T}$ac_header_compiler" >&6; }
14258 # Is the header present?
14259 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14260 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14261 cat >conftest.$ac_ext <<_ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h. */
14267 #include <gif_lib.h>
14269 if { (ac_try="$ac_cpp conftest.$ac_ext"
14270 case "(($ac_try" in
14271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14272 *) ac_try_echo=$ac_try;;
14274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14277 grep -v '^
*+' conftest.er1 >conftest.err
14279 cat conftest.err >&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } >/dev/null && {
14282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14283 test ! -s conftest.err
14285 ac_header_preproc=yes
14287 echo "$as_me: failed program was:" >&5
14288 sed 's
/^
/|
/' conftest.$ac_ext >&5
14290 ac_header_preproc=no
14293 rm -f conftest.err conftest.$ac_ext
14294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14295 echo "${ECHO_T}$ac_header_preproc" >&6; }
14297 # So? What about this header?
14298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14300 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14301 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14302 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
14303 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
14304 ac_header_preproc=yes
14307 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14308 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14309 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14310 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14311 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14312 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14314 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
14316 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14318 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14322 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14323 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14324 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14327 ac_cv_header_gif_lib_h=$ac_header_preproc
14329 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14330 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14333 if test $ac_cv_header_gif_lib_h = yes; then
14334 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14335 # Earlier versions can crash Emacs.
14336 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14337 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14338 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14341 ac_check_lib_save_LIBS=$LIBS
14343 cat >conftest.$ac_ext <<_ACEOF
14346 cat confdefs.h >>conftest.$ac_ext
14347 cat >>conftest.$ac_ext <<_ACEOF
14348 /* end confdefs.h. */
14350 /* Override any GCC internal prototype to avoid an error.
14351 Use char because int might match the return type of a GCC
14352 builtin and then its argument prototype would still apply. */
14356 char EGifPutExtensionLast ();
14360 return EGifPutExtensionLast ();
14365 rm -f conftest.$ac_objext conftest$ac_exeext
14366 if { (ac_try="$ac_link"
14367 case "(($ac_try" in
14368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_link") 2>conftest.er1
14374 grep -v '^
*+' conftest.er1 >conftest.err
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } && {
14379 test -z "$ac_c_werror_flag" ||
14380 test ! -s conftest.err
14381 } && test -s conftest$ac_exeext &&
14382 $as_test_x conftest$ac_exeext; then
14383 ac_cv_lib_gif_EGifPutExtensionLast=yes
14385 echo "$as_me: failed program was:" >&5
14386 sed 's
/^
/|
/' conftest.$ac_ext >&5
14388 ac_cv_lib_gif_EGifPutExtensionLast=no
14391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14392 conftest$ac_exeext conftest.$ac_ext
14393 LIBS=$ac_check_lib_save_LIBS
14395 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14396 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14397 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14407 if test "$HAVE_GIF" = yes; then
14408 ac_gif_lib_name="-lgif"
14411 # If gif_lib.h but no libgif, try libungif.
14412 if test x"$try_libungif" = xyes; then
14413 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14414 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14415 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14418 ac_check_lib_save_LIBS=$LIBS
14419 LIBS="-lungif $LIBS"
14420 cat >conftest.$ac_ext <<_ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14427 /* Override any GCC internal prototype to avoid an error.
14428 Use char because int might match the return type of a GCC
14429 builtin and then its argument prototype would still apply. */
14433 char EGifPutExtensionLast ();
14437 return EGifPutExtensionLast ();
14442 rm -f conftest.$ac_objext conftest$ac_exeext
14443 if { (ac_try="$ac_link"
14444 case "(($ac_try" in
14445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14446 *) ac_try_echo=$ac_try;;
14448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449 (eval "$ac_link") 2>conftest.er1
14451 grep -v '^
*+' conftest.er1 >conftest.err
14453 cat conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } && {
14456 test -z "$ac_c_werror_flag" ||
14457 test ! -s conftest.err
14458 } && test -s conftest$ac_exeext &&
14459 $as_test_x conftest$ac_exeext; then
14460 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14462 echo "$as_me: failed program was:" >&5
14463 sed 's
/^
/|
/' conftest.$ac_ext >&5
14465 ac_cv_lib_ungif_EGifPutExtensionLast=no
14468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14469 conftest$ac_exeext conftest.$ac_ext
14470 LIBS=$ac_check_lib_save_LIBS
14472 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14473 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14474 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14479 if test "$HAVE_GIF" = yes; then
14481 cat >>confdefs.h <<\_ACEOF
14482 #define LIBGIF -lungif
14485 ac_gif_lib_name="-lungif"
14489 if test "${HAVE_GIF}" = "yes"; then
14491 cat >>confdefs.h <<\_ACEOF
14498 if test "${HAVE_X11}" = "yes"; then
14501 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14502 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14503 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14504 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14505 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14506 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14507 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14508 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14509 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14510 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14512 if test "X${MISSING}" != X; then
14513 { { echo "$as_me:$LINENO: error: The following required libraries was not found:
14515 Maybe some development libraries/packages are missing?
14516 If you don't want to link with them give
14518 as options to configure
" >&5
14519 echo "$as_me: error
: The following required libraries was not found
:
14521 Maybe some development libraries
/packages are missing?
14522 If you don
't want to link with them give
14524 as options to configure" >&2;}
14525 { (exit 1); exit 1; }; }
14529 ### Use -lgpm if available, unless `--with-gpm=no'.
14531 if test "${with_gpm}" != "no"; then
14532 if test "${ac_cv_header_gpm_h+set}" = set; then
14533 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14534 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14535 if test "${ac_cv_header_gpm_h+set}" = set; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14539 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14541 # Is the header compilable?
14542 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14543 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14544 cat >conftest.
$ac_ext <<_ACEOF
14547 cat confdefs.h
>>conftest.
$ac_ext
14548 cat >>conftest.
$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14550 $ac_includes_default
14553 rm -f conftest.
$ac_objext
14554 if { (ac_try
="$ac_compile"
14555 case "(($ac_try" in
14556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560 (eval "$ac_compile") 2>conftest.er1
14562 grep -v '^ *+' conftest.er1 >conftest.err
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } && {
14567 test -z "$ac_c_werror_flag" ||
14568 test ! -s conftest.err
14569 } && test -s conftest.$ac_objext; then
14570 ac_header_compiler=yes
14572 echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14575 ac_header_compiler=no
14578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14580 echo "${ECHO_T}$ac_header_compiler" >&6; }
14582 # Is the header present?
14583 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14584 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14585 cat >conftest.$ac_ext <<_ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14593 if { (ac_try="$ac_cpp conftest.$ac_ext"
14594 case "(($ac_try" in
14595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14596 *) ac_try_echo
=$ac_try;;
14598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14601 grep -v '^ *+' conftest.er1
>conftest.err
14603 cat conftest.err
>&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } >/dev
/null
&& {
14606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14607 test ! -s conftest.err
14609 ac_header_preproc
=yes
14611 echo "$as_me: failed program was:" >&5
14612 sed 's/^/| /' conftest.
$ac_ext >&5
14614 ac_header_preproc
=no
14617 rm -f conftest.err conftest.
$ac_ext
14618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14619 echo "${ECHO_T}$ac_header_preproc" >&6; }
14621 # So? What about this header?
14622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14624 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14625 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14626 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14627 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14628 ac_header_preproc
=yes
14631 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14632 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14633 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14634 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14635 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14636 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14638 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14639 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14640 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14641 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14642 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14646 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14647 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14648 if test "${ac_cv_header_gpm_h+set}" = set; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
14651 ac_cv_header_gpm_h
=$ac_header_preproc
14653 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14654 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14657 if test $ac_cv_header_gpm_h = yes; then
14658 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14659 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14660 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14663 ac_check_lib_save_LIBS
=$LIBS
14665 cat >conftest.
$ac_ext <<_ACEOF
14668 cat confdefs.h
>>conftest.
$ac_ext
14669 cat >>conftest.
$ac_ext <<_ACEOF
14670 /* end confdefs.h. */
14672 /* Override any GCC internal prototype to avoid an error.
14673 Use char because int might match the return type of a GCC
14674 builtin and then its argument prototype would still apply. */
14682 return Gpm_Open ();
14687 rm -f conftest.
$ac_objext conftest
$ac_exeext
14688 if { (ac_try
="$ac_link"
14689 case "(($ac_try" in
14690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14691 *) ac_try_echo=$ac_try;;
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694 (eval "$ac_link") 2>conftest.er1
14696 grep -v '^ *+' conftest.er1 >conftest.err
14698 cat conftest.err >&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } && {
14701 test -z "$ac_c_werror_flag" ||
14702 test ! -s conftest.err
14703 } && test -s conftest$ac_exeext &&
14704 $as_test_x conftest$ac_exeext; then
14705 ac_cv_lib_gpm_Gpm_Open=yes
14707 echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14710 ac_cv_lib_gpm_Gpm_Open=no
14713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14714 conftest$ac_exeext conftest.$ac_ext
14715 LIBS=$ac_check_lib_save_LIBS
14717 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14718 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14719 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14728 if test "${HAVE_GPM}" = "yes"; then
14730 cat >>confdefs.h <<\_ACEOF
14736 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14737 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14738 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14739 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14743 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14745 # Is the header compilable?
14746 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14747 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14748 cat >conftest.$ac_ext <<_ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h. */
14754 $ac_includes_default
14755 #include <malloc/malloc.h>
14757 rm -f conftest.$ac_objext
14758 if { (ac_try="$ac_compile"
14759 case "(($ac_try" in
14760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14761 *) ac_try_echo
=$ac_try;;
14763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764 (eval "$ac_compile") 2>conftest.er1
14766 grep -v '^ *+' conftest.er1
>conftest.err
14768 cat conftest.err
>&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); } && {
14771 test -z "$ac_c_werror_flag" ||
14772 test ! -s conftest.err
14773 } && test -s conftest.
$ac_objext; then
14774 ac_header_compiler
=yes
14776 echo "$as_me: failed program was:" >&5
14777 sed 's/^/| /' conftest.
$ac_ext >&5
14779 ac_header_compiler
=no
14782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14783 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14784 echo "${ECHO_T}$ac_header_compiler" >&6; }
14786 # Is the header present?
14787 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14788 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14789 cat >conftest.
$ac_ext <<_ACEOF
14792 cat confdefs.h
>>conftest.
$ac_ext
14793 cat >>conftest.
$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14795 #include <malloc/malloc.h>
14797 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14798 case "(($ac_try" in
14799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14805 grep -v '^ *+' conftest.er1 >conftest.err
14807 cat conftest.err >&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } >/dev/null && {
14810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14811 test ! -s conftest.err
14813 ac_header_preproc=yes
14815 echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14818 ac_header_preproc=no
14821 rm -f conftest.err conftest.$ac_ext
14822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14823 echo "${ECHO_T}$ac_header_preproc" >&6; }
14825 # So? What about this header?
14826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14828 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14829 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14830 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14831 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14832 ac_header_preproc=yes
14835 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14836 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14838 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14840 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14842 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14844 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14846 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14850 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14851 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14852 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14855 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14857 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14858 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14861 if test $ac_cv_header_malloc_malloc_h = yes; then
14863 cat >>confdefs.h <<\_ACEOF
14864 #define HAVE_MALLOC_MALLOC_H 1
14871 ### Use Mac OS X Carbon API to implement GUI.
14872 if test "${HAVE_CARBON}" = "yes"; then
14874 cat >>confdefs.h <<\_ACEOF
14875 #define HAVE_CARBON 1
14878 ## Specify the install directory
14880 if test "${carbon_appdir_x}" != ""; then
14881 case ${carbon_appdir_x} in
14882 y | ye | yes) carbon_appdir=/Applications ;;
14883 * ) carbon_appdir=${carbon_appdir_x} ;;
14886 # We also have mouse menus.
14890 ### Use session management (-lSM -lICE) if available
14892 if test "${HAVE_X11}" = "yes"; then
14893 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14894 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14895 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14896 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14897 echo $ECHO_N "(cached) $ECHO_C" >&6
14899 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14900 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14902 # Is the header compilable?
14903 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14904 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14905 cat >conftest.$ac_ext <<_ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14911 $ac_includes_default
14912 #include <X11/SM/SMlib.h>
14914 rm -f conftest.$ac_objext
14915 if { (ac_try="$ac_compile"
14916 case "(($ac_try" in
14917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14918 *) ac_try_echo
=$ac_try;;
14920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14921 (eval "$ac_compile") 2>conftest.er1
14923 grep -v '^ *+' conftest.er1
>conftest.err
14925 cat conftest.err
>&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); } && {
14928 test -z "$ac_c_werror_flag" ||
14929 test ! -s conftest.err
14930 } && test -s conftest.
$ac_objext; then
14931 ac_header_compiler
=yes
14933 echo "$as_me: failed program was:" >&5
14934 sed 's/^/| /' conftest.
$ac_ext >&5
14936 ac_header_compiler
=no
14939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14941 echo "${ECHO_T}$ac_header_compiler" >&6; }
14943 # Is the header present?
14944 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14945 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14946 cat >conftest.
$ac_ext <<_ACEOF
14949 cat confdefs.h
>>conftest.
$ac_ext
14950 cat >>conftest.
$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 #include <X11/SM/SMlib.h>
14954 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14955 case "(($ac_try" in
14956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14962 grep -v '^ *+' conftest.er1 >conftest.err
14964 cat conftest.err >&5
14965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14966 (exit $ac_status); } >/dev/null && {
14967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14968 test ! -s conftest.err
14970 ac_header_preproc=yes
14972 echo "$as_me: failed program was:" >&5
14973 sed 's/^/| /' conftest.$ac_ext >&5
14975 ac_header_preproc=no
14978 rm -f conftest.err conftest.$ac_ext
14979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14980 echo "${ECHO_T}$ac_header_preproc" >&6; }
14982 # So? What about this header?
14983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14985 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14986 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14987 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14988 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14989 ac_header_preproc=yes
14992 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14993 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14994 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14995 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14996 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14997 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14998 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14999 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15000 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15001 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15002 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15003 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15007 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15008 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15009 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15010 echo $ECHO_N "(cached) $ECHO_C" >&6
15012 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15014 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15015 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15018 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15019 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15020 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15021 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15022 echo $ECHO_N "(cached) $ECHO_C" >&6
15024 ac_check_lib_save_LIBS=$LIBS
15025 LIBS="-lSM -lICE $LIBS"
15026 cat >conftest.$ac_ext <<_ACEOF
15029 cat confdefs.h >>conftest.$ac_ext
15030 cat >>conftest.$ac_ext <<_ACEOF
15031 /* end confdefs.h. */
15033 /* Override any GCC internal prototype to avoid an error.
15034 Use char because int might match the return type of a GCC
15035 builtin and then its argument prototype would still apply. */
15039 char SmcOpenConnection ();
15043 return SmcOpenConnection ();
15048 rm -f conftest.$ac_objext conftest$ac_exeext
15049 if { (ac_try="$ac_link"
15050 case "(($ac_try" in
15051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15052 *) ac_try_echo
=$ac_try;;
15054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15055 (eval "$ac_link") 2>conftest.er1
15057 grep -v '^ *+' conftest.er1
>conftest.err
15059 cat conftest.err
>&5
15060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15061 (exit $ac_status); } && {
15062 test -z "$ac_c_werror_flag" ||
15063 test ! -s conftest.err
15064 } && test -s conftest
$ac_exeext &&
15065 $as_test_x conftest
$ac_exeext; then
15066 ac_cv_lib_SM_SmcOpenConnection
=yes
15068 echo "$as_me: failed program was:" >&5
15069 sed 's/^/| /' conftest.
$ac_ext >&5
15071 ac_cv_lib_SM_SmcOpenConnection
=no
15074 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15075 conftest
$ac_exeext conftest.
$ac_ext
15076 LIBS
=$ac_check_lib_save_LIBS
15078 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15079 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15080 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15088 if test "${HAVE_X_SM}" = "yes"; then
15090 cat >>confdefs.h
<<\_ACEOF
15091 #define HAVE_X_SM 1
15096 *) LIBS
="-lSM -lICE $LIBS" ;;
15101 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15102 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15103 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15104 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15107 cat >conftest.
$ac_ext <<_ACEOF
15110 cat confdefs.h
>>conftest.
$ac_ext
15111 cat >>conftest.
$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15122 rm -f conftest.
$ac_objext conftest
$ac_exeext
15123 if { (ac_try
="$ac_link"
15124 case "(($ac_try" in
15125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15126 *) ac_try_echo=$ac_try;;
15128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15129 (eval "$ac_link") 2>conftest.er1
15131 grep -v '^ *+' conftest.er1 >conftest.err
15133 cat conftest.err >&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } && {
15136 test -z "$ac_c_werror_flag" ||
15137 test ! -s conftest.err
15138 } && test -s conftest$ac_exeext &&
15139 $as_test_x conftest$ac_exeext; then
15140 emacs_cv_netdb_declares_h_errno=yes
15142 echo "$as_me: failed program was:" >&5
15143 sed 's/^/| /' conftest.$ac_ext >&5
15145 emacs_cv_netdb_declares_h_errno=no
15148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15149 conftest$ac_exeext conftest.$ac_ext
15151 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15152 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15153 if test $emacs_cv_netdb_declares_h_errno = yes; then
15155 cat >>confdefs.h <<\_ACEOF
15156 #define HAVE_H_ERRNO 1
15161 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15162 # for constant arguments. Useless!
15163 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15164 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15165 if test "${ac_cv_working_alloca_h+set}" = set; then
15166 echo $ECHO_N "(cached) $ECHO_C" >&6
15168 cat >conftest.$ac_ext <<_ACEOF
15171 cat confdefs.h >>conftest.$ac_ext
15172 cat >>conftest.$ac_ext <<_ACEOF
15173 /* end confdefs.h. */
15174 #include <alloca.h>
15178 char *p = (char *) alloca (2 * sizeof (int));
15184 rm -f conftest.$ac_objext conftest$ac_exeext
15185 if { (ac_try="$ac_link"
15186 case "(($ac_try" in
15187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15188 *) ac_try_echo
=$ac_try;;
15190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15191 (eval "$ac_link") 2>conftest.er1
15193 grep -v '^ *+' conftest.er1
>conftest.err
15195 cat conftest.err
>&5
15196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15197 (exit $ac_status); } && {
15198 test -z "$ac_c_werror_flag" ||
15199 test ! -s conftest.err
15200 } && test -s conftest
$ac_exeext &&
15201 $as_test_x conftest
$ac_exeext; then
15202 ac_cv_working_alloca_h
=yes
15204 echo "$as_me: failed program was:" >&5
15205 sed 's/^/| /' conftest.
$ac_ext >&5
15207 ac_cv_working_alloca_h
=no
15210 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15211 conftest
$ac_exeext conftest.
$ac_ext
15213 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15214 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15215 if test $ac_cv_working_alloca_h = yes; then
15217 cat >>confdefs.h
<<\_ACEOF
15218 #define HAVE_ALLOCA_H 1
15223 { echo "$as_me:$LINENO: checking for alloca" >&5
15224 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15225 if test "${ac_cv_func_alloca_works+set}" = set; then
15226 echo $ECHO_N "(cached) $ECHO_C" >&6
15228 cat >conftest.
$ac_ext <<_ACEOF
15231 cat confdefs.h
>>conftest.
$ac_ext
15232 cat >>conftest.
$ac_ext <<_ACEOF
15233 /* end confdefs.h. */
15235 # define alloca __builtin_alloca
15238 # include <malloc.h>
15239 # define alloca _alloca
15241 # ifdef HAVE_ALLOCA_H
15242 # include <alloca.h>
15247 # ifndef alloca /* predefined by HP cc +Olibcalls */
15258 char *p = (char *) alloca (1);
15264 rm -f conftest.
$ac_objext conftest
$ac_exeext
15265 if { (ac_try
="$ac_link"
15266 case "(($ac_try" in
15267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271 (eval "$ac_link") 2>conftest.er1
15273 grep -v '^ *+' conftest.er1 >conftest.err
15275 cat conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } && {
15278 test -z "$ac_c_werror_flag" ||
15279 test ! -s conftest.err
15280 } && test -s conftest$ac_exeext &&
15281 $as_test_x conftest$ac_exeext; then
15282 ac_cv_func_alloca_works=yes
15284 echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15287 ac_cv_func_alloca_works=no
15290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15291 conftest$ac_exeext conftest.$ac_ext
15293 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15294 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15296 if test $ac_cv_func_alloca_works = yes; then
15298 cat >>confdefs.h <<\_ACEOF
15299 #define HAVE_ALLOCA 1
15303 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15304 # that cause trouble. Some versions do not even contain alloca or
15305 # contain a buggy version. If you still want to use their alloca,
15306 # use ar to extract alloca.o from them instead of compiling alloca.c.
15308 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15310 cat >>confdefs.h <<\_ACEOF
15315 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15316 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15317 if test "${ac_cv_os_cray+set}" = set; then
15318 echo $ECHO_N "(cached
) $ECHO_C" >&6
15320 cat >conftest.$ac_ext <<_ACEOF
15323 cat confdefs.h >>conftest.$ac_ext
15324 cat >>conftest.$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15326 #if defined CRAY && ! defined CRAY2
15333 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15334 $EGREP "webecray
" >/dev/null 2>&1; then
15342 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15343 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15344 if test $ac_cv_os_cray = yes; then
15345 for ac_func in _getb67 GETB67 getb67; do
15346 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15347 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15348 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15349 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15350 echo $ECHO_N "(cached
) $ECHO_C" >&6
15352 cat >conftest.$ac_ext <<_ACEOF
15355 cat confdefs.h >>conftest.$ac_ext
15356 cat >>conftest.$ac_ext <<_ACEOF
15357 /* end confdefs.h. */
15358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15360 #define $ac_func innocuous_$ac_func
15362 /* System header to define __stub macros and hopefully few prototypes,
15363 which can conflict with char $ac_func (); below.
15364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15365 <limits.h> exists even on freestanding compilers. */
15368 # include <limits.h>
15370 # include <assert.h>
15375 /* Override any GCC internal prototype to avoid an error.
15376 Use char because int might match the return type of a GCC
15377 builtin and then its argument prototype would still apply. */
15382 /* The GNU C library defines this for functions which it implements
15383 to always fail with ENOSYS. Some functions are actually named
15384 something starting with __ and the normal name is an alias. */
15385 #if defined __stub_$ac_func || defined __stub___$ac_func
15392 return $ac_func ();
15397 rm -f conftest.$ac_objext conftest$ac_exeext
15398 if { (ac_try="$ac_link"
15399 case "(($ac_try" in
15400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15401 *) ac_try_echo=$ac_try;;
15403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15404 (eval "$ac_link") 2>conftest.er1
15406 grep -v '^ *+' conftest.er1 >conftest.err
15408 cat conftest.err >&5
15409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15410 (exit $ac_status); } && {
15411 test -z "$ac_c_werror_flag" ||
15412 test ! -s conftest.err
15413 } && test -s conftest$ac_exeext &&
15414 $as_test_x conftest$ac_exeext; then
15415 eval "$as_ac_var=yes"
15417 echo "$as_me: failed program was
:" >&5
15418 sed 's/^/| /' conftest.$ac_ext >&5
15420 eval "$as_ac_var=no
"
15423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15424 conftest$ac_exeext conftest.$ac_ext
15426 ac_res=`eval echo '${'$as_ac_var'}'`
15427 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15428 echo "${ECHO_T}$ac_res" >&6; }
15429 if test `eval echo '${'$as_ac_var'}'` = yes; then
15431 cat >>confdefs.h <<_ACEOF
15432 #define CRAY_STACKSEG_END $ac_func
15441 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15442 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15443 if test "${ac_cv_c_stack_direction+set}" = set; then
15444 echo $ECHO_N "(cached
) $ECHO_C" >&6
15446 if test "$cross_compiling" = yes; then
15447 ac_cv_c_stack_direction=0
15449 cat >conftest.$ac_ext <<_ACEOF
15452 cat confdefs.h >>conftest.$ac_ext
15453 cat >>conftest.$ac_ext <<_ACEOF
15454 /* end confdefs.h. */
15455 $ac_includes_default
15457 find_stack_direction ()
15459 static char *addr = 0;
15464 return find_stack_direction ();
15467 return (&dummy > addr) ? 1 : -1;
15473 return find_stack_direction () < 0;
15476 rm -f conftest$ac_exeext
15477 if { (ac_try="$ac_link"
15478 case "(($ac_try" in
15479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15480 *) ac_try_echo=$ac_try;;
15482 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15483 (eval "$ac_link") 2>&5
15485 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15486 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15487 { (case "(($ac_try" in
15488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15489 *) ac_try_echo=$ac_try;;
15491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15492 (eval "$ac_try") 2>&5
15494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15495 (exit $ac_status); }; }; then
15496 ac_cv_c_stack_direction=1
15498 echo "$as_me: program exited with status
$ac_status" >&5
15499 echo "$as_me: failed program was
:" >&5
15500 sed 's/^/| /' conftest.$ac_ext >&5
15502 ( exit $ac_status )
15503 ac_cv_c_stack_direction=-1
15505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15510 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15511 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15513 cat >>confdefs.h <<_ACEOF
15514 #define STACK_DIRECTION $ac_cv_c_stack_direction
15521 # fmod, logb, and frexp are found in -lm on most systems.
15522 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15524 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15525 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15526 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15527 echo $ECHO_N "(cached
) $ECHO_C" >&6
15529 ac_check_lib_save_LIBS=$LIBS
15531 cat >conftest.$ac_ext <<_ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15538 /* Override any GCC internal prototype to avoid an error.
15539 Use char because int might match the return type of a GCC
15540 builtin and then its argument prototype would still apply. */
15553 rm -f conftest.$ac_objext conftest$ac_exeext
15554 if { (ac_try="$ac_link"
15555 case "(($ac_try" in
15556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15557 *) ac_try_echo=$ac_try;;
15559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15560 (eval "$ac_link") 2>conftest.er1
15562 grep -v '^ *+' conftest.er1 >conftest.err
15564 cat conftest.err >&5
15565 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15566 (exit $ac_status); } && {
15567 test -z "$ac_c_werror_flag" ||
15568 test ! -s conftest.err
15569 } && test -s conftest$ac_exeext &&
15570 $as_test_x conftest$ac_exeext; then
15571 ac_cv_lib_m_sqrt=yes
15573 echo "$as_me: failed program was
:" >&5
15574 sed 's/^/| /' conftest.$ac_ext >&5
15576 ac_cv_lib_m_sqrt=no
15579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15580 conftest$ac_exeext conftest.$ac_ext
15581 LIBS=$ac_check_lib_save_LIBS
15583 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15584 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15585 if test $ac_cv_lib_m_sqrt = yes; then
15586 cat >>confdefs.h <<_ACEOF
15587 #define HAVE_LIBM 1
15595 # Check for mail-locking functions in a "mail" library. Probably this should
15596 # have the same check as for liblockfile below.
15598 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15599 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15600 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15601 echo $ECHO_N "(cached
) $ECHO_C" >&6
15603 ac_check_lib_save_LIBS=$LIBS
15604 LIBS="-lmail $LIBS"
15605 cat >conftest.$ac_ext <<_ACEOF
15608 cat confdefs.h >>conftest.$ac_ext
15609 cat >>conftest.$ac_ext <<_ACEOF
15610 /* end confdefs.h. */
15612 /* Override any GCC internal prototype to avoid an error.
15613 Use char because int might match the return type of a GCC
15614 builtin and then its argument prototype would still apply. */
15622 return maillock ();
15627 rm -f conftest.$ac_objext conftest$ac_exeext
15628 if { (ac_try="$ac_link"
15629 case "(($ac_try" in
15630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15631 *) ac_try_echo=$ac_try;;
15633 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15634 (eval "$ac_link") 2>conftest.er1
15636 grep -v '^ *+' conftest.er1 >conftest.err
15638 cat conftest.err >&5
15639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15640 (exit $ac_status); } && {
15641 test -z "$ac_c_werror_flag" ||
15642 test ! -s conftest.err
15643 } && test -s conftest$ac_exeext &&
15644 $as_test_x conftest$ac_exeext; then
15645 ac_cv_lib_mail_maillock=yes
15647 echo "$as_me: failed program was
:" >&5
15648 sed 's/^/| /' conftest.$ac_ext >&5
15650 ac_cv_lib_mail_maillock=no
15653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15654 conftest$ac_exeext conftest.$ac_ext
15655 LIBS=$ac_check_lib_save_LIBS
15657 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15658 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15659 if test $ac_cv_lib_mail_maillock = yes; then
15660 cat >>confdefs.h <<_ACEOF
15661 #define HAVE_LIBMAIL 1
15664 LIBS="-lmail $LIBS"
15669 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15670 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15671 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15672 echo $ECHO_N "(cached
) $ECHO_C" >&6
15674 ac_check_lib_save_LIBS=$LIBS
15675 LIBS="-llockfile $LIBS"
15676 cat >conftest.$ac_ext <<_ACEOF
15679 cat confdefs.h >>conftest.$ac_ext
15680 cat >>conftest.$ac_ext <<_ACEOF
15681 /* end confdefs.h. */
15683 /* Override any GCC internal prototype to avoid an error.
15684 Use char because int might match the return type of a GCC
15685 builtin and then its argument prototype would still apply. */
15693 return maillock ();
15698 rm -f conftest.$ac_objext conftest$ac_exeext
15699 if { (ac_try="$ac_link"
15700 case "(($ac_try" in
15701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702 *) ac_try_echo=$ac_try;;
15704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15705 (eval "$ac_link") 2>conftest.er1
15707 grep -v '^ *+' conftest.er1 >conftest.err
15709 cat conftest.err >&5
15710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15711 (exit $ac_status); } && {
15712 test -z "$ac_c_werror_flag" ||
15713 test ! -s conftest.err
15714 } && test -s conftest$ac_exeext &&
15715 $as_test_x conftest$ac_exeext; then
15716 ac_cv_lib_lockfile_maillock=yes
15718 echo "$as_me: failed program was
:" >&5
15719 sed 's/^/| /' conftest.$ac_ext >&5
15721 ac_cv_lib_lockfile_maillock=no
15724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15725 conftest$ac_exeext conftest.$ac_ext
15726 LIBS=$ac_check_lib_save_LIBS
15728 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15729 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15730 if test $ac_cv_lib_lockfile_maillock = yes; then
15731 cat >>confdefs.h <<_ACEOF
15732 #define HAVE_LIBLOCKFILE 1
15735 LIBS="-llockfile $LIBS"
15739 # If we have the shared liblockfile, assume we must use it for mail
15740 # locking (e.g. Debian). If we couldn't link against liblockfile
15741 # (no liblockfile.a installed), ensure that we don't need to.
15742 if test "$ac_cv_lib_lockfile_maillock" = no; then
15743 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15744 set dummy liblockfile.so; ac_word=$2
15745 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15746 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15747 if test "${ac_cv_prog_liblockfile+set}" = set; then
15748 echo $ECHO_N "(cached
) $ECHO_C" >&6
15750 if test -n "$liblockfile"; then
15751 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15754 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15755 for as_dir in $as_dummy
15758 test -z "$as_dir" && as_dir=.
15759 for ac_exec_ext in '' $ac_executable_extensions; do
15760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15761 ac_cv_prog_liblockfile="yes"
15762 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15769 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15772 liblockfile=$ac_cv_prog_liblockfile
15773 if test -n "$liblockfile"; then
15774 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15775 echo "${ECHO_T}$liblockfile" >&6; }
15777 { echo "$as_me:$LINENO: result
: no
" >&5
15778 echo "${ECHO_T}no
" >&6; }
15782 if test $ac_cv_prog_liblockfile = yes; then
15783 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15784 This probably means that movemail could lose mail.
15785 There may be a \`development' package to
install containing liblockfile.
" >&5
15786 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15787 This probably means that movemail could lose mail.
15788 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15789 { (exit 1); exit 1; }; }
15794 for ac_func in touchlock
15796 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15797 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15798 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15799 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15800 echo $ECHO_N "(cached
) $ECHO_C" >&6
15802 cat >conftest.$ac_ext <<_ACEOF
15805 cat confdefs.h >>conftest.$ac_ext
15806 cat >>conftest.$ac_ext <<_ACEOF
15807 /* end confdefs.h. */
15808 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15810 #define $ac_func innocuous_$ac_func
15812 /* System header to define __stub macros and hopefully few prototypes,
15813 which can conflict with char $ac_func (); below.
15814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15815 <limits.h> exists even on freestanding compilers. */
15818 # include <limits.h>
15820 # include <assert.h>
15825 /* Override any GCC internal prototype to avoid an error.
15826 Use char because int might match the return type of a GCC
15827 builtin and then its argument prototype would still apply. */
15832 /* The GNU C library defines this for functions which it implements
15833 to always fail with ENOSYS. Some functions are actually named
15834 something starting with __ and the normal name is an alias. */
15835 #if defined __stub_$ac_func || defined __stub___$ac_func
15842 return $ac_func ();
15847 rm -f conftest.$ac_objext conftest$ac_exeext
15848 if { (ac_try="$ac_link"
15849 case "(($ac_try" in
15850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851 *) ac_try_echo=$ac_try;;
15853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15854 (eval "$ac_link") 2>conftest.er1
15856 grep -v '^ *+' conftest.er1 >conftest.err
15858 cat conftest.err >&5
15859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15860 (exit $ac_status); } && {
15861 test -z "$ac_c_werror_flag" ||
15862 test ! -s conftest.err
15863 } && test -s conftest$ac_exeext &&
15864 $as_test_x conftest$ac_exeext; then
15865 eval "$as_ac_var=yes"
15867 echo "$as_me: failed program was
:" >&5
15868 sed 's/^/| /' conftest.$ac_ext >&5
15870 eval "$as_ac_var=no
"
15873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15874 conftest$ac_exeext conftest.$ac_ext
15876 ac_res=`eval echo '${'$as_ac_var'}'`
15877 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15878 echo "${ECHO_T}$ac_res" >&6; }
15879 if test `eval echo '${'$as_ac_var'}'` = yes; then
15880 cat >>confdefs.h <<_ACEOF
15881 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15888 for ac_header in maillock.h
15890 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15891 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15892 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15893 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15894 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15895 echo $ECHO_N "(cached
) $ECHO_C" >&6
15897 ac_res=`eval echo '${'$as_ac_Header'}'`
15898 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15899 echo "${ECHO_T}$ac_res" >&6; }
15901 # Is the header compilable?
15902 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15903 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15904 cat >conftest.$ac_ext <<_ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h. */
15910 $ac_includes_default
15911 #include <$ac_header>
15913 rm -f conftest.$ac_objext
15914 if { (ac_try="$ac_compile"
15915 case "(($ac_try" in
15916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15917 *) ac_try_echo=$ac_try;;
15919 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15920 (eval "$ac_compile") 2>conftest.er1
15922 grep -v '^ *+' conftest.er1 >conftest.err
15924 cat conftest.err >&5
15925 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15926 (exit $ac_status); } && {
15927 test -z "$ac_c_werror_flag" ||
15928 test ! -s conftest.err
15929 } && test -s conftest.$ac_objext; then
15930 ac_header_compiler=yes
15932 echo "$as_me: failed program was
:" >&5
15933 sed 's/^/| /' conftest.$ac_ext >&5
15935 ac_header_compiler=no
15938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15939 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15940 echo "${ECHO_T}$ac_header_compiler" >&6; }
15942 # Is the header present?
15943 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15944 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15945 cat >conftest.$ac_ext <<_ACEOF
15948 cat confdefs.h >>conftest.$ac_ext
15949 cat >>conftest.$ac_ext <<_ACEOF
15950 /* end confdefs.h. */
15951 #include <$ac_header>
15953 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15954 case "(($ac_try" in
15955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15956 *) ac_try_echo=$ac_try;;
15958 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15959 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15961 grep -v '^ *+' conftest.er1 >conftest.err
15963 cat conftest.err >&5
15964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15965 (exit $ac_status); } >/dev/null && {
15966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15967 test ! -s conftest.err
15969 ac_header_preproc=yes
15971 echo "$as_me: failed program was
:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15974 ac_header_preproc=no
15977 rm -f conftest.err conftest.$ac_ext
15978 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15979 echo "${ECHO_T}$ac_header_preproc" >&6; }
15981 # So? What about this header?
15982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15984 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15985 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15986 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15987 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15988 ac_header_preproc=yes
15991 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15992 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15993 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15994 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15995 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15996 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15997 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15998 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15999 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16000 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16001 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16002 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16006 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16007 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16008 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16009 echo $ECHO_N "(cached
) $ECHO_C" >&6
16011 eval "$as_ac_Header=\
$ac_header_preproc"
16013 ac_res=`eval echo '${'$as_ac_Header'}'`
16014 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16015 echo "${ECHO_T}$ac_res" >&6; }
16018 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16019 cat >>confdefs.h <<_ACEOF
16020 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16097 for ac_func in gethostname getdomainname dup2 \
16098 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16099 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
16100 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16101 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16102 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16103 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16104 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16105 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16107 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16108 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16109 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16110 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16111 echo $ECHO_N "(cached
) $ECHO_C" >&6
16113 cat >conftest.$ac_ext <<_ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h. */
16119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16121 #define $ac_func innocuous_$ac_func
16123 /* System header to define __stub macros and hopefully few prototypes,
16124 which can conflict with char $ac_func (); below.
16125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16126 <limits.h> exists even on freestanding compilers. */
16129 # include <limits.h>
16131 # include <assert.h>
16136 /* Override any GCC internal prototype to avoid an error.
16137 Use char because int might match the return type of a GCC
16138 builtin and then its argument prototype would still apply. */
16143 /* The GNU C library defines this for functions which it implements
16144 to always fail with ENOSYS. Some functions are actually named
16145 something starting with __ and the normal name is an alias. */
16146 #if defined __stub_$ac_func || defined __stub___$ac_func
16153 return $ac_func ();
16158 rm -f conftest.$ac_objext conftest$ac_exeext
16159 if { (ac_try="$ac_link"
16160 case "(($ac_try" in
16161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16162 *) ac_try_echo=$ac_try;;
16164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16165 (eval "$ac_link") 2>conftest.er1
16167 grep -v '^ *+' conftest.er1 >conftest.err
16169 cat conftest.err >&5
16170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16171 (exit $ac_status); } && {
16172 test -z "$ac_c_werror_flag" ||
16173 test ! -s conftest.err
16174 } && test -s conftest$ac_exeext &&
16175 $as_test_x conftest$ac_exeext; then
16176 eval "$as_ac_var=yes"
16178 echo "$as_me: failed program was
:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16181 eval "$as_ac_var=no
"
16184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16185 conftest$ac_exeext conftest.$ac_ext
16187 ac_res=`eval echo '${'$as_ac_var'}'`
16188 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16189 echo "${ECHO_T}$ac_res" >&6; }
16190 if test `eval echo '${'$as_ac_var'}'` = yes; then
16191 cat >>confdefs.h <<_ACEOF
16192 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16200 for ac_header in sys/un.h
16202 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16203 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16204 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16205 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16206 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16207 echo $ECHO_N "(cached
) $ECHO_C" >&6
16209 ac_res=`eval echo '${'$as_ac_Header'}'`
16210 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16211 echo "${ECHO_T}$ac_res" >&6; }
16213 # Is the header compilable?
16214 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16215 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16216 cat >conftest.$ac_ext <<_ACEOF
16219 cat confdefs.h >>conftest.$ac_ext
16220 cat >>conftest.$ac_ext <<_ACEOF
16221 /* end confdefs.h. */
16222 $ac_includes_default
16223 #include <$ac_header>
16225 rm -f conftest.$ac_objext
16226 if { (ac_try="$ac_compile"
16227 case "(($ac_try" in
16228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16229 *) ac_try_echo=$ac_try;;
16231 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16232 (eval "$ac_compile") 2>conftest.er1
16234 grep -v '^ *+' conftest.er1 >conftest.err
16236 cat conftest.err >&5
16237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16238 (exit $ac_status); } && {
16239 test -z "$ac_c_werror_flag" ||
16240 test ! -s conftest.err
16241 } && test -s conftest.$ac_objext; then
16242 ac_header_compiler=yes
16244 echo "$as_me: failed program was
:" >&5
16245 sed 's/^/| /' conftest.$ac_ext >&5
16247 ac_header_compiler=no
16250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16251 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16252 echo "${ECHO_T}$ac_header_compiler" >&6; }
16254 # Is the header present?
16255 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16256 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16257 cat >conftest.$ac_ext <<_ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h. */
16263 #include <$ac_header>
16265 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16266 case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16270 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16273 grep -v '^ *+' conftest.er1 >conftest.err
16275 cat conftest.err >&5
16276 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16277 (exit $ac_status); } >/dev/null && {
16278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16279 test ! -s conftest.err
16281 ac_header_preproc=yes
16283 echo "$as_me: failed program was
:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16286 ac_header_preproc=no
16289 rm -f conftest.err conftest.$ac_ext
16290 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16291 echo "${ECHO_T}$ac_header_preproc" >&6; }
16293 # So? What about this header?
16294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16296 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16297 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16298 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16300 ac_header_preproc=yes
16303 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16304 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16305 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16306 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16307 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16308 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16309 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16310 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16311 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16313 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16314 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16318 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16319 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16320 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16321 echo $ECHO_N "(cached
) $ECHO_C" >&6
16323 eval "$as_ac_Header=\
$ac_header_preproc"
16325 ac_res=`eval echo '${'$as_ac_Header'}'`
16326 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16327 echo "${ECHO_T}$ac_res" >&6; }
16330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16331 cat >>confdefs.h <<_ACEOF
16332 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16344 for ac_header in $ac_header_list
16346 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16347 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16348 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16349 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16350 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16351 echo $ECHO_N "(cached
) $ECHO_C" >&6
16353 ac_res=`eval echo '${'$as_ac_Header'}'`
16354 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16355 echo "${ECHO_T}$ac_res" >&6; }
16357 # Is the header compilable?
16358 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16359 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16360 cat >conftest.$ac_ext <<_ACEOF
16363 cat confdefs.h >>conftest.$ac_ext
16364 cat >>conftest.$ac_ext <<_ACEOF
16365 /* end confdefs.h. */
16366 $ac_includes_default
16367 #include <$ac_header>
16369 rm -f conftest.$ac_objext
16370 if { (ac_try="$ac_compile"
16371 case "(($ac_try" in
16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16375 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16376 (eval "$ac_compile") 2>conftest.er1
16378 grep -v '^ *+' conftest.er1 >conftest.err
16380 cat conftest.err >&5
16381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16382 (exit $ac_status); } && {
16383 test -z "$ac_c_werror_flag" ||
16384 test ! -s conftest.err
16385 } && test -s conftest.$ac_objext; then
16386 ac_header_compiler=yes
16388 echo "$as_me: failed program was
:" >&5
16389 sed 's/^/| /' conftest.$ac_ext >&5
16391 ac_header_compiler=no
16394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16395 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16396 echo "${ECHO_T}$ac_header_compiler" >&6; }
16398 # Is the header present?
16399 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16400 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16401 cat >conftest.$ac_ext <<_ACEOF
16404 cat confdefs.h >>conftest.$ac_ext
16405 cat >>conftest.$ac_ext <<_ACEOF
16406 /* end confdefs.h. */
16407 #include <$ac_header>
16409 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16410 case "(($ac_try" in
16411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16412 *) ac_try_echo=$ac_try;;
16414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16415 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16417 grep -v '^ *+' conftest.er1 >conftest.err
16419 cat conftest.err >&5
16420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16421 (exit $ac_status); } >/dev/null && {
16422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16423 test ! -s conftest.err
16425 ac_header_preproc=yes
16427 echo "$as_me: failed program was
:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16430 ac_header_preproc=no
16433 rm -f conftest.err conftest.$ac_ext
16434 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16435 echo "${ECHO_T}$ac_header_preproc" >&6; }
16437 # So? What about this header?
16438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16440 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16441 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16442 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16444 ac_header_preproc=yes
16447 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16448 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16449 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16450 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16451 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16452 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16453 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16454 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16455 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16457 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16458 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16462 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16463 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16464 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16465 echo $ECHO_N "(cached
) $ECHO_C" >&6
16467 eval "$as_ac_Header=\
$ac_header_preproc"
16469 ac_res=`eval echo '${'$as_ac_Header'}'`
16470 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16471 echo "${ECHO_T}$ac_res" >&6; }
16474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16475 cat >>confdefs.h <<_ACEOF
16476 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16491 for ac_func in $ac_func_list
16493 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16494 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16495 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16496 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16497 echo $ECHO_N "(cached
) $ECHO_C" >&6
16499 cat >conftest.$ac_ext <<_ACEOF
16502 cat confdefs.h >>conftest.$ac_ext
16503 cat >>conftest.$ac_ext <<_ACEOF
16504 /* end confdefs.h. */
16505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16507 #define $ac_func innocuous_$ac_func
16509 /* System header to define __stub macros and hopefully few prototypes,
16510 which can conflict with char $ac_func (); below.
16511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16512 <limits.h> exists even on freestanding compilers. */
16515 # include <limits.h>
16517 # include <assert.h>
16522 /* Override any GCC internal prototype to avoid an error.
16523 Use char because int might match the return type of a GCC
16524 builtin and then its argument prototype would still apply. */
16529 /* The GNU C library defines this for functions which it implements
16530 to always fail with ENOSYS. Some functions are actually named
16531 something starting with __ and the normal name is an alias. */
16532 #if defined __stub_$ac_func || defined __stub___$ac_func
16539 return $ac_func ();
16544 rm -f conftest.$ac_objext conftest$ac_exeext
16545 if { (ac_try="$ac_link"
16546 case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_link") 2>conftest.er1
16553 grep -v '^ *+' conftest.er1 >conftest.err
16555 cat conftest.err >&5
16556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16557 (exit $ac_status); } && {
16558 test -z "$ac_c_werror_flag" ||
16559 test ! -s conftest.err
16560 } && test -s conftest$ac_exeext &&
16561 $as_test_x conftest$ac_exeext; then
16562 eval "$as_ac_var=yes"
16564 echo "$as_me: failed program was
:" >&5
16565 sed 's/^/| /' conftest.$ac_ext >&5
16567 eval "$as_ac_var=no
"
16570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16571 conftest$ac_exeext conftest.$ac_ext
16573 ac_res=`eval echo '${'$as_ac_var'}'`
16574 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16575 echo "${ECHO_T}$ac_res" >&6; }
16576 if test `eval echo '${'$as_ac_var'}'` = yes; then
16577 cat >>confdefs.h <<_ACEOF
16578 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16600 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16601 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16602 if test "${ac_cv_func_working_mktime+set}" = set; then
16603 echo $ECHO_N "(cached
) $ECHO_C" >&6
16605 if test "$cross_compiling" = yes; then
16606 ac_cv_func_working_mktime=no
16608 cat >conftest.$ac_ext <<_ACEOF
16611 cat confdefs.h >>conftest.$ac_ext
16612 cat >>conftest.$ac_ext <<_ACEOF
16613 /* end confdefs.h. */
16614 /* Test program from Paul Eggert and Tony Leneis. */
16615 #ifdef TIME_WITH_SYS_TIME
16616 # include <sys/time.h>
16619 # ifdef HAVE_SYS_TIME_H
16620 # include <sys/time.h>
16626 #include <stdlib.h>
16628 #ifdef HAVE_UNISTD_H
16629 # include <unistd.h>
16633 # define alarm(X) /* empty */
16636 /* Work around redefinition to rpl_putenv by other config tests. */
16639 static time_t time_t_max;
16640 static time_t time_t_min;
16642 /* Values we'll use to set the TZ environment variable. */
16643 static char *tz_strings[] = {
16644 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16645 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16647 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16649 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16650 Based on a problem report from Andreas Jaeger. */
16652 spring_forward_gap ()
16654 /* glibc (up to about 1998-10-07) failed this test. */
16657 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16658 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16659 on systems that don't support the Olson extension, or don't have the
16660 full zoneinfo tables installed. */
16661 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16670 return mktime (&tm) != (time_t) -1;
16678 return ! (lt = localtime (&now)) || mktime (lt) == now;
16685 return (mktime_test1 (now)
16686 && mktime_test1 ((time_t) (time_t_max - now))
16687 && mktime_test1 ((time_t) (time_t_min + now)));
16693 /* Based on code from Ariel Faigon. */
16703 return tm.tm_mon == 2 && tm.tm_mday == 31;
16712 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16713 now = mktime (&tm);
16714 if (now != (time_t) -1)
16716 struct tm *lt = localtime (&now);
16718 && lt->tm_year == tm.tm_year
16719 && lt->tm_mon == tm.tm_mon
16720 && lt->tm_mday == tm.tm_mday
16721 && lt->tm_hour == tm.tm_hour
16722 && lt->tm_min == tm.tm_min
16723 && lt->tm_sec == tm.tm_sec
16724 && lt->tm_yday == tm.tm_yday
16725 && lt->tm_wday == tm.tm_wday
16726 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16727 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16736 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16737 ignoring leap seconds. */
16738 unsigned long int answer = 2527315200UL;
16742 tm.tm_year = 2050 - 1900;
16745 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16748 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16749 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16750 on systems that don't support the Olson extension, or don't have the
16751 full zoneinfo tables installed. */
16752 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16756 /* Check that the result is either a failure, or close enough
16757 to the correct answer that we can assume the discrepancy is
16758 due to leap seconds. */
16759 return (t == (time_t) -1
16760 || (0 < t && answer - 120 <= t && t <= answer + 120));
16769 /* This test makes some buggy mktime implementations loop.
16770 Give up after 60 seconds; a mktime slower than that
16771 isn't worth using anyway. */
16774 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16777 if ((time_t) -1 < 0)
16778 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16780 delta = time_t_max / 997; /* a suitable prime number */
16781 for (i = 0; i < N_STRINGS; i++)
16784 putenv (tz_strings[i]);
16786 for (t = 0; t <= time_t_max - delta; t += delta)
16787 if (! mktime_test (t))
16789 if (! (mktime_test ((time_t) 1)
16790 && mktime_test ((time_t) (60 * 60))
16791 && mktime_test ((time_t) (60 * 60 * 24))))
16794 for (j = 1; 0 < j; j *= 2)
16795 if (! bigtime_test (j))
16797 if (! bigtime_test (j - 1))
16800 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16803 rm -f conftest$ac_exeext
16804 if { (ac_try="$ac_link"
16805 case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_link") 2>&5
16812 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16814 { (case "(($ac_try" in
16815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16816 *) ac_try_echo=$ac_try;;
16818 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16819 (eval "$ac_try") 2>&5
16821 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16822 (exit $ac_status); }; }; then
16823 ac_cv_func_working_mktime=yes
16825 echo "$as_me: program exited with status
$ac_status" >&5
16826 echo "$as_me: failed program was
:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16829 ( exit $ac_status )
16830 ac_cv_func_working_mktime=no
16832 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16837 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16838 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16839 if test $ac_cv_func_working_mktime = no; then
16840 case " $LIBOBJS " in
16841 *" mktime.
$ac_objext "* ) ;;
16842 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16848 if test "$ac_cv_func_working_mktime" = no; then
16850 cat >>confdefs.h <<\_ACEOF
16851 #define BROKEN_MKTIME 1
16856 ac_have_func=no # yes means we've found a way to get the load average.
16858 # Make sure getloadavg.c is where it belongs, at configure-time.
16859 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16860 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16861 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16862 { (exit 1); exit 1; }; }
16866 # Check for getloadavg, but be sure not to touch the cache variable.
16867 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16868 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16869 if test "${ac_cv_func_getloadavg+set}" = set; then
16870 echo $ECHO_N "(cached
) $ECHO_C" >&6
16872 cat >conftest.$ac_ext <<_ACEOF
16875 cat confdefs.h >>conftest.$ac_ext
16876 cat >>conftest.$ac_ext <<_ACEOF
16877 /* end confdefs.h. */
16878 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16880 #define getloadavg innocuous_getloadavg
16882 /* System header to define __stub macros and hopefully few prototypes,
16883 which can conflict with char getloadavg (); below.
16884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16885 <limits.h> exists even on freestanding compilers. */
16888 # include <limits.h>
16890 # include <assert.h>
16895 /* Override any GCC internal prototype to avoid an error.
16896 Use char because int might match the return type of a GCC
16897 builtin and then its argument prototype would still apply. */
16901 char getloadavg ();
16902 /* The GNU C library defines this for functions which it implements
16903 to always fail with ENOSYS. Some functions are actually named
16904 something starting with __ and the normal name is an alias. */
16905 #if defined __stub_getloadavg || defined __stub___getloadavg
16912 return getloadavg ();
16917 rm -f conftest.$ac_objext conftest$ac_exeext
16918 if { (ac_try="$ac_link"
16919 case "(($ac_try" in
16920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16921 *) ac_try_echo=$ac_try;;
16923 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16924 (eval "$ac_link") 2>conftest.er1
16926 grep -v '^ *+' conftest.er1 >conftest.err
16928 cat conftest.err >&5
16929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16930 (exit $ac_status); } && {
16931 test -z "$ac_c_werror_flag" ||
16932 test ! -s conftest.err
16933 } && test -s conftest$ac_exeext &&
16934 $as_test_x conftest$ac_exeext; then
16935 ac_cv_func_getloadavg=yes
16937 echo "$as_me: failed program was
:" >&5
16938 sed 's/^/| /' conftest.$ac_ext >&5
16940 ac_cv_func_getloadavg=no
16943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16944 conftest$ac_exeext conftest.$ac_ext
16946 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16947 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16948 if test $ac_cv_func_getloadavg = yes; then
16953 ) && ac_have_func=yes
16955 # On HPUX9, an unprivileged user can get load averages through this function.
16957 for ac_func in pstat_getdynamic
16959 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16960 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16961 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16962 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16963 echo $ECHO_N "(cached
) $ECHO_C" >&6
16965 cat >conftest.$ac_ext <<_ACEOF
16968 cat confdefs.h >>conftest.$ac_ext
16969 cat >>conftest.$ac_ext <<_ACEOF
16970 /* end confdefs.h. */
16971 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16973 #define $ac_func innocuous_$ac_func
16975 /* System header to define __stub macros and hopefully few prototypes,
16976 which can conflict with char $ac_func (); below.
16977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16978 <limits.h> exists even on freestanding compilers. */
16981 # include <limits.h>
16983 # include <assert.h>
16988 /* Override any GCC internal prototype to avoid an error.
16989 Use char because int might match the return type of a GCC
16990 builtin and then its argument prototype would still apply. */
16995 /* The GNU C library defines this for functions which it implements
16996 to always fail with ENOSYS. Some functions are actually named
16997 something starting with __ and the normal name is an alias. */
16998 #if defined __stub_$ac_func || defined __stub___$ac_func
17005 return $ac_func ();
17010 rm -f conftest.$ac_objext conftest$ac_exeext
17011 if { (ac_try="$ac_link"
17012 case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17017 (eval "$ac_link") 2>conftest.er1
17019 grep -v '^ *+' conftest.er1 >conftest.err
17021 cat conftest.err >&5
17022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17023 (exit $ac_status); } && {
17024 test -z "$ac_c_werror_flag" ||
17025 test ! -s conftest.err
17026 } && test -s conftest$ac_exeext &&
17027 $as_test_x conftest$ac_exeext; then
17028 eval "$as_ac_var=yes"
17030 echo "$as_me: failed program was
:" >&5
17031 sed 's/^/| /' conftest.$ac_ext >&5
17033 eval "$as_ac_var=no
"
17036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17037 conftest$ac_exeext conftest.$ac_ext
17039 ac_res=`eval echo '${'$as_ac_var'}'`
17040 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17041 echo "${ECHO_T}$ac_res" >&6; }
17042 if test `eval echo '${'$as_ac_var'}'` = yes; then
17043 cat >>confdefs.h <<_ACEOF
17044 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17051 # Solaris has libkstat which does not require root.
17053 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17054 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17055 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17056 echo $ECHO_N "(cached
) $ECHO_C" >&6
17058 ac_check_lib_save_LIBS=$LIBS
17059 LIBS="-lkstat $LIBS"
17060 cat >conftest.$ac_ext <<_ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17067 /* Override any GCC internal prototype to avoid an error.
17068 Use char because int might match the return type of a GCC
17069 builtin and then its argument prototype would still apply. */
17073 char kstat_open ();
17077 return kstat_open ();
17082 rm -f conftest.$ac_objext conftest$ac_exeext
17083 if { (ac_try="$ac_link"
17084 case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17088 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_link") 2>conftest.er1
17091 grep -v '^ *+' conftest.er1 >conftest.err
17093 cat conftest.err >&5
17094 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17095 (exit $ac_status); } && {
17096 test -z "$ac_c_werror_flag" ||
17097 test ! -s conftest.err
17098 } && test -s conftest$ac_exeext &&
17099 $as_test_x conftest$ac_exeext; then
17100 ac_cv_lib_kstat_kstat_open=yes
17102 echo "$as_me: failed program was
:" >&5
17103 sed 's/^/| /' conftest.$ac_ext >&5
17105 ac_cv_lib_kstat_kstat_open=no
17108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17109 conftest$ac_exeext conftest.$ac_ext
17110 LIBS=$ac_check_lib_save_LIBS
17112 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17113 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17114 if test $ac_cv_lib_kstat_kstat_open = yes; then
17115 cat >>confdefs.h <<_ACEOF
17116 #define HAVE_LIBKSTAT 1
17119 LIBS="-lkstat $LIBS"
17123 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17125 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17126 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17127 # to get the right answer into the cache.
17128 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17129 if test $ac_have_func = no; then
17130 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17131 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17132 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17133 echo $ECHO_N "(cached
) $ECHO_C" >&6
17135 ac_check_lib_save_LIBS=$LIBS
17137 cat >conftest.$ac_ext <<_ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17144 /* Override any GCC internal prototype to avoid an error.
17145 Use char because int might match the return type of a GCC
17146 builtin and then its argument prototype would still apply. */
17154 return elf_begin ();
17159 rm -f conftest.$ac_objext conftest$ac_exeext
17160 if { (ac_try="$ac_link"
17161 case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17165 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_link") 2>conftest.er1
17168 grep -v '^ *+' conftest.er1 >conftest.err
17170 cat conftest.err >&5
17171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17172 (exit $ac_status); } && {
17173 test -z "$ac_c_werror_flag" ||
17174 test ! -s conftest.err
17175 } && test -s conftest$ac_exeext &&
17176 $as_test_x conftest$ac_exeext; then
17177 ac_cv_lib_elf_elf_begin=yes
17179 echo "$as_me: failed program was
:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17182 ac_cv_lib_elf_elf_begin=no
17185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17186 conftest$ac_exeext conftest.$ac_ext
17187 LIBS=$ac_check_lib_save_LIBS
17189 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17190 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17191 if test $ac_cv_lib_elf_elf_begin = yes; then
17196 if test $ac_have_func = no; then
17197 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17198 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17199 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17200 echo $ECHO_N "(cached
) $ECHO_C" >&6
17202 ac_check_lib_save_LIBS=$LIBS
17204 cat >conftest.$ac_ext <<_ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h. */
17211 /* Override any GCC internal prototype to avoid an error.
17212 Use char because int might match the return type of a GCC
17213 builtin and then its argument prototype would still apply. */
17221 return kvm_open ();
17226 rm -f conftest.$ac_objext conftest$ac_exeext
17227 if { (ac_try="$ac_link"
17228 case "(($ac_try" in
17229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17230 *) ac_try_echo=$ac_try;;
17232 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17233 (eval "$ac_link") 2>conftest.er1
17235 grep -v '^ *+' conftest.er1 >conftest.err
17237 cat conftest.err >&5
17238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17239 (exit $ac_status); } && {
17240 test -z "$ac_c_werror_flag" ||
17241 test ! -s conftest.err
17242 } && test -s conftest$ac_exeext &&
17243 $as_test_x conftest$ac_exeext; then
17244 ac_cv_lib_kvm_kvm_open=yes
17246 echo "$as_me: failed program was
:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17249 ac_cv_lib_kvm_kvm_open=no
17252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17253 conftest$ac_exeext conftest.$ac_ext
17254 LIBS=$ac_check_lib_save_LIBS
17256 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17257 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17258 if test $ac_cv_lib_kvm_kvm_open = yes; then
17262 # Check for the 4.4BSD definition of getloadavg.
17263 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17264 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17265 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17266 echo $ECHO_N "(cached
) $ECHO_C" >&6
17268 ac_check_lib_save_LIBS=$LIBS
17269 LIBS="-lutil $LIBS"
17270 cat >conftest.$ac_ext <<_ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17277 /* Override any GCC internal prototype to avoid an error.
17278 Use char because int might match the return type of a GCC
17279 builtin and then its argument prototype would still apply. */
17283 char getloadavg ();
17287 return getloadavg ();
17292 rm -f conftest.$ac_objext conftest$ac_exeext
17293 if { (ac_try="$ac_link"
17294 case "(($ac_try" in
17295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17296 *) ac_try_echo=$ac_try;;
17298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17299 (eval "$ac_link") 2>conftest.er1
17301 grep -v '^ *+' conftest.er1 >conftest.err
17303 cat conftest.err >&5
17304 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17305 (exit $ac_status); } && {
17306 test -z "$ac_c_werror_flag" ||
17307 test ! -s conftest.err
17308 } && test -s conftest$ac_exeext &&
17309 $as_test_x conftest$ac_exeext; then
17310 ac_cv_lib_util_getloadavg=yes
17312 echo "$as_me: failed program was
:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17315 ac_cv_lib_util_getloadavg=no
17318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17319 conftest$ac_exeext conftest.$ac_ext
17320 LIBS=$ac_check_lib_save_LIBS
17322 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17323 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17324 if test $ac_cv_lib_util_getloadavg = yes; then
17325 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17330 if test $ac_have_func = no; then
17331 # There is a commonly available library for RS/6000 AIX.
17332 # Since it is not a standard part of AIX, it might be installed locally.
17333 ac_getloadavg_LIBS=$LIBS
17334 LIBS="-L/usr
/local
/lib
$LIBS"
17335 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17336 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17337 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17338 echo $ECHO_N "(cached
) $ECHO_C" >&6
17340 ac_check_lib_save_LIBS=$LIBS
17341 LIBS="-lgetloadavg $LIBS"
17342 cat >conftest.$ac_ext <<_ACEOF
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h. */
17349 /* Override any GCC internal prototype to avoid an error.
17350 Use char because int might match the return type of a GCC
17351 builtin and then its argument prototype would still apply. */
17355 char getloadavg ();
17359 return getloadavg ();
17364 rm -f conftest.$ac_objext conftest$ac_exeext
17365 if { (ac_try="$ac_link"
17366 case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_link") 2>conftest.er1
17373 grep -v '^ *+' conftest.er1 >conftest.err
17375 cat conftest.err >&5
17376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17377 (exit $ac_status); } && {
17378 test -z "$ac_c_werror_flag" ||
17379 test ! -s conftest.err
17380 } && test -s conftest$ac_exeext &&
17381 $as_test_x conftest$ac_exeext; then
17382 ac_cv_lib_getloadavg_getloadavg=yes
17384 echo "$as_me: failed program was
:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17387 ac_cv_lib_getloadavg_getloadavg=no
17390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17391 conftest$ac_exeext conftest.$ac_ext
17392 LIBS=$ac_check_lib_save_LIBS
17394 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17395 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17396 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17397 LIBS="-lgetloadavg $LIBS"
17399 LIBS=$ac_getloadavg_LIBS
17404 # Make sure it is really in the library, if we think we found it,
17405 # otherwise set up the replacement function.
17407 for ac_func in getloadavg
17409 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17410 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17411 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17412 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17413 echo $ECHO_N "(cached
) $ECHO_C" >&6
17415 cat >conftest.$ac_ext <<_ACEOF
17418 cat confdefs.h >>conftest.$ac_ext
17419 cat >>conftest.$ac_ext <<_ACEOF
17420 /* end confdefs.h. */
17421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17423 #define $ac_func innocuous_$ac_func
17425 /* System header to define __stub macros and hopefully few prototypes,
17426 which can conflict with char $ac_func (); below.
17427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17428 <limits.h> exists even on freestanding compilers. */
17431 # include <limits.h>
17433 # include <assert.h>
17438 /* Override any GCC internal prototype to avoid an error.
17439 Use char because int might match the return type of a GCC
17440 builtin and then its argument prototype would still apply. */
17445 /* The GNU C library defines this for functions which it implements
17446 to always fail with ENOSYS. Some functions are actually named
17447 something starting with __ and the normal name is an alias. */
17448 #if defined __stub_$ac_func || defined __stub___$ac_func
17455 return $ac_func ();
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (ac_try="$ac_link"
17462 case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_link") 2>conftest.er1
17469 grep -v '^ *+' conftest.er1 >conftest.err
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17473 (exit $ac_status); } && {
17474 test -z "$ac_c_werror_flag" ||
17475 test ! -s conftest.err
17476 } && test -s conftest$ac_exeext &&
17477 $as_test_x conftest$ac_exeext; then
17478 eval "$as_ac_var=yes"
17480 echo "$as_me: failed program was
:" >&5
17481 sed 's/^/| /' conftest.$ac_ext >&5
17483 eval "$as_ac_var=no
"
17486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17487 conftest$ac_exeext conftest.$ac_ext
17489 ac_res=`eval echo '${'$as_ac_var'}'`
17490 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17491 echo "${ECHO_T}$ac_res" >&6; }
17492 if test `eval echo '${'$as_ac_var'}'` = yes; then
17493 cat >>confdefs.h <<_ACEOF
17494 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17498 case " $LIBOBJS " in
17499 *" getloadavg.
$ac_objext "* ) ;;
17500 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17505 cat >>confdefs.h <<\_ACEOF
17506 #define C_GETLOADAVG 1
17509 # Figure out what our getloadavg.c needs.
17511 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17512 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17513 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17514 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17515 echo $ECHO_N "(cached
) $ECHO_C" >&6
17517 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17518 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17520 # Is the header compilable?
17521 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17522 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17523 cat >conftest.$ac_ext <<_ACEOF
17526 cat confdefs.h >>conftest.$ac_ext
17527 cat >>conftest.$ac_ext <<_ACEOF
17528 /* end confdefs.h. */
17529 $ac_includes_default
17530 #include <sys/dg_sys_info.h>
17532 rm -f conftest.$ac_objext
17533 if { (ac_try="$ac_compile"
17534 case "(($ac_try" in
17535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17536 *) ac_try_echo=$ac_try;;
17538 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17539 (eval "$ac_compile") 2>conftest.er1
17541 grep -v '^ *+' conftest.er1 >conftest.err
17543 cat conftest.err >&5
17544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17545 (exit $ac_status); } && {
17546 test -z "$ac_c_werror_flag" ||
17547 test ! -s conftest.err
17548 } && test -s conftest.$ac_objext; then
17549 ac_header_compiler=yes
17551 echo "$as_me: failed program was
:" >&5
17552 sed 's/^/| /' conftest.$ac_ext >&5
17554 ac_header_compiler=no
17557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17558 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17559 echo "${ECHO_T}$ac_header_compiler" >&6; }
17561 # Is the header present?
17562 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17563 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17564 cat >conftest.$ac_ext <<_ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h. */
17570 #include <sys/dg_sys_info.h>
17572 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17573 case "(($ac_try" in
17574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17575 *) ac_try_echo=$ac_try;;
17577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17578 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17580 grep -v '^ *+' conftest.er1 >conftest.err
17582 cat conftest.err >&5
17583 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17584 (exit $ac_status); } >/dev/null && {
17585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17586 test ! -s conftest.err
17588 ac_header_preproc=yes
17590 echo "$as_me: failed program was
:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17593 ac_header_preproc=no
17596 rm -f conftest.err conftest.$ac_ext
17597 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17598 echo "${ECHO_T}$ac_header_preproc" >&6; }
17600 # So? What about this header?
17601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17603 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17604 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17605 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17606 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17607 ac_header_preproc=yes
17610 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17611 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17612 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17613 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17614 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17615 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17616 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17617 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17618 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17619 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17620 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17621 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17625 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17626 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17627 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17628 echo $ECHO_N "(cached
) $ECHO_C" >&6
17630 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17632 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17633 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17636 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17639 cat >>confdefs.h <<\_ACEOF
17644 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17645 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17646 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17647 echo $ECHO_N "(cached
) $ECHO_C" >&6
17649 ac_check_lib_save_LIBS=$LIBS
17651 cat >conftest.$ac_ext <<_ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17658 /* Override any GCC internal prototype to avoid an error.
17659 Use char because int might match the return type of a GCC
17660 builtin and then its argument prototype would still apply. */
17664 char dg_sys_info ();
17668 return dg_sys_info ();
17673 rm -f conftest.$ac_objext conftest$ac_exeext
17674 if { (ac_try="$ac_link"
17675 case "(($ac_try" in
17676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17677 *) ac_try_echo=$ac_try;;
17679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17680 (eval "$ac_link") 2>conftest.er1
17682 grep -v '^ *+' conftest.er1 >conftest.err
17684 cat conftest.err >&5
17685 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17686 (exit $ac_status); } && {
17687 test -z "$ac_c_werror_flag" ||
17688 test ! -s conftest.err
17689 } && test -s conftest$ac_exeext &&
17690 $as_test_x conftest$ac_exeext; then
17691 ac_cv_lib_dgc_dg_sys_info=yes
17693 echo "$as_me: failed program was
:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17696 ac_cv_lib_dgc_dg_sys_info=no
17699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17700 conftest$ac_exeext conftest.$ac_ext
17701 LIBS=$ac_check_lib_save_LIBS
17703 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17704 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17705 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17706 cat >>confdefs.h <<_ACEOF
17707 #define HAVE_LIBDGC 1
17718 if test "${ac_cv_header_locale_h+set}" = set; then
17719 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17720 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17721 if test "${ac_cv_header_locale_h+set}" = set; then
17722 echo $ECHO_N "(cached
) $ECHO_C" >&6
17724 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17725 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17727 # Is the header compilable?
17728 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17729 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17730 cat >conftest.$ac_ext <<_ACEOF
17733 cat confdefs.h >>conftest.$ac_ext
17734 cat >>conftest.$ac_ext <<_ACEOF
17735 /* end confdefs.h. */
17736 $ac_includes_default
17737 #include <locale.h>
17739 rm -f conftest.$ac_objext
17740 if { (ac_try="$ac_compile"
17741 case "(($ac_try" in
17742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17743 *) ac_try_echo=$ac_try;;
17745 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17746 (eval "$ac_compile") 2>conftest.er1
17748 grep -v '^ *+' conftest.er1 >conftest.err
17750 cat conftest.err >&5
17751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17752 (exit $ac_status); } && {
17753 test -z "$ac_c_werror_flag" ||
17754 test ! -s conftest.err
17755 } && test -s conftest.$ac_objext; then
17756 ac_header_compiler=yes
17758 echo "$as_me: failed program was
:" >&5
17759 sed 's/^/| /' conftest.$ac_ext >&5
17761 ac_header_compiler=no
17764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17765 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17766 echo "${ECHO_T}$ac_header_compiler" >&6; }
17768 # Is the header present?
17769 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17770 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17771 cat >conftest.$ac_ext <<_ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17777 #include <locale.h>
17779 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17780 case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17784 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17785 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17787 grep -v '^ *+' conftest.er1 >conftest.err
17789 cat conftest.err >&5
17790 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17791 (exit $ac_status); } >/dev/null && {
17792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17793 test ! -s conftest.err
17795 ac_header_preproc=yes
17797 echo "$as_me: failed program was
:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17800 ac_header_preproc=no
17803 rm -f conftest.err conftest.$ac_ext
17804 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17805 echo "${ECHO_T}$ac_header_preproc" >&6; }
17807 # So? What about this header?
17808 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17810 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17811 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17812 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17813 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17814 ac_header_preproc=yes
17817 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17818 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17819 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17820 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17821 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17822 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17823 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17824 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17825 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17826 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17827 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17828 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17832 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17833 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17834 if test "${ac_cv_header_locale_h+set}" = set; then
17835 echo $ECHO_N "(cached
) $ECHO_C" >&6
17837 ac_cv_header_locale_h=$ac_header_preproc
17839 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17840 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17846 for ac_func in setlocale
17848 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17849 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17850 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17851 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17852 echo $ECHO_N "(cached
) $ECHO_C" >&6
17854 cat >conftest.$ac_ext <<_ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h. */
17860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17862 #define $ac_func innocuous_$ac_func
17864 /* System header to define __stub macros and hopefully few prototypes,
17865 which can conflict with char $ac_func (); below.
17866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17867 <limits.h> exists even on freestanding compilers. */
17870 # include <limits.h>
17872 # include <assert.h>
17877 /* Override any GCC internal prototype to avoid an error.
17878 Use char because int might match the return type of a GCC
17879 builtin and then its argument prototype would still apply. */
17884 /* The GNU C library defines this for functions which it implements
17885 to always fail with ENOSYS. Some functions are actually named
17886 something starting with __ and the normal name is an alias. */
17887 #if defined __stub_$ac_func || defined __stub___$ac_func
17894 return $ac_func ();
17899 rm -f conftest.$ac_objext conftest$ac_exeext
17900 if { (ac_try="$ac_link"
17901 case "(($ac_try" in
17902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903 *) ac_try_echo=$ac_try;;
17905 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17906 (eval "$ac_link") 2>conftest.er1
17908 grep -v '^ *+' conftest.er1 >conftest.err
17910 cat conftest.err >&5
17911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17912 (exit $ac_status); } && {
17913 test -z "$ac_c_werror_flag" ||
17914 test ! -s conftest.err
17915 } && test -s conftest$ac_exeext &&
17916 $as_test_x conftest$ac_exeext; then
17917 eval "$as_ac_var=yes"
17919 echo "$as_me: failed program was
:" >&5
17920 sed 's/^/| /' conftest.$ac_ext >&5
17922 eval "$as_ac_var=no
"
17925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17926 conftest$ac_exeext conftest.$ac_ext
17928 ac_res=`eval echo '${'$as_ac_var'}'`
17929 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17930 echo "${ECHO_T}$ac_res" >&6; }
17931 if test `eval echo '${'$as_ac_var'}'` = yes; then
17932 cat >>confdefs.h <<_ACEOF
17933 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17940 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17941 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17942 # Irix 4.0.5F has the header but not the library.
17943 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17946 cat >>confdefs.h <<\_ACEOF
17952 if test $ac_have_func = no; then
17953 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17954 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17955 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17956 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17957 echo $ECHO_N "(cached
) $ECHO_C" >&6
17959 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17960 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17962 # Is the header compilable?
17963 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17964 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17965 cat >conftest.$ac_ext <<_ACEOF
17968 cat confdefs.h >>conftest.$ac_ext
17969 cat >>conftest.$ac_ext <<_ACEOF
17970 /* end confdefs.h. */
17971 $ac_includes_default
17972 #include <inq_stats/cpustats.h>
17974 rm -f conftest.$ac_objext
17975 if { (ac_try="$ac_compile"
17976 case "(($ac_try" in
17977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17978 *) ac_try_echo=$ac_try;;
17980 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17981 (eval "$ac_compile") 2>conftest.er1
17983 grep -v '^ *+' conftest.er1 >conftest.err
17985 cat conftest.err >&5
17986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17987 (exit $ac_status); } && {
17988 test -z "$ac_c_werror_flag" ||
17989 test ! -s conftest.err
17990 } && test -s conftest.$ac_objext; then
17991 ac_header_compiler=yes
17993 echo "$as_me: failed program was
:" >&5
17994 sed 's/^/| /' conftest.$ac_ext >&5
17996 ac_header_compiler=no
17999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18000 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18001 echo "${ECHO_T}$ac_header_compiler" >&6; }
18003 # Is the header present?
18004 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
18005 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
18006 cat >conftest.$ac_ext <<_ACEOF
18009 cat confdefs.h >>conftest.$ac_ext
18010 cat >>conftest.$ac_ext <<_ACEOF
18011 /* end confdefs.h. */
18012 #include <inq_stats/cpustats.h>
18014 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18015 case "(($ac_try" in
18016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18017 *) ac_try_echo=$ac_try;;
18019 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18020 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18022 grep -v '^ *+' conftest.er1 >conftest.err
18024 cat conftest.err >&5
18025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18026 (exit $ac_status); } >/dev/null && {
18027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18028 test ! -s conftest.err
18030 ac_header_preproc=yes
18032 echo "$as_me: failed program was
:" >&5
18033 sed 's/^/| /' conftest.$ac_ext >&5
18035 ac_header_preproc=no
18038 rm -f conftest.err conftest.$ac_ext
18039 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18040 echo "${ECHO_T}$ac_header_preproc" >&6; }
18042 # So? What about this header?
18043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18045 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18046 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18047 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
18048 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
18049 ac_header_preproc=yes
18052 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
18053 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
18054 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18055 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18056 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18057 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18058 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18059 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18060 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18061 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18062 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18063 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18067 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18068 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18069 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18070 echo $ECHO_N "(cached
) $ECHO_C" >&6
18072 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18074 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18075 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18078 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18081 cat >>confdefs.h <<\_ACEOF
18086 cat >>confdefs.h <<\_ACEOF
18095 if test $ac_have_func = no; then
18096 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18097 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18098 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18099 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18100 echo $ECHO_N "(cached
) $ECHO_C" >&6
18102 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18103 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18105 # Is the header compilable?
18106 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18107 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18108 cat >conftest.$ac_ext <<_ACEOF
18111 cat confdefs.h >>conftest.$ac_ext
18112 cat >>conftest.$ac_ext <<_ACEOF
18113 /* end confdefs.h. */
18114 $ac_includes_default
18115 #include <sys/cpustats.h>
18117 rm -f conftest.$ac_objext
18118 if { (ac_try="$ac_compile"
18119 case "(($ac_try" in
18120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18123 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_compile") 2>conftest.er1
18126 grep -v '^ *+' conftest.er1 >conftest.err
18128 cat conftest.err >&5
18129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18130 (exit $ac_status); } && {
18131 test -z "$ac_c_werror_flag" ||
18132 test ! -s conftest.err
18133 } && test -s conftest.$ac_objext; then
18134 ac_header_compiler=yes
18136 echo "$as_me: failed program was
:" >&5
18137 sed 's/^/| /' conftest.$ac_ext >&5
18139 ac_header_compiler=no
18142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18143 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18144 echo "${ECHO_T}$ac_header_compiler" >&6; }
18146 # Is the header present?
18147 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18148 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18149 cat >conftest.$ac_ext <<_ACEOF
18152 cat confdefs.h >>conftest.$ac_ext
18153 cat >>conftest.$ac_ext <<_ACEOF
18154 /* end confdefs.h. */
18155 #include <sys/cpustats.h>
18157 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18158 case "(($ac_try" in
18159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18160 *) ac_try_echo=$ac_try;;
18162 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18163 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18165 grep -v '^ *+' conftest.er1 >conftest.err
18167 cat conftest.err >&5
18168 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18169 (exit $ac_status); } >/dev/null && {
18170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18171 test ! -s conftest.err
18173 ac_header_preproc=yes
18175 echo "$as_me: failed program was
:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18178 ac_header_preproc=no
18181 rm -f conftest.err conftest.$ac_ext
18182 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18183 echo "${ECHO_T}$ac_header_preproc" >&6; }
18185 # So? What about this header?
18186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18188 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18189 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18190 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18191 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18192 ac_header_preproc=yes
18195 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18196 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18197 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18198 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18199 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18200 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18201 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18202 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18203 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18204 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18205 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18206 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18210 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18211 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18212 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18213 echo $ECHO_N "(cached
) $ECHO_C" >&6
18215 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18217 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18218 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18221 if test $ac_cv_header_sys_cpustats_h = yes; then
18222 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18231 if test $ac_have_func = no; then
18233 for ac_header in mach/mach.h
18235 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18236 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18237 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18238 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18239 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18240 echo $ECHO_N "(cached
) $ECHO_C" >&6
18242 ac_res=`eval echo '${'$as_ac_Header'}'`
18243 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18244 echo "${ECHO_T}$ac_res" >&6; }
18246 # Is the header compilable?
18247 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18248 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18249 cat >conftest.$ac_ext <<_ACEOF
18252 cat confdefs.h >>conftest.$ac_ext
18253 cat >>conftest.$ac_ext <<_ACEOF
18254 /* end confdefs.h. */
18255 $ac_includes_default
18256 #include <$ac_header>
18258 rm -f conftest.$ac_objext
18259 if { (ac_try="$ac_compile"
18260 case "(($ac_try" in
18261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18262 *) ac_try_echo=$ac_try;;
18264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18265 (eval "$ac_compile") 2>conftest.er1
18267 grep -v '^ *+' conftest.er1 >conftest.err
18269 cat conftest.err >&5
18270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18271 (exit $ac_status); } && {
18272 test -z "$ac_c_werror_flag" ||
18273 test ! -s conftest.err
18274 } && test -s conftest.$ac_objext; then
18275 ac_header_compiler=yes
18277 echo "$as_me: failed program was
:" >&5
18278 sed 's/^/| /' conftest.$ac_ext >&5
18280 ac_header_compiler=no
18283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18284 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18285 echo "${ECHO_T}$ac_header_compiler" >&6; }
18287 # Is the header present?
18288 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18289 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18290 cat >conftest.$ac_ext <<_ACEOF
18293 cat confdefs.h >>conftest.$ac_ext
18294 cat >>conftest.$ac_ext <<_ACEOF
18295 /* end confdefs.h. */
18296 #include <$ac_header>
18298 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18299 case "(($ac_try" in
18300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18301 *) ac_try_echo=$ac_try;;
18303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18304 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18306 grep -v '^ *+' conftest.er1 >conftest.err
18308 cat conftest.err >&5
18309 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18310 (exit $ac_status); } >/dev/null && {
18311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18312 test ! -s conftest.err
18314 ac_header_preproc=yes
18316 echo "$as_me: failed program was
:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18319 ac_header_preproc=no
18322 rm -f conftest.err conftest.$ac_ext
18323 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18324 echo "${ECHO_T}$ac_header_preproc" >&6; }
18326 # So? What about this header?
18327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18329 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18330 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18331 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18333 ac_header_preproc=yes
18336 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18337 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18338 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18339 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18340 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18341 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18342 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18343 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18344 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18346 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18347 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18351 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18352 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18353 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18354 echo $ECHO_N "(cached
) $ECHO_C" >&6
18356 eval "$as_ac_Header=\
$ac_header_preproc"
18358 ac_res=`eval echo '${'$as_ac_Header'}'`
18359 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18360 echo "${ECHO_T}$ac_res" >&6; }
18363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18364 cat >>confdefs.h <<_ACEOF
18365 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18375 for ac_header in nlist.h
18377 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18378 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18379 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18380 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18381 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18382 echo $ECHO_N "(cached
) $ECHO_C" >&6
18384 ac_res=`eval echo '${'$as_ac_Header'}'`
18385 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18386 echo "${ECHO_T}$ac_res" >&6; }
18388 # Is the header compilable?
18389 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18390 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18391 cat >conftest.$ac_ext <<_ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h. */
18397 $ac_includes_default
18398 #include <$ac_header>
18400 rm -f conftest.$ac_objext
18401 if { (ac_try="$ac_compile"
18402 case "(($ac_try" in
18403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18404 *) ac_try_echo=$ac_try;;
18406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18407 (eval "$ac_compile") 2>conftest.er1
18409 grep -v '^ *+' conftest.er1 >conftest.err
18411 cat conftest.err >&5
18412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18413 (exit $ac_status); } && {
18414 test -z "$ac_c_werror_flag" ||
18415 test ! -s conftest.err
18416 } && test -s conftest.$ac_objext; then
18417 ac_header_compiler=yes
18419 echo "$as_me: failed program was
:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18422 ac_header_compiler=no
18425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18426 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18427 echo "${ECHO_T}$ac_header_compiler" >&6; }
18429 # Is the header present?
18430 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18431 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18432 cat >conftest.$ac_ext <<_ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18438 #include <$ac_header>
18440 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18441 case "(($ac_try" in
18442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443 *) ac_try_echo=$ac_try;;
18445 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18446 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18448 grep -v '^ *+' conftest.er1 >conftest.err
18450 cat conftest.err >&5
18451 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18452 (exit $ac_status); } >/dev/null && {
18453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18454 test ! -s conftest.err
18456 ac_header_preproc=yes
18458 echo "$as_me: failed program was
:" >&5
18459 sed 's/^/| /' conftest.$ac_ext >&5
18461 ac_header_preproc=no
18464 rm -f conftest.err conftest.$ac_ext
18465 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18466 echo "${ECHO_T}$ac_header_preproc" >&6; }
18468 # So? What about this header?
18469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18471 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18472 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18473 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18475 ac_header_preproc=yes
18478 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18479 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18480 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18481 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18482 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18483 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18484 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18485 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18486 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18488 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18489 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18493 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18494 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18495 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18496 echo $ECHO_N "(cached
) $ECHO_C" >&6
18498 eval "$as_ac_Header=\
$ac_header_preproc"
18500 ac_res=`eval echo '${'$as_ac_Header'}'`
18501 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18502 echo "${ECHO_T}$ac_res" >&6; }
18505 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18506 cat >>confdefs.h <<_ACEOF
18507 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18509 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18510 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18511 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18512 echo $ECHO_N "(cached
) $ECHO_C" >&6
18514 cat >conftest.$ac_ext <<_ACEOF
18517 cat confdefs.h >>conftest.$ac_ext
18518 cat >>conftest.$ac_ext <<_ACEOF
18519 /* end confdefs.h. */
18525 static struct nlist ac_aggr;
18526 if (ac_aggr.n_un.n_name)
18532 rm -f conftest.$ac_objext
18533 if { (ac_try="$ac_compile"
18534 case "(($ac_try" in
18535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536 *) ac_try_echo=$ac_try;;
18538 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18539 (eval "$ac_compile") 2>conftest.er1
18541 grep -v '^ *+' conftest.er1 >conftest.err
18543 cat conftest.err >&5
18544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18545 (exit $ac_status); } && {
18546 test -z "$ac_c_werror_flag" ||
18547 test ! -s conftest.err
18548 } && test -s conftest.$ac_objext; then
18549 ac_cv_member_struct_nlist_n_un_n_name=yes
18551 echo "$as_me: failed program was
:" >&5
18552 sed 's/^/| /' conftest.$ac_ext >&5
18554 cat >conftest.$ac_ext <<_ACEOF
18557 cat confdefs.h >>conftest.$ac_ext
18558 cat >>conftest.$ac_ext <<_ACEOF
18559 /* end confdefs.h. */
18565 static struct nlist ac_aggr;
18566 if (sizeof ac_aggr.n_un.n_name)
18572 rm -f conftest.$ac_objext
18573 if { (ac_try="$ac_compile"
18574 case "(($ac_try" in
18575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18576 *) ac_try_echo=$ac_try;;
18578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18579 (eval "$ac_compile") 2>conftest.er1
18581 grep -v '^ *+' conftest.er1 >conftest.err
18583 cat conftest.err >&5
18584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18585 (exit $ac_status); } && {
18586 test -z "$ac_c_werror_flag" ||
18587 test ! -s conftest.err
18588 } && test -s conftest.$ac_objext; then
18589 ac_cv_member_struct_nlist_n_un_n_name=yes
18591 echo "$as_me: failed program was
:" >&5
18592 sed 's/^/| /' conftest.$ac_ext >&5
18594 ac_cv_member_struct_nlist_n_un_n_name=no
18597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18602 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18603 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18604 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18606 cat >>confdefs.h <<_ACEOF
18607 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18611 cat >>confdefs.h <<\_ACEOF
18612 #define NLIST_NAME_UNION 1
18626 # Some definitions of getloadavg require that the program be installed setgid.
18627 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18628 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18629 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18630 echo $ECHO_N "(cached
) $ECHO_C" >&6
18632 cat >conftest.$ac_ext <<_ACEOF
18635 cat confdefs.h >>conftest.$ac_ext
18636 cat >>conftest.$ac_ext <<_ACEOF
18637 /* end confdefs.h. */
18638 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18639 #ifdef LDAV_PRIVILEGED
18640 Yowza Am I SETGID yet
18643 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18644 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18645 ac_cv_func_getloadavg_setgid=yes
18647 ac_cv_func_getloadavg_setgid=no
18652 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18653 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18654 if test $ac_cv_func_getloadavg_setgid = yes; then
18657 cat >>confdefs.h <<\_ACEOF
18658 #define GETLOADAVG_PRIVILEGED 1
18665 if test $ac_cv_func_getloadavg_setgid = yes; then
18666 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18667 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18668 if test "${ac_cv_group_kmem+set}" = set; then
18669 echo $ECHO_N "(cached
) $ECHO_C" >&6
18671 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18672 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18673 # If we got an error (system does not support symlinks), try without -L.
18674 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18675 ac_cv_group_kmem=`echo $ac_ls_output \
18676 | sed -ne 's/[ ][ ]*/ /g;
18677 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18681 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18682 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18683 KMEM_GROUP=$ac_cv_group_kmem
18685 if test "x
$ac_save_LIBS" = x; then
18686 GETLOADAVG_LIBS=$LIBS
18688 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18694 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18695 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18696 if test "${ac_cv_sys_largefile_source+set}" = set; then
18697 echo $ECHO_N "(cached
) $ECHO_C" >&6
18700 cat >conftest.$ac_ext <<_ACEOF
18703 cat confdefs.h >>conftest.$ac_ext
18704 cat >>conftest.$ac_ext <<_ACEOF
18705 /* end confdefs.h. */
18710 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18715 rm -f conftest.$ac_objext conftest$ac_exeext
18716 if { (ac_try="$ac_link"
18717 case "(($ac_try" in
18718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18719 *) ac_try_echo=$ac_try;;
18721 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18722 (eval "$ac_link") 2>conftest.er1
18724 grep -v '^ *+' conftest.er1 >conftest.err
18726 cat conftest.err >&5
18727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18728 (exit $ac_status); } && {
18729 test -z "$ac_c_werror_flag" ||
18730 test ! -s conftest.err
18731 } && test -s conftest$ac_exeext &&
18732 $as_test_x conftest$ac_exeext; then
18733 ac_cv_sys_largefile_source=no; break
18735 echo "$as_me: failed program was
:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18742 conftest$ac_exeext conftest.$ac_ext
18743 cat >conftest.$ac_ext <<_ACEOF
18746 cat confdefs.h >>conftest.$ac_ext
18747 cat >>conftest.$ac_ext <<_ACEOF
18748 /* end confdefs.h. */
18749 #define _LARGEFILE_SOURCE 1
18754 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18759 rm -f conftest.$ac_objext conftest$ac_exeext
18760 if { (ac_try="$ac_link"
18761 case "(($ac_try" in
18762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18763 *) ac_try_echo=$ac_try;;
18765 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18766 (eval "$ac_link") 2>conftest.er1
18768 grep -v '^ *+' conftest.er1 >conftest.err
18770 cat conftest.err >&5
18771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18772 (exit $ac_status); } && {
18773 test -z "$ac_c_werror_flag" ||
18774 test ! -s conftest.err
18775 } && test -s conftest$ac_exeext &&
18776 $as_test_x conftest$ac_exeext; then
18777 ac_cv_sys_largefile_source=1; break
18779 echo "$as_me: failed program was
:" >&5
18780 sed 's/^/| /' conftest.$ac_ext >&5
18785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18786 conftest$ac_exeext conftest.$ac_ext
18787 ac_cv_sys_largefile_source=unknown
18791 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18792 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18793 case $ac_cv_sys_largefile_source in #(
18796 cat >>confdefs.h <<_ACEOF
18797 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18803 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18804 # in glibc 2.1.3, but that breaks too many other things.
18805 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18806 if test $ac_cv_sys_largefile_source != unknown; then
18808 cat >>confdefs.h <<\_ACEOF
18809 #define HAVE_FSEEKO 1
18815 # Configure getopt.
18816 # getopt.m4 serial 10
18818 # The getopt module assume you want GNU getopt, with getopt_long etc,
18819 # rather than vanilla POSIX getopt. This means your your code should
18820 # always include <getopt.h> for the getopt prototypes.
18832 # Prerequisites of lib/getopt*.
18839 for ac_header in getopt.h
18841 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18842 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18843 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18844 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18845 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18846 echo $ECHO_N "(cached
) $ECHO_C" >&6
18848 ac_res=`eval echo '${'$as_ac_Header'}'`
18849 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18850 echo "${ECHO_T}$ac_res" >&6; }
18852 # Is the header compilable?
18853 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18854 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18855 cat >conftest.$ac_ext <<_ACEOF
18858 cat confdefs.h >>conftest.$ac_ext
18859 cat >>conftest.$ac_ext <<_ACEOF
18860 /* end confdefs.h. */
18861 $ac_includes_default
18862 #include <$ac_header>
18864 rm -f conftest.$ac_objext
18865 if { (ac_try="$ac_compile"
18866 case "(($ac_try" in
18867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18868 *) ac_try_echo=$ac_try;;
18870 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18871 (eval "$ac_compile") 2>conftest.er1
18873 grep -v '^ *+' conftest.er1 >conftest.err
18875 cat conftest.err >&5
18876 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18877 (exit $ac_status); } && {
18878 test -z "$ac_c_werror_flag" ||
18879 test ! -s conftest.err
18880 } && test -s conftest.$ac_objext; then
18881 ac_header_compiler=yes
18883 echo "$as_me: failed program was
:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18886 ac_header_compiler=no
18889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18890 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18891 echo "${ECHO_T}$ac_header_compiler" >&6; }
18893 # Is the header present?
18894 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18895 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18896 cat >conftest.$ac_ext <<_ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18902 #include <$ac_header>
18904 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18905 case "(($ac_try" in
18906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907 *) ac_try_echo=$ac_try;;
18909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18910 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18912 grep -v '^ *+' conftest.er1 >conftest.err
18914 cat conftest.err >&5
18915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18916 (exit $ac_status); } >/dev/null && {
18917 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18918 test ! -s conftest.err
18920 ac_header_preproc=yes
18922 echo "$as_me: failed program was
:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18925 ac_header_preproc=no
18928 rm -f conftest.err conftest.$ac_ext
18929 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18930 echo "${ECHO_T}$ac_header_preproc" >&6; }
18932 # So? What about this header?
18933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18935 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18936 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18937 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18939 ac_header_preproc=yes
18942 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18943 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18944 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18945 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18946 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18947 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18948 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18949 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18950 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18952 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18953 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18957 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18958 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18959 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18960 echo $ECHO_N "(cached
) $ECHO_C" >&6
18962 eval "$as_ac_Header=\
$ac_header_preproc"
18964 ac_res=`eval echo '${'$as_ac_Header'}'`
18965 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18966 echo "${ECHO_T}$ac_res" >&6; }
18969 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18970 cat >>confdefs.h <<_ACEOF
18971 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18980 if test -z "$GETOPT_H"; then
18982 for ac_func in getopt_long_only
18984 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18985 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18986 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18987 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18988 echo $ECHO_N "(cached
) $ECHO_C" >&6
18990 cat >conftest.$ac_ext <<_ACEOF
18993 cat confdefs.h >>conftest.$ac_ext
18994 cat >>conftest.$ac_ext <<_ACEOF
18995 /* end confdefs.h. */
18996 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18997 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18998 #define $ac_func innocuous_$ac_func
19000 /* System header to define __stub macros and hopefully few prototypes,
19001 which can conflict with char $ac_func (); below.
19002 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19003 <limits.h> exists even on freestanding compilers. */
19006 # include <limits.h>
19008 # include <assert.h>
19013 /* Override any GCC internal prototype to avoid an error.
19014 Use char because int might match the return type of a GCC
19015 builtin and then its argument prototype would still apply. */
19020 /* The GNU C library defines this for functions which it implements
19021 to always fail with ENOSYS. Some functions are actually named
19022 something starting with __ and the normal name is an alias. */
19023 #if defined __stub_$ac_func || defined __stub___$ac_func
19030 return $ac_func ();
19035 rm -f conftest.$ac_objext conftest$ac_exeext
19036 if { (ac_try="$ac_link"
19037 case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19041 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19042 (eval "$ac_link") 2>conftest.er1
19044 grep -v '^ *+' conftest.er1 >conftest.err
19046 cat conftest.err >&5
19047 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19048 (exit $ac_status); } && {
19049 test -z "$ac_c_werror_flag" ||
19050 test ! -s conftest.err
19051 } && test -s conftest$ac_exeext &&
19052 $as_test_x conftest$ac_exeext; then
19053 eval "$as_ac_var=yes"
19055 echo "$as_me: failed program was
:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19058 eval "$as_ac_var=no
"
19061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19062 conftest$ac_exeext conftest.$ac_ext
19064 ac_res=`eval echo '${'$as_ac_var'}'`
19065 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19066 echo "${ECHO_T}$ac_res" >&6; }
19067 if test `eval echo '${'$as_ac_var'}'` = yes; then
19068 cat >>confdefs.h <<_ACEOF
19069 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19079 if test -z "$GETOPT_H"; then
19080 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19081 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19082 if test "${ac_cv_have_decl_optreset+set}" = set; then
19083 echo $ECHO_N "(cached
) $ECHO_C" >&6
19085 cat >conftest.$ac_ext <<_ACEOF
19088 cat confdefs.h >>conftest.$ac_ext
19089 cat >>conftest.$ac_ext <<_ACEOF
19090 /* end confdefs.h. */
19091 #include <getopt.h>
19104 rm -f conftest.$ac_objext
19105 if { (ac_try="$ac_compile"
19106 case "(($ac_try" in
19107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108 *) ac_try_echo=$ac_try;;
19110 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19111 (eval "$ac_compile") 2>conftest.er1
19113 grep -v '^ *+' conftest.er1 >conftest.err
19115 cat conftest.err >&5
19116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19117 (exit $ac_status); } && {
19118 test -z "$ac_c_werror_flag" ||
19119 test ! -s conftest.err
19120 } && test -s conftest.$ac_objext; then
19121 ac_cv_have_decl_optreset=yes
19123 echo "$as_me: failed program was
:" >&5
19124 sed 's/^/| /' conftest.$ac_ext >&5
19126 ac_cv_have_decl_optreset=no
19129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19131 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19132 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19133 if test $ac_cv_have_decl_optreset = yes; then
19139 if test -z "$GETOPT_H"; then
19140 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19141 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19142 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19143 echo $ECHO_N "(cached
) $ECHO_C" >&6
19145 if test "$cross_compiling" = yes; then
19146 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19147 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19148 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19149 echo $ECHO_N "(cached
) $ECHO_C" >&6
19151 cat >conftest.$ac_ext <<_ACEOF
19154 cat confdefs.h >>conftest.$ac_ext
19155 cat >>conftest.$ac_ext <<_ACEOF
19156 /* end confdefs.h. */
19157 #include <getopt.h>
19162 #ifndef getopt_clip
19163 (void) getopt_clip;
19170 rm -f conftest.$ac_objext
19171 if { (ac_try="$ac_compile"
19172 case "(($ac_try" in
19173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19174 *) ac_try_echo=$ac_try;;
19176 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19177 (eval "$ac_compile") 2>conftest.er1
19179 grep -v '^ *+' conftest.er1 >conftest.err
19181 cat conftest.err >&5
19182 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19183 (exit $ac_status); } && {
19184 test -z "$ac_c_werror_flag" ||
19185 test ! -s conftest.err
19186 } && test -s conftest.$ac_objext; then
19187 ac_cv_have_decl_getopt_clip=yes
19189 echo "$as_me: failed program was
:" >&5
19190 sed 's/^/| /' conftest.$ac_ext >&5
19192 ac_cv_have_decl_getopt_clip=no
19195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19197 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19198 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19199 if test $ac_cv_have_decl_getopt_clip = yes; then
19200 gl_cv_func_gnu_getopt=no
19202 gl_cv_func_gnu_getopt=yes
19206 cat >conftest.$ac_ext <<_ACEOF
19209 cat confdefs.h >>conftest.$ac_ext
19210 cat >>conftest.$ac_ext <<_ACEOF
19211 /* end confdefs.h. */
19212 #include <getopt.h>
19218 myargv[0] = "conftest
";
19221 return getopt (2, myargv, "+a
") != '?';
19227 rm -f conftest$ac_exeext
19228 if { (ac_try="$ac_link"
19229 case "(($ac_try" in
19230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_link") 2>&5
19236 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19237 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19238 { (case "(($ac_try" in
19239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240 *) ac_try_echo=$ac_try;;
19242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19243 (eval "$ac_try") 2>&5
19245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19246 (exit $ac_status); }; }; then
19247 gl_cv_func_gnu_getopt=yes
19249 echo "$as_me: program exited with status
$ac_status" >&5
19250 echo "$as_me: failed program was
:" >&5
19251 sed 's/^/| /' conftest.$ac_ext >&5
19253 ( exit $ac_status )
19254 gl_cv_func_gnu_getopt=no
19256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19261 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19262 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19263 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19270 if test -n "$GETOPT_H"; then
19275 cat >>confdefs.h <<\_ACEOF
19276 #define __GETOPT_PREFIX rpl_
19282 GETOPTOBJS='getopt.o getopt1.o'
19289 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19290 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19291 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19292 echo $ECHO_N "(cached
) $ECHO_C" >&6
19294 # Use it with a single arg.
19295 cat >conftest.$ac_ext <<_ACEOF
19298 cat confdefs.h >>conftest.$ac_ext
19299 cat >>conftest.$ac_ext <<_ACEOF
19300 /* end confdefs.h. */
19301 $ac_includes_default
19310 rm -f conftest.$ac_objext
19311 if { (ac_try="$ac_compile"
19312 case "(($ac_try" in
19313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19314 *) ac_try_echo=$ac_try;;
19316 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19317 (eval "$ac_compile") 2>conftest.er1
19319 grep -v '^ *+' conftest.er1 >conftest.err
19321 cat conftest.err >&5
19322 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19323 (exit $ac_status); } && {
19324 test -z "$ac_c_werror_flag" ||
19325 test ! -s conftest.err
19326 } && test -s conftest.$ac_objext; then
19327 ac_cv_func_getpgrp_void=no
19329 echo "$as_me: failed program was
:" >&5
19330 sed 's/^/| /' conftest.$ac_ext >&5
19332 ac_cv_func_getpgrp_void=yes
19335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19338 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19339 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19340 if test $ac_cv_func_getpgrp_void = yes; then
19342 cat >>confdefs.h <<\_ACEOF
19343 #define GETPGRP_VOID 1
19350 for ac_func in strftime
19352 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19353 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19354 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19355 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19356 echo $ECHO_N "(cached
) $ECHO_C" >&6
19358 cat >conftest.$ac_ext <<_ACEOF
19361 cat confdefs.h >>conftest.$ac_ext
19362 cat >>conftest.$ac_ext <<_ACEOF
19363 /* end confdefs.h. */
19364 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19365 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19366 #define $ac_func innocuous_$ac_func
19368 /* System header to define __stub macros and hopefully few prototypes,
19369 which can conflict with char $ac_func (); below.
19370 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19371 <limits.h> exists even on freestanding compilers. */
19374 # include <limits.h>
19376 # include <assert.h>
19381 /* Override any GCC internal prototype to avoid an error.
19382 Use char because int might match the return type of a GCC
19383 builtin and then its argument prototype would still apply. */
19388 /* The GNU C library defines this for functions which it implements
19389 to always fail with ENOSYS. Some functions are actually named
19390 something starting with __ and the normal name is an alias. */
19391 #if defined __stub_$ac_func || defined __stub___$ac_func
19398 return $ac_func ();
19403 rm -f conftest.$ac_objext conftest$ac_exeext
19404 if { (ac_try="$ac_link"
19405 case "(($ac_try" in
19406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19407 *) ac_try_echo=$ac_try;;
19409 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19410 (eval "$ac_link") 2>conftest.er1
19412 grep -v '^ *+' conftest.er1 >conftest.err
19414 cat conftest.err >&5
19415 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19416 (exit $ac_status); } && {
19417 test -z "$ac_c_werror_flag" ||
19418 test ! -s conftest.err
19419 } && test -s conftest$ac_exeext &&
19420 $as_test_x conftest$ac_exeext; then
19421 eval "$as_ac_var=yes"
19423 echo "$as_me: failed program was
:" >&5
19424 sed 's/^/| /' conftest.$ac_ext >&5
19426 eval "$as_ac_var=no
"
19429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19430 conftest$ac_exeext conftest.$ac_ext
19432 ac_res=`eval echo '${'$as_ac_var'}'`
19433 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19434 echo "${ECHO_T}$ac_res" >&6; }
19435 if test `eval echo '${'$as_ac_var'}'` = yes; then
19436 cat >>confdefs.h <<_ACEOF
19437 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19441 # strftime is in -lintl on SCO UNIX.
19442 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19443 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19444 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19445 echo $ECHO_N "(cached
) $ECHO_C" >&6
19447 ac_check_lib_save_LIBS=$LIBS
19448 LIBS="-lintl $LIBS"
19449 cat >conftest.$ac_ext <<_ACEOF
19452 cat confdefs.h >>conftest.$ac_ext
19453 cat >>conftest.$ac_ext <<_ACEOF
19454 /* end confdefs.h. */
19456 /* Override any GCC internal prototype to avoid an error.
19457 Use char because int might match the return type of a GCC
19458 builtin and then its argument prototype would still apply. */
19466 return strftime ();
19471 rm -f conftest.$ac_objext conftest$ac_exeext
19472 if { (ac_try="$ac_link"
19473 case "(($ac_try" in
19474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19475 *) ac_try_echo=$ac_try;;
19477 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19478 (eval "$ac_link") 2>conftest.er1
19480 grep -v '^ *+' conftest.er1 >conftest.err
19482 cat conftest.err >&5
19483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19484 (exit $ac_status); } && {
19485 test -z "$ac_c_werror_flag" ||
19486 test ! -s conftest.err
19487 } && test -s conftest$ac_exeext &&
19488 $as_test_x conftest$ac_exeext; then
19489 ac_cv_lib_intl_strftime=yes
19491 echo "$as_me: failed program was
:" >&5
19492 sed 's/^/| /' conftest.$ac_ext >&5
19494 ac_cv_lib_intl_strftime=no
19497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19498 conftest$ac_exeext conftest.$ac_ext
19499 LIBS=$ac_check_lib_save_LIBS
19501 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19502 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19503 if test $ac_cv_lib_intl_strftime = yes; then
19504 cat >>confdefs.h <<\_ACEOF
19505 #define HAVE_STRFTIME 1
19508 LIBS="-lintl $LIBS"
19517 for ac_func in grantpt
19519 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19520 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19521 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19522 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19523 echo $ECHO_N "(cached
) $ECHO_C" >&6
19525 cat >conftest.$ac_ext <<_ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19533 #define $ac_func innocuous_$ac_func
19535 /* System header to define __stub macros and hopefully few prototypes,
19536 which can conflict with char $ac_func (); below.
19537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19538 <limits.h> exists even on freestanding compilers. */
19541 # include <limits.h>
19543 # include <assert.h>
19548 /* Override any GCC internal prototype to avoid an error.
19549 Use char because int might match the return type of a GCC
19550 builtin and then its argument prototype would still apply. */
19555 /* The GNU C library defines this for functions which it implements
19556 to always fail with ENOSYS. Some functions are actually named
19557 something starting with __ and the normal name is an alias. */
19558 #if defined __stub_$ac_func || defined __stub___$ac_func
19565 return $ac_func ();
19570 rm -f conftest.$ac_objext conftest$ac_exeext
19571 if { (ac_try="$ac_link"
19572 case "(($ac_try" in
19573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574 *) ac_try_echo=$ac_try;;
19576 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19577 (eval "$ac_link") 2>conftest.er1
19579 grep -v '^ *+' conftest.er1 >conftest.err
19581 cat conftest.err >&5
19582 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19583 (exit $ac_status); } && {
19584 test -z "$ac_c_werror_flag" ||
19585 test ! -s conftest.err
19586 } && test -s conftest$ac_exeext &&
19587 $as_test_x conftest$ac_exeext; then
19588 eval "$as_ac_var=yes"
19590 echo "$as_me: failed program was
:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19593 eval "$as_ac_var=no
"
19596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19597 conftest$ac_exeext conftest.$ac_ext
19599 ac_res=`eval echo '${'$as_ac_var'}'`
19600 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19601 echo "${ECHO_T}$ac_res" >&6; }
19602 if test `eval echo '${'$as_ac_var'}'` = yes; then
19603 cat >>confdefs.h <<_ACEOF
19604 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19611 # PTY-related GNU extensions.
19613 for ac_func in getpt
19615 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19616 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19617 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19618 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19619 echo $ECHO_N "(cached
) $ECHO_C" >&6
19621 cat >conftest.$ac_ext <<_ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19629 #define $ac_func innocuous_$ac_func
19631 /* System header to define __stub macros and hopefully few prototypes,
19632 which can conflict with char $ac_func (); below.
19633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19634 <limits.h> exists even on freestanding compilers. */
19637 # include <limits.h>
19639 # include <assert.h>
19644 /* Override any GCC internal prototype to avoid an error.
19645 Use char because int might match the return type of a GCC
19646 builtin and then its argument prototype would still apply. */
19651 /* The GNU C library defines this for functions which it implements
19652 to always fail with ENOSYS. Some functions are actually named
19653 something starting with __ and the normal name is an alias. */
19654 #if defined __stub_$ac_func || defined __stub___$ac_func
19661 return $ac_func ();
19666 rm -f conftest.$ac_objext conftest$ac_exeext
19667 if { (ac_try="$ac_link"
19668 case "(($ac_try" in
19669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19670 *) ac_try_echo=$ac_try;;
19672 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19673 (eval "$ac_link") 2>conftest.er1
19675 grep -v '^ *+' conftest.er1 >conftest.err
19677 cat conftest.err >&5
19678 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19679 (exit $ac_status); } && {
19680 test -z "$ac_c_werror_flag" ||
19681 test ! -s conftest.err
19682 } && test -s conftest$ac_exeext &&
19683 $as_test_x conftest$ac_exeext; then
19684 eval "$as_ac_var=yes"
19686 echo "$as_me: failed program was
:" >&5
19687 sed 's/^/| /' conftest.$ac_ext >&5
19689 eval "$as_ac_var=no
"
19692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19693 conftest$ac_exeext conftest.$ac_ext
19695 ac_res=`eval echo '${'$as_ac_var'}'`
19696 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19697 echo "${ECHO_T}$ac_res" >&6; }
19698 if test `eval echo '${'$as_ac_var'}'` = yes; then
19699 cat >>confdefs.h <<_ACEOF
19700 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19707 # Check this now, so that we will NOT find the above functions in ncurses.
19708 # That is because we have not set up to link ncurses in lib-src.
19709 # It's better to believe a function is not available
19710 # than to expect to find it in ncurses.
19712 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19713 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19714 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19715 echo $ECHO_N "(cached
) $ECHO_C" >&6
19717 ac_check_lib_save_LIBS=$LIBS
19718 LIBS="-lncurses $LIBS"
19719 cat >conftest.$ac_ext <<_ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19726 /* Override any GCC internal prototype to avoid an error.
19727 Use char because int might match the return type of a GCC
19728 builtin and then its argument prototype would still apply. */
19741 rm -f conftest.$ac_objext conftest$ac_exeext
19742 if { (ac_try="$ac_link"
19743 case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19747 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_link") 2>conftest.er1
19750 grep -v '^ *+' conftest.er1 >conftest.err
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19754 (exit $ac_status); } && {
19755 test -z "$ac_c_werror_flag" ||
19756 test ! -s conftest.err
19757 } && test -s conftest$ac_exeext &&
19758 $as_test_x conftest$ac_exeext; then
19759 ac_cv_lib_ncurses_tparm=yes
19761 echo "$as_me: failed program was
:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19764 ac_cv_lib_ncurses_tparm=no
19767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19768 conftest$ac_exeext conftest.$ac_ext
19769 LIBS=$ac_check_lib_save_LIBS
19771 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19772 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19773 if test $ac_cv_lib_ncurses_tparm = yes; then
19774 cat >>confdefs.h <<_ACEOF
19775 #define HAVE_LIBNCURSES 1
19778 LIBS="-lncurses $LIBS"
19783 # Do we need the Hesiod library to provide the support routines?
19784 if test "$with_hesiod" = yes ; then
19785 # Don't set $LIBS here -- see comments above.
19787 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19788 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19789 if test "${ac_cv_func_res_send+set}" = set; then
19790 echo $ECHO_N "(cached
) $ECHO_C" >&6
19792 cat >conftest.$ac_ext <<_ACEOF
19795 cat confdefs.h >>conftest.$ac_ext
19796 cat >>conftest.$ac_ext <<_ACEOF
19797 /* end confdefs.h. */
19798 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19800 #define res_send innocuous_res_send
19802 /* System header to define __stub macros and hopefully few prototypes,
19803 which can conflict with char res_send (); below.
19804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19805 <limits.h> exists even on freestanding compilers. */
19808 # include <limits.h>
19810 # include <assert.h>
19815 /* Override any GCC internal prototype to avoid an error.
19816 Use char because int might match the return type of a GCC
19817 builtin and then its argument prototype would still apply. */
19822 /* The GNU C library defines this for functions which it implements
19823 to always fail with ENOSYS. Some functions are actually named
19824 something starting with __ and the normal name is an alias. */
19825 #if defined __stub_res_send || defined __stub___res_send
19832 return res_send ();
19837 rm -f conftest.$ac_objext conftest$ac_exeext
19838 if { (ac_try="$ac_link"
19839 case "(($ac_try" in
19840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841 *) ac_try_echo=$ac_try;;
19843 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19844 (eval "$ac_link") 2>conftest.er1
19846 grep -v '^ *+' conftest.er1 >conftest.err
19848 cat conftest.err >&5
19849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19850 (exit $ac_status); } && {
19851 test -z "$ac_c_werror_flag" ||
19852 test ! -s conftest.err
19853 } && test -s conftest$ac_exeext &&
19854 $as_test_x conftest$ac_exeext; then
19855 ac_cv_func_res_send=yes
19857 echo "$as_me: failed program was
:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19860 ac_cv_func_res_send=no
19863 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19864 conftest$ac_exeext conftest.$ac_ext
19866 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19867 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19868 if test $ac_cv_func_res_send = yes; then
19871 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19872 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19873 if test "${ac_cv_func___res_send+set}" = set; then
19874 echo $ECHO_N "(cached
) $ECHO_C" >&6
19876 cat >conftest.$ac_ext <<_ACEOF
19879 cat confdefs.h >>conftest.$ac_ext
19880 cat >>conftest.$ac_ext <<_ACEOF
19881 /* end confdefs.h. */
19882 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19883 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19884 #define __res_send innocuous___res_send
19886 /* System header to define __stub macros and hopefully few prototypes,
19887 which can conflict with char __res_send (); below.
19888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19889 <limits.h> exists even on freestanding compilers. */
19892 # include <limits.h>
19894 # include <assert.h>
19899 /* Override any GCC internal prototype to avoid an error.
19900 Use char because int might match the return type of a GCC
19901 builtin and then its argument prototype would still apply. */
19905 char __res_send ();
19906 /* The GNU C library defines this for functions which it implements
19907 to always fail with ENOSYS. Some functions are actually named
19908 something starting with __ and the normal name is an alias. */
19909 #if defined __stub___res_send || defined __stub_____res_send
19916 return __res_send ();
19921 rm -f conftest.$ac_objext conftest$ac_exeext
19922 if { (ac_try="$ac_link"
19923 case "(($ac_try" in
19924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19927 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_link") 2>conftest.er1
19930 grep -v '^ *+' conftest.er1 >conftest.err
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19934 (exit $ac_status); } && {
19935 test -z "$ac_c_werror_flag" ||
19936 test ! -s conftest.err
19937 } && test -s conftest$ac_exeext &&
19938 $as_test_x conftest$ac_exeext; then
19939 ac_cv_func___res_send=yes
19941 echo "$as_me: failed program was
:" >&5
19942 sed 's/^/| /' conftest.$ac_ext >&5
19944 ac_cv_func___res_send=no
19947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19948 conftest$ac_exeext conftest.$ac_ext
19950 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19951 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19952 if test $ac_cv_func___res_send = yes; then
19955 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19956 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19957 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19958 echo $ECHO_N "(cached
) $ECHO_C" >&6
19960 ac_check_lib_save_LIBS=$LIBS
19961 LIBS="-lresolv $LIBS"
19962 cat >conftest.$ac_ext <<_ACEOF
19965 cat confdefs.h >>conftest.$ac_ext
19966 cat >>conftest.$ac_ext <<_ACEOF
19967 /* end confdefs.h. */
19969 /* Override any GCC internal prototype to avoid an error.
19970 Use char because int might match the return type of a GCC
19971 builtin and then its argument prototype would still apply. */
19979 return res_send ();
19984 rm -f conftest.$ac_objext conftest$ac_exeext
19985 if { (ac_try="$ac_link"
19986 case "(($ac_try" in
19987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988 *) ac_try_echo=$ac_try;;
19990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19991 (eval "$ac_link") 2>conftest.er1
19993 grep -v '^ *+' conftest.er1 >conftest.err
19995 cat conftest.err >&5
19996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19997 (exit $ac_status); } && {
19998 test -z "$ac_c_werror_flag" ||
19999 test ! -s conftest.err
20000 } && test -s conftest$ac_exeext &&
20001 $as_test_x conftest$ac_exeext; then
20002 ac_cv_lib_resolv_res_send=yes
20004 echo "$as_me: failed program was
:" >&5
20005 sed 's/^/| /' conftest.$ac_ext >&5
20007 ac_cv_lib_resolv_res_send=no
20010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20011 conftest$ac_exeext conftest.$ac_ext
20012 LIBS=$ac_check_lib_save_LIBS
20014 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20015 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20016 if test $ac_cv_lib_resolv_res_send = yes; then
20019 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20020 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20021 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20022 echo $ECHO_N "(cached
) $ECHO_C" >&6
20024 ac_check_lib_save_LIBS=$LIBS
20025 LIBS="-lresolv $LIBS"
20026 cat >conftest.$ac_ext <<_ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20033 /* Override any GCC internal prototype to avoid an error.
20034 Use char because int might match the return type of a GCC
20035 builtin and then its argument prototype would still apply. */
20039 char __res_send ();
20043 return __res_send ();
20048 rm -f conftest.$ac_objext conftest$ac_exeext
20049 if { (ac_try="$ac_link"
20050 case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_link") 2>conftest.er1
20057 grep -v '^ *+' conftest.er1 >conftest.err
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20061 (exit $ac_status); } && {
20062 test -z "$ac_c_werror_flag" ||
20063 test ! -s conftest.err
20064 } && test -s conftest$ac_exeext &&
20065 $as_test_x conftest$ac_exeext; then
20066 ac_cv_lib_resolv___res_send=yes
20068 echo "$as_me: failed program was
:" >&5
20069 sed 's/^/| /' conftest.$ac_ext >&5
20071 ac_cv_lib_resolv___res_send=no
20074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20075 conftest$ac_exeext conftest.$ac_ext
20076 LIBS=$ac_check_lib_save_LIBS
20078 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20079 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20080 if test $ac_cv_lib_resolv___res_send = yes; then
20090 if test "$resolv" = yes ; then
20093 cat >>confdefs.h <<\_ACEOF
20094 #define HAVE_LIBRESOLV 1
20100 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20101 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20102 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20103 echo $ECHO_N "(cached
) $ECHO_C" >&6
20105 cat >conftest.$ac_ext <<_ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h. */
20111 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20113 #define hes_getmailhost innocuous_hes_getmailhost
20115 /* System header to define __stub macros and hopefully few prototypes,
20116 which can conflict with char hes_getmailhost (); below.
20117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20118 <limits.h> exists even on freestanding compilers. */
20121 # include <limits.h>
20123 # include <assert.h>
20126 #undef hes_getmailhost
20128 /* Override any GCC internal prototype to avoid an error.
20129 Use char because int might match the return type of a GCC
20130 builtin and then its argument prototype would still apply. */
20134 char hes_getmailhost ();
20135 /* The GNU C library defines this for functions which it implements
20136 to always fail with ENOSYS. Some functions are actually named
20137 something starting with __ and the normal name is an alias. */
20138 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20145 return hes_getmailhost ();
20150 rm -f conftest.$ac_objext conftest$ac_exeext
20151 if { (ac_try="$ac_link"
20152 case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20156 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_link") 2>conftest.er1
20159 grep -v '^ *+' conftest.er1 >conftest.err
20161 cat conftest.err >&5
20162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20163 (exit $ac_status); } && {
20164 test -z "$ac_c_werror_flag" ||
20165 test ! -s conftest.err
20166 } && test -s conftest$ac_exeext &&
20167 $as_test_x conftest$ac_exeext; then
20168 ac_cv_func_hes_getmailhost=yes
20170 echo "$as_me: failed program was
:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20173 ac_cv_func_hes_getmailhost=no
20176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20177 conftest$ac_exeext conftest.$ac_ext
20179 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20180 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20181 if test $ac_cv_func_hes_getmailhost = yes; then
20184 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20185 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20186 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20187 echo $ECHO_N "(cached
) $ECHO_C" >&6
20189 ac_check_lib_save_LIBS=$LIBS
20190 LIBS="-lhesiod $RESOLVLIB $LIBS"
20191 cat >conftest.$ac_ext <<_ACEOF
20194 cat confdefs.h >>conftest.$ac_ext
20195 cat >>conftest.$ac_ext <<_ACEOF
20196 /* end confdefs.h. */
20198 /* Override any GCC internal prototype to avoid an error.
20199 Use char because int might match the return type of a GCC
20200 builtin and then its argument prototype would still apply. */
20204 char hes_getmailhost ();
20208 return hes_getmailhost ();
20213 rm -f conftest.$ac_objext conftest$ac_exeext
20214 if { (ac_try="$ac_link"
20215 case "(($ac_try" in
20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217 *) ac_try_echo=$ac_try;;
20219 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20220 (eval "$ac_link") 2>conftest.er1
20222 grep -v '^ *+' conftest.er1 >conftest.err
20224 cat conftest.err >&5
20225 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20226 (exit $ac_status); } && {
20227 test -z "$ac_c_werror_flag" ||
20228 test ! -s conftest.err
20229 } && test -s conftest$ac_exeext &&
20230 $as_test_x conftest$ac_exeext; then
20231 ac_cv_lib_hesiod_hes_getmailhost=yes
20233 echo "$as_me: failed program was
:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20236 ac_cv_lib_hesiod_hes_getmailhost=no
20239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20240 conftest$ac_exeext conftest.$ac_ext
20241 LIBS=$ac_check_lib_save_LIBS
20243 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20244 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20245 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20247 cat >>confdefs.h <<\_ACEOF
20248 #define HAVE_LIBHESIOD 1
20259 # These tell us which Kerberos-related libraries to use.
20260 if test "${with_kerberos+set}" = set; then
20262 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20263 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20264 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20265 echo $ECHO_N "(cached
) $ECHO_C" >&6
20267 ac_check_lib_save_LIBS=$LIBS
20268 LIBS="-lcom_err $LIBS"
20269 cat >conftest.$ac_ext <<_ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20276 /* Override any GCC internal prototype to avoid an error.
20277 Use char because int might match the return type of a GCC
20278 builtin and then its argument prototype would still apply. */
20291 rm -f conftest.$ac_objext conftest$ac_exeext
20292 if { (ac_try="$ac_link"
20293 case "(($ac_try" in
20294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295 *) ac_try_echo=$ac_try;;
20297 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20298 (eval "$ac_link") 2>conftest.er1
20300 grep -v '^ *+' conftest.er1 >conftest.err
20302 cat conftest.err >&5
20303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20304 (exit $ac_status); } && {
20305 test -z "$ac_c_werror_flag" ||
20306 test ! -s conftest.err
20307 } && test -s conftest$ac_exeext &&
20308 $as_test_x conftest$ac_exeext; then
20309 ac_cv_lib_com_err_com_err=yes
20311 echo "$as_me: failed program was
:" >&5
20312 sed 's/^/| /' conftest.$ac_ext >&5
20314 ac_cv_lib_com_err_com_err=no
20317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20318 conftest$ac_exeext conftest.$ac_ext
20319 LIBS=$ac_check_lib_save_LIBS
20321 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20322 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20323 if test $ac_cv_lib_com_err_com_err = yes; then
20324 cat >>confdefs.h <<_ACEOF
20325 #define HAVE_LIBCOM_ERR 1
20328 LIBS="-lcom_err $LIBS"
20333 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20334 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20335 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20336 echo $ECHO_N "(cached
) $ECHO_C" >&6
20338 ac_check_lib_save_LIBS=$LIBS
20339 LIBS="-lk5crypto $LIBS"
20340 cat >conftest.$ac_ext <<_ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h. */
20347 /* Override any GCC internal prototype to avoid an error.
20348 Use char because int might match the return type of a GCC
20349 builtin and then its argument prototype would still apply. */
20353 char mit_des_cbc_encrypt ();
20357 return mit_des_cbc_encrypt ();
20362 rm -f conftest.$ac_objext conftest$ac_exeext
20363 if { (ac_try="$ac_link"
20364 case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20369 (eval "$ac_link") 2>conftest.er1
20371 grep -v '^ *+' conftest.er1 >conftest.err
20373 cat conftest.err >&5
20374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20375 (exit $ac_status); } && {
20376 test -z "$ac_c_werror_flag" ||
20377 test ! -s conftest.err
20378 } && test -s conftest$ac_exeext &&
20379 $as_test_x conftest$ac_exeext; then
20380 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20382 echo "$as_me: failed program was
:" >&5
20383 sed 's/^/| /' conftest.$ac_ext >&5
20385 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20389 conftest$ac_exeext conftest.$ac_ext
20390 LIBS=$ac_check_lib_save_LIBS
20392 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20393 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20394 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20395 cat >>confdefs.h <<_ACEOF
20396 #define HAVE_LIBK5CRYPTO 1
20399 LIBS="-lk5crypto $LIBS"
20404 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20405 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20406 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20407 echo $ECHO_N "(cached
) $ECHO_C" >&6
20409 ac_check_lib_save_LIBS=$LIBS
20410 LIBS="-lcrypto $LIBS"
20411 cat >conftest.$ac_ext <<_ACEOF
20414 cat confdefs.h >>conftest.$ac_ext
20415 cat >>conftest.$ac_ext <<_ACEOF
20416 /* end confdefs.h. */
20418 /* Override any GCC internal prototype to avoid an error.
20419 Use char because int might match the return type of a GCC
20420 builtin and then its argument prototype would still apply. */
20424 char mit_des_cbc_encrypt ();
20428 return mit_des_cbc_encrypt ();
20433 rm -f conftest.$ac_objext conftest$ac_exeext
20434 if { (ac_try="$ac_link"
20435 case "(($ac_try" in
20436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437 *) ac_try_echo=$ac_try;;
20439 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20440 (eval "$ac_link") 2>conftest.er1
20442 grep -v '^ *+' conftest.er1 >conftest.err
20444 cat conftest.err >&5
20445 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20446 (exit $ac_status); } && {
20447 test -z "$ac_c_werror_flag" ||
20448 test ! -s conftest.err
20449 } && test -s conftest$ac_exeext &&
20450 $as_test_x conftest$ac_exeext; then
20451 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20453 echo "$as_me: failed program was
:" >&5
20454 sed 's/^/| /' conftest.$ac_ext >&5
20456 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20459 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20460 conftest$ac_exeext conftest.$ac_ext
20461 LIBS=$ac_check_lib_save_LIBS
20463 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20464 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20465 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20466 cat >>confdefs.h <<_ACEOF
20467 #define HAVE_LIBCRYPTO 1
20470 LIBS="-lcrypto $LIBS"
20475 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20476 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20477 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20478 echo $ECHO_N "(cached
) $ECHO_C" >&6
20480 ac_check_lib_save_LIBS=$LIBS
20481 LIBS="-lkrb5 $LIBS"
20482 cat >conftest.$ac_ext <<_ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h. */
20489 /* Override any GCC internal prototype to avoid an error.
20490 Use char because int might match the return type of a GCC
20491 builtin and then its argument prototype would still apply. */
20495 char krb5_init_context ();
20499 return krb5_init_context ();
20504 rm -f conftest.$ac_objext conftest$ac_exeext
20505 if { (ac_try="$ac_link"
20506 case "(($ac_try" in
20507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20508 *) ac_try_echo=$ac_try;;
20510 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20511 (eval "$ac_link") 2>conftest.er1
20513 grep -v '^ *+' conftest.er1 >conftest.err
20515 cat conftest.err >&5
20516 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20517 (exit $ac_status); } && {
20518 test -z "$ac_c_werror_flag" ||
20519 test ! -s conftest.err
20520 } && test -s conftest$ac_exeext &&
20521 $as_test_x conftest$ac_exeext; then
20522 ac_cv_lib_krb5_krb5_init_context=yes
20524 echo "$as_me: failed program was
:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20527 ac_cv_lib_krb5_krb5_init_context=no
20530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20531 conftest$ac_exeext conftest.$ac_ext
20532 LIBS=$ac_check_lib_save_LIBS
20534 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20535 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20536 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20537 cat >>confdefs.h <<_ACEOF
20538 #define HAVE_LIBKRB5 1
20541 LIBS="-lkrb5 $LIBS"
20545 if test "${with_kerberos5+set}" != set; then
20547 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20548 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20549 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20550 echo $ECHO_N "(cached
) $ECHO_C" >&6
20552 ac_check_lib_save_LIBS=$LIBS
20553 LIBS="-ldes425 $LIBS"
20554 cat >conftest.$ac_ext <<_ACEOF
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h. */
20561 /* Override any GCC internal prototype to avoid an error.
20562 Use char because int might match the return type of a GCC
20563 builtin and then its argument prototype would still apply. */
20567 char des_cbc_encrypt ();
20571 return des_cbc_encrypt ();
20576 rm -f conftest.$ac_objext conftest$ac_exeext
20577 if { (ac_try="$ac_link"
20578 case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_link") 2>conftest.er1
20585 grep -v '^ *+' conftest.er1 >conftest.err
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20589 (exit $ac_status); } && {
20590 test -z "$ac_c_werror_flag" ||
20591 test ! -s conftest.err
20592 } && test -s conftest$ac_exeext &&
20593 $as_test_x conftest$ac_exeext; then
20594 ac_cv_lib_des425_des_cbc_encrypt=yes
20596 echo "$as_me: failed program was
:" >&5
20597 sed 's/^/| /' conftest.$ac_ext >&5
20599 ac_cv_lib_des425_des_cbc_encrypt=no
20602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20603 conftest$ac_exeext conftest.$ac_ext
20604 LIBS=$ac_check_lib_save_LIBS
20606 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20607 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20608 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20609 cat >>confdefs.h <<_ACEOF
20610 #define HAVE_LIBDES425 1
20613 LIBS="-ldes425 $LIBS"
20617 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20618 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20619 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20620 echo $ECHO_N "(cached
) $ECHO_C" >&6
20622 ac_check_lib_save_LIBS=$LIBS
20624 cat >conftest.$ac_ext <<_ACEOF
20627 cat confdefs.h >>conftest.$ac_ext
20628 cat >>conftest.$ac_ext <<_ACEOF
20629 /* end confdefs.h. */
20631 /* Override any GCC internal prototype to avoid an error.
20632 Use char because int might match the return type of a GCC
20633 builtin and then its argument prototype would still apply. */
20637 char des_cbc_encrypt ();
20641 return des_cbc_encrypt ();
20646 rm -f conftest.$ac_objext conftest$ac_exeext
20647 if { (ac_try="$ac_link"
20648 case "(($ac_try" in
20649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650 *) ac_try_echo=$ac_try;;
20652 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20653 (eval "$ac_link") 2>conftest.er1
20655 grep -v '^ *+' conftest.er1 >conftest.err
20657 cat conftest.err >&5
20658 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20659 (exit $ac_status); } && {
20660 test -z "$ac_c_werror_flag" ||
20661 test ! -s conftest.err
20662 } && test -s conftest$ac_exeext &&
20663 $as_test_x conftest$ac_exeext; then
20664 ac_cv_lib_des_des_cbc_encrypt=yes
20666 echo "$as_me: failed program was
:" >&5
20667 sed 's/^/| /' conftest.$ac_ext >&5
20669 ac_cv_lib_des_des_cbc_encrypt=no
20672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20673 conftest$ac_exeext conftest.$ac_ext
20674 LIBS=$ac_check_lib_save_LIBS
20676 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20677 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20678 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20679 cat >>confdefs.h <<_ACEOF
20680 #define HAVE_LIBDES 1
20690 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20691 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20692 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20693 echo $ECHO_N "(cached
) $ECHO_C" >&6
20695 ac_check_lib_save_LIBS=$LIBS
20696 LIBS="-lkrb4 $LIBS"
20697 cat >conftest.$ac_ext <<_ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h. */
20704 /* Override any GCC internal prototype to avoid an error.
20705 Use char because int might match the return type of a GCC
20706 builtin and then its argument prototype would still apply. */
20710 char krb_get_cred ();
20714 return krb_get_cred ();
20719 rm -f conftest.$ac_objext conftest$ac_exeext
20720 if { (ac_try="$ac_link"
20721 case "(($ac_try" in
20722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20723 *) ac_try_echo=$ac_try;;
20725 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20726 (eval "$ac_link") 2>conftest.er1
20728 grep -v '^ *+' conftest.er1 >conftest.err
20730 cat conftest.err >&5
20731 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20732 (exit $ac_status); } && {
20733 test -z "$ac_c_werror_flag" ||
20734 test ! -s conftest.err
20735 } && test -s conftest$ac_exeext &&
20736 $as_test_x conftest$ac_exeext; then
20737 ac_cv_lib_krb4_krb_get_cred=yes
20739 echo "$as_me: failed program was
:" >&5
20740 sed 's/^/| /' conftest.$ac_ext >&5
20742 ac_cv_lib_krb4_krb_get_cred=no
20745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20746 conftest$ac_exeext conftest.$ac_ext
20747 LIBS=$ac_check_lib_save_LIBS
20749 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20750 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20751 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20752 cat >>confdefs.h <<_ACEOF
20753 #define HAVE_LIBKRB4 1
20756 LIBS="-lkrb4 $LIBS"
20760 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20761 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20762 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20763 echo $ECHO_N "(cached
) $ECHO_C" >&6
20765 ac_check_lib_save_LIBS=$LIBS
20767 cat >conftest.$ac_ext <<_ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h. */
20774 /* Override any GCC internal prototype to avoid an error.
20775 Use char because int might match the return type of a GCC
20776 builtin and then its argument prototype would still apply. */
20780 char krb_get_cred ();
20784 return krb_get_cred ();
20789 rm -f conftest.$ac_objext conftest$ac_exeext
20790 if { (ac_try="$ac_link"
20791 case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20795 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20796 (eval "$ac_link") 2>conftest.er1
20798 grep -v '^ *+' conftest.er1 >conftest.err
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20802 (exit $ac_status); } && {
20803 test -z "$ac_c_werror_flag" ||
20804 test ! -s conftest.err
20805 } && test -s conftest$ac_exeext &&
20806 $as_test_x conftest$ac_exeext; then
20807 ac_cv_lib_krb_krb_get_cred=yes
20809 echo "$as_me: failed program was
:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20812 ac_cv_lib_krb_krb_get_cred=no
20815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20816 conftest$ac_exeext conftest.$ac_ext
20817 LIBS=$ac_check_lib_save_LIBS
20819 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20820 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20821 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20822 cat >>confdefs.h <<_ACEOF
20823 #define HAVE_LIBKRB 1
20834 if test "${with_kerberos5+set}" = set; then
20836 for ac_header in krb5.h
20838 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20839 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20840 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20841 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20842 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20843 echo $ECHO_N "(cached
) $ECHO_C" >&6
20845 ac_res=`eval echo '${'$as_ac_Header'}'`
20846 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20847 echo "${ECHO_T}$ac_res" >&6; }
20849 # Is the header compilable?
20850 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20851 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20852 cat >conftest.$ac_ext <<_ACEOF
20855 cat confdefs.h >>conftest.$ac_ext
20856 cat >>conftest.$ac_ext <<_ACEOF
20857 /* end confdefs.h. */
20858 $ac_includes_default
20859 #include <$ac_header>
20861 rm -f conftest.$ac_objext
20862 if { (ac_try="$ac_compile"
20863 case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20867 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_compile") 2>conftest.er1
20870 grep -v '^ *+' conftest.er1 >conftest.err
20872 cat conftest.err >&5
20873 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20874 (exit $ac_status); } && {
20875 test -z "$ac_c_werror_flag" ||
20876 test ! -s conftest.err
20877 } && test -s conftest.$ac_objext; then
20878 ac_header_compiler=yes
20880 echo "$as_me: failed program was
:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20883 ac_header_compiler=no
20886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20887 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20888 echo "${ECHO_T}$ac_header_compiler" >&6; }
20890 # Is the header present?
20891 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20892 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20893 cat >conftest.$ac_ext <<_ACEOF
20896 cat confdefs.h >>conftest.$ac_ext
20897 cat >>conftest.$ac_ext <<_ACEOF
20898 /* end confdefs.h. */
20899 #include <$ac_header>
20901 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20902 case "(($ac_try" in
20903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904 *) ac_try_echo=$ac_try;;
20906 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20907 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20909 grep -v '^ *+' conftest.er1 >conftest.err
20911 cat conftest.err >&5
20912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20913 (exit $ac_status); } >/dev/null && {
20914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20915 test ! -s conftest.err
20917 ac_header_preproc=yes
20919 echo "$as_me: failed program was
:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20922 ac_header_preproc=no
20925 rm -f conftest.err conftest.$ac_ext
20926 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20927 echo "${ECHO_T}$ac_header_preproc" >&6; }
20929 # So? What about this header?
20930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20932 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20933 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20934 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20936 ac_header_preproc=yes
20939 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20940 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20941 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20942 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20943 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20944 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20945 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20946 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20947 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20949 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20950 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20954 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20955 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20956 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20957 echo $ECHO_N "(cached
) $ECHO_C" >&6
20959 eval "$as_ac_Header=\
$ac_header_preproc"
20961 ac_res=`eval echo '${'$as_ac_Header'}'`
20962 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20963 echo "${ECHO_T}$ac_res" >&6; }
20966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20967 cat >>confdefs.h <<_ACEOF
20968 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20977 for ac_header in des.h
20979 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20980 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20981 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20982 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20983 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20984 echo $ECHO_N "(cached
) $ECHO_C" >&6
20986 ac_res=`eval echo '${'$as_ac_Header'}'`
20987 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20988 echo "${ECHO_T}$ac_res" >&6; }
20990 # Is the header compilable?
20991 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20992 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20993 cat >conftest.$ac_ext <<_ACEOF
20996 cat confdefs.h >>conftest.$ac_ext
20997 cat >>conftest.$ac_ext <<_ACEOF
20998 /* end confdefs.h. */
20999 $ac_includes_default
21000 #include <$ac_header>
21002 rm -f conftest.$ac_objext
21003 if { (ac_try="$ac_compile"
21004 case "(($ac_try" in
21005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21006 *) ac_try_echo=$ac_try;;
21008 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21009 (eval "$ac_compile") 2>conftest.er1
21011 grep -v '^ *+' conftest.er1 >conftest.err
21013 cat conftest.err >&5
21014 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21015 (exit $ac_status); } && {
21016 test -z "$ac_c_werror_flag" ||
21017 test ! -s conftest.err
21018 } && test -s conftest.$ac_objext; then
21019 ac_header_compiler=yes
21021 echo "$as_me: failed program was
:" >&5
21022 sed 's/^/| /' conftest.$ac_ext >&5
21024 ac_header_compiler=no
21027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21028 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21029 echo "${ECHO_T}$ac_header_compiler" >&6; }
21031 # Is the header present?
21032 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21033 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21034 cat >conftest.$ac_ext <<_ACEOF
21037 cat confdefs.h >>conftest.$ac_ext
21038 cat >>conftest.$ac_ext <<_ACEOF
21039 /* end confdefs.h. */
21040 #include <$ac_header>
21042 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21043 case "(($ac_try" in
21044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045 *) ac_try_echo=$ac_try;;
21047 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21048 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21050 grep -v '^ *+' conftest.er1 >conftest.err
21052 cat conftest.err >&5
21053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21054 (exit $ac_status); } >/dev/null && {
21055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21056 test ! -s conftest.err
21058 ac_header_preproc=yes
21060 echo "$as_me: failed program was
:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21063 ac_header_preproc=no
21066 rm -f conftest.err conftest.$ac_ext
21067 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21068 echo "${ECHO_T}$ac_header_preproc" >&6; }
21070 # So? What about this header?
21071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21073 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21074 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21075 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21076 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21077 ac_header_preproc=yes
21080 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21081 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21082 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21083 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21084 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21085 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21086 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21087 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21088 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21089 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21090 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21091 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21095 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21096 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21097 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21098 echo $ECHO_N "(cached
) $ECHO_C" >&6
21100 eval "$as_ac_Header=\
$ac_header_preproc"
21102 ac_res=`eval echo '${'$as_ac_Header'}'`
21103 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21104 echo "${ECHO_T}$ac_res" >&6; }
21107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21108 cat >>confdefs.h <<_ACEOF
21109 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21114 for ac_header in kerberosIV/des.h
21116 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21117 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21118 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21119 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21120 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21121 echo $ECHO_N "(cached
) $ECHO_C" >&6
21123 ac_res=`eval echo '${'$as_ac_Header'}'`
21124 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21125 echo "${ECHO_T}$ac_res" >&6; }
21127 # Is the header compilable?
21128 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21129 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21130 cat >conftest.$ac_ext <<_ACEOF
21133 cat confdefs.h >>conftest.$ac_ext
21134 cat >>conftest.$ac_ext <<_ACEOF
21135 /* end confdefs.h. */
21136 $ac_includes_default
21137 #include <$ac_header>
21139 rm -f conftest.$ac_objext
21140 if { (ac_try="$ac_compile"
21141 case "(($ac_try" in
21142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21143 *) ac_try_echo=$ac_try;;
21145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21146 (eval "$ac_compile") 2>conftest.er1
21148 grep -v '^ *+' conftest.er1 >conftest.err
21150 cat conftest.err >&5
21151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21152 (exit $ac_status); } && {
21153 test -z "$ac_c_werror_flag" ||
21154 test ! -s conftest.err
21155 } && test -s conftest.$ac_objext; then
21156 ac_header_compiler=yes
21158 echo "$as_me: failed program was
:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21161 ac_header_compiler=no
21164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21165 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21166 echo "${ECHO_T}$ac_header_compiler" >&6; }
21168 # Is the header present?
21169 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21170 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21171 cat >conftest.$ac_ext <<_ACEOF
21174 cat confdefs.h >>conftest.$ac_ext
21175 cat >>conftest.$ac_ext <<_ACEOF
21176 /* end confdefs.h. */
21177 #include <$ac_header>
21179 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21180 case "(($ac_try" in
21181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182 *) ac_try_echo=$ac_try;;
21184 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21185 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21187 grep -v '^ *+' conftest.er1 >conftest.err
21189 cat conftest.err >&5
21190 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21191 (exit $ac_status); } >/dev/null && {
21192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21193 test ! -s conftest.err
21195 ac_header_preproc=yes
21197 echo "$as_me: failed program was
:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21200 ac_header_preproc=no
21203 rm -f conftest.err conftest.$ac_ext
21204 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21205 echo "${ECHO_T}$ac_header_preproc" >&6; }
21207 # So? What about this header?
21208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21210 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21211 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21212 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21214 ac_header_preproc=yes
21217 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21218 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21219 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21220 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21221 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21222 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21223 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21224 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21225 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21227 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21228 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21232 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21233 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21234 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21235 echo $ECHO_N "(cached
) $ECHO_C" >&6
21237 eval "$as_ac_Header=\
$ac_header_preproc"
21239 ac_res=`eval echo '${'$as_ac_Header'}'`
21240 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21241 echo "${ECHO_T}$ac_res" >&6; }
21244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21245 cat >>confdefs.h <<_ACEOF
21246 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21251 for ac_header in kerberos/des.h
21253 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21254 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21255 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21256 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21257 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21258 echo $ECHO_N "(cached
) $ECHO_C" >&6
21260 ac_res=`eval echo '${'$as_ac_Header'}'`
21261 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21262 echo "${ECHO_T}$ac_res" >&6; }
21264 # Is the header compilable?
21265 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21266 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21267 cat >conftest.$ac_ext <<_ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21273 $ac_includes_default
21274 #include <$ac_header>
21276 rm -f conftest.$ac_objext
21277 if { (ac_try="$ac_compile"
21278 case "(($ac_try" in
21279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21280 *) ac_try_echo=$ac_try;;
21282 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21283 (eval "$ac_compile") 2>conftest.er1
21285 grep -v '^ *+' conftest.er1 >conftest.err
21287 cat conftest.err >&5
21288 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21289 (exit $ac_status); } && {
21290 test -z "$ac_c_werror_flag" ||
21291 test ! -s conftest.err
21292 } && test -s conftest.$ac_objext; then
21293 ac_header_compiler=yes
21295 echo "$as_me: failed program was
:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21298 ac_header_compiler=no
21301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21302 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21303 echo "${ECHO_T}$ac_header_compiler" >&6; }
21305 # Is the header present?
21306 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21307 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21308 cat >conftest.$ac_ext <<_ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h. */
21314 #include <$ac_header>
21316 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21317 case "(($ac_try" in
21318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21319 *) ac_try_echo=$ac_try;;
21321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21322 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21324 grep -v '^ *+' conftest.er1 >conftest.err
21326 cat conftest.err >&5
21327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21328 (exit $ac_status); } >/dev/null && {
21329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21330 test ! -s conftest.err
21332 ac_header_preproc=yes
21334 echo "$as_me: failed program was
:" >&5
21335 sed 's/^/| /' conftest.$ac_ext >&5
21337 ac_header_preproc=no
21340 rm -f conftest.err conftest.$ac_ext
21341 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21342 echo "${ECHO_T}$ac_header_preproc" >&6; }
21344 # So? What about this header?
21345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21347 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21348 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21349 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21351 ac_header_preproc=yes
21354 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21355 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21356 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21357 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21358 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21359 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21360 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21361 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21362 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21364 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21365 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21369 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21370 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21371 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21372 echo $ECHO_N "(cached
) $ECHO_C" >&6
21374 eval "$as_ac_Header=\
$ac_header_preproc"
21376 ac_res=`eval echo '${'$as_ac_Header'}'`
21377 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21378 echo "${ECHO_T}$ac_res" >&6; }
21381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21382 cat >>confdefs.h <<_ACEOF
21383 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21399 for ac_header in krb.h
21401 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21402 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21403 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21404 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21405 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21406 echo $ECHO_N "(cached
) $ECHO_C" >&6
21408 ac_res=`eval echo '${'$as_ac_Header'}'`
21409 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21410 echo "${ECHO_T}$ac_res" >&6; }
21412 # Is the header compilable?
21413 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21414 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21415 cat >conftest.$ac_ext <<_ACEOF
21418 cat confdefs.h >>conftest.$ac_ext
21419 cat >>conftest.$ac_ext <<_ACEOF
21420 /* end confdefs.h. */
21421 $ac_includes_default
21422 #include <$ac_header>
21424 rm -f conftest.$ac_objext
21425 if { (ac_try="$ac_compile"
21426 case "(($ac_try" in
21427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21428 *) ac_try_echo=$ac_try;;
21430 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21431 (eval "$ac_compile") 2>conftest.er1
21433 grep -v '^ *+' conftest.er1 >conftest.err
21435 cat conftest.err >&5
21436 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21437 (exit $ac_status); } && {
21438 test -z "$ac_c_werror_flag" ||
21439 test ! -s conftest.err
21440 } && test -s conftest.$ac_objext; then
21441 ac_header_compiler=yes
21443 echo "$as_me: failed program was
:" >&5
21444 sed 's/^/| /' conftest.$ac_ext >&5
21446 ac_header_compiler=no
21449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21450 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21451 echo "${ECHO_T}$ac_header_compiler" >&6; }
21453 # Is the header present?
21454 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21455 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21456 cat >conftest.$ac_ext <<_ACEOF
21459 cat confdefs.h >>conftest.$ac_ext
21460 cat >>conftest.$ac_ext <<_ACEOF
21461 /* end confdefs.h. */
21462 #include <$ac_header>
21464 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21465 case "(($ac_try" in
21466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21467 *) ac_try_echo=$ac_try;;
21469 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21470 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21472 grep -v '^ *+' conftest.er1 >conftest.err
21474 cat conftest.err >&5
21475 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21476 (exit $ac_status); } >/dev/null && {
21477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21478 test ! -s conftest.err
21480 ac_header_preproc=yes
21482 echo "$as_me: failed program was
:" >&5
21483 sed 's/^/| /' conftest.$ac_ext >&5
21485 ac_header_preproc=no
21488 rm -f conftest.err conftest.$ac_ext
21489 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21490 echo "${ECHO_T}$ac_header_preproc" >&6; }
21492 # So? What about this header?
21493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21495 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21496 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21497 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21499 ac_header_preproc=yes
21502 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21503 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21504 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21505 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21506 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21507 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21508 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21509 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21510 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21512 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21513 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21517 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21518 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21519 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21520 echo $ECHO_N "(cached
) $ECHO_C" >&6
21522 eval "$as_ac_Header=\
$ac_header_preproc"
21524 ac_res=`eval echo '${'$as_ac_Header'}'`
21525 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21526 echo "${ECHO_T}$ac_res" >&6; }
21529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21530 cat >>confdefs.h <<_ACEOF
21531 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21536 for ac_header in kerberosIV/krb.h
21538 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21539 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21540 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21541 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21542 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21543 echo $ECHO_N "(cached
) $ECHO_C" >&6
21545 ac_res=`eval echo '${'$as_ac_Header'}'`
21546 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21547 echo "${ECHO_T}$ac_res" >&6; }
21549 # Is the header compilable?
21550 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21551 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21552 cat >conftest.$ac_ext <<_ACEOF
21555 cat confdefs.h >>conftest.$ac_ext
21556 cat >>conftest.$ac_ext <<_ACEOF
21557 /* end confdefs.h. */
21558 $ac_includes_default
21559 #include <$ac_header>
21561 rm -f conftest.$ac_objext
21562 if { (ac_try="$ac_compile"
21563 case "(($ac_try" in
21564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21565 *) ac_try_echo=$ac_try;;
21567 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21568 (eval "$ac_compile") 2>conftest.er1
21570 grep -v '^ *+' conftest.er1 >conftest.err
21572 cat conftest.err >&5
21573 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21574 (exit $ac_status); } && {
21575 test -z "$ac_c_werror_flag" ||
21576 test ! -s conftest.err
21577 } && test -s conftest.$ac_objext; then
21578 ac_header_compiler=yes
21580 echo "$as_me: failed program was
:" >&5
21581 sed 's/^/| /' conftest.$ac_ext >&5
21583 ac_header_compiler=no
21586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21587 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21588 echo "${ECHO_T}$ac_header_compiler" >&6; }
21590 # Is the header present?
21591 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21592 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21593 cat >conftest.$ac_ext <<_ACEOF
21596 cat confdefs.h >>conftest.$ac_ext
21597 cat >>conftest.$ac_ext <<_ACEOF
21598 /* end confdefs.h. */
21599 #include <$ac_header>
21601 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21602 case "(($ac_try" in
21603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21604 *) ac_try_echo=$ac_try;;
21606 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21607 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21609 grep -v '^ *+' conftest.er1 >conftest.err
21611 cat conftest.err >&5
21612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21613 (exit $ac_status); } >/dev/null && {
21614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21615 test ! -s conftest.err
21617 ac_header_preproc=yes
21619 echo "$as_me: failed program was
:" >&5
21620 sed 's/^/| /' conftest.$ac_ext >&5
21622 ac_header_preproc=no
21625 rm -f conftest.err conftest.$ac_ext
21626 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21627 echo "${ECHO_T}$ac_header_preproc" >&6; }
21629 # So? What about this header?
21630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21632 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21633 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21634 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21636 ac_header_preproc=yes
21639 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21640 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21641 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21642 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21643 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21644 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21645 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21646 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21647 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21649 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21650 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21654 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21655 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21656 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21657 echo $ECHO_N "(cached
) $ECHO_C" >&6
21659 eval "$as_ac_Header=\
$ac_header_preproc"
21661 ac_res=`eval echo '${'$as_ac_Header'}'`
21662 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21663 echo "${ECHO_T}$ac_res" >&6; }
21666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21667 cat >>confdefs.h <<_ACEOF
21668 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21673 for ac_header in kerberos/krb.h
21675 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21676 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21677 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21678 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21679 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21680 echo $ECHO_N "(cached
) $ECHO_C" >&6
21682 ac_res=`eval echo '${'$as_ac_Header'}'`
21683 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21684 echo "${ECHO_T}$ac_res" >&6; }
21686 # Is the header compilable?
21687 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21688 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21689 cat >conftest.$ac_ext <<_ACEOF
21692 cat confdefs.h >>conftest.$ac_ext
21693 cat >>conftest.$ac_ext <<_ACEOF
21694 /* end confdefs.h. */
21695 $ac_includes_default
21696 #include <$ac_header>
21698 rm -f conftest.$ac_objext
21699 if { (ac_try="$ac_compile"
21700 case "(($ac_try" in
21701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702 *) ac_try_echo=$ac_try;;
21704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21705 (eval "$ac_compile") 2>conftest.er1
21707 grep -v '^ *+' conftest.er1 >conftest.err
21709 cat conftest.err >&5
21710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21711 (exit $ac_status); } && {
21712 test -z "$ac_c_werror_flag" ||
21713 test ! -s conftest.err
21714 } && test -s conftest.$ac_objext; then
21715 ac_header_compiler=yes
21717 echo "$as_me: failed program was
:" >&5
21718 sed 's/^/| /' conftest.$ac_ext >&5
21720 ac_header_compiler=no
21723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21724 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21725 echo "${ECHO_T}$ac_header_compiler" >&6; }
21727 # Is the header present?
21728 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21729 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21730 cat >conftest.$ac_ext <<_ACEOF
21733 cat confdefs.h >>conftest.$ac_ext
21734 cat >>conftest.$ac_ext <<_ACEOF
21735 /* end confdefs.h. */
21736 #include <$ac_header>
21738 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21739 case "(($ac_try" in
21740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21741 *) ac_try_echo=$ac_try;;
21743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21744 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21746 grep -v '^ *+' conftest.er1 >conftest.err
21748 cat conftest.err >&5
21749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21750 (exit $ac_status); } >/dev/null && {
21751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21752 test ! -s conftest.err
21754 ac_header_preproc=yes
21756 echo "$as_me: failed program was
:" >&5
21757 sed 's/^/| /' conftest.$ac_ext >&5
21759 ac_header_preproc=no
21762 rm -f conftest.err conftest.$ac_ext
21763 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21764 echo "${ECHO_T}$ac_header_preproc" >&6; }
21766 # So? What about this header?
21767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21769 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21770 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21771 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21773 ac_header_preproc=yes
21776 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21777 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21778 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21779 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21780 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21781 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21782 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21783 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21784 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21786 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21787 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21791 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21792 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21793 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21794 echo $ECHO_N "(cached
) $ECHO_C" >&6
21796 eval "$as_ac_Header=\
$ac_header_preproc"
21798 ac_res=`eval echo '${'$as_ac_Header'}'`
21799 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21800 echo "${ECHO_T}$ac_res" >&6; }
21803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21804 cat >>confdefs.h <<_ACEOF
21805 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21822 for ac_header in com_err.h
21824 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21825 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21826 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21827 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21828 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21829 echo $ECHO_N "(cached
) $ECHO_C" >&6
21831 ac_res=`eval echo '${'$as_ac_Header'}'`
21832 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21833 echo "${ECHO_T}$ac_res" >&6; }
21835 # Is the header compilable?
21836 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21837 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21838 cat >conftest.$ac_ext <<_ACEOF
21841 cat confdefs.h >>conftest.$ac_ext
21842 cat >>conftest.$ac_ext <<_ACEOF
21843 /* end confdefs.h. */
21844 $ac_includes_default
21845 #include <$ac_header>
21847 rm -f conftest.$ac_objext
21848 if { (ac_try="$ac_compile"
21849 case "(($ac_try" in
21850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851 *) ac_try_echo=$ac_try;;
21853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21854 (eval "$ac_compile") 2>conftest.er1
21856 grep -v '^ *+' conftest.er1 >conftest.err
21858 cat conftest.err >&5
21859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21860 (exit $ac_status); } && {
21861 test -z "$ac_c_werror_flag" ||
21862 test ! -s conftest.err
21863 } && test -s conftest.$ac_objext; then
21864 ac_header_compiler=yes
21866 echo "$as_me: failed program was
:" >&5
21867 sed 's/^/| /' conftest.$ac_ext >&5
21869 ac_header_compiler=no
21872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21873 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21874 echo "${ECHO_T}$ac_header_compiler" >&6; }
21876 # Is the header present?
21877 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21878 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21879 cat >conftest.$ac_ext <<_ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h. */
21885 #include <$ac_header>
21887 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21888 case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21893 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21895 grep -v '^ *+' conftest.er1 >conftest.err
21897 cat conftest.err >&5
21898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21899 (exit $ac_status); } >/dev/null && {
21900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21901 test ! -s conftest.err
21903 ac_header_preproc=yes
21905 echo "$as_me: failed program was
:" >&5
21906 sed 's/^/| /' conftest.$ac_ext >&5
21908 ac_header_preproc=no
21911 rm -f conftest.err conftest.$ac_ext
21912 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21913 echo "${ECHO_T}$ac_header_preproc" >&6; }
21915 # So? What about this header?
21916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21918 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21919 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21920 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21922 ac_header_preproc=yes
21925 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21926 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21927 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21928 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21929 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21930 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21931 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21932 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21933 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21935 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21936 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21940 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21941 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21942 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21943 echo $ECHO_N "(cached
) $ECHO_C" >&6
21945 eval "$as_ac_Header=\
$ac_header_preproc"
21947 ac_res=`eval echo '${'$as_ac_Header'}'`
21948 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21949 echo "${ECHO_T}$ac_res" >&6; }
21952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21953 cat >>confdefs.h <<_ACEOF
21954 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21963 # Solaris requires -lintl if you want strerror (which calls dgettext)
21964 # to return localized messages.
21966 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21967 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21968 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21969 echo $ECHO_N "(cached
) $ECHO_C" >&6
21971 ac_check_lib_save_LIBS=$LIBS
21972 LIBS="-lintl $LIBS"
21973 cat >conftest.$ac_ext <<_ACEOF
21976 cat confdefs.h >>conftest.$ac_ext
21977 cat >>conftest.$ac_ext <<_ACEOF
21978 /* end confdefs.h. */
21980 /* Override any GCC internal prototype to avoid an error.
21981 Use char because int might match the return type of a GCC
21982 builtin and then its argument prototype would still apply. */
21990 return dgettext ();
21995 rm -f conftest.$ac_objext conftest$ac_exeext
21996 if { (ac_try="$ac_link"
21997 case "(($ac_try" in
21998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21999 *) ac_try_echo=$ac_try;;
22001 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22002 (eval "$ac_link") 2>conftest.er1
22004 grep -v '^ *+' conftest.er1 >conftest.err
22006 cat conftest.err >&5
22007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22008 (exit $ac_status); } && {
22009 test -z "$ac_c_werror_flag" ||
22010 test ! -s conftest.err
22011 } && test -s conftest$ac_exeext &&
22012 $as_test_x conftest$ac_exeext; then
22013 ac_cv_lib_intl_dgettext=yes
22015 echo "$as_me: failed program was
:" >&5
22016 sed 's/^/| /' conftest.$ac_ext >&5
22018 ac_cv_lib_intl_dgettext=no
22021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22022 conftest$ac_exeext conftest.$ac_ext
22023 LIBS=$ac_check_lib_save_LIBS
22025 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22026 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22027 if test $ac_cv_lib_intl_dgettext = yes; then
22028 cat >>confdefs.h <<_ACEOF
22029 #define HAVE_LIBINTL 1
22032 LIBS="-lintl $LIBS"
22037 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22038 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22039 if test "${emacs_cv_localtime_cache+set}" = set; then
22040 echo $ECHO_N "(cached
) $ECHO_C" >&6
22042 if test x$ac_cv_func_tzset = xyes; then
22043 if test "$cross_compiling" = yes; then
22044 # If we have tzset, assume the worst when cross-compiling.
22045 emacs_cv_localtime_cache=yes
22047 cat >conftest.$ac_ext <<_ACEOF
22050 cat confdefs.h >>conftest.$ac_ext
22051 cat >>conftest.$ac_ext <<_ACEOF
22052 /* end confdefs.h. */
22054 extern char **environ;
22058 for (to = from = environ; (*to = *from); from++)
22059 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22062 char TZ_GMT0[] = "TZ
=GMT0
";
22063 char TZ_PST8[] = "TZ
=PST8
";
22066 time_t now = time ((time_t *) 0);
22067 int hour_GMT0, hour_unset;
22068 if (putenv (TZ_GMT0) != 0)
22070 hour_GMT0 = localtime (&now)->tm_hour;
22072 hour_unset = localtime (&now)->tm_hour;
22073 if (putenv (TZ_PST8) != 0)
22075 if (localtime (&now)->tm_hour == hour_GMT0)
22078 if (localtime (&now)->tm_hour != hour_unset)
22083 rm -f conftest$ac_exeext
22084 if { (ac_try="$ac_link"
22085 case "(($ac_try" in
22086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22087 *) ac_try_echo=$ac_try;;
22089 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22090 (eval "$ac_link") 2>&5
22092 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22094 { (case "(($ac_try" in
22095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22096 *) ac_try_echo=$ac_try;;
22098 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22099 (eval "$ac_try") 2>&5
22101 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22102 (exit $ac_status); }; }; then
22103 emacs_cv_localtime_cache=no
22105 echo "$as_me: program exited with status
$ac_status" >&5
22106 echo "$as_me: failed program was
:" >&5
22107 sed 's/^/| /' conftest.$ac_ext >&5
22109 ( exit $ac_status )
22110 emacs_cv_localtime_cache=yes
22112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22117 # If we lack tzset, report that localtime does not cache TZ,
22118 # since we can't invalidate the cache if we don't have tzset.
22119 emacs_cv_localtime_cache=no
22122 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22123 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22124 if test $emacs_cv_localtime_cache = yes; then
22126 cat >>confdefs.h <<\_ACEOF
22127 #define LOCALTIME_CACHE 1
22132 if test "x
$HAVE_TIMEVAL" = xyes; then
22134 for ac_func in gettimeofday
22136 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22137 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22138 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22139 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22140 echo $ECHO_N "(cached
) $ECHO_C" >&6
22142 cat >conftest.$ac_ext <<_ACEOF
22145 cat confdefs.h >>conftest.$ac_ext
22146 cat >>conftest.$ac_ext <<_ACEOF
22147 /* end confdefs.h. */
22148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22150 #define $ac_func innocuous_$ac_func
22152 /* System header to define __stub macros and hopefully few prototypes,
22153 which can conflict with char $ac_func (); below.
22154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22155 <limits.h> exists even on freestanding compilers. */
22158 # include <limits.h>
22160 # include <assert.h>
22165 /* Override any GCC internal prototype to avoid an error.
22166 Use char because int might match the return type of a GCC
22167 builtin and then its argument prototype would still apply. */
22172 /* The GNU C library defines this for functions which it implements
22173 to always fail with ENOSYS. Some functions are actually named
22174 something starting with __ and the normal name is an alias. */
22175 #if defined __stub_$ac_func || defined __stub___$ac_func
22182 return $ac_func ();
22187 rm -f conftest.$ac_objext conftest$ac_exeext
22188 if { (ac_try="$ac_link"
22189 case "(($ac_try" in
22190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191 *) ac_try_echo=$ac_try;;
22193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22194 (eval "$ac_link") 2>conftest.er1
22196 grep -v '^ *+' conftest.er1 >conftest.err
22198 cat conftest.err >&5
22199 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22200 (exit $ac_status); } && {
22201 test -z "$ac_c_werror_flag" ||
22202 test ! -s conftest.err
22203 } && test -s conftest$ac_exeext &&
22204 $as_test_x conftest$ac_exeext; then
22205 eval "$as_ac_var=yes"
22207 echo "$as_me: failed program was
:" >&5
22208 sed 's/^/| /' conftest.$ac_ext >&5
22210 eval "$as_ac_var=no
"
22213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22214 conftest$ac_exeext conftest.$ac_ext
22216 ac_res=`eval echo '${'$as_ac_var'}'`
22217 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22218 echo "${ECHO_T}$ac_res" >&6; }
22219 if test `eval echo '${'$as_ac_var'}'` = yes; then
22220 cat >>confdefs.h <<_ACEOF
22221 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22227 if test $ac_cv_func_gettimeofday = yes; then
22228 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22229 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22230 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22231 echo $ECHO_N "(cached
) $ECHO_C" >&6
22233 cat >conftest.$ac_ext <<_ACEOF
22236 cat confdefs.h >>conftest.$ac_ext
22237 cat >>conftest.$ac_ext <<_ACEOF
22238 /* end confdefs.h. */
22240 #ifdef TIME_WITH_SYS_TIME
22241 #include <sys/time.h>
22244 #ifdef HAVE_SYS_TIME_H
22245 #include <sys/time.h>
22253 struct timeval time;
22254 gettimeofday (&time, 0);
22259 rm -f conftest.$ac_objext
22260 if { (ac_try="$ac_compile"
22261 case "(($ac_try" in
22262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22263 *) ac_try_echo=$ac_try;;
22265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22266 (eval "$ac_compile") 2>conftest.er1
22268 grep -v '^ *+' conftest.er1 >conftest.err
22270 cat conftest.err >&5
22271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22272 (exit $ac_status); } && {
22273 test -z "$ac_c_werror_flag" ||
22274 test ! -s conftest.err
22275 } && test -s conftest.$ac_objext; then
22276 emacs_cv_gettimeofday_two_arguments=yes
22278 echo "$as_me: failed program was
:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22281 emacs_cv_gettimeofday_two_arguments=no
22284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22286 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22287 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22288 if test $emacs_cv_gettimeofday_two_arguments = no; then
22290 cat >>confdefs.h <<\_ACEOF
22291 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22299 { echo "$as_me:$LINENO: checking
for socket
" >&5
22300 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22301 if test "${ac_cv_func_socket+set}" = set; then
22302 echo $ECHO_N "(cached
) $ECHO_C" >&6
22304 cat >conftest.$ac_ext <<_ACEOF
22307 cat confdefs.h >>conftest.$ac_ext
22308 cat >>conftest.$ac_ext <<_ACEOF
22309 /* end confdefs.h. */
22310 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22312 #define socket innocuous_socket
22314 /* System header to define __stub macros and hopefully few prototypes,
22315 which can conflict with char socket (); below.
22316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22317 <limits.h> exists even on freestanding compilers. */
22320 # include <limits.h>
22322 # include <assert.h>
22327 /* Override any GCC internal prototype to avoid an error.
22328 Use char because int might match the return type of a GCC
22329 builtin and then its argument prototype would still apply. */
22334 /* The GNU C library defines this for functions which it implements
22335 to always fail with ENOSYS. Some functions are actually named
22336 something starting with __ and the normal name is an alias. */
22337 #if defined __stub_socket || defined __stub___socket
22349 rm -f conftest.$ac_objext conftest$ac_exeext
22350 if { (ac_try="$ac_link"
22351 case "(($ac_try" in
22352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353 *) ac_try_echo=$ac_try;;
22355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22356 (eval "$ac_link") 2>conftest.er1
22358 grep -v '^ *+' conftest.er1 >conftest.err
22360 cat conftest.err >&5
22361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22362 (exit $ac_status); } && {
22363 test -z "$ac_c_werror_flag" ||
22364 test ! -s conftest.err
22365 } && test -s conftest$ac_exeext &&
22366 $as_test_x conftest$ac_exeext; then
22367 ac_cv_func_socket=yes
22369 echo "$as_me: failed program was
:" >&5
22370 sed 's/^/| /' conftest.$ac_ext >&5
22372 ac_cv_func_socket=no
22375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22376 conftest$ac_exeext conftest.$ac_ext
22378 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22379 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22380 if test $ac_cv_func_socket = yes; then
22386 if test $ok_so_far = yes; then
22387 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22388 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22389 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22390 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22391 echo $ECHO_N "(cached
) $ECHO_C" >&6
22393 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22394 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22396 # Is the header compilable?
22397 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22398 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22399 cat >conftest.$ac_ext <<_ACEOF
22402 cat confdefs.h >>conftest.$ac_ext
22403 cat >>conftest.$ac_ext <<_ACEOF
22404 /* end confdefs.h. */
22405 $ac_includes_default
22406 #include <netinet/in.h>
22408 rm -f conftest.$ac_objext
22409 if { (ac_try="$ac_compile"
22410 case "(($ac_try" in
22411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22412 *) ac_try_echo=$ac_try;;
22414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22415 (eval "$ac_compile") 2>conftest.er1
22417 grep -v '^ *+' conftest.er1 >conftest.err
22419 cat conftest.err >&5
22420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22421 (exit $ac_status); } && {
22422 test -z "$ac_c_werror_flag" ||
22423 test ! -s conftest.err
22424 } && test -s conftest.$ac_objext; then
22425 ac_header_compiler=yes
22427 echo "$as_me: failed program was
:" >&5
22428 sed 's/^/| /' conftest.$ac_ext >&5
22430 ac_header_compiler=no
22433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22434 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22435 echo "${ECHO_T}$ac_header_compiler" >&6; }
22437 # Is the header present?
22438 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22439 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22440 cat >conftest.$ac_ext <<_ACEOF
22443 cat confdefs.h >>conftest.$ac_ext
22444 cat >>conftest.$ac_ext <<_ACEOF
22445 /* end confdefs.h. */
22446 #include <netinet/in.h>
22448 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22449 case "(($ac_try" in
22450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22451 *) ac_try_echo=$ac_try;;
22453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22454 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22456 grep -v '^ *+' conftest.er1 >conftest.err
22458 cat conftest.err >&5
22459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22460 (exit $ac_status); } >/dev/null && {
22461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22462 test ! -s conftest.err
22464 ac_header_preproc=yes
22466 echo "$as_me: failed program was
:" >&5
22467 sed 's/^/| /' conftest.$ac_ext >&5
22469 ac_header_preproc=no
22472 rm -f conftest.err conftest.$ac_ext
22473 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22474 echo "${ECHO_T}$ac_header_preproc" >&6; }
22476 # So? What about this header?
22477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22479 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22480 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22481 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22482 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22483 ac_header_preproc=yes
22486 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22487 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22488 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22489 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22490 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22491 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22492 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22493 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22494 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22495 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22496 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22497 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22501 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22502 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22503 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22504 echo $ECHO_N "(cached
) $ECHO_C" >&6
22506 ac_cv_header_netinet_in_h=$ac_header_preproc
22508 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22509 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22512 if test $ac_cv_header_netinet_in_h = yes; then
22520 if test $ok_so_far = yes; then
22521 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22522 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22523 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22524 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22525 echo $ECHO_N "(cached
) $ECHO_C" >&6
22527 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22528 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22530 # Is the header compilable?
22531 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22532 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22533 cat >conftest.$ac_ext <<_ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h. */
22539 $ac_includes_default
22540 #include <arpa/inet.h>
22542 rm -f conftest.$ac_objext
22543 if { (ac_try="$ac_compile"
22544 case "(($ac_try" in
22545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22546 *) ac_try_echo=$ac_try;;
22548 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22549 (eval "$ac_compile") 2>conftest.er1
22551 grep -v '^ *+' conftest.er1 >conftest.err
22553 cat conftest.err >&5
22554 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22555 (exit $ac_status); } && {
22556 test -z "$ac_c_werror_flag" ||
22557 test ! -s conftest.err
22558 } && test -s conftest.$ac_objext; then
22559 ac_header_compiler=yes
22561 echo "$as_me: failed program was
:" >&5
22562 sed 's/^/| /' conftest.$ac_ext >&5
22564 ac_header_compiler=no
22567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22568 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22569 echo "${ECHO_T}$ac_header_compiler" >&6; }
22571 # Is the header present?
22572 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22573 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22574 cat >conftest.$ac_ext <<_ACEOF
22577 cat confdefs.h >>conftest.$ac_ext
22578 cat >>conftest.$ac_ext <<_ACEOF
22579 /* end confdefs.h. */
22580 #include <arpa/inet.h>
22582 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22583 case "(($ac_try" in
22584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22585 *) ac_try_echo=$ac_try;;
22587 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22588 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22590 grep -v '^ *+' conftest.er1 >conftest.err
22592 cat conftest.err >&5
22593 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22594 (exit $ac_status); } >/dev/null && {
22595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22596 test ! -s conftest.err
22598 ac_header_preproc=yes
22600 echo "$as_me: failed program was
:" >&5
22601 sed 's/^/| /' conftest.$ac_ext >&5
22603 ac_header_preproc=no
22606 rm -f conftest.err conftest.$ac_ext
22607 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22608 echo "${ECHO_T}$ac_header_preproc" >&6; }
22610 # So? What about this header?
22611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22613 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22614 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22615 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22616 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22617 ac_header_preproc=yes
22620 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22621 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22622 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22623 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22624 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22625 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22626 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22627 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22628 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22629 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22630 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22631 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22635 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22636 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22637 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22638 echo $ECHO_N "(cached
) $ECHO_C" >&6
22640 ac_cv_header_arpa_inet_h=$ac_header_preproc
22642 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22643 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22646 if test $ac_cv_header_arpa_inet_h = yes; then
22654 if test $ok_so_far = yes; then
22656 cat >>confdefs.h <<\_ACEOF
22657 #define HAVE_INET_SOCKETS 1
22663 for ac_header in sys/ioctl.h
22665 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22666 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22667 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22668 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22669 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22670 echo $ECHO_N "(cached
) $ECHO_C" >&6
22672 ac_res=`eval echo '${'$as_ac_Header'}'`
22673 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22674 echo "${ECHO_T}$ac_res" >&6; }
22676 # Is the header compilable?
22677 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22678 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22679 cat >conftest.$ac_ext <<_ACEOF
22682 cat confdefs.h >>conftest.$ac_ext
22683 cat >>conftest.$ac_ext <<_ACEOF
22684 /* end confdefs.h. */
22685 $ac_includes_default
22686 #include <$ac_header>
22688 rm -f conftest.$ac_objext
22689 if { (ac_try="$ac_compile"
22690 case "(($ac_try" in
22691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22692 *) ac_try_echo=$ac_try;;
22694 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22695 (eval "$ac_compile") 2>conftest.er1
22697 grep -v '^ *+' conftest.er1 >conftest.err
22699 cat conftest.err >&5
22700 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22701 (exit $ac_status); } && {
22702 test -z "$ac_c_werror_flag" ||
22703 test ! -s conftest.err
22704 } && test -s conftest.$ac_objext; then
22705 ac_header_compiler=yes
22707 echo "$as_me: failed program was
:" >&5
22708 sed 's/^/| /' conftest.$ac_ext >&5
22710 ac_header_compiler=no
22713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22714 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22715 echo "${ECHO_T}$ac_header_compiler" >&6; }
22717 # Is the header present?
22718 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22719 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22720 cat >conftest.$ac_ext <<_ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h. */
22726 #include <$ac_header>
22728 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22729 case "(($ac_try" in
22730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22731 *) ac_try_echo=$ac_try;;
22733 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22734 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22736 grep -v '^ *+' conftest.er1 >conftest.err
22738 cat conftest.err >&5
22739 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22740 (exit $ac_status); } >/dev/null && {
22741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22742 test ! -s conftest.err
22744 ac_header_preproc=yes
22746 echo "$as_me: failed program was
:" >&5
22747 sed 's/^/| /' conftest.$ac_ext >&5
22749 ac_header_preproc=no
22752 rm -f conftest.err conftest.$ac_ext
22753 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22754 echo "${ECHO_T}$ac_header_preproc" >&6; }
22756 # So? What about this header?
22757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22759 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22760 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22761 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22763 ac_header_preproc=yes
22766 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22767 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22768 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22769 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22770 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22771 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22772 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22773 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22774 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22776 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22777 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22781 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22782 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22783 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22784 echo $ECHO_N "(cached
) $ECHO_C" >&6
22786 eval "$as_ac_Header=\
$ac_header_preproc"
22788 ac_res=`eval echo '${'$as_ac_Header'}'`
22789 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22790 echo "${ECHO_T}$ac_res" >&6; }
22793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22794 cat >>confdefs.h <<_ACEOF
22795 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22803 if test -f /usr/lpp/X11/bin/smt.exp; then
22805 cat >>confdefs.h <<\_ACEOF
22806 #define HAVE_AIX_SMT_EXP 1
22811 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22812 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22813 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22814 { echo "$as_me:$LINENO: result
: yes" >&5
22815 echo "${ECHO_T}yes" >&6; }
22817 cat >>confdefs.h <<\_ACEOF
22818 #define HAVE_DEV_PTMX 1
22822 { echo "$as_me:$LINENO: result
: no
" >&5
22823 echo "${ECHO_T}no
" >&6; }
22826 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22827 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22828 if test "${ac_cv_type_pid_t+set}" = set; then
22829 echo $ECHO_N "(cached
) $ECHO_C" >&6
22831 cat >conftest.$ac_ext <<_ACEOF
22834 cat confdefs.h >>conftest.$ac_ext
22835 cat >>conftest.$ac_ext <<_ACEOF
22836 /* end confdefs.h. */
22837 $ac_includes_default
22838 typedef pid_t ac__type_new_;
22842 if ((ac__type_new_ *) 0)
22844 if (sizeof (ac__type_new_))
22850 rm -f conftest.$ac_objext
22851 if { (ac_try="$ac_compile"
22852 case "(($ac_try" in
22853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22854 *) ac_try_echo=$ac_try;;
22856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22857 (eval "$ac_compile") 2>conftest.er1
22859 grep -v '^ *+' conftest.er1 >conftest.err
22861 cat conftest.err >&5
22862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22863 (exit $ac_status); } && {
22864 test -z "$ac_c_werror_flag" ||
22865 test ! -s conftest.err
22866 } && test -s conftest.$ac_objext; then
22867 ac_cv_type_pid_t=yes
22869 echo "$as_me: failed program was
:" >&5
22870 sed 's/^/| /' conftest.$ac_ext >&5
22872 ac_cv_type_pid_t=no
22875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22877 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22878 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22879 if test $ac_cv_type_pid_t = yes; then
22883 cat >>confdefs.h <<_ACEOF
22890 for ac_header in vfork.h
22892 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22893 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22894 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22895 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22896 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22897 echo $ECHO_N "(cached
) $ECHO_C" >&6
22899 ac_res=`eval echo '${'$as_ac_Header'}'`
22900 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22901 echo "${ECHO_T}$ac_res" >&6; }
22903 # Is the header compilable?
22904 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22905 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22906 cat >conftest.$ac_ext <<_ACEOF
22909 cat confdefs.h >>conftest.$ac_ext
22910 cat >>conftest.$ac_ext <<_ACEOF
22911 /* end confdefs.h. */
22912 $ac_includes_default
22913 #include <$ac_header>
22915 rm -f conftest.$ac_objext
22916 if { (ac_try="$ac_compile"
22917 case "(($ac_try" in
22918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22919 *) ac_try_echo=$ac_try;;
22921 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22922 (eval "$ac_compile") 2>conftest.er1
22924 grep -v '^ *+' conftest.er1 >conftest.err
22926 cat conftest.err >&5
22927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22928 (exit $ac_status); } && {
22929 test -z "$ac_c_werror_flag" ||
22930 test ! -s conftest.err
22931 } && test -s conftest.$ac_objext; then
22932 ac_header_compiler=yes
22934 echo "$as_me: failed program was
:" >&5
22935 sed 's/^/| /' conftest.$ac_ext >&5
22937 ac_header_compiler=no
22940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22941 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22942 echo "${ECHO_T}$ac_header_compiler" >&6; }
22944 # Is the header present?
22945 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22946 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22947 cat >conftest.$ac_ext <<_ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h. */
22953 #include <$ac_header>
22955 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22956 case "(($ac_try" in
22957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22958 *) ac_try_echo=$ac_try;;
22960 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22961 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22963 grep -v '^ *+' conftest.er1 >conftest.err
22965 cat conftest.err >&5
22966 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22967 (exit $ac_status); } >/dev/null && {
22968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22969 test ! -s conftest.err
22971 ac_header_preproc=yes
22973 echo "$as_me: failed program was
:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22976 ac_header_preproc=no
22979 rm -f conftest.err conftest.$ac_ext
22980 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22981 echo "${ECHO_T}$ac_header_preproc" >&6; }
22983 # So? What about this header?
22984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22986 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22987 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22988 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22990 ac_header_preproc=yes
22993 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22994 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22995 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22996 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22997 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22998 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22999 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23000 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23001 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23003 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23004 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23008 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23009 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23010 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23011 echo $ECHO_N "(cached
) $ECHO_C" >&6
23013 eval "$as_ac_Header=\
$ac_header_preproc"
23015 ac_res=`eval echo '${'$as_ac_Header'}'`
23016 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23017 echo "${ECHO_T}$ac_res" >&6; }
23020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23021 cat >>confdefs.h <<_ACEOF
23022 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23031 for ac_func in fork vfork
23033 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23034 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23035 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23036 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23037 echo $ECHO_N "(cached
) $ECHO_C" >&6
23039 cat >conftest.$ac_ext <<_ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h. */
23045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23047 #define $ac_func innocuous_$ac_func
23049 /* System header to define __stub macros and hopefully few prototypes,
23050 which can conflict with char $ac_func (); below.
23051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23052 <limits.h> exists even on freestanding compilers. */
23055 # include <limits.h>
23057 # include <assert.h>
23062 /* Override any GCC internal prototype to avoid an error.
23063 Use char because int might match the return type of a GCC
23064 builtin and then its argument prototype would still apply. */
23069 /* The GNU C library defines this for functions which it implements
23070 to always fail with ENOSYS. Some functions are actually named
23071 something starting with __ and the normal name is an alias. */
23072 #if defined __stub_$ac_func || defined __stub___$ac_func
23079 return $ac_func ();
23084 rm -f conftest.$ac_objext conftest$ac_exeext
23085 if { (ac_try="$ac_link"
23086 case "(($ac_try" in
23087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23088 *) ac_try_echo=$ac_try;;
23090 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23091 (eval "$ac_link") 2>conftest.er1
23093 grep -v '^ *+' conftest.er1 >conftest.err
23095 cat conftest.err >&5
23096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23097 (exit $ac_status); } && {
23098 test -z "$ac_c_werror_flag" ||
23099 test ! -s conftest.err
23100 } && test -s conftest$ac_exeext &&
23101 $as_test_x conftest$ac_exeext; then
23102 eval "$as_ac_var=yes"
23104 echo "$as_me: failed program was
:" >&5
23105 sed 's/^/| /' conftest.$ac_ext >&5
23107 eval "$as_ac_var=no
"
23110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23111 conftest$ac_exeext conftest.$ac_ext
23113 ac_res=`eval echo '${'$as_ac_var'}'`
23114 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23115 echo "${ECHO_T}$ac_res" >&6; }
23116 if test `eval echo '${'$as_ac_var'}'` = yes; then
23117 cat >>confdefs.h <<_ACEOF
23118 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23124 if test "x
$ac_cv_func_fork" = xyes; then
23125 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23126 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23127 if test "${ac_cv_func_fork_works+set}" = set; then
23128 echo $ECHO_N "(cached
) $ECHO_C" >&6
23130 if test "$cross_compiling" = yes; then
23131 ac_cv_func_fork_works=cross
23133 cat >conftest.$ac_ext <<_ACEOF
23136 cat confdefs.h >>conftest.$ac_ext
23137 cat >>conftest.$ac_ext <<_ACEOF
23138 /* end confdefs.h. */
23139 $ac_includes_default
23144 /* By Ruediger Kuhlmann. */
23145 return fork () < 0;
23151 rm -f conftest$ac_exeext
23152 if { (ac_try="$ac_link"
23153 case "(($ac_try" in
23154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23155 *) ac_try_echo=$ac_try;;
23157 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23158 (eval "$ac_link") 2>&5
23160 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23161 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23162 { (case "(($ac_try" in
23163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23164 *) ac_try_echo=$ac_try;;
23166 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23167 (eval "$ac_try") 2>&5
23169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23170 (exit $ac_status); }; }; then
23171 ac_cv_func_fork_works=yes
23173 echo "$as_me: program exited with status
$ac_status" >&5
23174 echo "$as_me: failed program was
:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23177 ( exit $ac_status )
23178 ac_cv_func_fork_works=no
23180 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23185 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23186 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23189 ac_cv_func_fork_works=$ac_cv_func_fork
23191 if test "x
$ac_cv_func_fork_works" = xcross; then
23193 *-*-amigaos* | *-*-msdosdjgpp*)
23194 # Override, as these systems have only a dummy fork() stub
23195 ac_cv_func_fork_works=no
23198 ac_cv_func_fork_works=yes
23201 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23202 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23204 ac_cv_func_vfork_works=$ac_cv_func_vfork
23205 if test "x
$ac_cv_func_vfork" = xyes; then
23206 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23207 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23208 if test "${ac_cv_func_vfork_works+set}" = set; then
23209 echo $ECHO_N "(cached
) $ECHO_C" >&6
23211 if test "$cross_compiling" = yes; then
23212 ac_cv_func_vfork_works=cross
23214 cat >conftest.$ac_ext <<_ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h. */
23220 /* Thanks to Paul Eggert for this test. */
23221 $ac_includes_default
23222 #include <sys/wait.h>
23223 #ifdef HAVE_VFORK_H
23224 # include <vfork.h>
23226 /* On some sparc systems, changes by the child to local and incoming
23227 argument registers are propagated back to the parent. The compiler
23228 is told about this with #include <vfork.h>, but some compilers
23229 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23230 static variable whose address is put into a register that is
23231 clobbered by the vfork. */
23234 sparc_address_test (int arg)
23236 sparc_address_test (arg) int arg;
23239 static pid_t child;
23257 pid_t parent = getpid ();
23260 sparc_address_test (0);
23265 /* Here is another test for sparc vfork register problems. This
23266 test uses lots of local variables, at least as many local
23267 variables as main has allocated so far including compiler
23268 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23269 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23270 reuse the register of parent for one of the local variables,
23271 since it will think that parent can't possibly be used any more
23272 in this routine. Assigning to the local variable will thus
23273 munge parent in the parent process. */
23275 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23276 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23277 /* Convince the compiler that p..p7 are live; otherwise, it might
23278 use the same hardware register for all 8 local variables. */
23279 if (p != p1 || p != p2 || p != p3 || p != p4
23280 || p != p5 || p != p6 || p != p7)
23283 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23284 from child file descriptors. If the child closes a descriptor
23285 before it execs or exits, this munges the parent's descriptor
23286 as well. Test for this by closing stdout in the child. */
23287 _exit(close(fileno(stdout)) != 0);
23292 while (wait(&status) != child)
23295 /* Was there some problem with vforking? */
23298 /* Did the child fail? (This shouldn't happen.) */
23301 /* Did the vfork/compiler bug occur? */
23302 || parent != getpid()
23304 /* Did the file descriptor bug occur? */
23305 || fstat(fileno(stdout), &st) != 0
23310 rm -f conftest$ac_exeext
23311 if { (ac_try="$ac_link"
23312 case "(($ac_try" in
23313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23314 *) ac_try_echo=$ac_try;;
23316 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23317 (eval "$ac_link") 2>&5
23319 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23320 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23321 { (case "(($ac_try" in
23322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23323 *) ac_try_echo=$ac_try;;
23325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23326 (eval "$ac_try") 2>&5
23328 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23329 (exit $ac_status); }; }; then
23330 ac_cv_func_vfork_works=yes
23332 echo "$as_me: program exited with status
$ac_status" >&5
23333 echo "$as_me: failed program was
:" >&5
23334 sed 's/^/| /' conftest.$ac_ext >&5
23336 ( exit $ac_status )
23337 ac_cv_func_vfork_works=no
23339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23344 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23345 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23348 if test "x
$ac_cv_func_fork_works" = xcross; then
23349 ac_cv_func_vfork_works=$ac_cv_func_vfork
23350 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23351 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23354 if test "x
$ac_cv_func_vfork_works" = xyes; then
23356 cat >>confdefs.h <<\_ACEOF
23357 #define HAVE_WORKING_VFORK 1
23362 cat >>confdefs.h <<\_ACEOF
23367 if test "x
$ac_cv_func_fork_works" = xyes; then
23369 cat >>confdefs.h <<\_ACEOF
23370 #define HAVE_WORKING_FORK 1
23376 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23377 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23378 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23379 echo $ECHO_N "(cached
) $ECHO_C" >&6
23381 cat >conftest.$ac_ext <<_ACEOF
23384 cat confdefs.h >>conftest.$ac_ext
23385 cat >>conftest.$ac_ext <<_ACEOF
23386 /* end confdefs.h. */
23387 #include <langinfo.h>
23391 char* cs = nl_langinfo(CODESET);
23396 rm -f conftest.$ac_objext conftest$ac_exeext
23397 if { (ac_try="$ac_link"
23398 case "(($ac_try" in
23399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23400 *) ac_try_echo=$ac_try;;
23402 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23403 (eval "$ac_link") 2>conftest.er1
23405 grep -v '^ *+' conftest.er1 >conftest.err
23407 cat conftest.err >&5
23408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23409 (exit $ac_status); } && {
23410 test -z "$ac_c_werror_flag" ||
23411 test ! -s conftest.err
23412 } && test -s conftest$ac_exeext &&
23413 $as_test_x conftest$ac_exeext; then
23414 emacs_cv_langinfo_codeset=yes
23416 echo "$as_me: failed program was
:" >&5
23417 sed 's/^/| /' conftest.$ac_ext >&5
23419 emacs_cv_langinfo_codeset=no
23422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23423 conftest$ac_exeext conftest.$ac_ext
23426 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23427 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23428 if test $emacs_cv_langinfo_codeset = yes; then
23430 cat >>confdefs.h <<\_ACEOF
23431 #define HAVE_LANGINFO_CODESET 1
23436 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23437 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23438 if test "${ac_cv_type_size_t+set}" = set; then
23439 echo $ECHO_N "(cached
) $ECHO_C" >&6
23441 cat >conftest.$ac_ext <<_ACEOF
23444 cat confdefs.h >>conftest.$ac_ext
23445 cat >>conftest.$ac_ext <<_ACEOF
23446 /* end confdefs.h. */
23447 $ac_includes_default
23448 typedef size_t ac__type_new_;
23452 if ((ac__type_new_ *) 0)
23454 if (sizeof (ac__type_new_))
23460 rm -f conftest.$ac_objext
23461 if { (ac_try="$ac_compile"
23462 case "(($ac_try" in
23463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23464 *) ac_try_echo=$ac_try;;
23466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23467 (eval "$ac_compile") 2>conftest.er1
23469 grep -v '^ *+' conftest.er1 >conftest.err
23471 cat conftest.err >&5
23472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23473 (exit $ac_status); } && {
23474 test -z "$ac_c_werror_flag" ||
23475 test ! -s conftest.err
23476 } && test -s conftest.$ac_objext; then
23477 ac_cv_type_size_t=yes
23479 echo "$as_me: failed program was
:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23482 ac_cv_type_size_t=no
23485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23487 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23488 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23489 if test $ac_cv_type_size_t = yes; then
23491 cat >>confdefs.h <<_ACEOF
23492 #define HAVE_SIZE_T 1
23499 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23500 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23501 if test "${ac_cv_type_mbstate_t+set}" = set; then
23502 echo $ECHO_N "(cached
) $ECHO_C" >&6
23504 cat >conftest.$ac_ext <<_ACEOF
23507 cat confdefs.h >>conftest.$ac_ext
23508 cat >>conftest.$ac_ext <<_ACEOF
23509 /* end confdefs.h. */
23510 $ac_includes_default
23511 # include <wchar.h>
23515 mbstate_t x; return sizeof x;
23520 rm -f conftest.$ac_objext
23521 if { (ac_try="$ac_compile"
23522 case "(($ac_try" in
23523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23524 *) ac_try_echo=$ac_try;;
23526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23527 (eval "$ac_compile") 2>conftest.er1
23529 grep -v '^ *+' conftest.er1 >conftest.err
23531 cat conftest.err >&5
23532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23533 (exit $ac_status); } && {
23534 test -z "$ac_c_werror_flag" ||
23535 test ! -s conftest.err
23536 } && test -s conftest.$ac_objext; then
23537 ac_cv_type_mbstate_t=yes
23539 echo "$as_me: failed program was
:" >&5
23540 sed 's/^/| /' conftest.$ac_ext >&5
23542 ac_cv_type_mbstate_t=no
23545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23547 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23548 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23549 if test $ac_cv_type_mbstate_t = yes; then
23551 cat >>confdefs.h <<\_ACEOF
23552 #define HAVE_MBSTATE_T 1
23557 cat >>confdefs.h <<\_ACEOF
23558 #define mbstate_t int
23563 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23564 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23565 if test "${emacs_cv_c_restrict+set}" = set; then
23566 echo $ECHO_N "(cached
) $ECHO_C" >&6
23568 cat >conftest.$ac_ext <<_ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h. */
23574 void fred (int *restrict x);
23583 rm -f conftest.$ac_objext
23584 if { (ac_try="$ac_compile"
23585 case "(($ac_try" in
23586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23587 *) ac_try_echo=$ac_try;;
23589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23590 (eval "$ac_compile") 2>conftest.er1
23592 grep -v '^ *+' conftest.er1 >conftest.err
23594 cat conftest.err >&5
23595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23596 (exit $ac_status); } && {
23597 test -z "$ac_c_werror_flag" ||
23598 test ! -s conftest.err
23599 } && test -s conftest.$ac_objext; then
23600 emacs_cv_c_restrict=yes
23602 echo "$as_me: failed program was
:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23605 cat >conftest.$ac_ext <<_ACEOF
23608 cat confdefs.h >>conftest.$ac_ext
23609 cat >>conftest.$ac_ext <<_ACEOF
23610 /* end confdefs.h. */
23611 void fred (int *__restrict x);
23620 rm -f conftest.$ac_objext
23621 if { (ac_try="$ac_compile"
23622 case "(($ac_try" in
23623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23624 *) ac_try_echo=$ac_try;;
23626 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23627 (eval "$ac_compile") 2>conftest.er1
23629 grep -v '^ *+' conftest.er1 >conftest.err
23631 cat conftest.err >&5
23632 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23633 (exit $ac_status); } && {
23634 test -z "$ac_c_werror_flag" ||
23635 test ! -s conftest.err
23636 } && test -s conftest.$ac_objext; then
23637 emacs_cv_c_restrict=__restrict
23639 echo "$as_me: failed program was
:" >&5
23640 sed 's/^/| /' conftest.$ac_ext >&5
23642 emacs_cv_c_restrict=no
23645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23650 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23651 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23652 case "$emacs_cv_c_restrict" in
23653 yes) emacs_restrict=restrict;;
23654 no) emacs_restrict="";;
23655 *) emacs_restrict="$emacs_cv_c_restrict";;
23657 if test "$emacs_restrict" != __restrict; then
23659 cat >>confdefs.h <<_ACEOF
23660 #define __restrict $emacs_restrict
23665 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23666 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23667 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23668 echo $ECHO_N "(cached
) $ECHO_C" >&6
23670 cat >conftest.$ac_ext <<_ACEOF
23673 cat confdefs.h >>conftest.$ac_ext
23674 cat >>conftest.$ac_ext <<_ACEOF
23675 /* end confdefs.h. */
23676 void fred (int x[__restrict]);
23685 rm -f conftest.$ac_objext
23686 if { (ac_try="$ac_compile"
23687 case "(($ac_try" in
23688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23689 *) ac_try_echo=$ac_try;;
23691 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23692 (eval "$ac_compile") 2>conftest.er1
23694 grep -v '^ *+' conftest.er1 >conftest.err
23696 cat conftest.err >&5
23697 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23698 (exit $ac_status); } && {
23699 test -z "$ac_c_werror_flag" ||
23700 test ! -s conftest.err
23701 } && test -s conftest.$ac_objext; then
23702 emacs_cv_c_restrict_arr=yes
23704 echo "$as_me: failed program was
:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23707 emacs_cv_c_restrict_arr=no
23710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23712 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23713 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23714 if test "$emacs_cv_c_restrict_arr" = yes; then
23716 cat >>confdefs.h <<\_ACEOF
23717 #define __restrict_arr __restrict
23724 # Set up the CFLAGS for real compilation, so we can substitute it.
23725 CFLAGS="$REAL_CFLAGS"
23726 CPPFLAGS="$REAL_CPPFLAGS"
23728 #### Find out which version of Emacs this is.
23729 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23730 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23731 if test x"${version}" = x; then
23732 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23733 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23734 { (exit 1); exit 1; }; }
23737 ### Specify what sort of things we'll be editing into Makefile and config.h.
23738 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23774 cat >>confdefs.h <<_ACEOF
23775 #define EMACS_CONFIGURATION "${canonical}"
23779 cat >>confdefs.h <<_ACEOF
23780 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23784 cat >>confdefs.h <<_ACEOF
23785 #define config_machfile "${machfile}"
23789 cat >>confdefs.h <<_ACEOF
23790 #define config_opsysfile "${opsysfile}"
23794 cat >>confdefs.h <<_ACEOF
23795 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23799 cat >>confdefs.h <<_ACEOF
23800 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23804 cat >>confdefs.h <<_ACEOF
23805 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23809 cat >>confdefs.h <<_ACEOF
23810 #define UNEXEC_SRC ${UNEXEC_SRC}
23814 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23816 cat >>confdefs.h <<\_ACEOF
23817 #define HAVE_X_WINDOWS 1
23821 if test "${USE_X_TOOLKIT}" != "none
" ; then
23823 cat >>confdefs.h <<\_ACEOF
23824 #define USE_X_TOOLKIT 1
23828 if test "${HAVE_X11}" = "yes" ; then
23830 cat >>confdefs.h <<\_ACEOF
23835 if test "${HAVE_XFREE386}" = "yes" ; then
23837 cat >>confdefs.h <<\_ACEOF
23838 #define HAVE_XFREE386 1
23842 if test "${HAVE_MENUS}" = "yes" ; then
23844 cat >>confdefs.h <<\_ACEOF
23845 #define HAVE_MENUS 1
23849 if test "${GNU_MALLOC}" = "yes" ; then
23851 cat >>confdefs.h <<\_ACEOF
23852 #define GNU_MALLOC 1
23856 if test "${REL_ALLOC}" = "yes" ; then
23858 cat >>confdefs.h <<\_ACEOF
23859 #define REL_ALLOC 1
23869 #### Report on what we decided to do.
23870 #### Report GTK as a toolkit, even if it doesn't use Xt.
23871 #### It makes printing result more understandable as using GTK sets
23872 #### toolkit_scroll_bars to yes by default.
23873 if test "${HAVE_GTK}" = "yes"; then
23878 Configured
for \
`${canonical}'.
23880 Where should the build process find the source code? ${srcdir}
23881 What operating system and machine description files should Emacs use?
23882 \`${opsysfile}' and \`${machfile}'
23883 What compiler should emacs be built with?
${CC} ${CFLAGS}
23884 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23885 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23886 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23887 What window system should Emacs use?
${window_system}
23888 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23890 if test -n "${x_includes}"; then
23891 echo " Where
do we
find X Windows header files?
${x_includes}"
23893 echo " Where
do we
find X Windows header files? Standard
dirs"
23895 if test -n "${x_libraries}"; then
23896 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23898 echo " Where
do we
find X Windows libraries? Standard
dirs"
23901 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23902 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23903 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23904 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23905 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23906 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23907 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23908 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23911 if test $USE_XASSERTS = yes; then
23912 echo " Compiling with asserts turned on.
"
23913 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23917 if test "$USE_X_TOOLKIT" = GTK; then
23918 case "$canonical" in
23920 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23921 will probably get a crash on startup. If this happens
, please use another
23922 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23929 # Remove any trailing slashes in these variables.
23930 test "${prefix}" != NONE &&
23931 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23932 test "${exec_prefix}" != NONE &&
23933 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23935 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23936 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23937 ## from Makefile.c can correctly provide the arg `-traditional' to the
23940 cat >conftest.$ac_ext <<_ACEOF
23943 cat confdefs.h >>conftest.$ac_ext
23944 cat >>conftest.$ac_ext <<_ACEOF
23945 /* end confdefs.h. */
23948 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23949 $EGREP "yes..
yes" >/dev/null 2>&1; then
23950 CPP_NEED_TRADITIONAL=no
23952 CPP_NEED_TRADITIONAL=yes
23957 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
"
23959 ac_config_commands="$ac_config_commands default
"
23961 cat >confcache <<\_ACEOF
23962 # This file is a shell script that caches the results of configure
23963 # tests run on this system so they can be shared between configure
23964 # scripts and configure runs, see configure's option --config-cache.
23965 # It is not useful on other systems. If it contains results you don't
23966 # want to keep, you may remove or edit it.
23968 # config.status only pays attention to the cache file if you give it
23969 # the --recheck option to rerun configure.
23971 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23972 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23973 # following values.
23977 # The following way of writing the cache mishandles newlines in values,
23978 # but we know of no workaround that is simple, portable, and efficient.
23979 # So, we kill variables containing newlines.
23980 # Ultrix sh set writes to stderr and can't be redirected directly,
23981 # and sets the high bit in the cache file unless we assign to the vars.
23983 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23984 eval ac_val=\$$ac_var
23988 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23989 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23992 _ | IFS | as_nl) ;; #(
23993 *) $as_unset $ac_var ;;
23999 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24000 *${as_nl}ac_space=\ *)
24001 # `set' does not quote correctly, so add quotes (double-quote
24002 # substitution turns \\\\ into \\, and sed turns \\ into \).
24005 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24008 # `set' quotes correctly as required by POSIX, so do not add quotes.
24009 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24018 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24020 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24022 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24023 if test -w "$cache_file"; then
24024 test "x
$cache_file" != "x
/dev
/null
" &&
24025 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24026 echo "$as_me: updating cache
$cache_file" >&6;}
24027 cat confcache >$cache_file
24029 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24030 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24035 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24036 # Let make expand exec_prefix.
24037 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24039 DEFS=-DHAVE_CONFIG_H
24043 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24044 # 1. Remove the extension, and $U if already installed.
24045 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24046 ac_i=`echo "$ac_i" | sed "$ac_script"`
24047 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24048 # will be set to the directory where LIBOBJS objects are built.
24049 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24050 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24052 LIBOBJS=$ac_libobjs
24054 LTLIBOBJS=$ac_ltlibobjs
24058 : ${CONFIG_STATUS=./config.status}
24059 ac_clean_files_save=$ac_clean_files
24060 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24061 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24062 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24063 cat >$CONFIG_STATUS <<_ACEOF
24065 # Generated by $as_me.
24066 # Run this file to recreate the current configuration.
24067 # Compiler output produced by configure, useful for debugging
24068 # configure, is in config.log if it exists.
24071 ac_cs_recheck=false
24073 SHELL=\${CONFIG_SHELL-$SHELL}
24076 cat >>$CONFIG_STATUS <<\_ACEOF
24077 ## --------------------- ##
24078 ## M4sh Initialization. ##
24079 ## --------------------- ##
24081 # Be more Bourne compatible
24082 DUALCASE=1; export DUALCASE # for MKS sh
24083 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24086 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24087 # is contrary to our usage. Disable this feature.
24088 alias -g '${1+"$@"}'='"$@
"'
24089 setopt NO_GLOB_SUBST
24091 case `(set -o) 2>/dev/null` in
24092 *posix*) set -o posix ;;
24101 # Avoid depending upon Character Ranges.
24102 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24103 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24104 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24105 as_cr_digits='0123456789'
24106 as_cr_alnum=$as_cr_Letters$as_cr_digits
24108 # The user is always right.
24109 if test "${PATH_SEPARATOR+set}" != set; then
24110 echo "#! /bin/sh" >conf$$.sh
24111 echo "exit 0" >>conf$$.sh
24113 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24121 # Support unset when possible.
24122 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24130 # We need space, tab and new line, in precisely that order. Quoting is
24131 # there to prevent editors from complaining about space-tab.
24132 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24133 # splitting by setting IFS to empty value.)
24138 # Find who we are. Look in the path if we contain no directory separator.
24140 *[\\/]* ) as_myself
=$0 ;;
24141 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24142 for as_dir
in $PATH
24145 test -z "$as_dir" && as_dir
=.
24146 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24152 # We did not find ourselves, most probably we were run as `sh COMMAND'
24153 # in which case we are not to be found in the path.
24154 if test "x$as_myself" = x
; then
24157 if test ! -f "$as_myself"; then
24158 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24159 { (exit 1); exit 1; }
24162 # Work around bugs in pre-3.0 UWIN ksh.
24163 for as_var
in ENV MAIL MAILPATH
24164 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24172 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24173 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24174 LC_TELEPHONE LC_TIME
24176 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24177 eval $as_var=C
; export $as_var
24179 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24183 # Required to use basename.
24184 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24185 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24191 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24192 as_basename
=basename
24198 # Name of the executable.
24199 as_me
=`$as_basename -- "$0" ||
24200 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24201 X"$0" : 'X\(//\)$' \| \
24202 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24204 sed '/^.*\/\([^/][^/]*\)\/*$/{
24223 as_lineno_1
=$LINENO
24224 as_lineno_2
=$LINENO
24225 test "x$as_lineno_1" != "x$as_lineno_2" &&
24226 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24228 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24229 # uniformly replaced by the line number. The first 'sed' inserts a
24230 # line-number line after each line using $LINENO; the second 'sed'
24231 # does the real work. The second script uses 'N' to pair each
24232 # line-number line with the line containing $LINENO, and appends
24233 # trailing '-' during substitution so that $LINENO is not a special
24234 # case at line end.
24235 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24236 # scripts with optimization help from Paolo Bonzini. Blame Lee
24237 # E. McMahon (1931-1989) for sed's syntax. :-)
24249 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24252 ' >$as_me.lineno
&&
24253 chmod +x
"$as_me.lineno" ||
24254 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24255 { (exit 1); exit 1; }; }
24257 # Don't try to exec as it changes $[0], causing all sort of problems
24258 # (the dirname of $[0] is not the place where we might find the
24259 # original and so on. Autoconf is especially sensitive to this).
24260 .
"./$as_me.lineno"
24261 # Exit status is that of the last command.
24266 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24272 ECHO_C
= ECHO_N
= ECHO_T
=
24273 case `echo -n x` in
24275 case `echo 'x\c'` in
24276 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24283 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24284 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24290 rm -f conf$$ conf$$.exe conf$$.
file
24291 if test -d conf$$.dir
; then
24292 rm -f conf$$.dir
/conf$$.
file
24298 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24300 # ... but there are two gotchas:
24301 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24302 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24303 # In both cases, we have to default to `cp -p'.
24304 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24306 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24311 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24312 rmdir conf$$.dir
2>/dev
/null
24314 if mkdir
-p .
2>/dev
/null
; then
24317 test -d .
/-p && rmdir .
/-p
24321 if test -x / >/dev
/null
2>&1; then
24322 as_test_x
='test -x'
24324 if ls -dL / >/dev
/null
2>&1; then
24331 if test -d "$1"; then
24337 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24338 ???[sx]*):;;*)false;;esac;fi
24342 as_executable_p
=$as_test_x
24344 # Sed expression to map a string onto a valid CPP name.
24345 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24347 # Sed expression to map a string onto a valid variable name.
24348 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24353 # Save the log message, to keep $[0] and so on meaningful, and to
24354 # report actual input values of CONFIG_FILES etc. instead of their
24355 # values after options handling.
24357 This file was extended by $as_me, which was
24358 generated by GNU Autoconf 2.61. Invocation command line was
24360 CONFIG_FILES = $CONFIG_FILES
24361 CONFIG_HEADERS = $CONFIG_HEADERS
24362 CONFIG_LINKS = $CONFIG_LINKS
24363 CONFIG_COMMANDS = $CONFIG_COMMANDS
24366 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24371 cat >>$CONFIG_STATUS <<_ACEOF
24372 # Files that config.status was made for.
24373 config_files="$ac_config_files"
24374 config_headers="$ac_config_headers"
24375 config_commands="$ac_config_commands"
24379 cat >>$CONFIG_STATUS <<\_ACEOF
24381 \`$as_me' instantiates files from templates according to the
24382 current configuration.
24384 Usage: $0 [OPTIONS] [FILE]...
24386 -h, --help print this help, then exit
24387 -V, --version print version number and configuration settings, then exit
24388 -q, --quiet do not print progress messages
24389 -d, --debug don't remove temporary files
24390 --recheck update $as_me by reconfiguring in the same conditions
24391 --file=FILE[:TEMPLATE]
24392 instantiate the configuration file FILE
24393 --header=FILE[:TEMPLATE]
24394 instantiate the configuration header FILE
24396 Configuration files:
24399 Configuration headers:
24402 Configuration commands:
24405 Report bugs to <bug-autoconf@gnu.org>."
24408 cat >>$CONFIG_STATUS <<_ACEOF
24411 configured by $0, generated by GNU Autoconf 2.61,
24412 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24414 Copyright (C) 2006 Free Software Foundation, Inc.
24415 This config.status script is free software; the Free Software Foundation
24416 gives unlimited permission to copy, distribute and modify it."
24423 cat >>$CONFIG_STATUS <<\_ACEOF
24424 # If no file are specified by the user, then we need to provide default
24425 # value. By we need to know if files were specified by the user.
24431 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24432 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24443 # Handling of the options.
24444 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24446 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24447 echo "$ac_cs_version"; exit ;;
24448 --debug |
--debu |
--deb |
--de |
--d |
-d )
24450 --file |
--fil |
--fi |
--f )
24452 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24453 ac_need_defaults
=false
;;
24454 --header |
--heade |
--head |
--hea )
24456 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24457 ac_need_defaults
=false
;;
24459 # Conflict between --help and --header
24460 { echo "$as_me: error: ambiguous option: $1
24461 Try \`$0 --help' for more information." >&2
24462 { (exit 1); exit 1; }; };;
24463 --help |
--hel |
-h )
24464 echo "$ac_cs_usage"; exit ;;
24465 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24466 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24469 # This is an error.
24470 -*) { echo "$as_me: error: unrecognized option: $1
24471 Try \`$0 --help' for more information." >&2
24472 { (exit 1); exit 1; }; } ;;
24474 *) ac_config_targets
="$ac_config_targets $1"
24475 ac_need_defaults
=false
;;
24481 ac_configure_extra_args
=
24483 if $ac_cs_silent; then
24485 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24489 cat >>$CONFIG_STATUS <<_ACEOF
24490 if \$ac_cs_recheck; then
24491 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24492 CONFIG_SHELL=$SHELL
24493 export CONFIG_SHELL
24494 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24498 cat >>$CONFIG_STATUS <<\_ACEOF
24502 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24503 ## Running $as_me. ##
24509 cat >>$CONFIG_STATUS <<_ACEOF
24513 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24517 cat >>$CONFIG_STATUS <<\_ACEOF
24519 # Handling of arguments.
24520 for ac_config_target
in $ac_config_targets
24522 case $ac_config_target in
24523 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24524 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24525 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24526 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24527 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
24528 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24529 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24530 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24531 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
24532 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
24533 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24534 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24536 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24537 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24538 { (exit 1); exit 1; }; };;
24543 # If the user did not use the arguments to specify the items to instantiate,
24544 # then the envvar interface is used. Set only those that are not.
24545 # We use the long form for the default assignment because of an extremely
24546 # bizarre bug on SunOS 4.1.3.
24547 if $ac_need_defaults; then
24548 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24549 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24550 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24553 # Have a temporary directory for convenience. Make it in the build tree
24554 # simply because there is no reason against having it here, and in addition,
24555 # creating and moving files from /tmp can sometimes cause problems.
24556 # Hook for its removal unless debugging.
24557 # Note that there is a small window in which the directory will not be cleaned:
24558 # after its creation but before its name has been assigned to `$tmp'.
24562 trap 'exit_status=$?
24563 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24565 trap '{ (exit 1); exit 1; }' 1 2 13 15
24567 # Create a (secure) tmp directory for tmp files.
24570 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24571 test -n "$tmp" && test -d "$tmp"
24574 tmp
=.
/conf$$
-$RANDOM
24575 (umask 077 && mkdir
"$tmp")
24578 echo "$me: cannot create a temporary directory in ." >&2
24579 { (exit 1); exit 1; }
24583 # Set up the sed scripts for CONFIG_FILES section.
24586 # No need to generate the scripts if there are no CONFIG_FILES.
24587 # This happens for instance when ./config.status config.h
24588 if test -n "$CONFIG_FILES"; then
24595 for ac_last_try
in false false false false false
:; do
24596 cat >conf$
$subs.
sed <<_ACEOF
24597 SHELL!$SHELL$ac_delim
24598 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24599 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24600 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24601 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24602 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24603 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24604 exec_prefix!$exec_prefix$ac_delim
24605 prefix!$prefix$ac_delim
24606 program_transform_name!$program_transform_name$ac_delim
24607 bindir!$bindir$ac_delim
24608 sbindir!$sbindir$ac_delim
24609 libexecdir!$libexecdir$ac_delim
24610 datarootdir!$datarootdir$ac_delim
24611 datadir!$datadir$ac_delim
24612 sysconfdir!$sysconfdir$ac_delim
24613 sharedstatedir!$sharedstatedir$ac_delim
24614 localstatedir!$localstatedir$ac_delim
24615 includedir!$includedir$ac_delim
24616 oldincludedir!$oldincludedir$ac_delim
24617 docdir!$docdir$ac_delim
24618 infodir!$infodir$ac_delim
24619 htmldir!$htmldir$ac_delim
24620 dvidir!$dvidir$ac_delim
24621 pdfdir!$pdfdir$ac_delim
24622 psdir!$psdir$ac_delim
24623 libdir!$libdir$ac_delim
24624 localedir!$localedir$ac_delim
24625 mandir!$mandir$ac_delim
24626 DEFS!$DEFS$ac_delim
24627 ECHO_C!$ECHO_C$ac_delim
24628 ECHO_N!$ECHO_N$ac_delim
24629 ECHO_T!$ECHO_T$ac_delim
24630 LIBS!$LIBS$ac_delim
24631 build_alias!$build_alias$ac_delim
24632 host_alias!$host_alias$ac_delim
24633 target_alias!$target_alias$ac_delim
24634 MAINT!$MAINT$ac_delim
24635 build!$build$ac_delim
24636 build_cpu!$build_cpu$ac_delim
24637 build_vendor!$build_vendor$ac_delim
24638 build_os!$build_os$ac_delim
24639 host!$host$ac_delim
24640 host_cpu!$host_cpu$ac_delim
24641 host_vendor!$host_vendor$ac_delim
24642 host_os!$host_os$ac_delim
24644 CFLAGS!$CFLAGS$ac_delim
24645 LDFLAGS!$LDFLAGS$ac_delim
24646 CPPFLAGS!$CPPFLAGS$ac_delim
24647 ac_ct_CC!$ac_ct_CC$ac_delim
24648 EXEEXT!$EXEEXT$ac_delim
24649 OBJEXT!$OBJEXT$ac_delim
24651 GREP!$GREP$ac_delim
24652 EGREP!$EGREP$ac_delim
24653 LN_S!$LN_S$ac_delim
24654 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24655 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24656 INSTALL_DATA!$INSTALL_DATA$ac_delim
24657 RANLIB!$RANLIB$ac_delim
24658 INSTALL_INFO!$INSTALL_INFO$ac_delim
24659 GZIP_PROG!$GZIP_PROG$ac_delim
24660 LIBSOUND!$LIBSOUND$ac_delim
24661 PKG_CONFIG!$PKG_CONFIG$ac_delim
24662 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24663 ALSA_LIBS!$ALSA_LIBS$ac_delim
24664 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24665 SET_MAKE!$SET_MAKE$ac_delim
24666 XMKMF!$XMKMF$ac_delim
24667 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24668 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24669 GTK_LIBS!$GTK_LIBS$ac_delim
24670 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24671 XFT_LIBS!$XFT_LIBS$ac_delim
24672 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24673 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24674 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24675 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24676 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24677 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24678 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24679 ALLOCA!$ALLOCA$ac_delim
24680 liblockfile!$liblockfile$ac_delim
24681 LIBOBJS!$LIBOBJS$ac_delim
24682 NEED_SETGID!$NEED_SETGID$ac_delim
24683 KMEM_GROUP!$KMEM_GROUP$ac_delim
24684 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24685 GETOPT_H!$GETOPT_H$ac_delim
24686 GETOPTOBJS!$GETOPTOBJS$ac_delim
24687 version!$version$ac_delim
24688 configuration!$configuration$ac_delim
24689 canonical!$canonical$ac_delim
24690 srcdir!$srcdir$ac_delim
24691 lispdir!$lispdir$ac_delim
24692 locallisppath!$locallisppath$ac_delim
24693 lisppath!$lisppath$ac_delim
24696 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24698 elif $ac_last_try; then
24699 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24700 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24701 { (exit 1); exit 1; }; }
24703 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24707 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24708 if test -n "$ac_eof"; then
24709 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24710 ac_eof
=`expr $ac_eof + 1`
24713 cat >>$CONFIG_STATUS <<_ACEOF
24714 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24715 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24718 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24719 s/^/s,@/; s/!/@,|#_!!_#|/
24722 s/'"$ac_delim"'$/,g/; t
24724 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24725 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24726 rm -f conf$
$subs.
sed
24727 cat >>$CONFIG_STATUS <<_ACEOF
24733 for ac_last_try
in false false false false false
:; do
24734 cat >conf$
$subs.
sed <<_ACEOF
24735 x_default_search_path!$x_default_search_path$ac_delim
24736 etcdir!$etcdir$ac_delim
24737 archlibdir!$archlibdir$ac_delim
24738 bitmapdir!$bitmapdir$ac_delim
24739 gamedir!$gamedir$ac_delim
24740 gameuser!$gameuser$ac_delim
24741 c_switch_system!$c_switch_system$ac_delim
24742 c_switch_machine!$c_switch_machine$ac_delim
24743 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24744 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24745 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24746 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24747 machfile!$machfile$ac_delim
24748 opsysfile!$opsysfile$ac_delim
24749 carbon_appdir!$carbon_appdir$ac_delim
24750 LTLIBOBJS!$LTLIBOBJS$ac_delim
24753 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
24755 elif $ac_last_try; then
24756 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24757 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24758 { (exit 1); exit 1; }; }
24760 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24764 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24765 if test -n "$ac_eof"; then
24766 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24767 ac_eof
=`expr $ac_eof + 1`
24770 cat >>$CONFIG_STATUS <<_ACEOF
24771 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24772 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24775 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24776 s/^/s,@/; s/!/@,|#_!!_#|/
24779 s/'"$ac_delim"'$/,g/; t
24781 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24782 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24783 rm -f conf$
$subs.
sed
24784 cat >>$CONFIG_STATUS <<_ACEOF
24791 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24792 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24793 # trailing colons and then remove the whole line if VPATH becomes empty
24794 # (actually we leave an empty line to preserve line numbers).
24795 if test "x$srcdir" = x.
; then
24796 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24797 s/:*\$(srcdir):*/:/
24798 s/:*\${srcdir}:*/:/
24800 s/^\([^=]*=[ ]*\):*/\1/
24806 cat >>$CONFIG_STATUS <<\_ACEOF
24807 fi # test -n "$CONFIG_FILES"
24810 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24813 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24815 case $ac_mode$ac_tag in
24817 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24818 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24819 { (exit 1); exit 1; }; };;
24820 :[FH
]-) ac_tag
=-:-;;
24821 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24838 -) ac_f
="$tmp/stdin";;
24839 *) # Look for the file first in the build tree, then in the source tree
24840 # (if the path is not absolute). The absolute path cannot be DOS-style,
24841 # because $ac_f cannot contain `:'.
24845 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24847 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24848 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24849 { (exit 1); exit 1; }; };;
24851 ac_file_inputs
="$ac_file_inputs $ac_f"
24854 # Let's still pretend it is `configure' which instantiates (i.e., don't
24855 # use $as_me), people would be surprised to read:
24856 # /* config.h. Generated by config.status. */
24857 configure_input
="Generated from "`IFS=:
24858 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24859 if test x
"$ac_file" != x-
; then
24860 configure_input
="$ac_file. $configure_input"
24861 { echo "$as_me:$LINENO: creating $ac_file" >&5
24862 echo "$as_me: creating $ac_file" >&6;}
24866 *:-:* |
*:-) cat >"$tmp/stdin";;
24871 ac_dir
=`$as_dirname -- "$ac_file" ||
24872 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24873 X"$ac_file" : 'X\(//\)[^/]' \| \
24874 X"$ac_file" : 'X\(//\)$' \| \
24875 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24877 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24881 /^X\(\/\/\)[^/].*/{
24896 -*) as_dir
=.
/$as_dir;;
24898 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24902 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24903 *) as_qdir
=$as_dir;;
24905 as_dirs
="'$as_qdir' $as_dirs"
24906 as_dir
=`$as_dirname -- "$as_dir" ||
24907 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24908 X"$as_dir" : 'X\(//\)[^/]' \| \
24909 X"$as_dir" : 'X\(//\)$' \| \
24910 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24916 /^X\(\/\/\)[^/].*/{
24929 test -d "$as_dir" && break
24931 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24932 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24933 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24934 { (exit 1); exit 1; }; }; }
24938 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24940 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24941 # A ".." for each directory in $ac_dir_suffix.
24942 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24943 case $ac_top_builddir_sub in
24944 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24945 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24948 ac_abs_top_builddir
=$ac_pwd
24949 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24950 # for backward compatibility:
24951 ac_top_builddir
=$ac_top_build_prefix
24954 .
) # We are building in place.
24956 ac_top_srcdir
=$ac_top_builddir_sub
24957 ac_abs_top_srcdir
=$ac_pwd ;;
24958 [\\/]* | ?
:[\\/]* ) # Absolute name.
24959 ac_srcdir
=$srcdir$ac_dir_suffix;
24960 ac_top_srcdir
=$srcdir
24961 ac_abs_top_srcdir
=$srcdir ;;
24962 *) # Relative name.
24963 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24964 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24965 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24967 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24977 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24978 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24982 cat >>$CONFIG_STATUS <<\_ACEOF
24983 # If the template does not know about datarootdir, expand it.
24984 # FIXME: This hack should be removed a few years after 2.60.
24985 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24987 case `sed -n '/datarootdir/ {
24996 ' $ac_file_inputs` in
24997 *datarootdir
*) ac_datarootdir_seen
=yes;;
24998 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24999 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25000 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25002 cat >>$CONFIG_STATUS <<_ACEOF
25003 ac_datarootdir_hack='
25004 s&@datadir@&$datadir&g
25005 s&@docdir@&$docdir&g
25006 s&@infodir@&$infodir&g
25007 s&@localedir@&$localedir&g
25008 s&@mandir@&$mandir&g
25009 s&\\\${datarootdir}&$datarootdir&g' ;;
25013 # Neutralize VPATH when `$srcdir' = `.'.
25014 # Shell code in configure.ac might set extrasub.
25015 # FIXME: do we really want to maintain this feature?
25016 cat >>$CONFIG_STATUS <<_ACEOF
25020 cat >>$CONFIG_STATUS <<\_ACEOF
25022 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25023 s
&@configure_input@
&$configure_input&;t t
25024 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25025 s
&@srcdir@
&$ac_srcdir&;t t
25026 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25027 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25028 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25029 s
&@builddir@
&$ac_builddir&;t t
25030 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25031 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25032 s
&@INSTALL@
&$ac_INSTALL&;t t
25033 $ac_datarootdir_hack
25034 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25036 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25037 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25038 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25039 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25040 which seems to be undefined. Please make sure it is defined." >&5
25041 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25042 which seems to be undefined. Please make sure it is defined." >&2;}
25046 -) cat "$tmp/out"; rm -f "$tmp/out";;
25047 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25056 # Transform confdefs.h into a sed script `conftest.defines', that
25057 # substitutes the proper values into config.h.in to produce config.h.
25058 rm -f conftest.defines conftest.
tail
25059 # First, append a space to every undef/define line, to ease matching.
25060 echo 's/$/ /' >conftest.defines
25061 # Then, protect against being on the right side of a sed subst, or in
25062 # an unquoted here document, in config.status. If some macros were
25063 # called several times there might be several #defines for the same
25064 # symbol, which is useless. But do not sort them, since the last
25065 # AC_DEFINE must be honored.
25066 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25067 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25068 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25069 # PARAMS is the parameter list in the macro definition--in most cases, it's
25070 # just an empty string.
25071 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25072 ac_dB
='\\)[ (].*,\\1define\\2'
25080 s/^[ ]*#[ ]*define[ ][ ]*//
25085 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25086 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25087 ' >>conftest.defines
25089 # Remove the space that was appended to ease matching.
25090 # Then replace #undef with comments. This is necessary, for
25091 # example, in the case of _POSIX_SOURCE, which is predefined and required
25092 # on some systems where configure will not decide to define it.
25093 # (The regexp can be short, since the line contains either #define or #undef.)
25095 s,^[ #]*u.*,/* & */,' >>conftest.defines
25097 # Break up conftest.defines:
25098 ac_max_sed_lines
=50
25100 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25101 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25102 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25104 ac_in
='$ac_file_inputs'
25105 ac_out
='"$tmp/out1"'
25106 ac_nxt
='"$tmp/out2"'
25110 # Write a here document:
25111 cat >>$CONFIG_STATUS <<_ACEOF
25112 # First, check the format of the line:
25113 cat >"\$tmp/defines.sed" <<\\CEOF
25114 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25115 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25119 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25121 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25122 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25123 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25124 grep . conftest.
tail >/dev
/null ||
break
25125 rm -f conftest.defines
25126 mv conftest.
tail conftest.defines
25128 rm -f conftest.defines conftest.
tail
25130 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25131 cat >>$CONFIG_STATUS <<\_ACEOF
25132 if test x
"$ac_file" != x-
; then
25133 echo "/* $configure_input */" >"$tmp/config.h"
25134 cat "$ac_result" >>"$tmp/config.h"
25135 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25136 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25137 echo "$as_me: $ac_file is unchanged" >&6;}
25140 mv "$tmp/config.h" $ac_file
25143 echo "/* $configure_input */"
25149 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25150 echo "$as_me: executing $ac_file commands" >&6;}
25155 case $ac_file$ac_mode in
25158 ### Make the necessary directories, if they don't exist.
25159 for dir
in etc lisp
; do
25160 test -d ${dir} || mkdir
${dir}
25163 # Build src/Makefile from ${srcdir}/src/Makefile.c
25164 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25165 # This must be done after src/config.h is built, since we rely on that file.
25167 # Now get this: Some word that is part of the ${srcdir} directory name
25168 # or the ${configuration} value might, just might, happen to be an
25169 # identifier like `sun4' or `i386' or something, and be predefined by
25170 # the C preprocessor to some helpful value like 1, or maybe the empty
25171 # string. Needless to say consequent macro substitutions are less
25172 # than conducive to the makefile finding the correct directory.
25173 undefs
="`echo $top_srcdir $configuration $canonical |
25174 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25175 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25178 echo creating src
/epaths.h
25179 ${MAKE-make} epaths-force
25181 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25182 # `..' to `. .' unless invoked with -traditional
25184 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25185 CPPFLAGS
="$CPPFLAGS -traditional"
25188 echo creating lib-src
/Makefile
25190 rm -f junk.c junk1.c junk2.c
25191 sed -e '/start of cpp stuff/q' \
25192 < Makefile.c
> junk1.c
25193 sed -e '1,/start of cpp stuff/d'\
25194 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25195 < Makefile.c
> junk.c
25196 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25197 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25198 cat junk1.c junk2.c
> Makefile.new
25199 rm -f junk.c junk1.c junk2.c
25200 chmod 444 Makefile.new
25201 mv -f Makefile.new Makefile
25204 echo creating src
/Makefile
25206 rm -f junk.c junk1.c junk2.c
25207 sed -e '/start of cpp stuff/q' \
25208 < Makefile.c
> junk1.c
25209 sed -e '1,/start of cpp stuff/d'\
25210 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25211 < Makefile.c
> junk.c
25212 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
25213 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
25215 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25216 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25217 cat junk1.c junk2.c
> Makefile.new
25218 rm -f junk.c junk1.c junk2.c
25219 chmod 444 Makefile.new
25220 mv -f Makefile.new Makefile
25223 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25224 echo creating src
/.gdbinit
25225 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25228 # This is how we know whether to re-run configure in certain cases.
25229 touch src
/config.stamp
25237 { (exit 0); exit 0; }
25239 chmod +x
$CONFIG_STATUS
25240 ac_clean_files
=$ac_clean_files_save
25243 # configure is writing to config.log, and then calls config.status.
25244 # config.status does its own redirection, appending to config.log.
25245 # Unfortunately, on DOS this fails, as config.log is still kept open
25246 # by configure, so config.status won't be able to write to it; its
25247 # output is simply discarded. So we exec the FD to /dev/null,
25248 # effectively closing config.log, so it can be properly (re)opened and
25249 # appended to by config.status. When coming back to configure, we
25250 # need to make the FD available again.
25251 if test "$no_create" != yes; then
25253 ac_config_status_args
=
25254 test "$silent" = yes &&
25255 ac_config_status_args
="$ac_config_status_args --quiet"
25257 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25259 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25260 # would make configure fail if this is the last instruction.
25261 $ac_cs_success ||
{ (exit 1); exit 1; }