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 Please tell bug-autoconf@gnu.org about your system
,
416 echo including any error possibly output before this message.
417 echo This can
help us improve future autoconf versions.
418 echo Configuration will now proceed without shell functions.
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
712 x_default_search_path
729 ac_precious_vars
='build_alias
741 # Initialize some variables set by options.
743 ac_init_version
=false
744 # The variables have the same names as the options, with
745 # dashes changed to underlines.
753 program_transform_name
=s
,x
,x
,
761 # Installation directory options.
762 # These are left unexpanded so users can "make install exec_prefix=/foo"
763 # and all the variables that are supposed to be based on exec_prefix
764 # by default will actually change.
765 # Use braces instead of parens because sh, perl, etc. also accept them.
766 # (The list follows the same order as the GNU Coding Standards.)
767 bindir
='${exec_prefix}/bin'
768 sbindir
='${exec_prefix}/sbin'
769 libexecdir
='${exec_prefix}/libexec'
770 datarootdir
='${prefix}/share'
771 datadir
='${datarootdir}'
772 sysconfdir
='${prefix}/etc'
773 sharedstatedir
='${prefix}/com'
774 localstatedir
='${prefix}/var'
775 includedir
='${prefix}/include'
776 oldincludedir
='/usr/include'
777 docdir
='${datarootdir}/doc/${PACKAGE}'
778 infodir
='${datarootdir}/info'
783 libdir
='${exec_prefix}/lib'
784 localedir
='${datarootdir}/locale'
785 mandir
='${datarootdir}/man'
791 # If the previous option needs an argument, assign it.
792 if test -n "$ac_prev"; then
793 eval $ac_prev=\
$ac_option
799 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
803 # Accept the important Cygnus configure options, so we can diagnose typos.
805 case $ac_dashdash$ac_option in
809 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
811 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
814 -build |
--build |
--buil |
--bui |
--bu)
815 ac_prev
=build_alias
;;
816 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
817 build_alias
=$ac_optarg ;;
819 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
820 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
821 ac_prev
=cache_file
;;
822 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
823 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
824 cache_file
=$ac_optarg ;;
827 cache_file
=config.cache
;;
829 -datadir |
--datadir |
--datadi |
--datad)
831 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
832 datadir
=$ac_optarg ;;
834 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
835 |
--dataroo |
--dataro |
--datar)
836 ac_prev
=datarootdir
;;
837 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
838 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
839 datarootdir
=$ac_optarg ;;
841 -disable-* |
--disable-*)
842 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
843 # Reject names that are not valid shell variable names.
844 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
845 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
846 { (exit 1); exit 1; }; }
847 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
848 eval enable_
$ac_feature=no
;;
850 -docdir |
--docdir |
--docdi |
--doc |
--do)
852 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
855 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
857 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
860 -enable-* |
--enable-*)
861 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
864 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
865 { (exit 1); exit 1; }; }
866 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
867 eval enable_
$ac_feature=\
$ac_optarg ;;
869 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
870 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
871 |
--exec |
--exe |
--ex)
872 ac_prev
=exec_prefix
;;
873 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
874 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
875 |
--exec=* |
--exe=* |
--ex=*)
876 exec_prefix
=$ac_optarg ;;
878 -gas |
--gas |
--ga |
--g)
879 # Obsolete; use --with-gas.
882 -help |
--help |
--hel |
--he |
-h)
884 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
885 ac_init_help
=recursive
;;
886 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
887 ac_init_help
=short
;;
889 -host |
--host |
--hos |
--ho)
890 ac_prev
=host_alias
;;
891 -host=* |
--host=* |
--hos=* |
--ho=*)
892 host_alias
=$ac_optarg ;;
894 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
896 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
898 htmldir
=$ac_optarg ;;
900 -includedir |
--includedir |
--includedi |
--included |
--include \
901 |
--includ |
--inclu |
--incl |
--inc)
902 ac_prev
=includedir
;;
903 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
904 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
905 includedir
=$ac_optarg ;;
907 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
909 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
910 infodir
=$ac_optarg ;;
912 -libdir |
--libdir |
--libdi |
--libd)
914 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
917 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
918 |
--libexe |
--libex |
--libe)
919 ac_prev
=libexecdir
;;
920 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
921 |
--libexe=* |
--libex=* |
--libe=*)
922 libexecdir
=$ac_optarg ;;
924 -localedir |
--localedir |
--localedi |
--localed |
--locale)
926 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
927 localedir
=$ac_optarg ;;
929 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
930 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
931 ac_prev
=localstatedir
;;
932 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
933 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
934 localstatedir
=$ac_optarg ;;
936 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
938 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
942 # Obsolete; use --without-fp.
945 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
946 |
--no-cr |
--no-c |
-n)
949 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
950 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
953 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
954 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
955 |
--oldin |
--oldi |
--old |
--ol |
--o)
956 ac_prev
=oldincludedir
;;
957 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
958 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
959 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
960 oldincludedir
=$ac_optarg ;;
962 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
964 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
967 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
968 |
--program-pre |
--program-pr |
--program-p)
969 ac_prev
=program_prefix
;;
970 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
971 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
972 program_prefix
=$ac_optarg ;;
974 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
975 |
--program-suf |
--program-su |
--program-s)
976 ac_prev
=program_suffix
;;
977 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
978 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
979 program_suffix
=$ac_optarg ;;
981 -program-transform-name |
--program-transform-name \
982 |
--program-transform-nam |
--program-transform-na \
983 |
--program-transform-n |
--program-transform- \
984 |
--program-transform |
--program-transfor \
985 |
--program-transfo |
--program-transf \
986 |
--program-trans |
--program-tran \
987 |
--progr-tra |
--program-tr |
--program-t)
988 ac_prev
=program_transform_name
;;
989 -program-transform-name=* |
--program-transform-name=* \
990 |
--program-transform-nam=* |
--program-transform-na=* \
991 |
--program-transform-n=* |
--program-transform-=* \
992 |
--program-transform=* |
--program-transfor=* \
993 |
--program-transfo=* |
--program-transf=* \
994 |
--program-trans=* |
--program-tran=* \
995 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
996 program_transform_name
=$ac_optarg ;;
998 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1000 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1001 pdfdir
=$ac_optarg ;;
1003 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1005 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1008 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1009 |
-silent |
--silent |
--silen |
--sile |
--sil)
1012 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1014 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1016 sbindir
=$ac_optarg ;;
1018 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1019 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1020 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1022 ac_prev
=sharedstatedir
;;
1023 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1024 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1025 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1027 sharedstatedir
=$ac_optarg ;;
1029 -site |
--site |
--sit)
1031 -site=* |
--site=* |
--sit=*)
1034 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1036 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1037 srcdir
=$ac_optarg ;;
1039 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1040 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1041 ac_prev
=sysconfdir
;;
1042 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1043 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1044 sysconfdir
=$ac_optarg ;;
1046 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1047 ac_prev
=target_alias
;;
1048 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1049 target_alias
=$ac_optarg ;;
1051 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1054 -version |
--version |
--versio |
--versi |
--vers |
-V)
1055 ac_init_version
=: ;;
1058 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1061 { echo "$as_me: error: invalid package name: $ac_package" >&2
1062 { (exit 1); exit 1; }; }
1063 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1064 eval with_
$ac_package=\
$ac_optarg ;;
1066 -without-* |
--without-*)
1067 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1068 # Reject names that are not valid shell variable names.
1069 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1070 { echo "$as_me: error: invalid package name: $ac_package" >&2
1071 { (exit 1); exit 1; }; }
1072 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1073 eval with_
$ac_package=no
;;
1076 # Obsolete; use --with-x.
1079 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1080 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1081 ac_prev
=x_includes
;;
1082 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1083 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1084 x_includes
=$ac_optarg ;;
1086 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1087 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1088 ac_prev
=x_libraries
;;
1089 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1090 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1091 x_libraries
=$ac_optarg ;;
1093 -*) { echo "$as_me: error: unrecognized option: $ac_option
1094 Try \`$0 --help' for more information." >&2
1095 { (exit 1); exit 1; }; }
1099 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1100 # Reject names that are not valid shell variable names.
1101 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1102 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1103 { (exit 1); exit 1; }; }
1104 eval $ac_envvar=\
$ac_optarg
1105 export $ac_envvar ;;
1108 # FIXME: should be removed in autoconf 3.0.
1109 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1110 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1111 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1112 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1118 if test -n "$ac_prev"; then
1119 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1120 { echo "$as_me: error: missing argument to $ac_option" >&2
1121 { (exit 1); exit 1; }; }
1124 # Be sure to have absolute directory names.
1125 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1126 datadir sysconfdir sharedstatedir localstatedir includedir \
1127 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1128 libdir localedir mandir
1130 eval ac_val
=\$
$ac_var
1132 [\\/$
]* | ?
:[\\/]* ) continue;;
1133 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1135 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1136 { (exit 1); exit 1; }; }
1139 # There might be people who depend on the old broken behavior: `$host'
1140 # used to hold the argument of --host etc.
1141 # FIXME: To remove some day.
1144 target
=$target_alias
1146 # FIXME: To remove some day.
1147 if test "x$host_alias" != x
; then
1148 if test "x$build_alias" = x
; then
1149 cross_compiling
=maybe
1150 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1151 If a cross compiler is detected then cross compile mode will be used." >&2
1152 elif test "x$build_alias" != "x$host_alias"; then
1158 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1160 test "$silent" = yes && exec 6>/dev
/null
1163 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1164 ac_ls_di
=`ls -di .` &&
1165 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1166 { echo "$as_me: error: Working directory cannot be determined" >&2
1167 { (exit 1); exit 1; }; }
1168 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1169 { echo "$as_me: error: pwd does not report name of working directory" >&2
1170 { (exit 1); exit 1; }; }
1173 # Find the source files, if location was not specified.
1174 if test -z "$srcdir"; then
1175 ac_srcdir_defaulted
=yes
1176 # Try the directory containing this script, then the parent directory.
1177 ac_confdir
=`$as_dirname -- "$0" ||
1178 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1179 X"$0" : 'X\(//\)[^/]' \| \
1180 X"$0" : 'X\(//\)$' \| \
1181 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1183 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1201 if test ! -r "$srcdir/$ac_unique_file"; then
1205 ac_srcdir_defaulted
=no
1207 if test ! -r "$srcdir/$ac_unique_file"; then
1208 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1209 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1210 { (exit 1); exit 1; }; }
1212 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1214 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1215 { (exit 1); exit 1; }; }
1217 # When building in place, set srcdir=.
1218 if test "$ac_abs_confdir" = "$ac_pwd"; then
1221 # Remove unnecessary trailing slashes from srcdir.
1222 # Double slashes in file names in object file debugging info
1223 # mess up M-x gdb in Emacs.
1225 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1227 for ac_var
in $ac_precious_vars; do
1228 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1229 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1230 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1231 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1235 # Report the --help message.
1237 if test "$ac_init_help" = "long"; then
1238 # Omit some internal or obsolete options to make the list less imposing.
1239 # This message is too long to be a string in the A/UX 3.1 sh.
1241 \`configure' configures this package to adapt to many kinds of systems.
1243 Usage: $0 [OPTION]... [VAR=VALUE]...
1245 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1246 VAR=VALUE. See below for descriptions of some of the useful variables.
1248 Defaults for the options are specified in brackets.
1251 -h, --help display this help and exit
1252 --help=short display options specific to this package
1253 --help=recursive display the short help of all the included packages
1254 -V, --version display version information and exit
1255 -q, --quiet, --silent do not print \`checking...' messages
1256 --cache-file=FILE cache test results in FILE [disabled]
1257 -C, --config-cache alias for \`--cache-file=config.cache'
1258 -n, --no-create do not create output files
1259 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1261 Installation directories:
1262 --prefix=PREFIX install architecture-independent files in PREFIX
1263 [$ac_default_prefix]
1264 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1267 By default, \`make install' will install all the files in
1268 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1269 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1270 for instance \`--prefix=\$HOME'.
1272 For better control, use the options below.
1274 Fine tuning of the installation directories:
1275 --bindir=DIR user executables [EPREFIX/bin]
1276 --sbindir=DIR system admin executables [EPREFIX/sbin]
1277 --libexecdir=DIR program executables [EPREFIX/libexec]
1278 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1279 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1280 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1281 --libdir=DIR object code libraries [EPREFIX/lib]
1282 --includedir=DIR C header files [PREFIX/include]
1283 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1284 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1285 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1286 --infodir=DIR info documentation [DATAROOTDIR/info]
1287 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1288 --mandir=DIR man documentation [DATAROOTDIR/man]
1289 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1290 --htmldir=DIR html documentation [DOCDIR]
1291 --dvidir=DIR dvi documentation [DOCDIR]
1292 --pdfdir=DIR pdf documentation [DOCDIR]
1293 --psdir=DIR ps documentation [DOCDIR]
1299 --program-prefix=PREFIX prepend PREFIX to installed program names
1300 --program-suffix=SUFFIX append SUFFIX to installed program names
1301 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1304 --x-includes=DIR X include files are
in DIR
1305 --x-libraries=DIR X library files are
in DIR
1308 --build=BUILD configure
for building on BUILD
[guessed
]
1309 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1313 if test -n "$ac_init_help"; then
1318 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1319 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1320 --enable-carbon-app[=DIR
]
1321 specify
install directory
for Emacs.app on Mac OS X
1323 --enable-asserts compile code with asserts enabled
1324 --enable-maintainer-mode
1325 enable make rules and dependencies not useful
(and
1326 sometimes confusing
) to the casual installer
1327 --enable-locallisppath=PATH
1328 directories Emacs should search
for lisp files
1329 specific to this site
1330 --disable-largefile omit support
for large files
1333 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1334 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1335 --without-gcc don
't use GCC to compile Emacs if GCC is found
1336 --without-pop don't support POP
mail retrieval with movemail
1337 --with-kerberos support Kerberos-authenticated POP
1338 --with-kerberos5 support Kerberos version
5 authenticated POP
1339 --with-hesiod support Hesiod to get the POP server
host
1340 --without-sound don
't compile with sound support
1341 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1343 --with-xpm use -lXpm for displaying XPM images
1344 --with-jpeg use -ljpeg for displaying JPEG images
1345 --with-tiff use -ltiff for displaying TIFF images
1346 --with-gif use -lgif (or -lungif) for displaying GIF images
1347 --with-png use -lpng for displaying PNG images
1348 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1349 --with-rsvg use -lrsvg-2 for displaying SVG images
1350 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1351 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1352 --without-toolkit-scroll-bars
1353 don't use Motif or Xaw3d scroll bars
1354 --without-xaw3d don
't use Xaw3d
1355 --without-xim don't use X11 XIM
1356 --without-carbon don
't use Carbon GUI on Mac OS X
1357 --with-x use the X Window System
1359 Some influential environment variables:
1360 CC C compiler command
1361 CFLAGS C compiler flags
1362 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1363 nonstandard directory <lib dir>
1364 LIBS libraries to pass to the linker, e.g. -l<library>
1365 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1366 you have headers in a nonstandard directory <include dir>
1368 XMKMF Path to xmkmf, Makefile generator for X Window System
1370 Use these variables to override the choices made by `configure' or to
help
1371 it to
find libraries and programs with nonstandard names
/locations.
1377 if test "$ac_init_help" = "recursive"; then
1378 # If there are subdirs, report their specific --help.
1379 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1380 test -d "$ac_dir" ||
continue
1384 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1386 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1387 # A ".." for each directory in $ac_dir_suffix.
1388 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1389 case $ac_top_builddir_sub in
1390 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1391 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1394 ac_abs_top_builddir
=$ac_pwd
1395 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1396 # for backward compatibility:
1397 ac_top_builddir
=$ac_top_build_prefix
1400 .
) # We are building in place.
1402 ac_top_srcdir
=$ac_top_builddir_sub
1403 ac_abs_top_srcdir
=$ac_pwd ;;
1404 [\\/]* | ?
:[\\/]* ) # Absolute name.
1405 ac_srcdir
=$srcdir$ac_dir_suffix;
1406 ac_top_srcdir
=$srcdir
1407 ac_abs_top_srcdir
=$srcdir ;;
1409 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1410 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1411 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1413 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1415 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1416 # Check for guested configure.
1417 if test -f "$ac_srcdir/configure.gnu"; then
1419 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1420 elif test -f "$ac_srcdir/configure"; then
1422 $SHELL "$ac_srcdir/configure" --help=recursive
1424 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1426 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1430 test -n "$ac_init_help" && exit $ac_status
1431 if $ac_init_version; then
1434 generated by GNU Autoconf
2.61
1436 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1437 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1438 This configure
script is free software
; the Free Software Foundation
1439 gives unlimited permission to copy
, distribute and modify it.
1443 cat >config.log
<<_ACEOF
1444 This file contains any messages produced by compilers while
1445 running configure, to aid debugging if configure makes a mistake.
1447 It was created by $as_me, which was
1448 generated by GNU Autoconf 2.61. Invocation command line was
1460 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1461 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1462 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1463 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1464 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1466 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1467 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1469 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1470 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1471 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1472 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1473 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1474 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1475 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1483 test -z "$as_dir" && as_dir
=.
1484 echo "PATH: $as_dir"
1500 # Keep a trace of the command line.
1501 # Strip out --no-create and --no-recursion so they do not pile up.
1502 # Strip out --silent because we don't want to record it for future runs.
1503 # Also quote any args containing shell meta-characters.
1504 # Make two passes to allow for proper duplicate-argument suppression.
1508 ac_must_keep_next
=false
1514 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1515 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1516 |
-silent |
--silent |
--silen |
--sile |
--sil)
1519 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1524 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1525 if test $ac_must_keep_next = true
; then
1526 ac_must_keep_next
=false
# Got value, back to normal.
1529 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1530 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1531 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1532 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1533 case "$ac_configure_args0 " in
1534 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1537 -* ) ac_must_keep_next
=true
;;
1540 ac_configure_args
="$ac_configure_args '$ac_arg'"
1545 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1546 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1548 # When interrupted or exit'd, cleanup temporary files, and complete
1549 # config.log. We remove comments because anyway the quotes in there
1550 # would cause problems or look ugly.
1551 # WARNING: Use '\'' to represent an apostrophe within the trap.
1552 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1553 trap 'exit_status=$?
1554 # Save into config.log some information that might help in debugging.
1559 ## ---------------- ##
1560 ## Cache variables. ##
1561 ## ---------------- ##
1564 # The following way of writing the cache mishandles newlines in values,
1566 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1567 eval ac_val=\$$ac_var
1571 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1572 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1575 _ | IFS | as_nl) ;; #(
1576 *) $as_unset $ac_var ;;
1581 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1582 *${as_nl}ac_space=\ *)
1584 "s/'\''/'\''\\\\'\'''\''/g;
1585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1588 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1596 ## ----------------- ##
1597 ## Output variables. ##
1598 ## ----------------- ##
1601 for ac_var in $ac_subst_vars
1603 eval ac_val=\$$ac_var
1605 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1607 echo "$ac_var='\''$ac_val'\''"
1611 if test -n "$ac_subst_files"; then
1613 ## ------------------- ##
1614 ## File substitutions. ##
1615 ## ------------------- ##
1618 for ac_var
in $ac_subst_files
1620 eval ac_val
=\$
$ac_var
1622 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1624 echo "$ac_var='\''$ac_val'\''"
1629 if test -s confdefs.h; then
1639 test "$ac_signal" != 0 &&
1640 echo "$as_me: caught signal $ac_signal"
1641 echo "$as_me: exit $exit_status"
1643 rm -f core *.core core.conftest.* &&
1644 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1647 for ac_signal
in 1 2 13 15; do
1648 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1652 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1653 rm -f -r conftest
* confdefs.h
1655 # Predefined preprocessor variables.
1657 cat >>confdefs.h
<<_ACEOF
1658 #define PACKAGE_NAME "$PACKAGE_NAME"
1662 cat >>confdefs.h
<<_ACEOF
1663 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1667 cat >>confdefs.h
<<_ACEOF
1668 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1672 cat >>confdefs.h
<<_ACEOF
1673 #define PACKAGE_STRING "$PACKAGE_STRING"
1677 cat >>confdefs.h
<<_ACEOF
1678 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1682 # Let the site file select an alternate cache file if it wants to.
1683 # Prefer explicitly selected file to automatically selected ones.
1684 if test -n "$CONFIG_SITE"; then
1685 set x
"$CONFIG_SITE"
1686 elif test "x$prefix" != xNONE
; then
1687 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1689 set x
"$ac_default_prefix/share/config.site" \
1690 "$ac_default_prefix/etc/config.site"
1695 if test -r "$ac_site_file"; then
1696 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1697 echo "$as_me: loading site script $ac_site_file" >&6;}
1698 sed 's/^/| /' "$ac_site_file" >&5
1703 if test -r "$cache_file"; then
1704 # Some versions of bash will fail to source /dev/null (special
1705 # files actually), so we avoid doing that.
1706 if test -f "$cache_file"; then
1707 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1708 echo "$as_me: loading cache $cache_file" >&6;}
1710 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1711 *) .
"./$cache_file";;
1715 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1716 echo "$as_me: creating cache $cache_file" >&6;}
1720 ac_header_list
="$ac_header_list sys/time.h"
1721 ac_header_list
="$ac_header_list unistd.h"
1722 ac_func_list
="$ac_func_list alarm"
1723 # Check that the precious variables saved in the cache have kept the same
1725 ac_cache_corrupted
=false
1726 for ac_var
in $ac_precious_vars; do
1727 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1728 eval ac_new_set
=\
$ac_env_${ac_var}_set
1729 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1730 eval ac_new_val
=\
$ac_env_${ac_var}_value
1731 case $ac_old_set,$ac_new_set in
1733 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1734 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1735 ac_cache_corrupted
=: ;;
1737 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1738 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1739 ac_cache_corrupted
=: ;;
1742 if test "x$ac_old_val" != "x$ac_new_val"; then
1743 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1744 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1745 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1746 echo "$as_me: former value: $ac_old_val" >&2;}
1747 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1748 echo "$as_me: current value: $ac_new_val" >&2;}
1749 ac_cache_corrupted
=:
1752 # Pass precious variables to config.status.
1753 if test "$ac_new_set" = set; then
1755 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1756 *) ac_arg
=$ac_var=$ac_new_val ;;
1758 case " $ac_configure_args " in
1759 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1760 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1764 if $ac_cache_corrupted; then
1765 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1766 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1767 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1768 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1769 { (exit 1); exit 1; }; }
1789 ac_cpp
='$CPP $CPPFLAGS'
1790 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1791 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1792 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1795 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1798 test "$program_prefix" != NONE
&&
1799 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1800 # Use a double $ so make ignores it.
1801 test "$program_suffix" != NONE
&&
1802 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1803 # Double any \ or $. echo might interpret backslashes.
1804 # By default was `s,x,x', remove it if useless.
1805 cat <<\_ACEOF
>conftest.
sed
1806 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1808 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1812 lispdir
='${datadir}/emacs/${version}/lisp'
1813 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1814 '${datadir}/emacs/site-lisp'
1815 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1816 etcdir
='${datadir}/emacs/${version}/etc'
1817 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1818 docdir
='${datadir}/emacs/${version}/etc'
1819 gamedir
='${localstatedir}/games/emacs'
1825 # Check whether --with-gcc was given.
1826 if test "${with_gcc+set}" = set; then
1832 # Check whether --with-pop was given.
1833 if test "${with_pop+set}" = set; then
1834 withval
=$with_pop; if test "$withval" = yes; then
1835 cat >>confdefs.h
<<\_ACEOF
1836 #define MAIL_USE_POP 1
1842 cat >>confdefs.h
<<\_ACEOF
1843 #define MAIL_USE_POP 1
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
1864 # Check whether --with-kerberos5 was given.
1865 if test "${with_kerberos5+set}" = set; then
1866 withval
=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1867 if test "${with_kerberos+set}" != set; then
1869 cat >>confdefs.h
<<\_ACEOF
1875 cat >>confdefs.h
<<\_ACEOF
1884 # Check whether --with-hesiod was given.
1885 if test "${with_hesiod+set}" = set; then
1886 withval
=$with_hesiod; if test "$withval" = yes; then
1888 cat >>confdefs.h
<<\_ACEOF
1897 # Check whether --with-sound was given.
1898 if test "${with_sound+set}" = set; then
1899 withval
=$with_sound;
1904 # Check whether --with-x-toolkit was given.
1905 if test "${with_x_toolkit+set}" = set; then
1906 withval
=$with_x_toolkit; case "${withval}" in
1907 y | ye |
yes ) val
=gtk
;;
1909 l | lu | luc | luci | lucid
) val
=lucid
;;
1910 a |
at | ath | athe | athen | athena
) val
=athena
;;
1911 m | mo | mot | moti | motif
) val
=motif
;;
1912 g | gt | gtk
) val
=gtk
;;
1914 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1915 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1916 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1917 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1918 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1919 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1920 { (exit 1); exit 1; }; }
1929 # Check whether --with-xpm was given.
1930 if test "${with_xpm+set}" = set; then
1935 # Check whether --with-jpeg was given.
1936 if test "${with_jpeg+set}" = set; then
1941 # Check whether --with-tiff was given.
1942 if test "${with_tiff+set}" = set; then
1947 # Check whether --with-gif was given.
1948 if test "${with_gif+set}" = set; then
1953 # Check whether --with-png was given.
1954 if test "${with_png+set}" = set; then
1959 # Check whether --with-gpm was given.
1960 if test "${with_gpm+set}" = set; then
1965 # Check whether --with-rsvg was given.
1966 if test "${with_rsvg+set}" = set; then
1971 # Check whether --with-gtk was given.
1972 if test "${with_gtk+set}" = set; then
1977 # Check whether --with-pkg-config-prog was given.
1978 if test "${with_pkg_config_prog+set}" = set; then
1979 withval
=$with_pkg_config_prog;
1983 # Check whether --with-toolkit-scroll-bars was given.
1984 if test "${with_toolkit_scroll_bars+set}" = set; then
1985 withval
=$with_toolkit_scroll_bars;
1989 # Check whether --with-xaw3d was given.
1990 if test "${with_xaw3d+set}" = set; then
1991 withval
=$with_xaw3d;
1995 # Check whether --with-xim was given.
1996 if test "${with_xim+set}" = set; then
2001 # Check whether --with-carbon was given.
2002 if test "${with_carbon+set}" = set; then
2003 withval
=$with_carbon;
2007 # Check whether --enable-carbon-app was given.
2008 if test "${enable_carbon_app+set}" = set; then
2009 enableval
=$enable_carbon_app; carbon_appdir_x
=${enableval}
2013 # Check whether --enable-asserts was given.
2014 if test "${enable_asserts+set}" = set; then
2015 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2021 # Check whether --enable-maintainer-mode was given.
2022 if test "${enable_maintainer_mode+set}" = set; then
2023 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2025 USE_MAINTAINER_MODE
=no
2028 if test $USE_MAINTAINER_MODE = yes; then
2035 # Check whether --enable-locallisppath was given.
2036 if test "${enable_locallisppath+set}" = set; then
2037 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2039 elif test "${enableval}" != "yes"; then
2040 locallisppath
=${enableval}
2045 #### Make srcdir absolute, if it isn't already. It's important to
2046 #### avoid running the path through pwd unnecessarily, since pwd can
2047 #### give you automounter prefixes, which can go away. We do all this
2048 #### so Emacs can find its files when run uninstalled.
2049 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2054 ## We may be able to use the $PWD environment variable to make this
2055 ## absolute. But sometimes PWD is inaccurate.
2056 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2057 ## but that tested only for a well-formed and valid PWD,
2058 ## it did not object when PWD was well-formed and valid but just wrong.
2059 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2063 srcdir
="`(cd ${srcdir}; pwd)`"
2066 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2069 #### Check if the source directory already has a configured system in it.
2070 if test `pwd` != `(cd ${srcdir} && pwd)` \
2071 && test -f "${srcdir}/src/config.h" ; then
2072 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2073 as a build directory right now; it has been configured in its own
2074 right. To configure in another directory as well, you MUST
2075 use GNU make. If you do not have GNU make, then you must
2076 now do \`make distclean' in ${srcdir},
2077 and then run $0 again." >&5
2078 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2079 as a build directory right now; it has been configured in its own
2080 right. To configure in another directory as well, you MUST
2081 use GNU make. If you do not have GNU make, then you must
2082 now do \`make distclean' in ${srcdir},
2083 and then run $0 again." >&2;}
2086 #### Given the configuration name, set machfile and opsysfile to the
2087 #### names of the m/*.h and s/*.h files we should use.
2089 ### Canonicalize the configuration name.
2092 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2093 if test -f "$ac_dir/install-sh"; then
2095 ac_install_sh
="$ac_aux_dir/install-sh -c"
2097 elif test -f "$ac_dir/install.sh"; then
2099 ac_install_sh
="$ac_aux_dir/install.sh -c"
2101 elif test -f "$ac_dir/shtool"; then
2103 ac_install_sh
="$ac_aux_dir/shtool install -c"
2107 if test -z "$ac_aux_dir"; then
2108 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2109 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2110 { (exit 1); exit 1; }; }
2113 # These three variables are undocumented and unsupported,
2114 # and are intended to be withdrawn in a future Autoconf release.
2115 # They can cause serious problems if a builder's source tree is in a directory
2116 # whose full name contains unusual characters.
2117 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2118 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2119 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2122 # Make sure we can run config.sub.
2123 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2124 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2125 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2126 { (exit 1); exit 1; }; }
2128 { echo "$as_me:$LINENO: checking build system type" >&5
2129 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2130 if test "${ac_cv_build+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2133 ac_build_alias
=$build_alias
2134 test "x$ac_build_alias" = x
&&
2135 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2136 test "x$ac_build_alias" = x
&&
2137 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2138 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2139 { (exit 1); exit 1; }; }
2140 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2141 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2142 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2143 { (exit 1); exit 1; }; }
2146 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2147 echo "${ECHO_T}$ac_cv_build" >&6; }
2148 case $ac_cv_build in
2150 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2151 echo "$as_me: error: invalid value of canonical build" >&2;}
2152 { (exit 1); exit 1; }; };;
2155 ac_save_IFS
=$IFS; IFS
='-'
2161 # Remember, the first character of IFS is used to create $*,
2162 # except with old shells:
2165 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2168 { echo "$as_me:$LINENO: checking host system type" >&5
2169 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2170 if test "${ac_cv_host+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 if test "x$host_alias" = x
; then
2174 ac_cv_host
=$ac_cv_build
2176 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2177 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2178 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2179 { (exit 1); exit 1; }; }
2183 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2184 echo "${ECHO_T}$ac_cv_host" >&6; }
2187 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2188 echo "$as_me: error: invalid value of canonical host" >&2;}
2189 { (exit 1); exit 1; }; };;
2192 ac_save_IFS
=$IFS; IFS
='-'
2198 # Remember, the first character of IFS is used to create $*,
2199 # except with old shells:
2202 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2206 configuration
=${host_alias-${build_alias-$host}}
2210 ### If you add support for a new configuration, add code to this
2211 ### switch statement to recognize your configuration name and select
2212 ### the appropriate operating system and machine description files.
2214 ### You would hope that you could choose an m/*.h file pretty much
2215 ### based on the machine portion of the configuration name, and an s-
2216 ### file based on the operating system portion. However, it turns out
2217 ### that each m/*.h file is pretty manufacturer-specific - for
2218 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2219 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2220 ### machines. So we basically have to have a special case for each
2221 ### configuration name.
2223 ### As far as handling version numbers on operating systems is
2224 ### concerned, make sure things will fail in a fixable way. If
2225 ### /etc/MACHINES doesn't say anything about version numbers, be
2226 ### prepared to handle anything reasonably. If version numbers
2227 ### matter, be sure /etc/MACHINES says something about it.
2229 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2230 ### "System V Release 4"; he writes, "The old convention encouraged
2231 ### confusion between `system' and `release' levels'."
2233 machine
='' opsys
='' unported
=no
2234 case "${canonical}" in
2239 case "${canonical}" in
2240 alpha
*-*-freebsd*) machine
=alpha
;;
2241 ia64-
*-freebsd*) machine
=ia64
;;
2242 sparc64-
*-freebsd*) machine
=sparc
;;
2243 powerpc-
*-freebsd*) machine
=macppc
;;
2244 i
[3456]86-*-freebsd*) machine
=intel386
;;
2245 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2249 ## FreeBSD kernel + glibc based userland
2252 case "${canonical}" in
2253 alpha
*-*-kfreebsd*) machine
=alpha
;;
2254 ia64-
*-kfreebsd*) machine
=ia64
;;
2255 sparc64-
*-kfreebsd*) machine
=sparc
;;
2256 powerpc-
*-kfreebsd*) machine
=macppc
;;
2257 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2258 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2265 if test -f /usr
/lib
/crti.o
; then
2267 cat >>confdefs.h
<<\_ACEOF
2273 case "${canonical}" in
2274 alpha
*-*-netbsd*) machine
=alpha
;;
2275 i
[3456]86-*-netbsd*) machine
=intel386
;;
2277 # This is somewhat bogus.
2278 machine
=hp9000s300
;;
2279 mips-
*-netbsd*) machine
=pmax
;;
2280 mipsel-
*-netbsd*) machine
=pmax
;;
2281 mipseb-
*-netbsd*) machine
=pmax
;;
2282 ns32k-
*-netbsd*) machine
=ns32000
;;
2283 powerpc-
*-netbsd*) machine
=macppc
;;
2284 sparc
*-*-netbsd*) machine
=sparc
;;
2285 vax-
*-netbsd*) machine
=vax
;;
2286 arm-
*-netbsd*) machine
=arm
;;
2287 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2288 hppa-
*-netbsd*) machine
=hp800
;;
2289 shle-
*-netbsd*) machine
=sh3el
;;
2296 case "${canonical}" in
2297 alpha
*-*-openbsd*) machine
=alpha
;;
2298 arm-
*-openbsd*) machine
=arm
;;
2299 hppa-
*-openbsd*) machine
=hp9000s300
;;
2300 i386-
*-openbsd*) machine
=intel386
;;
2301 m68k-
*-openbsd*) machine
=hp9000s300
;;
2302 m88k-
*-openbsd*) machine
=aviion
;;
2303 mips64-
*-openbsd*) machine
=mips64
;;
2304 powerpc-
*-openbsd*) machine
=macppc
;;
2305 sh-
*-openbsd*) machine
=sh3el
;;
2306 sparc
*-*-openbsd*) machine
=sparc
;;
2307 vax-
*-openbsd*) machine
=vax
;;
2308 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2315 case "${canonical}" in
2316 i
[3456]86-*-lynxos*) machine
=intel386
;;
2317 powerpc-
*-lynxos*) machine
=powerpc
;;
2322 arm-acorn-riscix1.1
* )
2323 machine
=acorn opsys
=riscix1-1
2325 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2326 ## This name is riscix12 instead of riscix1.2
2327 ## to avoid a file name conflict on MSDOS.
2328 machine
=acorn opsys
=riscix12
2334 case "${canonical}" in
2335 i
[345]86-*-bsdi*) machine
=intel386
;;
2336 sparc-
*-bsdi*) machine
=sparc
;;
2337 powerpc-
*-bsdi*) machine
=macppc
;;
2339 case "${canonical}" in
2340 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2341 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2342 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2343 *-*-bsdi3* ) opsys
=bsdos3
;;
2344 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2349 ## Strictly speaking, we need the version of the alliant operating
2350 ## system to choose the right machine file, but currently the
2351 ## configuration name doesn't tell us enough to choose the right
2352 ## one; we need to give alliants their own operating system name to
2353 ## do this right. When someone cares, they can help us.
2355 machine
=alliant4 opsys
=bsd4-2
2358 machine
=alliant-2800 opsys
=bsd4-3
2361 ## Alpha (DEC) machines.
2363 machine
=alpha opsys
=osf1
2364 # This is needed to find X11R6.1 libraries for certain tests.
2365 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2366 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2367 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2368 # due to non-traditional preprocessing with the current compiler
2369 # defaults. OSF 4 can also have that compiler version, and there
2370 # seems always to have been a usable /usr/bin/cpp.
2371 NON_GNU_CPP
=/usr
/bin
/cpp
2372 case "${canonical}" in
2373 alpha
*-dec-osf[5-9]*)
2378 alpha
*-*-linux-gnu* )
2379 machine
=alpha opsys
=gnu-linux
2383 machine
=arm opsys
=gnu-linux
2388 machine
=altos opsys
=usg5-2
2393 machine
=amdahl opsys
=usg5-2-2
2396 ## Apollo, Domain/OS
2398 machine
=apollo opsys
=bsd4-3
2401 ## Apple Darwin / Mac OS X
2403 case "${canonical}" in
2404 i
[3456]86-* ) machine
=intel386
;;
2405 powerpc-
* ) machine
=powermac
;;
2409 # Define CPP as follows to make autoconf work correctly.
2410 CPP
="${CC-cc} -E -no-cpp-precomp"
2411 # Use fink packages if available.
2412 if test -d /sw
/include
&& test -d /sw
/lib
; then
2413 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2414 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2415 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2419 ## AT&T 3b2, 3b5, 3b15, 3b20
2421 machine
=att3b opsys
=usg5-2-2
2424 ## AT&T 3b1 - The Mighty Unix PC!
2426 machine
=7300 opsys
=usg5-2-2
2431 machine
=ibmrs6000 opsys
=aix3-2
2436 machine
=dpx2 opsys
=usg5-3
2441 machine
=sps7 opsys
=usg5-2
2444 ## CCI 5/32, 6/32 -- see "Tahoe".
2447 ## I don't know what configuration name to use for this; config.sub
2448 ## doesn't seem to know anything about it. Hey, Celerity users, get
2449 ## in touch with us!
2450 celerity-celerity-bsd
* )
2451 machine
=celerity opsys
=bsd4-2
2455 ## What operating systems does this chip run that Emacs has been
2459 ## We'll use the catch-all code at the bottom to guess the
2460 ## operating system.
2464 mips-compaq-nonstopux
* )
2465 machine
=nonstopux opsys
=nonstopux
2469 *-convex-bsd* |
*-convex-convexos* )
2470 machine
=convex opsys
=bsd4-3
2471 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2472 NON_GNU_CPP
="cc -E -P"
2476 i
[3456]86-cubix-sysv* )
2477 machine
=intel386 opsys
=usg5-3
2481 cydra
*-cydrome-sysv* )
2482 machine
=cydra5 opsys
=usg5-3
2485 ## Data General AViiON Machines
2486 ## DG changed naming conventions with the release of 5.4.4.10, they
2487 ## dropped the initial 5.4 but left the intervening R. Because of the
2488 ## R this shouldn't conflict with older versions of the OS (which I
2489 ## think were named like dgux4.*). In addition, DG new AViiONs series
2490 ## uses either Motorola M88k or Intel Pentium CPUs.
2491 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2492 machine
=aviion opsys
=dgux4
2494 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2495 ## This name is dgux5-4-3 instead of dgux5-4r3
2496 ## to avoid a file name conflict on MSDOS.
2497 machine
=aviion opsys
=dgux5-4-3
2499 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2500 machine
=aviion opsys
=dgux5-4r2
2503 machine
=aviion opsys
=dgux
2506 ## Data General AViiON Intel (x86) Machines
2507 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2508 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2509 i
[345]86-dg-dguxR4* )
2510 machine
=aviion-intel opsys
=dgux4
2514 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2515 machine
=pmax opsys
=bsd4-2
2517 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2518 machine
=pmax opsys
=bsd4-3
2521 machine
=pmax opsys
=ultrix4-3
2524 machine
=pmax opsys
=osf1
2526 mips-dec-mach_bsd4.3
* )
2527 machine
=pmax opsys
=mach-bsd4-3
2530 ## Motorola Delta machines
2531 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2532 machine
=delta opsys
=usg5-3
2533 if test -z "`type gnucc | grep 'not found'`"
2535 if test -s /etc
/167config
2536 then CC
="gnucc -m68040"
2537 else CC
="gnucc -m68881"
2540 if test -z "`type gcc | grep 'not found'`"
2546 m88k-motorola-sysv4
* )
2547 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2548 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2549 # I hope there are not other 4.0 versions for this machine
2550 # which really need usg5-4 instead.
2551 machine
=delta88k opsys
=usg5-4-2
2553 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2554 machine
=delta88k opsys
=usg5-3
2559 machine
=dual opsys
=usg5-2
2561 m68
*-dual-uniplus* )
2562 machine
=dual opsys
=unipl5-2
2567 machine
=elxsi opsys
=usg5-2
2572 machine
=ns16000 opsys
=umax
2575 ## The GEC 63 - apparently, this port isn't really finished yet.
2576 # I'm sure we finished off the last of the machines, though. -- fx
2578 ## Gould Power Node and NP1
2580 machine
=gould opsys
=bsd4-2
2583 machine
=gould opsys
=bsd4-3
2586 machine
=gould-np1 opsys
=bsd4-3
2589 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2590 ## as far as Emacs is concerned).
2592 # Build needs to be different on 7.0 and later releases
2593 case "`uname -r`" in
2594 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2595 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2597 NON_GNU_CPP
="/lib/cpp"
2599 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2601 machine
=nh3000 opsys
=cxux
2603 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2604 powerpc-harris-powerunix
)
2605 machine
=nh6000 opsys
=powerunix
2606 NON_GNU_CPP
="cc -Xo -E -P"
2608 ## SR2001/SR2201 running HI-UX/MPP
2609 hppa1.1
-hitachi-hiuxmpp* )
2610 machine
=sr2k opsys
=hiuxmpp
2612 hppa1.1
-hitachi-hiuxwe2* )
2613 machine
=sr2k opsys
=hiuxwe2
2616 xps
*-honeywell-sysv* )
2617 machine
=xps100 opsys
=usg5-2
2620 ## HP 9000 series 200 or 300
2622 machine
=hp9000s300 opsys
=bsd4-3
2624 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2626 case "`uname -r`" in
2627 ## Someone's system reports A.B8.05 for this.
2628 ## I wonder what other possibilities there are.
2629 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2630 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2631 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2632 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2633 *) machine
=hp9000s300 opsys
=hpux
;;
2637 ## HP 9000 series 700 and 800, running HP/UX
2639 machine
=hp800 opsys
=hpux
2642 machine
=hp800 opsys
=hpux8
2644 hppa
*-hp-hpux9shr* )
2645 machine
=hp800 opsys
=hpux9shr
2648 machine
=hp800 opsys
=hpux9
2650 hppa
*-hp-hpux10.2
* )
2651 machine
=hp800 opsys
=hpux10-20
2654 machine
=hp800 opsys
=hpux10
2656 hppa
*-hp-hpux1[1-9]* )
2657 machine
=hp800 opsys
=hpux11
2658 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2661 hppa
*-*-linux-gnu* )
2662 machine
=hp800 opsys
=gnu-linux
2665 ## HP 9000 series 700 and 800, running HP/UX
2667 ## Cross-compilation? Nah!
2668 case "`uname -r`" in
2669 ## Someone's system reports A.B8.05 for this.
2670 ## I wonder what other possibilities there are.
2671 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2672 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2673 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2674 *) machine
=hp800 opsys
=hpux10
;;
2678 machine
=hp800 opsys
=nextstep
2683 machine
=orion opsys
=bsd4-2
2685 clipper-orion-bsd
* )
2686 machine
=orion105 opsys
=bsd4-2
2690 i
[3456]86-ibm-aix1.1
* )
2691 machine
=ibmps2-aix opsys
=usg5-2-2
2693 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2694 machine
=ibmps2-aix opsys
=usg5-3
2697 machine
=ibm370aix opsys
=usg5-3
2700 machine
=ibms390 opsys
=gnu-linux
2702 s390x-
*-linux-gnu* )
2703 machine
=ibms390x opsys
=gnu-linux
2705 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2706 machine
=ibmrs6000 opsys
=aix3-1
2708 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2709 machine
=ibmrs6000 opsys
=aix3-2-5
2711 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2712 machine
=ibmrs6000 opsys
=aix4-1
2714 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2715 machine
=ibmrs6000 opsys
=aix4-2
2717 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2718 machine
=ibmrs6000 opsys
=aix4-2
2720 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2721 machine
=ibmrs6000 opsys
=aix4-2
2723 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2724 machine
=ibmrs6000 opsys
=aix4
2726 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2727 machine
=ibmrs6000 opsys
=aix4-1
2729 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2730 machine
=ibmrs6000 opsys
=aix3-2
2733 machine
=ibmrt opsys
=bsd4-3
2736 machine
=ibmrt opsys
=bsd4-2
2739 machine
=ibmrt opsys
=bsd4-3
2742 machine
=ibmrt opsys
=bsd4-2
2745 machine
=ibmrt opsys
=bsd4-3
2748 machine
=ibmrt opsys
=bsd4-3
2751 machine
=ibmrt-aix opsys
=usg5-2-2
2754 ## Integrated Solutions `Optimum V'
2756 machine
=isi-ov opsys
=bsd4-2
2759 machine
=isi-ov opsys
=bsd4-3
2762 ## Intel 386 machines where we do care about the manufacturer
2763 i
[3456]86-intsys-sysv* )
2764 machine
=is386 opsys
=usg5-2-2
2768 i
[3456]86-prime-sysv* )
2769 machine
=i386 opsys
=usg5-3
2772 ## Sequent Symmetry running Dynix
2773 i
[3456]86-sequent-bsd* )
2774 machine
=symmetry opsys
=bsd4-3
2777 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2778 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2779 machine
=sequent-ptx opsys
=ptx4
2780 NON_GNU_CPP
=/lib
/cpp
2783 ## Sequent Symmetry running DYNIX/ptx
2784 ## Use the old cpp rather than the newer ANSI one.
2785 i
[3456]86-sequent-ptx* )
2786 machine
=sequent-ptx opsys
=ptx
2787 NON_GNU_CPP
="/lib/cpp"
2790 ## ncr machine running svr4.3.
2791 i
[3456]86-ncr-sysv4.3
)
2792 machine
=ncr386 opsys
=usg5-4-3
2795 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2796 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2797 i
[3456]86-ncr-sysv* )
2798 machine
=ncr386 opsys
=usg5-4-2
2801 ## Intel Paragon OSF/1
2803 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2808 machine
=i860 opsys
=usg5-4
2809 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2810 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2813 ## Macintosh PowerPC
2814 powerpc
*-*-linux-gnu* )
2815 machine
=macppc opsys
=gnu-linux
2818 ## Masscomp machines
2819 m68
*-masscomp-rtu* )
2820 machine
=masscomp opsys
=rtu
2823 ## Megatest machines
2824 m68
*-megatest-bsd* )
2825 machine
=mega68 opsys
=bsd4-2
2828 ## Workstations sold by MIPS
2829 ## This is not necessarily all workstations using the MIPS processor -
2830 ## Irises are produced by SGI, and DECstations by DEC.
2832 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2833 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2834 ## it gives for choosing between the alternatives seems to be "Use
2835 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2836 ## the BSD world." I'll assume that these are instructions for
2837 ## handling two odd situations, and that every other situation
2838 ## should use mips.h and usg5-2-2, they being listed first.
2841 ## Fall through to the general code at the bottom to decide on the OS.
2843 mips-mips-riscos4
* )
2844 machine
=mips4 opsys
=bsd4-3
2845 NON_GNU_CC
="cc -systype bsd43"
2846 NON_GNU_CPP
="cc -systype bsd43 -E"
2848 mips-mips-riscos5
* )
2849 machine
=mips4 opsys
=riscos5
2850 NON_GNU_CC
="cc -systype bsd43"
2851 NON_GNU_CPP
="cc -systype bsd43 -E"
2854 machine
=mips opsys
=bsd4-3
2857 machine
=mips opsys
=usg5-2-2
2861 m68
*-next-* | m68k-
*-nextstep* )
2862 machine
=m68k opsys
=nextstep
2865 ## The complete machine from National Semiconductor
2867 machine
=ns32000 opsys
=usg5-2
2871 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2872 machine
=tower32 opsys
=usg5-2-2
2874 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2875 machine
=tower32v3 opsys
=usg5-3
2880 machine
=ews4800 opsys
=ux4800
2883 ## Nixdorf Targon 31
2884 m68
*-nixdorf-sysv* )
2885 machine
=targon31 opsys
=usg5-2-2
2890 machine
=nu opsys
=usg5-2
2895 machine
=plexus opsys
=usg5-2
2899 ## I don't really have any idea what sort of processor the Pyramid has,
2900 ## so I'm assuming it is its own architecture.
2901 pyramid-pyramid-bsd
* )
2902 machine
=pyramid opsys
=bsd4-2
2906 ns32k-sequent-bsd4.2
* )
2907 machine
=sequent opsys
=bsd4-2
2909 ns32k-sequent-bsd4.3
* )
2910 machine
=sequent opsys
=bsd4-3
2914 mips-siemens-sysv
* | mips-sni-sysv
*)
2915 machine
=mips-siemens opsys
=usg5-4
2916 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2917 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2920 ## Silicon Graphics machines
2921 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2923 machine
=irist opsys
=iris3-5
2925 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2926 machine
=irist opsys
=iris3-6
2930 machine
=iris4d opsys
=irix3-3
2933 machine
=iris4d opsys
=irix4-0
2936 machine
=iris4d opsys
=irix6-5
2937 # Without defining _LANGUAGE_C, things get masked out in the headers
2938 # so that, for instance, grepping for `free' in stdlib.h fails and
2939 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2940 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2941 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2944 machine
=iris4d opsys
=irix6-0
2945 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2946 # but presumably it does no harm.
2947 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2948 # -32 probably isn't necessary in later v.6s -- anyone know which?
2949 NON_GCC_TEST_OPTIONS
=-32
2951 mips-sgi-irix5.
[01]* )
2952 machine
=iris4d opsys
=irix5-0
2954 mips-sgi-irix5
* | mips-sgi-irix
* )
2955 machine
=iris4d opsys
=irix5-2
2960 machine
=news opsys
=bsd4-2
2963 machine
=news opsys
=bsd4-3
2965 m68
*-sony-newsos3* | m68
*-sony-news3*)
2966 machine
=news opsys
=bsd4-3
2968 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2969 machine
=news-risc opsys
=bsd4-3
2971 mips-sony-newsos6
* )
2972 machine
=news-r6 opsys
=newsos6
2975 machine
=news-risc opsys
=newsos5
2980 machine
=stride opsys
=usg5-2
2984 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2985 machine
=sparc opsys
=gnu-linux
2988 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2989 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2990 | rs6000-
*-solaris2*)
2991 case "${canonical}" in
2992 m68
*-sunos1* ) machine
=sun1
;;
2993 m68
*-sunos2* ) machine
=sun2
;;
2994 m68
* ) machine
=sun3
;;
2995 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2996 i
[3456]86-*-* ) machine
=intel386
;;
2997 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2998 powerpcle
* ) machine
=powerpcle
;;
2999 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
3000 sparc
* ) machine
=sparc
;;
3003 case "${canonical}" in
3004 ## The Sun386 didn't get past 4.0.
3005 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
3006 *-sunos4.0
* ) opsys
=sunos4-0
;;
3007 *-sunos4.1.
[3-9]*noshare
)
3008 ## This name is sunos413 instead of sunos4-1-3
3009 ## to avoid a file name conflict on MSDOS.
3011 NON_GNU_CPP
=/usr
/lib
/cpp
3012 NON_GCC_TEST_OPTIONS
=-Bstatic
3013 GCC_TEST_OPTIONS
=-static
3015 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
3017 NON_GNU_CPP
=/usr
/lib
/cpp
3019 *-sunos4* |
*-sunos )
3021 NON_GCC_TEST_OPTIONS
=-Bstatic
3022 GCC_TEST_OPTIONS
=-static
3024 *-sunos5.3
* |
*-solaris2.3
* )
3026 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3028 *-sunos5.4
* |
*-solaris2.4
* )
3030 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3033 *-sunos5.5
* |
*-solaris2.5
* )
3035 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3038 *-sunos5.6
* |
*-solaris2.6
* )
3040 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3043 *-sunos5* |
*-solaris* )
3045 emacs_check_sunpro_c
=yes
3046 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3050 ## Watch out for a compiler that we know will not work.
3051 case "${canonical}" in
3052 *-solaris* |
*-sunos5* )
3053 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3054 ## /usr/ucb/cc doesn't work;
3055 ## we should find some other compiler that does work.
3063 machine
=sparc opsys
=nextstep
3067 m68
*-tadpole-sysv* )
3068 machine
=tad68k opsys
=usg5-3
3072 tahoe-tahoe-bsd4.2
* )
3073 machine
=tahoe opsys
=bsd4-2
3075 tahoe-tahoe-bsd4.3
* )
3076 machine
=tahoe opsys
=bsd4-3
3079 ## Tandem Integrity S2
3081 machine
=tandem-s2 opsys
=usg5-3
3085 m88k-tektronix-sysv3
* )
3086 machine
=tekxd88 opsys
=usg5-3
3089 ## Tektronix 16000 box (6130?)
3090 ns16k-tektronix-bsd
* )
3091 machine
=ns16000 opsys
=bsd4-2
3094 ## src/m/tek4300.h hints that this is a m68k machine.
3095 m68
*-tektronix-bsd* )
3096 machine
=tek4300 opsys
=bsd4-3
3100 ## We seem to have lost the machine-description file titan.h!
3102 machine
=titan opsys
=usg5-3
3105 ## Ustation E30 (SS5E)
3106 m68
*-unisys-uniplus* )
3107 machine
=ustation opsystem
=unipl5-2
3113 case "${canonical}" in
3114 *-bsd4.1
* ) opsys
=bsd4-1
;;
3115 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3116 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3117 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3118 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3119 *-vms* ) opsys
=vms
;;
3125 ns16k-whitechapel-
* )
3127 ## We don't know what sort of OS runs on these; we'll let the
3128 ## operating system guessing code below try.
3133 machine
=wicat opsys
=usg5-2
3138 machine
=ia64 opsys
=gnu-linux
3141 ## Intel 386 machines where we don't care about the manufacturer
3144 case "${canonical}" in
3145 *-cygwin ) opsys
=cygwin
;;
3146 *-darwin* ) opsys
=darwin
3147 CPP
="${CC-cc} -E -no-cpp-precomp"
3149 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3150 *-isc2.2
* ) opsys
=isc2-2
;;
3151 *-isc4.0
* ) opsys
=isc4-0
;;
3152 *-isc4.
* ) opsys
=isc4-1
3153 GCC_TEST_OPTIONS
=-posix
3154 NON_GCC_TEST_OPTIONS
=-Xp
3156 *-isc* ) opsys
=isc3-0
;;
3157 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3158 *-esix* ) opsys
=esix
;;
3159 *-xenix* ) opsys
=xenix
;;
3160 *-linux-gnu* ) opsys
=gnu-linux
;;
3161 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3162 *-sco3.2v5
* ) opsys
=sco5
3163 NON_GNU_CPP
=/lib
/cpp
3164 # Prevent -belf from being passed to $CPP.
3165 # /lib/cpp does not accept it.
3166 OVERRIDE_CPPFLAGS
=" "
3168 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3169 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3170 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3171 *-386bsd* ) opsys
=386bsd
;;
3172 *-nextstep* ) opsys
=nextstep
;;
3173 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3177 ## m68k Linux-based GNU system
3179 machine
=m68k opsys
=gnu-linux
3182 ## Mips Linux-based GNU system
3183 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3184 machine
=mips opsys
=gnu-linux
3188 sparc-fujitsu-sysv4
* )
3189 machine
=sparc opsys
=uxpds
3190 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3195 f301-fujitsu-uxpv4.1
)
3196 machine
=f301 opsys
=uxpv
3199 ## AMD x86-64 Linux-based GNU system
3200 x86_64-
*-linux-gnu* )
3201 machine
=amdx86-64 opsys
=gnu-linux
3204 ## Tensilica Xtensa Linux-based GNU system
3205 xtensa-
*-linux-gnu* )
3206 machine
=xtensa opsys
=gnu-linux
3214 ### If the code above didn't choose an operating system, just choose
3215 ### an operating system based on the configuration name. You really
3216 ### only want to use this when you have no idea what the right
3217 ### operating system is; if you know what operating systems a machine
3218 ### runs, it's cleaner to make it explicit in the case statement
3220 if test x
"${opsys}" = x
; then
3221 case "${canonical}" in
3222 *-gnu* ) opsys
=gnu
;;
3223 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3224 *-bsd4.2
) opsys
=bsd4-2
;;
3225 *-bsd4.3
) opsys
=bsd4-3
;;
3226 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3227 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3228 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3229 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3230 *-sysv4.2uw
* ) opsys
=unixware
;;
3231 *-sysv5uw* ) opsys
=unixware
;;
3232 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3233 *-sysv4.1
* |
*-sysvr4.1
* )
3234 NON_GNU_CPP
=/usr
/lib
/cpp
3236 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3237 if [ x
$NON_GNU_CPP = x
]; then
3238 if [ -f /usr
/ccs
/lib
/cpp
]; then
3239 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3241 NON_GNU_CPP
=/lib
/cpp
3245 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3254 if test $unported = yes; then
3255 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3256 Check \`etc/MACHINES' for recognized configuration names." >&5
3257 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3258 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3259 { (exit 1); exit 1; }; }
3262 machfile
="m/${machine}.h"
3263 opsysfile
="s/${opsys}.h"
3266 #### Choose a compiler.
3267 test -n "$CC" && cc_specified
=yes
3269 # Save the value of CFLAGS that the user specified.
3270 SPECIFIED_CFLAGS
="$CFLAGS"
3273 "yes" ) CC
="gcc" GCC
=yes ;;
3274 "no" ) : ${CC=cc} ;;
3278 ac_cpp
='$CPP $CPPFLAGS'
3279 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3282 if test -n "$ac_tool_prefix"; then
3283 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3284 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3287 if test "${ac_cv_prog_CC+set}" = set; then
3288 echo $ECHO_N "(cached) $ECHO_C" >&6
3290 if test -n "$CC"; then
3291 ac_cv_prog_CC
="$CC" # Let the user override the test.
3293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3297 test -z "$as_dir" && as_dir
=.
3298 for ac_exec_ext
in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 if test -n "$CC"; then
3312 { echo "$as_me:$LINENO: result: $CC" >&5
3313 echo "${ECHO_T}$CC" >&6; }
3315 { echo "$as_me:$LINENO: result: no" >&5
3316 echo "${ECHO_T}no" >&6; }
3321 if test -z "$ac_cv_prog_CC"; then
3323 # Extract the first word of "gcc", so it can be a program name with args.
3324 set dummy gcc
; ac_word
=$2
3325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3327 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3330 if test -n "$ac_ct_CC"; then
3331 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3337 test -z "$as_dir" && as_dir
=.
3338 for ac_exec_ext
in '' $ac_executable_extensions; do
3339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340 ac_cv_prog_ac_ct_CC
="gcc"
3341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3351 if test -n "$ac_ct_CC"; then
3352 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3353 echo "${ECHO_T}$ac_ct_CC" >&6; }
3355 { echo "$as_me:$LINENO: result: no" >&5
3356 echo "${ECHO_T}no" >&6; }
3359 if test "x$ac_ct_CC" = x
; then
3362 case $cross_compiling:$ac_tool_warned in
3364 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3365 whose name does not start with the host triplet. If you think this
3366 configuration is useful to you, please write to autoconf@gnu.org." >&5
3367 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3368 whose name does not start with the host triplet. If you think this
3369 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3370 ac_tool_warned
=yes ;;
3378 if test -z "$CC"; then
3379 if test -n "$ac_tool_prefix"; then
3380 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3381 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3384 if test "${ac_cv_prog_CC+set}" = set; then
3385 echo $ECHO_N "(cached) $ECHO_C" >&6
3387 if test -n "$CC"; then
3388 ac_cv_prog_CC
="$CC" # Let the user override the test.
3390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3394 test -z "$as_dir" && as_dir
=.
3395 for ac_exec_ext
in '' $ac_executable_extensions; do
3396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 if test -n "$CC"; then
3409 { echo "$as_me:$LINENO: result: $CC" >&5
3410 echo "${ECHO_T}$CC" >&6; }
3412 { echo "$as_me:$LINENO: result: no" >&5
3413 echo "${ECHO_T}no" >&6; }
3419 if test -z "$CC"; then
3420 # Extract the first word of "cc", so it can be a program name with args.
3421 set dummy cc
; ac_word
=$2
3422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3424 if test "${ac_cv_prog_CC+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3427 if test -n "$CC"; then
3428 ac_cv_prog_CC
="$CC" # Let the user override the test.
3431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3435 test -z "$as_dir" && as_dir
=.
3436 for ac_exec_ext
in '' $ac_executable_extensions; do
3437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3438 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3439 ac_prog_rejected
=yes
3443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450 if test $ac_prog_rejected = yes; then
3451 # We found a bogon in the path, so make sure we never use it.
3452 set dummy
$ac_cv_prog_CC
3454 if test $# != 0; then
3455 # We chose a different compiler from the bogus one.
3456 # However, it has the same basename, so the bogon will be chosen
3457 # first if we set CC to just the basename; use the full file name.
3459 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3465 if test -n "$CC"; then
3466 { echo "$as_me:$LINENO: result: $CC" >&5
3467 echo "${ECHO_T}$CC" >&6; }
3469 { echo "$as_me:$LINENO: result: no" >&5
3470 echo "${ECHO_T}no" >&6; }
3475 if test -z "$CC"; then
3476 if test -n "$ac_tool_prefix"; then
3477 for ac_prog
in cl.exe
3479 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3480 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3483 if test "${ac_cv_prog_CC+set}" = set; then
3484 echo $ECHO_N "(cached) $ECHO_C" >&6
3486 if test -n "$CC"; then
3487 ac_cv_prog_CC
="$CC" # Let the user override the test.
3489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3493 test -z "$as_dir" && as_dir
=.
3494 for ac_exec_ext
in '' $ac_executable_extensions; do
3495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3496 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 if test -n "$CC"; then
3508 { echo "$as_me:$LINENO: result: $CC" >&5
3509 echo "${ECHO_T}$CC" >&6; }
3511 { echo "$as_me:$LINENO: result: no" >&5
3512 echo "${ECHO_T}no" >&6; }
3516 test -n "$CC" && break
3519 if test -z "$CC"; then
3521 for ac_prog
in cl.exe
3523 # Extract the first word of "$ac_prog", so it can be a program name with args.
3524 set dummy
$ac_prog; ac_word
=$2
3525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3527 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3528 echo $ECHO_N "(cached) $ECHO_C" >&6
3530 if test -n "$ac_ct_CC"; then
3531 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3533 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3537 test -z "$as_dir" && as_dir
=.
3538 for ac_exec_ext
in '' $ac_executable_extensions; do
3539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540 ac_cv_prog_ac_ct_CC
="$ac_prog"
3541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3551 if test -n "$ac_ct_CC"; then
3552 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3553 echo "${ECHO_T}$ac_ct_CC" >&6; }
3555 { echo "$as_me:$LINENO: result: no" >&5
3556 echo "${ECHO_T}no" >&6; }
3560 test -n "$ac_ct_CC" && break
3563 if test "x$ac_ct_CC" = x
; then
3566 case $cross_compiling:$ac_tool_warned in
3568 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3569 whose name does not start with the host triplet. If you think this
3570 configuration is useful to you, please write to autoconf@gnu.org." >&5
3571 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3572 whose name does not start with the host triplet. If you think this
3573 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3574 ac_tool_warned
=yes ;;
3583 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3584 See \`config.log' for more details." >&5
3585 echo "$as_me: error: no acceptable C compiler found in \$PATH
3586 See \`config.log' for more details." >&2;}
3587 { (exit 1); exit 1; }; }
3589 # Provide some information about the compiler.
3590 echo "$as_me:$LINENO: checking for C compiler version" >&5
3591 ac_compiler
=`set X $ac_compile; echo $2`
3592 { (ac_try
="$ac_compiler --version >&5"
3594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3595 *) ac_try_echo=$ac_try;;
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_compiler --version >&5") 2>&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }
3602 { (ac_try="$ac_compiler -v >&5"
3604 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3605 *) ac_try_echo
=$ac_try;;
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_compiler -v >&5") 2>&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }
3612 { (ac_try
="$ac_compiler -V >&5"
3614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_compiler -V >&5") 2>&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }
3623 cat >conftest.$ac_ext <<_ACEOF
3626 cat confdefs.h >>conftest.$ac_ext
3627 cat >>conftest.$ac_ext <<_ACEOF
3628 /* end confdefs.h. */
3638 ac_clean_files_save=$ac_clean_files
3639 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3640 # Try to create an executable without -o first, disregard a.out.
3641 # It will help us diagnose broken compilers, and finding out an intuition
3643 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3644 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3645 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3647 # List of possible output files, starting from the most likely.
3648 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3649 # only as a last resort. b.out is created by i960 compilers.
3650 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3652 # The IRIX 6 linker writes into existing files which may not be
3653 # executable, retaining their permissions. Remove them first so a
3654 # subsequent execution test works.
3656 for ac_file in $ac_files
3659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3660 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3665 if { (ac_try="$ac_link_default"
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3671 (eval "$ac_link_default") 2>&5
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; then
3675 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3676 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3677 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3678 # so that the user can short-circuit this test for compilers unknown to
3680 for ac_file
in $ac_files ''
3682 test -f "$ac_file" ||
continue
3684 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3687 # We found the default executable, but exeext='' is most
3691 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3693 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3695 # We set ac_cv_exeext here because the later test for it is not
3696 # safe: cross compilers may not add the suffix if given an `-o'
3697 # argument, so we may need to know it at that point already.
3698 # Even if this section looks crufty: it has the advantage of
3705 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3711 { echo "$as_me:$LINENO: result: $ac_file" >&5
3712 echo "${ECHO_T}$ac_file" >&6; }
3713 if test -z "$ac_file"; then
3714 echo "$as_me: failed program was:" >&5
3715 sed 's/^/| /' conftest.
$ac_ext >&5
3717 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3718 See \`config.log' for more details." >&5
3719 echo "$as_me: error: C compiler cannot create executables
3720 See \`config.log' for more details." >&2;}
3721 { (exit 77); exit 77; }; }
3724 ac_exeext
=$ac_cv_exeext
3726 # Check that the compiler produces executables we can run. If not, either
3727 # the compiler is broken, or we cross compile.
3728 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3729 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3730 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3731 # If not cross compiling, check that we can run a simple program.
3732 if test "$cross_compiling" != yes; then
3733 if { ac_try
='./$ac_file'
3734 { (case "(($ac_try" in
3735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739 (eval "$ac_try") 2>&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; }; then
3745 if test "$cross_compiling" = maybe; then
3748 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3749 If you meant to cross compile, use \`--host'.
3750 See \`config.log' for more details.
" >&5
3751 echo "$as_me: error
: cannot run C compiled programs.
3752 If you meant to cross compile
, use \
`--host'.
3753 See \`config.log
' for more details." >&2;}
3754 { (exit 1); exit 1; }; }
3758 { echo "$as_me:$LINENO: result: yes" >&5
3759 echo "${ECHO_T}yes" >&6; }
3761 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3762 ac_clean_files=$ac_clean_files_save
3763 # Check that the compiler produces executables we can run. If not, either
3764 # the compiler is broken, or we cross compile.
3765 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3766 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3767 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3768 echo "${ECHO_T}$cross_compiling" >&6; }
3770 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3771 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3772 if { (ac_try="$ac_link"
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3778 (eval "$ac_link") 2>&5
3780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); }; then
3782 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3783 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3784 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3786 for ac_file
in conftest.exe conftest conftest.
*; do
3787 test -f "$ac_file" ||
continue
3789 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3790 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3796 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3797 See \`config.log' for more details." >&5
3798 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3799 See \`config.log' for more details." >&2;}
3800 { (exit 1); exit 1; }; }
3803 rm -f conftest
$ac_cv_exeext
3804 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3805 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3807 rm -f conftest.
$ac_ext
3808 EXEEXT
=$ac_cv_exeext
3810 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3811 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3812 if test "${ac_cv_objext+set}" = set; then
3813 echo $ECHO_N "(cached) $ECHO_C" >&6
3815 cat >conftest.
$ac_ext <<_ACEOF
3818 cat confdefs.h
>>conftest.
$ac_ext
3819 cat >>conftest.
$ac_ext <<_ACEOF
3820 /* end confdefs.h. */
3830 rm -f conftest.o conftest.obj
3831 if { (ac_try
="$ac_compile"
3833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3837 (eval "$ac_compile") 2>&5
3839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840 (exit $ac_status); }; then
3841 for ac_file in conftest.o conftest.obj conftest.*; do
3842 test -f "$ac_file" || continue;
3844 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3845 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3850 echo "$as_me: failed program was:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3853 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3854 See \`config.log
' for more details." >&5
3855 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3856 See \`config.log' for more details.
" >&2;}
3857 { (exit 1); exit 1; }; }
3860 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3862 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3863 echo "${ECHO_T}$ac_cv_objext" >&6; }
3864 OBJEXT=$ac_cv_objext
3866 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3867 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3868 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3869 echo $ECHO_N "(cached
) $ECHO_C" >&6
3871 cat >conftest.$ac_ext <<_ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3889 rm -f conftest.$ac_objext
3890 if { (ac_try="$ac_compile"
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_compile") 2>conftest.er1
3898 grep -v '^ *+' conftest.er1 >conftest.err
3900 cat conftest.err >&5
3901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3902 (exit $ac_status); } && {
3903 test -z "$ac_c_werror_flag" ||
3904 test ! -s conftest.err
3905 } && test -s conftest.$ac_objext; then
3908 echo "$as_me: failed program was
:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3918 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3919 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3920 GCC=`test $ac_compiler_gnu = yes && echo yes`
3921 ac_test_CFLAGS=${CFLAGS+set}
3922 ac_save_CFLAGS=$CFLAGS
3923 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3924 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3925 if test "${ac_cv_prog_cc_g+set}" = set; then
3926 echo $ECHO_N "(cached
) $ECHO_C" >&6
3928 ac_save_c_werror_flag=$ac_c_werror_flag
3929 ac_c_werror_flag=yes
3932 cat >conftest.$ac_ext <<_ACEOF
3935 cat confdefs.h >>conftest.$ac_ext
3936 cat >>conftest.$ac_ext <<_ACEOF
3937 /* end confdefs.h. */
3947 rm -f conftest.$ac_objext
3948 if { (ac_try="$ac_compile"
3950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3951 *) ac_try_echo=$ac_try;;
3953 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3954 (eval "$ac_compile") 2>conftest.er1
3956 grep -v '^ *+' conftest.er1 >conftest.err
3958 cat conftest.err >&5
3959 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3960 (exit $ac_status); } && {
3961 test -z "$ac_c_werror_flag" ||
3962 test ! -s conftest.err
3963 } && test -s conftest.$ac_objext; then
3966 echo "$as_me: failed program was
:" >&5
3967 sed 's/^/| /' conftest.$ac_ext >&5
3970 cat >conftest.$ac_ext <<_ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3985 rm -f conftest.$ac_objext
3986 if { (ac_try="$ac_compile"
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3991 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3992 (eval "$ac_compile") 2>conftest.er1
3994 grep -v '^ *+' conftest.er1 >conftest.err
3996 cat conftest.err >&5
3997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3998 (exit $ac_status); } && {
3999 test -z "$ac_c_werror_flag" ||
4000 test ! -s conftest.err
4001 } && test -s conftest.$ac_objext; then
4004 echo "$as_me: failed program was
:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4007 ac_c_werror_flag=$ac_save_c_werror_flag
4009 cat >conftest.$ac_ext <<_ACEOF
4012 cat confdefs.h >>conftest.$ac_ext
4013 cat >>conftest.$ac_ext <<_ACEOF
4014 /* end confdefs.h. */
4024 rm -f conftest.$ac_objext
4025 if { (ac_try="$ac_compile"
4027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4028 *) ac_try_echo=$ac_try;;
4030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4031 (eval "$ac_compile") 2>conftest.er1
4033 grep -v '^ *+' conftest.er1 >conftest.err
4035 cat conftest.err >&5
4036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4037 (exit $ac_status); } && {
4038 test -z "$ac_c_werror_flag" ||
4039 test ! -s conftest.err
4040 } && test -s conftest.$ac_objext; then
4043 echo "$as_me: failed program was
:" >&5
4044 sed 's/^/| /' conftest.$ac_ext >&5
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 ac_c_werror_flag=$ac_save_c_werror_flag
4058 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4059 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4060 if test "$ac_test_CFLAGS" = set; then
4061 CFLAGS=$ac_save_CFLAGS
4062 elif test $ac_cv_prog_cc_g = yes; then
4063 if test "$GCC" = yes; then
4069 if test "$GCC" = yes; then
4075 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4076 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4077 if test "${ac_cv_prog_cc_c89+set}" = set; then
4078 echo $ECHO_N "(cached
) $ECHO_C" >&6
4080 ac_cv_prog_cc_c89=no
4082 cat >conftest.$ac_ext <<_ACEOF
4085 cat confdefs.h >>conftest.$ac_ext
4086 cat >>conftest.$ac_ext <<_ACEOF
4087 /* end confdefs.h. */
4090 #include <sys/types.h>
4091 #include <sys/stat.h>
4092 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4093 struct buf { int x; };
4094 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4095 static char *e (p, i)
4101 static char *f (char * (*g) (char **, int), char **p, ...)
4106 s = g (p, va_arg (v,int));
4111 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4112 function prototypes and stuff, but not '\xHH' hex character constants.
4113 These don't provoke an error unfortunately, instead are silently treated
4114 as 'x'. The following induces an error, until -std is added to get
4115 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4116 array size at least. It's necessary to write '\x00'==0 to get something
4117 that's true only with -std. */
4118 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4120 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4121 inside strings and character constants. */
4123 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4125 int test (int i, double x);
4126 struct s1 {int (*f) (int a);};
4127 struct s2 {int (*f) (double a);};
4128 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4134 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4139 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4140 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4142 CC="$ac_save_CC $ac_arg"
4143 rm -f conftest.$ac_objext
4144 if { (ac_try="$ac_compile"
4146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4147 *) ac_try_echo=$ac_try;;
4149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4150 (eval "$ac_compile") 2>conftest.er1
4152 grep -v '^ *+' conftest.er1 >conftest.err
4154 cat conftest.err >&5
4155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4156 (exit $ac_status); } && {
4157 test -z "$ac_c_werror_flag" ||
4158 test ! -s conftest.err
4159 } && test -s conftest.$ac_objext; then
4160 ac_cv_prog_cc_c89=$ac_arg
4162 echo "$as_me: failed program was
:" >&5
4163 sed 's/^/| /' conftest.$ac_ext >&5
4168 rm -f core conftest.err conftest.$ac_objext
4169 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4171 rm -f conftest.$ac_ext
4176 case "x
$ac_cv_prog_cc_c89" in
4178 { echo "$as_me:$LINENO: result
: none needed
" >&5
4179 echo "${ECHO_T}none needed
" >&6; } ;;
4181 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4182 echo "${ECHO_T}unsupported
" >&6; } ;;
4184 CC="$CC $ac_cv_prog_cc_c89"
4185 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4186 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4191 ac_cpp='$CPP $CPPFLAGS'
4192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197 # On Suns, sometimes $CPP names a directory.
4198 if test -n "$CPP" && test -d "$CPP"; then
4202 ## If not using gcc, and on Solaris, and no CPP specified, see if
4203 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4204 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4205 test x"$CPP" = x; then
4206 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
4207 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
4209 if test "${emacs_cv_sunpro_c+set}" = set; then
4210 echo $ECHO_N "(cached
) $ECHO_C" >&6
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4230 rm -f conftest.$ac_objext conftest$ac_exeext
4231 if { (ac_try="$ac_link"
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_link") 2>conftest.er1
4239 grep -v '^ *+' conftest.er1 >conftest.err
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4243 (exit $ac_status); } && {
4244 test -z "$ac_c_werror_flag" ||
4245 test ! -s conftest.err
4246 } && test -s conftest$ac_exeext &&
4247 $as_test_x conftest$ac_exeext; then
4248 emacs_cv_sunpro_c=yes
4250 echo "$as_me: failed program was
:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4253 emacs_cv_sunpro_c=no
4256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4257 conftest$ac_exeext conftest.$ac_ext
4260 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4261 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4263 if test x"$emacs_cv_sunpro_c" = xyes; then
4264 NON_GNU_CPP="$CC -E -Xs"
4268 #### Some systems specify a CPP to use unless we are using GCC.
4269 #### Now that we know whether we are using GCC, we can decide whether
4270 #### to use that one.
4271 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4276 #### Some systems specify a CC to use unless we are using GCC.
4277 #### Now that we know whether we are using GCC, we can decide whether
4278 #### to use that one.
4279 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4280 test x$cc_specified != xyes
4285 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4287 CC="$CC $GCC_TEST_OPTIONS"
4290 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4292 CC="$CC $NON_GCC_TEST_OPTIONS"
4296 ac_cpp='$CPP $CPPFLAGS'
4297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4300 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4301 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4302 # On Suns, sometimes $CPP names a directory.
4303 if test -n "$CPP" && test -d "$CPP"; then
4306 if test -z "$CPP"; then
4307 if test "${ac_cv_prog_CPP+set}" = set; then
4308 echo $ECHO_N "(cached
) $ECHO_C" >&6
4310 # Double quotes because CPP needs to be expanded
4311 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4314 for ac_c_preproc_warn_flag in '' yes
4316 # Use a header file that comes with gcc, so configuring glibc
4317 # with a fresh cross-compiler works.
4318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4319 # <limits.h> exists even on freestanding compilers.
4320 # On the NeXT, cc -E runs the code through the compiler's parser,
4321 # not just through cpp. "Syntax error
" is here to catch this case.
4322 cat >conftest.$ac_ext <<_ACEOF
4325 cat confdefs.h >>conftest.$ac_ext
4326 cat >>conftest.$ac_ext <<_ACEOF
4327 /* end confdefs.h. */
4329 # include <limits.h>
4331 # include <assert.h>
4335 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4340 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4343 grep -v '^ *+' conftest.er1 >conftest.err
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4347 (exit $ac_status); } >/dev/null && {
4348 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4349 test ! -s conftest.err
4353 echo "$as_me: failed program was
:" >&5
4354 sed 's/^/| /' conftest.$ac_ext >&5
4356 # Broken: fails on valid input.
4360 rm -f conftest.err conftest.$ac_ext
4362 # OK, works on sane cases. Now check whether nonexistent headers
4363 # can be detected and how.
4364 cat >conftest.$ac_ext <<_ACEOF
4367 cat confdefs.h >>conftest.$ac_ext
4368 cat >>conftest.$ac_ext <<_ACEOF
4369 /* end confdefs.h. */
4370 #include <ac_nonexistent.h>
4372 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375 *) ac_try_echo=$ac_try;;
4377 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4378 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4380 grep -v '^ *+' conftest.er1 >conftest.err
4382 cat conftest.err >&5
4383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4384 (exit $ac_status); } >/dev/null && {
4385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4386 test ! -s conftest.err
4388 # Broken: success on invalid input.
4391 echo "$as_me: failed program was
:" >&5
4392 sed 's/^/| /' conftest.$ac_ext >&5
4394 # Passes both tests.
4399 rm -f conftest.err conftest.$ac_ext
4402 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4403 rm -f conftest.err conftest.$ac_ext
4404 if $ac_preproc_ok; then
4416 { echo "$as_me:$LINENO: result
: $CPP" >&5
4417 echo "${ECHO_T}$CPP" >&6; }
4419 for ac_c_preproc_warn_flag in '' yes
4421 # Use a header file that comes with gcc, so configuring glibc
4422 # with a fresh cross-compiler works.
4423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4424 # <limits.h> exists even on freestanding compilers.
4425 # On the NeXT, cc -E runs the code through the compiler's parser,
4426 # not just through cpp. "Syntax error
" is here to catch this case.
4427 cat >conftest.$ac_ext <<_ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4434 # include <limits.h>
4436 # include <assert.h>
4440 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443 *) ac_try_echo=$ac_try;;
4445 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4446 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4448 grep -v '^ *+' conftest.er1 >conftest.err
4450 cat conftest.err >&5
4451 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4452 (exit $ac_status); } >/dev/null && {
4453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4454 test ! -s conftest.err
4458 echo "$as_me: failed program was
:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4461 # Broken: fails on valid input.
4465 rm -f conftest.err conftest.$ac_ext
4467 # OK, works on sane cases. Now check whether nonexistent headers
4468 # can be detected and how.
4469 cat >conftest.$ac_ext <<_ACEOF
4472 cat confdefs.h >>conftest.$ac_ext
4473 cat >>conftest.$ac_ext <<_ACEOF
4474 /* end confdefs.h. */
4475 #include <ac_nonexistent.h>
4477 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4482 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4483 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4485 grep -v '^ *+' conftest.er1 >conftest.err
4487 cat conftest.err >&5
4488 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4489 (exit $ac_status); } >/dev/null && {
4490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4491 test ! -s conftest.err
4493 # Broken: success on invalid input.
4496 echo "$as_me: failed program was
:" >&5
4497 sed 's/^/| /' conftest.$ac_ext >&5
4499 # Passes both tests.
4504 rm -f conftest.err conftest.$ac_ext
4507 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4508 rm -f conftest.err conftest.$ac_ext
4509 if $ac_preproc_ok; then
4512 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4513 See \
`config.log' for more details." >&5
4514 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4515 See \`config.log
' for more details." >&2;}
4516 { (exit 1); exit 1; }; }
4520 ac_cpp='$CPP $CPPFLAGS'
4521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4522 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4526 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4527 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4528 if test "${ac_cv_path_GREP+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4531 # Extract the first word of "grep ggrep" to use in msg output
4532 if test -z "$GREP"; then
4533 set dummy grep ggrep; ac_prog_name=$2
4534 if test "${ac_cv_path_GREP+set}" = set; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4537 ac_path_GREP_found=false
4538 # Loop through the user's path and
test for each of PROGNAME-LIST
4539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4540 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4543 test -z "$as_dir" && as_dir
=.
4544 for ac_prog
in grep ggrep
; do
4545 for ac_exec_ext
in '' $ac_executable_extensions; do
4546 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4547 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4548 # Check for GNU ac_path_GREP and select it if it is found.
4549 # Check for GNU $ac_path_GREP
4550 case `"$ac_path_GREP" --version 2>&1` in
4552 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4555 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4558 cat "conftest.in" "conftest.in" >"conftest.tmp"
4559 mv "conftest.tmp" "conftest.in"
4560 cp "conftest.in" "conftest.nl"
4561 echo 'GREP' >> "conftest.nl"
4562 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4563 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4564 ac_count
=`expr $ac_count + 1`
4565 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4566 # Best one so far, save it but keep looking for a better one
4567 ac_cv_path_GREP
="$ac_path_GREP"
4568 ac_path_GREP_max
=$ac_count
4570 # 10*(2^10) chars as input seems more than enough
4571 test $ac_count -gt 10 && break
4573 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4577 $ac_path_GREP_found && break 3
4587 GREP
="$ac_cv_path_GREP"
4588 if test -z "$GREP"; then
4589 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4590 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4591 { (exit 1); exit 1; }; }
4595 ac_cv_path_GREP
=$GREP
4600 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4601 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4602 GREP
="$ac_cv_path_GREP"
4605 { echo "$as_me:$LINENO: checking for egrep" >&5
4606 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4607 if test "${ac_cv_path_EGREP+set}" = set; then
4608 echo $ECHO_N "(cached) $ECHO_C" >&6
4610 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4611 then ac_cv_path_EGREP
="$GREP -E"
4613 # Extract the first word of "egrep" to use in msg output
4614 if test -z "$EGREP"; then
4615 set dummy
egrep; ac_prog_name
=$2
4616 if test "${ac_cv_path_EGREP+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4619 ac_path_EGREP_found
=false
4620 # Loop through the user's path and test for each of PROGNAME-LIST
4621 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4622 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4625 test -z "$as_dir" && as_dir
=.
4626 for ac_prog
in egrep; do
4627 for ac_exec_ext
in '' $ac_executable_extensions; do
4628 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4629 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4630 # Check for GNU ac_path_EGREP and select it if it is found.
4631 # Check for GNU $ac_path_EGREP
4632 case `"$ac_path_EGREP" --version 2>&1` in
4634 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4637 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4640 cat "conftest.in" "conftest.in" >"conftest.tmp"
4641 mv "conftest.tmp" "conftest.in"
4642 cp "conftest.in" "conftest.nl"
4643 echo 'EGREP' >> "conftest.nl"
4644 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4645 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4646 ac_count
=`expr $ac_count + 1`
4647 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4648 # Best one so far, save it but keep looking for a better one
4649 ac_cv_path_EGREP
="$ac_path_EGREP"
4650 ac_path_EGREP_max
=$ac_count
4652 # 10*(2^10) chars as input seems more than enough
4653 test $ac_count -gt 10 && break
4655 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4659 $ac_path_EGREP_found && break 3
4669 EGREP
="$ac_cv_path_EGREP"
4670 if test -z "$EGREP"; then
4671 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4672 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4673 { (exit 1); exit 1; }; }
4677 ac_cv_path_EGREP
=$EGREP
4683 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4684 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4685 EGREP
="$ac_cv_path_EGREP"
4689 { echo "$as_me:$LINENO: checking for AIX" >&5
4690 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4691 cat >conftest.
$ac_ext <<_ACEOF
4694 cat confdefs.h
>>conftest.
$ac_ext
4695 cat >>conftest.
$ac_ext <<_ACEOF
4696 /* end confdefs.h. */
4702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4703 $EGREP "yes" >/dev
/null
2>&1; then
4704 { echo "$as_me:$LINENO: result: yes" >&5
4705 echo "${ECHO_T}yes" >&6; }
4706 cat >>confdefs.h
<<\_ACEOF
4707 #define _ALL_SOURCE 1
4711 { echo "$as_me:$LINENO: result: no" >&5
4712 echo "${ECHO_T}no" >&6; }
4718 cat >>confdefs.h
<<\_ACEOF
4719 #define _GNU_SOURCE 1
4724 ### Use -Wno-pointer-sign if the compiler supports it
4725 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4726 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4727 SAVE_CFLAGS
="$CFLAGS"
4728 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4729 cat >conftest.
$ac_ext <<_ACEOF
4732 cat confdefs.h
>>conftest.
$ac_ext
4733 cat >>conftest.
$ac_ext <<_ACEOF
4734 /* end confdefs.h. */
4744 rm -f conftest.
$ac_objext
4745 if { (ac_try
="$ac_compile"
4747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4751 (eval "$ac_compile") 2>conftest.er1
4753 grep -v '^ *+' conftest.er1 >conftest.err
4755 cat conftest.err >&5
4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4757 (exit $ac_status); } && {
4758 test -z "$ac_c_werror_flag" ||
4759 test ! -s conftest.err
4760 } && test -s conftest.$ac_objext; then
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 if test $has_option = yes; then
4771 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4773 { echo "$as_me:$LINENO: result: $has_option" >&5
4774 echo "${ECHO_T}$has_option" >&6; }
4775 CFLAGS="$SAVE_CFLAGS"
4779 #### Some other nice autoconf tests.
4781 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4782 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4784 if test "$LN_S" = "ln -s"; then
4785 { echo "$as_me:$LINENO: result: yes" >&5
4786 echo "${ECHO_T}yes" >&6; }
4788 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4789 echo "${ECHO_T}no, using $LN_S" >&6; }
4793 ac_cpp='$CPP $CPPFLAGS'
4794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4797 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4798 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4799 # On Suns, sometimes $CPP names a directory.
4800 if test -n "$CPP" && test -d "$CPP"; then
4803 if test -z "$CPP"; then
4804 if test "${ac_cv_prog_CPP+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 # Double quotes because CPP needs to be expanded
4808 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4811 for ac_c_preproc_warn_flag in '' yes
4813 # Use a header file that comes with gcc, so configuring glibc
4814 # with a fresh cross-compiler works.
4815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4816 # <limits.h> exists even on freestanding compilers.
4817 # On the NeXT, cc -E runs the code through the compiler's parser,
4818 # not just through cpp. "Syntax error" is here to catch this case.
4819 cat >conftest.$ac_ext <<_ACEOF
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4826 # include <limits.h>
4828 # include <assert.h>
4832 if { (ac_try="$ac_cpp conftest.$ac_ext"
4834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4835 *) ac_try_echo
=$ac_try;;
4837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4840 grep -v '^ *+' conftest.er1
>conftest.err
4842 cat conftest.err
>&5
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); } >/dev
/null
&& {
4845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4846 test ! -s conftest.err
4850 echo "$as_me: failed program was:" >&5
4851 sed 's/^/| /' conftest.
$ac_ext >&5
4853 # Broken: fails on valid input.
4857 rm -f conftest.err conftest.
$ac_ext
4859 # OK, works on sane cases. Now check whether nonexistent headers
4860 # can be detected and how.
4861 cat >conftest.
$ac_ext <<_ACEOF
4864 cat confdefs.h
>>conftest.
$ac_ext
4865 cat >>conftest.
$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867 #include <ac_nonexistent.h>
4869 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4871 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4872 *) ac_try_echo=$ac_try;;
4874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4875 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4877 grep -v '^ *+' conftest.er1 >conftest.err
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } >/dev/null && {
4882 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4883 test ! -s conftest.err
4885 # Broken: success on invalid input.
4888 echo "$as_me: failed program was:" >&5
4889 sed 's/^/| /' conftest.$ac_ext >&5
4891 # Passes both tests.
4896 rm -f conftest.err conftest.$ac_ext
4899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4900 rm -f conftest.err conftest.
$ac_ext
4901 if $ac_preproc_ok; then
4913 { echo "$as_me:$LINENO: result: $CPP" >&5
4914 echo "${ECHO_T}$CPP" >&6; }
4916 for ac_c_preproc_warn_flag
in '' yes
4918 # Use a header file that comes with gcc, so configuring glibc
4919 # with a fresh cross-compiler works.
4920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4921 # <limits.h> exists even on freestanding compilers.
4922 # On the NeXT, cc -E runs the code through the compiler's parser,
4923 # not just through cpp. "Syntax error" is here to catch this case.
4924 cat >conftest.
$ac_ext <<_ACEOF
4927 cat confdefs.h
>>conftest.
$ac_ext
4928 cat >>conftest.
$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4931 # include <limits.h>
4933 # include <assert.h>
4937 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4940 *) ac_try_echo=$ac_try;;
4942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4945 grep -v '^ *+' conftest.er1 >conftest.err
4947 cat conftest.err >&5
4948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949 (exit $ac_status); } >/dev/null && {
4950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4951 test ! -s conftest.err
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4958 # Broken: fails on valid input.
4962 rm -f conftest.err conftest.$ac_ext
4964 # OK, works on sane cases. Now check whether nonexistent headers
4965 # can be detected and how.
4966 cat >conftest.$ac_ext <<_ACEOF
4969 cat confdefs.h >>conftest.$ac_ext
4970 cat >>conftest.$ac_ext <<_ACEOF
4971 /* end confdefs.h. */
4972 #include <ac_nonexistent.h>
4974 if { (ac_try="$ac_cpp conftest.$ac_ext"
4976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4977 *) ac_try_echo
=$ac_try;;
4979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4982 grep -v '^ *+' conftest.er1
>conftest.err
4984 cat conftest.err
>&5
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); } >/dev
/null
&& {
4987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4988 test ! -s conftest.err
4990 # Broken: success on invalid input.
4993 echo "$as_me: failed program was:" >&5
4994 sed 's/^/| /' conftest.
$ac_ext >&5
4996 # Passes both tests.
5001 rm -f conftest.err conftest.
$ac_ext
5004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5005 rm -f conftest.err conftest.
$ac_ext
5006 if $ac_preproc_ok; then
5009 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5010 See \`config.log' for more details." >&5
5011 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5012 See \`config.log' for more details." >&2;}
5013 { (exit 1); exit 1; }; }
5017 ac_cpp
='$CPP $CPPFLAGS'
5018 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5019 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5020 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5022 # Find a good install program. We prefer a C program (faster),
5023 # so one script is as good as another. But avoid the broken or
5024 # incompatible versions:
5025 # SysV /etc/install, /usr/sbin/install
5026 # SunOS /usr/etc/install
5027 # IRIX /sbin/install
5029 # AmigaOS /C/install, which installs bootblocks on floppy discs
5030 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5031 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5032 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5033 # OS/2's system install, which has a completely different semantic
5034 # ./install, which can be erroneously created by make from ./install.sh.
5035 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5036 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5037 if test -z "$INSTALL"; then
5038 if test "${ac_cv_path_install+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5045 test -z "$as_dir" && as_dir
=.
5046 # Account for people who put trailing slashes in PATH elements.
5048 .
/ | .
// |
/cC
/* | \
5049 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5050 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5053 # OSF1 and SCO ODT 3.0 have their own names for install.
5054 # Don't use installbsd from OSF since it installs stuff as root
5056 for ac_prog
in ginstall scoinst
install; do
5057 for ac_exec_ext
in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5059 if test $ac_prog = install &&
5060 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5061 # AIX install. It has an incompatible calling convention.
5063 elif test $ac_prog = install &&
5064 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5065 # program-specific install script used by HP pwplus--don't use.
5068 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5081 if test "${ac_cv_path_install+set}" = set; then
5082 INSTALL
=$ac_cv_path_install
5084 # As a last resort, use the slow shell script. Don't cache a
5085 # value for INSTALL within a source directory, because that will
5086 # break other packages using the cache if that directory is
5087 # removed, or if the value is a relative name.
5088 INSTALL
=$ac_install_sh
5091 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5092 echo "${ECHO_T}$INSTALL" >&6; }
5094 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5095 # It thinks the first close brace ends the variable substitution.
5096 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5098 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5100 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5102 if test "x$RANLIB" = x
; then
5103 if test -n "$ac_tool_prefix"; then
5104 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5105 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5108 if test "${ac_cv_prog_RANLIB+set}" = set; then
5109 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 if test -n "$RANLIB"; then
5112 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5118 test -z "$as_dir" && as_dir
=.
5119 for ac_exec_ext
in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 RANLIB
=$ac_cv_prog_RANLIB
5132 if test -n "$RANLIB"; then
5133 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5134 echo "${ECHO_T}$RANLIB" >&6; }
5136 { echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6; }
5142 if test -z "$ac_cv_prog_RANLIB"; then
5143 ac_ct_RANLIB
=$RANLIB
5144 # Extract the first word of "ranlib", so it can be a program name with args.
5145 set dummy ranlib
; ac_word
=$2
5146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5148 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5149 echo $ECHO_N "(cached) $ECHO_C" >&6
5151 if test -n "$ac_ct_RANLIB"; then
5152 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5158 test -z "$as_dir" && as_dir
=.
5159 for ac_exec_ext
in '' $ac_executable_extensions; do
5160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5172 if test -n "$ac_ct_RANLIB"; then
5173 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5174 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5176 { echo "$as_me:$LINENO: result: no" >&5
5177 echo "${ECHO_T}no" >&6; }
5180 if test "x$ac_ct_RANLIB" = x
; then
5183 case $cross_compiling:$ac_tool_warned in
5185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5186 whose name does not start with the host triplet. If you think this
5187 configuration is useful to you, please write to autoconf@gnu.org." >&5
5188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5189 whose name does not start with the host triplet. If you think this
5190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5191 ac_tool_warned
=yes ;;
5193 RANLIB
=$ac_ct_RANLIB
5196 RANLIB
="$ac_cv_prog_RANLIB"
5200 # Extract the first word of "install-info", so it can be a program name with args.
5201 set dummy install-info
; ac_word
=$2
5202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5204 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5205 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 case $INSTALL_INFO in
5209 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5216 test -z "$as_dir" && as_dir
=.
5217 for ac_exec_ext
in '' $ac_executable_extensions; do
5218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5219 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5231 if test -n "$INSTALL_INFO"; then
5232 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5233 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5235 { echo "$as_me:$LINENO: result: no" >&5
5236 echo "${ECHO_T}no" >&6; }
5240 # Extract the first word of "install-info", so it can be a program name with args.
5241 set dummy install-info
; ac_word
=$2
5242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5244 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5245 echo $ECHO_N "(cached) $ECHO_C" >&6
5247 case $INSTALL_INFO in
5249 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5253 for as_dir
in /usr
/sbin
5256 test -z "$as_dir" && as_dir
=.
5257 for ac_exec_ext
in '' $ac_executable_extensions; do
5258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5271 if test -n "$INSTALL_INFO"; then
5272 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5273 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5275 { echo "$as_me:$LINENO: result: no" >&5
5276 echo "${ECHO_T}no" >&6; }
5280 # Extract the first word of "install-info", so it can be a program name with args.
5281 set dummy install-info
; ac_word
=$2
5282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5284 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5285 echo $ECHO_N "(cached) $ECHO_C" >&6
5287 case $INSTALL_INFO in
5289 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5296 test -z "$as_dir" && as_dir
=.
5297 for ac_exec_ext
in '' $ac_executable_extensions; do
5298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5299 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5307 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5311 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5312 if test -n "$INSTALL_INFO"; then
5313 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5314 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5316 { echo "$as_me:$LINENO: result: no" >&5
5317 echo "${ECHO_T}no" >&6; }
5321 # Extract the first word of "gzip", so it can be a program name with args.
5322 set dummy
gzip; ac_word
=$2
5323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5325 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5326 echo $ECHO_N "(cached) $ECHO_C" >&6
5330 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5333 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5337 test -z "$as_dir" && as_dir
=.
5338 for ac_exec_ext
in '' $ac_executable_extensions; do
5339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5340 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5352 if test -n "$GZIP_PROG"; then
5353 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5354 echo "${ECHO_T}$GZIP_PROG" >&6; }
5356 { echo "$as_me:$LINENO: result: no" >&5
5357 echo "${ECHO_T}no" >&6; }
5363 ## Need makeinfo >= 4.6 (?) to build the manuals.
5364 # Extract the first word of "makeinfo", so it can be a program name with args.
5365 set dummy makeinfo
; ac_word
=$2
5366 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5367 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5368 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5373 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5380 test -z "$as_dir" && as_dir
=.
5381 for ac_exec_ext
in '' $ac_executable_extensions; do
5382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5383 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5391 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5395 MAKEINFO
=$ac_cv_path_MAKEINFO
5396 if test -n "$MAKEINFO"; then
5397 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5398 echo "${ECHO_T}$MAKEINFO" >&6; }
5400 { echo "$as_me:$LINENO: result: no" >&5
5401 echo "${ECHO_T}no" >&6; }
5405 if test "$MAKEINFO" != "no" && \
5406 test x
"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x
; then
5410 if test "$MAKEINFO" = "no"; then
5411 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5412 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5413 { (exit 1); exit 1; }; }
5418 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5420 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5423 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5425 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5429 late_LDFLAGS
=$LDFLAGS
5430 if test "$GCC" = yes; then
5431 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5433 LDFLAGS
="$LDFLAGS -znocombreloc"
5436 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5437 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5438 cat >conftest.
$ac_ext <<_ACEOF
5441 rm -f conftest.
$ac_objext conftest
$ac_exeext
5442 if { (ac_try
="$ac_link"
5444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5445 *) ac_try_echo=$ac_try;;
5447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5448 (eval "$ac_link") 2>conftest.er1
5450 grep -v '^ *+' conftest.er1 >conftest.err
5452 cat conftest.err >&5
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); } && {
5455 test -z "$ac_c_werror_flag" ||
5456 test ! -s conftest.err
5457 } && test -s conftest$ac_exeext &&
5458 $as_test_x conftest$ac_exeext; then
5459 { echo "$as_me:$LINENO: result: yes" >&5
5460 echo "${ECHO_T}yes" >&6; }
5462 echo "$as_me: failed program was:" >&5
5463 sed 's/^/| /' conftest.$ac_ext >&5
5465 LDFLAGS=$late_LDFLAGS
5466 { echo "$as_me:$LINENO: result: no" >&5
5467 echo "${ECHO_T}no" >&6; }
5470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5471 conftest$ac_exeext conftest.$ac_ext
5473 #### Extract some information from the operating system and machine files.
5475 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5476 - which libraries the lib-src programs will want, and
5477 - whether the GNU malloc routines are usable..." >&5
5478 echo "$as_me: checking the machine- and system-dependent files to find out
5479 - which libraries the lib-src programs will want, and
5480 - whether the GNU malloc routines are usable..." >&6;}
5482 ### First figure out CFLAGS (which we use for running the compiler here)
5483 ### and REAL_CFLAGS (which we use for real compilation).
5484 ### The two are the same except on a few systems, where they are made
5485 ### different to work around various lossages. For example,
5486 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5487 ### as implying static linking.
5489 ### If the CFLAGS env var is specified, we use that value
5490 ### instead of the default.
5492 ### It's not important that this name contain the PID; you can't run
5493 ### two configures in the same directory and have anything work
5495 tempcname="conftest.c"
5498 #include "'${srcdir}'/src/'${opsysfile}'"
5499 #include "'${srcdir}'/src/'${machfile}'"
5500 #ifndef LIBS_MACHINE
5501 #define LIBS_MACHINE
5506 #ifndef C_SWITCH_SYSTEM
5507 #define C_SWITCH_SYSTEM
5509 #ifndef C_SWITCH_MACHINE
5510 #define C_SWITCH_MACHINE
5512 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5513 configure___ c_switch_system=C_SWITCH_SYSTEM
5514 configure___ c_switch_machine=C_SWITCH_MACHINE
5517 #define LIB_X11_LIB -lX11
5520 #ifndef LIBX11_MACHINE
5521 #define LIBX11_MACHINE
5524 #ifndef LIBX11_SYSTEM
5525 #define LIBX11_SYSTEM
5527 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5530 configure___ unexec=UNEXEC
5532 configure___ unexec=unexec.o
5535 #ifdef SYSTEM_MALLOC
5536 configure___ system_malloc=yes
5538 configure___ system_malloc=no
5541 #ifdef USE_MMAP_FOR_BUFFERS
5542 configure___ use_mmap_for_buffers=yes
5544 configure___ use_mmap_for_buffers=no
5547 #ifndef C_DEBUG_SWITCH
5548 #define C_DEBUG_SWITCH -g
5551 #ifndef C_OPTIMIZE_SWITCH
5553 #define C_OPTIMIZE_SWITCH -O2
5555 #define C_OPTIMIZE_SWITCH -O
5559 #ifndef C_WARNINGS_SWITCH
5560 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5563 #ifndef LD_SWITCH_MACHINE
5564 #define LD_SWITCH_MACHINE
5567 #ifndef LD_SWITCH_SYSTEM
5568 #define LD_SWITCH_SYSTEM
5571 #ifndef LD_SWITCH_X_SITE_AUX
5572 #define LD_SWITCH_X_SITE_AUX
5575 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5576 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5578 #ifdef THIS_IS_CONFIGURE
5580 /* Get the CFLAGS for tests in configure. */
5582 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5584 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5587 #else /* not THIS_IS_CONFIGURE */
5589 /* Get the CFLAGS for real compilation. */
5591 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5593 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5596 #endif /* not THIS_IS_CONFIGURE */
5599 # The value of CPP is a quoted variable reference, so we need to do this
5600 # to get its actual value...
5601 CPP=`eval "echo $CPP"`
5602 eval `${CPP} -Isrc ${tempcname} \
5603 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5604 if test "x$SPECIFIED_CFLAGS" = x; then
5605 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5606 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5608 REAL_CFLAGS="$CFLAGS"
5612 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5614 ### Make sure subsequent tests use flags consistent with the build flags.
5616 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5617 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5619 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5624 # Check whether --enable-largefile was given.
5625 if test "${enable_largefile+set}" = set; then
5626 enableval=$enable_largefile;
5629 if test "$enable_largefile" != no; then
5631 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5632 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5633 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5634 echo $ECHO_N "(cached) $ECHO_C" >&6
5636 ac_cv_sys_largefile_CC=no
5637 if test "$GCC" != yes; then
5640 # IRIX 6.2 and later do not support large files by default,
5641 # so use the C compiler's -n32 option if that helps.
5642 cat >conftest.$ac_ext <<_ACEOF
5645 cat confdefs.h >>conftest.$ac_ext
5646 cat >>conftest.$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5648 #include <sys/types.h>
5649 /* Check that off_t can represent 2**63 - 1 correctly.
5650 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5651 since some C++ compilers masquerading as C compilers
5652 incorrectly reject 9223372036854775807. */
5653 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5654 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5655 && LARGE_OFF_T % 2147483647 == 1)
5665 rm -f conftest.$ac_objext
5666 if { (ac_try="$ac_compile"
5668 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5669 *) ac_try_echo
=$ac_try;;
5671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5672 (eval "$ac_compile") 2>conftest.er1
5674 grep -v '^ *+' conftest.er1
>conftest.err
5676 cat conftest.err
>&5
5677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5678 (exit $ac_status); } && {
5679 test -z "$ac_c_werror_flag" ||
5680 test ! -s conftest.err
5681 } && test -s conftest.
$ac_objext; then
5684 echo "$as_me: failed program was:" >&5
5685 sed 's/^/| /' conftest.
$ac_ext >&5
5690 rm -f core conftest.err conftest.
$ac_objext
5692 rm -f conftest.
$ac_objext
5693 if { (ac_try
="$ac_compile"
5695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5696 *) ac_try_echo=$ac_try;;
5698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5699 (eval "$ac_compile") 2>conftest.er1
5701 grep -v '^ *+' conftest.er1 >conftest.err
5703 cat conftest.err >&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } && {
5706 test -z "$ac_c_werror_flag" ||
5707 test ! -s conftest.err
5708 } && test -s conftest.$ac_objext; then
5709 ac_cv_sys_largefile_CC=' -n32'; break
5711 echo "$as_me: failed program was:" >&5
5712 sed 's/^/| /' conftest.$ac_ext >&5
5717 rm -f core conftest.err conftest.$ac_objext
5721 rm -f conftest.$ac_ext
5724 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5725 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5726 if test "$ac_cv_sys_largefile_CC" != no; then
5727 CC=$CC$ac_cv_sys_largefile_CC
5730 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5731 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5732 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5736 cat >conftest.$ac_ext <<_ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h. */
5742 #include <sys/types.h>
5743 /* Check that off_t can represent 2**63 - 1 correctly.
5744 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5745 since some C++ compilers masquerading as C compilers
5746 incorrectly reject 9223372036854775807. */
5747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5749 && LARGE_OFF_T % 2147483647 == 1)
5759 rm -f conftest.$ac_objext
5760 if { (ac_try="$ac_compile"
5762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5763 *) ac_try_echo
=$ac_try;;
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766 (eval "$ac_compile") 2>conftest.er1
5768 grep -v '^ *+' conftest.er1
>conftest.err
5770 cat conftest.err
>&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); } && {
5773 test -z "$ac_c_werror_flag" ||
5774 test ! -s conftest.err
5775 } && test -s conftest.
$ac_objext; then
5776 ac_cv_sys_file_offset_bits
=no
; break
5778 echo "$as_me: failed program was:" >&5
5779 sed 's/^/| /' conftest.
$ac_ext >&5
5784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5785 cat >conftest.
$ac_ext <<_ACEOF
5788 cat confdefs.h
>>conftest.
$ac_ext
5789 cat >>conftest.
$ac_ext <<_ACEOF
5790 /* end confdefs.h. */
5791 #define _FILE_OFFSET_BITS 64
5792 #include <sys/types.h>
5793 /* Check that off_t can represent 2**63 - 1 correctly.
5794 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5795 since some C++ compilers masquerading as C compilers
5796 incorrectly reject 9223372036854775807. */
5797 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5798 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5799 && LARGE_OFF_T % 2147483647 == 1)
5809 rm -f conftest.
$ac_objext
5810 if { (ac_try
="$ac_compile"
5812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5813 *) ac_try_echo=$ac_try;;
5815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5816 (eval "$ac_compile") 2>conftest.er1
5818 grep -v '^ *+' conftest.er1 >conftest.err
5820 cat conftest.err >&5
5821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5822 (exit $ac_status); } && {
5823 test -z "$ac_c_werror_flag" ||
5824 test ! -s conftest.err
5825 } && test -s conftest.$ac_objext; then
5826 ac_cv_sys_file_offset_bits=64; break
5828 echo "$as_me: failed program was:" >&5
5829 sed 's/^/| /' conftest.$ac_ext >&5
5834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835 ac_cv_sys_file_offset_bits=unknown
5839 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5840 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5841 case $ac_cv_sys_file_offset_bits in #(
5844 cat >>confdefs.h <<_ACEOF
5845 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5850 if test $ac_cv_sys_file_offset_bits = unknown; then
5851 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5852 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5853 if test "${ac_cv_sys_large_files+set}" = set; then
5854 echo $ECHO_N "(cached) $ECHO_C" >&6
5857 cat >conftest.$ac_ext <<_ACEOF
5860 cat confdefs.h >>conftest.$ac_ext
5861 cat >>conftest.$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5863 #include <sys/types.h>
5864 /* Check that off_t can represent 2**63 - 1 correctly.
5865 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5866 since some C++ compilers masquerading as C compilers
5867 incorrectly reject 9223372036854775807. */
5868 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5869 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5870 && LARGE_OFF_T % 2147483647 == 1)
5880 rm -f conftest.$ac_objext
5881 if { (ac_try="$ac_compile"
5883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5884 *) ac_try_echo
=$ac_try;;
5886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5887 (eval "$ac_compile") 2>conftest.er1
5889 grep -v '^ *+' conftest.er1
>conftest.err
5891 cat conftest.err
>&5
5892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5893 (exit $ac_status); } && {
5894 test -z "$ac_c_werror_flag" ||
5895 test ! -s conftest.err
5896 } && test -s conftest.
$ac_objext; then
5897 ac_cv_sys_large_files
=no
; break
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.
$ac_ext >&5
5905 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5906 cat >conftest.
$ac_ext <<_ACEOF
5909 cat confdefs.h
>>conftest.
$ac_ext
5910 cat >>conftest.
$ac_ext <<_ACEOF
5911 /* end confdefs.h. */
5912 #define _LARGE_FILES 1
5913 #include <sys/types.h>
5914 /* Check that off_t can represent 2**63 - 1 correctly.
5915 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5916 since some C++ compilers masquerading as C compilers
5917 incorrectly reject 9223372036854775807. */
5918 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5919 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5920 && LARGE_OFF_T % 2147483647 == 1)
5930 rm -f conftest.
$ac_objext
5931 if { (ac_try
="$ac_compile"
5933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_compile") 2>conftest.er1
5939 grep -v '^ *+' conftest.er1 >conftest.err
5941 cat conftest.err >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && {
5944 test -z "$ac_c_werror_flag" ||
5945 test ! -s conftest.err
5946 } && test -s conftest.$ac_objext; then
5947 ac_cv_sys_large_files=1; break
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956 ac_cv_sys_large_files=unknown
5960 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5961 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5962 case $ac_cv_sys_large_files in #(
5965 cat >>confdefs.h <<_ACEOF
5966 #define _LARGE_FILES $ac_cv_sys_large_files
5976 ### The standard library on x86-64 GNU/Linux distributions can
5977 ### be located in either /usr/lib64 or /usr/lib.
5978 case "${canonical}" in
5979 x86_64-*-linux-gnu* )
5980 if test -d /usr/lib64; then
5982 cat >>confdefs.h <<\_ACEOF
5983 #define HAVE_X86_64_LIB64_DIR 1
5992 if test "${with_sound}" != "no"; then
5993 # Sound support for GNU/Linux and the free BSDs.
5994 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5995 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5996 if test "${ac_cv_header_stdc+set}" = set; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 cat >conftest.$ac_ext <<_ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6018 rm -f conftest.$ac_objext
6019 if { (ac_try="$ac_compile"
6021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6022 *) ac_try_echo
=$ac_try;;
6024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6025 (eval "$ac_compile") 2>conftest.er1
6027 grep -v '^ *+' conftest.er1
>conftest.err
6029 cat conftest.err
>&5
6030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6031 (exit $ac_status); } && {
6032 test -z "$ac_c_werror_flag" ||
6033 test ! -s conftest.err
6034 } && test -s conftest.
$ac_objext; then
6035 ac_cv_header_stdc
=yes
6037 echo "$as_me: failed program was:" >&5
6038 sed 's/^/| /' conftest.
$ac_ext >&5
6040 ac_cv_header_stdc
=no
6043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6045 if test $ac_cv_header_stdc = yes; then
6046 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6047 cat >conftest.
$ac_ext <<_ACEOF
6050 cat confdefs.h
>>conftest.
$ac_ext
6051 cat >>conftest.
$ac_ext <<_ACEOF
6052 /* end confdefs.h. */
6056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6057 $EGREP "memchr" >/dev
/null
2>&1; then
6060 ac_cv_header_stdc
=no
6066 if test $ac_cv_header_stdc = yes; then
6067 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6068 cat >conftest.
$ac_ext <<_ACEOF
6071 cat confdefs.h
>>conftest.
$ac_ext
6072 cat >>conftest.
$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6078 $EGREP "free" >/dev
/null
2>&1; then
6081 ac_cv_header_stdc
=no
6087 if test $ac_cv_header_stdc = yes; then
6088 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6089 if test "$cross_compiling" = yes; then
6092 cat >conftest.
$ac_ext <<_ACEOF
6095 cat confdefs.h
>>conftest.
$ac_ext
6096 cat >>conftest.
$ac_ext <<_ACEOF
6097 /* end confdefs.h. */
6100 #if ((' ' & 0x0FF) == 0x020)
6101 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6102 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6104 # define ISLOWER(c) \
6105 (('a' <= (c) && (c) <= 'i') \
6106 || ('j' <= (c) && (c) <= 'r') \
6107 || ('s' <= (c) && (c) <= 'z'))
6108 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6111 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6116 for (i = 0; i < 256; i++)
6117 if (XOR (islower (i), ISLOWER (i))
6118 || toupper (i) != TOUPPER (i))
6123 rm -f conftest
$ac_exeext
6124 if { (ac_try
="$ac_link"
6126 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6127 *) ac_try_echo=$ac_try;;
6129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6130 (eval "$ac_link") 2>&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6134 { (case "(($ac_try" in
6135 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6136 *) ac_try_echo
=$ac_try;;
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_try") 2>&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); }; }; then
6145 echo "$as_me: program exited with status $ac_status" >&5
6146 echo "$as_me: failed program was:" >&5
6147 sed 's/^/| /' conftest.
$ac_ext >&5
6150 ac_cv_header_stdc
=no
6152 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6158 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6159 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6160 if test $ac_cv_header_stdc = yes; then
6162 cat >>confdefs.h
<<\_ACEOF
6163 #define STDC_HEADERS 1
6168 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6178 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6179 inttypes.h stdint.h unistd.h
6181 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6182 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6183 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6184 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6185 echo $ECHO_N "(cached) $ECHO_C" >&6
6187 cat >conftest.
$ac_ext <<_ACEOF
6190 cat confdefs.h
>>conftest.
$ac_ext
6191 cat >>conftest.
$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 $ac_includes_default
6195 #include <$ac_header>
6197 rm -f conftest.
$ac_objext
6198 if { (ac_try
="$ac_compile"
6200 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6201 *) ac_try_echo=$ac_try;;
6203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6204 (eval "$ac_compile") 2>conftest.er1
6206 grep -v '^ *+' conftest.er1 >conftest.err
6208 cat conftest.err >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); } && {
6211 test -z "$ac_c_werror_flag" ||
6212 test ! -s conftest.err
6213 } && test -s conftest.$ac_objext; then
6214 eval "$as_ac_Header=yes"
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6219 eval "$as_ac_Header=no"
6222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6224 ac_res=`eval echo '${'$as_ac_Header'}'`
6225 { echo "$as_me:$LINENO: result: $ac_res" >&5
6226 echo "${ECHO_T}$ac_res" >&6; }
6227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6228 cat >>confdefs.h <<_ACEOF
6229 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6240 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6242 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6243 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6244 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6246 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 ac_res=`eval echo '${'$as_ac_Header'}'`
6250 { echo "$as_me:$LINENO: result: $ac_res" >&5
6251 echo "${ECHO_T}$ac_res" >&6; }
6253 # Is the header compilable?
6254 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6255 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6256 cat >conftest.$ac_ext <<_ACEOF
6259 cat confdefs.h >>conftest.$ac_ext
6260 cat >>conftest.$ac_ext <<_ACEOF
6261 /* end confdefs.h. */
6262 $ac_includes_default
6263 #include <$ac_header>
6265 rm -f conftest.$ac_objext
6266 if { (ac_try="$ac_compile"
6268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6269 *) ac_try_echo
=$ac_try;;
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_compile") 2>conftest.er1
6274 grep -v '^ *+' conftest.er1
>conftest.err
6276 cat conftest.err
>&5
6277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6278 (exit $ac_status); } && {
6279 test -z "$ac_c_werror_flag" ||
6280 test ! -s conftest.err
6281 } && test -s conftest.
$ac_objext; then
6282 ac_header_compiler
=yes
6284 echo "$as_me: failed program was:" >&5
6285 sed 's/^/| /' conftest.
$ac_ext >&5
6287 ac_header_compiler
=no
6290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6291 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6292 echo "${ECHO_T}$ac_header_compiler" >&6; }
6294 # Is the header present?
6295 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6296 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6297 cat >conftest.
$ac_ext <<_ACEOF
6300 cat confdefs.h
>>conftest.
$ac_ext
6301 cat >>conftest.
$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6303 #include <$ac_header>
6305 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6313 grep -v '^ *+' conftest.er1 >conftest.err
6315 cat conftest.err >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } >/dev/null && {
6318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6319 test ! -s conftest.err
6321 ac_header_preproc=yes
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6326 ac_header_preproc=no
6329 rm -f conftest.err conftest.$ac_ext
6330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6331 echo "${ECHO_T}$ac_header_preproc" >&6; }
6333 # So? What about this header?
6334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6336 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6338 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6340 ac_header_preproc=yes
6343 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6345 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6346 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6347 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6349 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6350 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6351 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6358 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6359 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6361 echo $ECHO_N "(cached) $ECHO_C" >&6
6363 eval "$as_ac_Header=\$ac_header_preproc"
6365 ac_res=`eval echo '${'$as_ac_Header'}'`
6366 { echo "$as_me:$LINENO: result: $ac_res" >&5
6367 echo "${ECHO_T}$ac_res" >&6; }
6370 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6371 cat >>confdefs.h <<_ACEOF
6372 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6379 # Emulation library used on NetBSD.
6380 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6381 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6382 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6383 echo $ECHO_N "(cached) $ECHO_C" >&6
6385 ac_check_lib_save_LIBS=$LIBS
6386 LIBS="-lossaudio $LIBS"
6387 cat >conftest.$ac_ext <<_ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6394 /* Override any GCC internal prototype to avoid an error.
6395 Use char because int might match the return type of a GCC
6396 builtin and then its argument prototype would still apply. */
6404 return _oss_ioctl ();
6409 rm -f conftest.$ac_objext conftest$ac_exeext
6410 if { (ac_try="$ac_link"
6412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6413 *) ac_try_echo
=$ac_try;;
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_link") 2>conftest.er1
6418 grep -v '^ *+' conftest.er1
>conftest.err
6420 cat conftest.err
>&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } && {
6423 test -z "$ac_c_werror_flag" ||
6424 test ! -s conftest.err
6425 } && test -s conftest
$ac_exeext &&
6426 $as_test_x conftest
$ac_exeext; then
6427 ac_cv_lib_ossaudio__oss_ioctl
=yes
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.
$ac_ext >&5
6432 ac_cv_lib_ossaudio__oss_ioctl
=no
6435 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6436 conftest
$ac_exeext conftest.
$ac_ext
6437 LIBS
=$ac_check_lib_save_LIBS
6439 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6440 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6441 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6450 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6451 if test "X${with_pkg_config_prog}" != X
; then
6452 PKG_CONFIG
="${with_pkg_config_prog}"
6457 if test -z "$PKG_CONFIG"; then
6458 # Extract the first word of "pkg-config", so it can be a program name with args.
6459 set dummy pkg-config
; ac_word
=$2
6460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6462 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6467 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6474 test -z "$as_dir" && as_dir
=.
6475 for ac_exec_ext
in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6485 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6489 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6490 if test -n "$PKG_CONFIG"; then
6491 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6492 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6494 { echo "$as_me:$LINENO: result: no" >&5
6495 echo "${ECHO_T}no" >&6; }
6501 if test "$PKG_CONFIG" = "no" ; then
6504 PKG_CONFIG_MIN_VERSION
=0.9.0
6505 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6506 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6507 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6509 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6510 { echo "$as_me:$LINENO: result: yes" >&5
6511 echo "${ECHO_T}yes" >&6; }
6514 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6515 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6516 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6517 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6518 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6520 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6521 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6522 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6523 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6524 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6526 { echo "$as_me:$LINENO: result: no" >&5
6527 echo "${ECHO_T}no" >&6; }
6530 ## If we have a custom action on failure, don't print errors, but
6531 ## do set a variable so people can do so.
6532 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6539 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6540 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6544 if test $succeeded = yes; then
6550 if test $HAVE_ALSA = yes; then
6551 SAVE_CFLAGS
="$CFLAGS"
6552 SAVE_LDFLAGS
="$LDFLAGS"
6553 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6554 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6555 cat >conftest.
$ac_ext <<_ACEOF
6558 cat confdefs.h
>>conftest.
$ac_ext
6559 cat >>conftest.
$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6561 #include <asoundlib.h>
6565 snd_lib_error_set_handler (0);
6570 rm -f conftest.
$ac_objext
6571 if { (ac_try
="$ac_compile"
6573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577 (eval "$ac_compile") 2>conftest.er1
6579 grep -v '^ *+' conftest.er1 >conftest.err
6581 cat conftest.err >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } && {
6584 test -z "$ac_c_werror_flag" ||
6585 test ! -s conftest.err
6586 } && test -s conftest.$ac_objext; then
6587 emacs_alsa_normal=yes
6589 echo "$as_me: failed program was:" >&5
6590 sed 's/^/| /' conftest.$ac_ext >&5
6592 emacs_alsa_normal=no
6595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6596 if test "$emacs_alsa_normal" != yes; then
6597 cat >conftest.$ac_ext <<_ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6603 #include <alsa/asoundlib.h>
6607 snd_lib_error_set_handler (0);
6612 rm -f conftest.$ac_objext
6613 if { (ac_try="$ac_compile"
6615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6616 *) ac_try_echo
=$ac_try;;
6618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6619 (eval "$ac_compile") 2>conftest.er1
6621 grep -v '^ *+' conftest.er1
>conftest.err
6623 cat conftest.err
>&5
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); } && {
6626 test -z "$ac_c_werror_flag" ||
6627 test ! -s conftest.err
6628 } && test -s conftest.
$ac_objext; then
6629 emacs_alsa_subdir
=yes
6631 echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.
$ac_ext >&5
6634 emacs_alsa_subdir
=no
6637 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6638 if test "$emacs_alsa_subdir" != yes; then
6639 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6640 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6641 { (exit 1); exit 1; }; }
6643 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6646 CFLAGS
="$SAVE_CFLAGS"
6647 LDFLAGS
="$SAVE_LDFLAGS"
6648 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6649 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6651 cat >>confdefs.h
<<\_ACEOF
6684 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6685 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6686 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6687 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6690 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6691 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6692 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6694 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6697 ac_res
=`eval echo '${'$as_ac_Header'}'`
6698 { echo "$as_me:$LINENO: result: $ac_res" >&5
6699 echo "${ECHO_T}$ac_res" >&6; }
6701 # Is the header compilable?
6702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6704 cat >conftest.
$ac_ext <<_ACEOF
6707 cat confdefs.h
>>conftest.
$ac_ext
6708 cat >>conftest.
$ac_ext <<_ACEOF
6709 /* end confdefs.h. */
6710 $ac_includes_default
6711 #include <$ac_header>
6713 rm -f conftest.
$ac_objext
6714 if { (ac_try
="$ac_compile"
6716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_compile") 2>conftest.er1
6722 grep -v '^ *+' conftest.er1 >conftest.err
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } && {
6727 test -z "$ac_c_werror_flag" ||
6728 test ! -s conftest.err
6729 } && test -s conftest.$ac_objext; then
6730 ac_header_compiler=yes
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6735 ac_header_compiler=no
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6740 echo "${ECHO_T}$ac_header_compiler" >&6; }
6742 # Is the header present?
6743 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6745 cat >conftest.$ac_ext <<_ACEOF
6748 cat confdefs.h >>conftest.$ac_ext
6749 cat >>conftest.$ac_ext <<_ACEOF
6750 /* end confdefs.h. */
6751 #include <$ac_header>
6753 if { (ac_try="$ac_cpp conftest.$ac_ext"
6755 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6756 *) ac_try_echo
=$ac_try;;
6758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6761 grep -v '^ *+' conftest.er1
>conftest.err
6763 cat conftest.err
>&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } >/dev
/null
&& {
6766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6767 test ! -s conftest.err
6769 ac_header_preproc
=yes
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.
$ac_ext >&5
6774 ac_header_preproc
=no
6777 rm -f conftest.err conftest.
$ac_ext
6778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6779 echo "${ECHO_T}$ac_header_preproc" >&6; }
6781 # So? What about this header?
6782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6788 ac_header_preproc
=yes
6791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6806 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6808 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 eval "$as_ac_Header=\$ac_header_preproc"
6813 ac_res
=`eval echo '${'$as_ac_Header'}'`
6814 { echo "$as_me:$LINENO: result: $ac_res" >&5
6815 echo "${ECHO_T}$ac_res" >&6; }
6818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6819 cat >>confdefs.h
<<_ACEOF
6820 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6828 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6829 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6830 cat >conftest.
$ac_ext <<_ACEOF
6833 cat confdefs.h
>>conftest.
$ac_ext
6834 cat >>conftest.
$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6836 #include <sys/personality.h>
6840 personality (PER_LINUX32)
6845 rm -f conftest.
$ac_objext
6846 if { (ac_try
="$ac_compile"
6848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6849 *) ac_try_echo=$ac_try;;
6851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6852 (eval "$ac_compile") 2>conftest.er1
6854 grep -v '^ *+' conftest.er1 >conftest.err
6856 cat conftest.err >&5
6857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858 (exit $ac_status); } && {
6859 test -z "$ac_c_werror_flag" ||
6860 test ! -s conftest.err
6861 } && test -s conftest.$ac_objext; then
6862 emacs_cv_personality_linux32=yes
6864 echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6867 emacs_cv_personality_linux32=no
6870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6871 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6872 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6874 if test $emacs_cv_personality_linux32 = yes; then
6876 cat >>confdefs.h <<\_ACEOF
6877 #define HAVE_PERSONALITY_LINUX32 1
6883 for ac_header in term.h
6885 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6891 cat >conftest.$ac_ext <<_ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 #include <$ac_header>
6899 if { (ac_try="$ac_cpp conftest.$ac_ext"
6901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6902 *) ac_try_echo
=$ac_try;;
6904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6907 grep -v '^ *+' conftest.er1
>conftest.err
6909 cat conftest.err
>&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } >/dev
/null
&& {
6912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6913 test ! -s conftest.err
6915 eval "$as_ac_Header=yes"
6917 echo "$as_me: failed program was:" >&5
6918 sed 's/^/| /' conftest.
$ac_ext >&5
6920 eval "$as_ac_Header=no"
6923 rm -f conftest.err conftest.
$ac_ext
6925 ac_res
=`eval echo '${'$as_ac_Header'}'`
6926 { echo "$as_me:$LINENO: result: $ac_res" >&5
6927 echo "${ECHO_T}$ac_res" >&6; }
6928 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6929 cat >>confdefs.h
<<_ACEOF
6930 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6937 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6938 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6939 if test "${ac_cv_header_stdc+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 cat >conftest.
$ac_ext <<_ACEOF
6945 cat confdefs.h
>>conftest.
$ac_ext
6946 cat >>conftest.
$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6961 rm -f conftest.
$ac_objext
6962 if { (ac_try
="$ac_compile"
6964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6965 *) ac_try_echo=$ac_try;;
6967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6968 (eval "$ac_compile") 2>conftest.er1
6970 grep -v '^ *+' conftest.er1 >conftest.err
6972 cat conftest.err >&5
6973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6974 (exit $ac_status); } && {
6975 test -z "$ac_c_werror_flag" ||
6976 test ! -s conftest.err
6977 } && test -s conftest.$ac_objext; then
6978 ac_cv_header_stdc=yes
6980 echo "$as_me: failed program was:" >&5
6981 sed 's/^/| /' conftest.$ac_ext >&5
6983 ac_cv_header_stdc=no
6986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6988 if test $ac_cv_header_stdc = yes; then
6989 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6990 cat >conftest.$ac_ext <<_ACEOF
6993 cat confdefs.h >>conftest.$ac_ext
6994 cat >>conftest.$ac_ext <<_ACEOF
6995 /* end confdefs.h. */
6999 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7000 $EGREP "memchr" >/dev/null 2>&1; then
7003 ac_cv_header_stdc=no
7009 if test $ac_cv_header_stdc = yes; then
7010 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7011 cat >conftest.$ac_ext <<_ACEOF
7014 cat confdefs.h >>conftest.$ac_ext
7015 cat >>conftest.$ac_ext <<_ACEOF
7016 /* end confdefs.h. */
7020 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7021 $EGREP "free" >/dev/null 2>&1; then
7024 ac_cv_header_stdc=no
7030 if test $ac_cv_header_stdc = yes; then
7031 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7032 if test "$cross_compiling" = yes; then
7035 cat >conftest.$ac_ext <<_ACEOF
7038 cat confdefs.h >>conftest.$ac_ext
7039 cat >>conftest.$ac_ext <<_ACEOF
7040 /* end confdefs.h. */
7043 #if ((' ' & 0x0FF) == 0x020)
7044 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7045 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7047 # define ISLOWER(c) \
7048 (('a' <= (c) && (c) <= 'i') \
7049 || ('j' <= (c) && (c) <= 'r') \
7050 || ('s' <= (c) && (c) <= 'z'))
7051 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7054 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7059 for (i = 0; i < 256; i++)
7060 if (XOR (islower (i), ISLOWER (i))
7061 || toupper (i) != TOUPPER (i))
7066 rm -f conftest$ac_exeext
7067 if { (ac_try="$ac_link"
7069 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7070 *) ac_try_echo
=$ac_try;;
7072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073 (eval "$ac_link") 2>&5
7075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7076 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7077 { (case "(($ac_try" in
7078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_try") 2>&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; }; then
7088 echo "$as_me: program exited with status $ac_status" >&5
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.$ac_ext >&5
7093 ac_cv_header_stdc=no
7095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7101 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7102 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7103 if test $ac_cv_header_stdc = yes; then
7105 cat >>confdefs.h <<\_ACEOF
7106 #define STDC_HEADERS 1
7111 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7112 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7113 if test "${ac_cv_header_time+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7116 cat >conftest.$ac_ext <<_ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7122 #include <sys/types.h>
7123 #include <sys/time.h>
7129 if ((struct tm *) 0)
7135 rm -f conftest.$ac_objext
7136 if { (ac_try="$ac_compile"
7138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7139 *) ac_try_echo
=$ac_try;;
7141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7142 (eval "$ac_compile") 2>conftest.er1
7144 grep -v '^ *+' conftest.er1
>conftest.err
7146 cat conftest.err
>&5
7147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7148 (exit $ac_status); } && {
7149 test -z "$ac_c_werror_flag" ||
7150 test ! -s conftest.err
7151 } && test -s conftest.
$ac_objext; then
7152 ac_cv_header_time
=yes
7154 echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.
$ac_ext >&5
7157 ac_cv_header_time
=no
7160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7162 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7163 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7164 if test $ac_cv_header_time = yes; then
7166 cat >>confdefs.h
<<\_ACEOF
7167 #define TIME_WITH_SYS_TIME 1
7172 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7173 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7174 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 cat >conftest.
$ac_ext <<_ACEOF
7180 cat confdefs.h
>>conftest.
$ac_ext
7181 cat >>conftest.
$ac_ext <<_ACEOF
7182 /* end confdefs.h. */
7183 $ac_includes_default
7195 rm -f conftest.
$ac_objext
7196 if { (ac_try
="$ac_compile"
7198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7199 *) ac_try_echo=$ac_try;;
7201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7202 (eval "$ac_compile") 2>conftest.er1
7204 grep -v '^ *+' conftest.er1 >conftest.err
7206 cat conftest.err >&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } && {
7209 test -z "$ac_c_werror_flag" ||
7210 test ! -s conftest.err
7211 } && test -s conftest.$ac_objext; then
7212 ac_cv_have_decl_sys_siglist=yes
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.$ac_ext >&5
7217 ac_cv_have_decl_sys_siglist=no
7220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7223 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7224 if test $ac_cv_have_decl_sys_siglist = yes; then
7226 cat >>confdefs.h <<_ACEOF
7227 #define HAVE_DECL_SYS_SIGLIST 1
7232 cat >>confdefs.h <<_ACEOF
7233 #define HAVE_DECL_SYS_SIGLIST 0
7240 if test $ac_cv_have_decl_sys_siglist != yes; then
7241 # For Tru64, at least:
7242 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7243 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7244 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 cat >conftest.$ac_ext <<_ACEOF
7250 cat confdefs.h >>conftest.$ac_ext
7251 cat >>conftest.$ac_ext <<_ACEOF
7252 /* end confdefs.h. */
7253 $ac_includes_default
7257 #ifndef __sys_siglist
7258 (void) __sys_siglist;
7265 rm -f conftest.$ac_objext
7266 if { (ac_try="$ac_compile"
7268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7269 *) ac_try_echo
=$ac_try;;
7271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7272 (eval "$ac_compile") 2>conftest.er1
7274 grep -v '^ *+' conftest.er1
>conftest.err
7276 cat conftest.err
>&5
7277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7278 (exit $ac_status); } && {
7279 test -z "$ac_c_werror_flag" ||
7280 test ! -s conftest.err
7281 } && test -s conftest.
$ac_objext; then
7282 ac_cv_have_decl___sys_siglist
=yes
7284 echo "$as_me: failed program was:" >&5
7285 sed 's/^/| /' conftest.
$ac_ext >&5
7287 ac_cv_have_decl___sys_siglist
=no
7290 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7292 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7293 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7294 if test $ac_cv_have_decl___sys_siglist = yes; then
7296 cat >>confdefs.h
<<_ACEOF
7297 #define HAVE_DECL___SYS_SIGLIST 1
7302 cat >>confdefs.h
<<_ACEOF
7303 #define HAVE_DECL___SYS_SIGLIST 0
7310 if test $ac_cv_have_decl___sys_siglist = yes; then
7312 cat >>confdefs.h
<<\_ACEOF
7313 #define sys_siglist __sys_siglist
7318 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7319 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7320 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 cat >conftest.
$ac_ext <<_ACEOF
7326 cat confdefs.h
>>conftest.
$ac_ext
7327 cat >>conftest.
$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 #include <sys/types.h>
7330 #include <sys/wait.h>
7332 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7335 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7343 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7348 rm -f conftest.
$ac_objext
7349 if { (ac_try
="$ac_compile"
7351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7357 grep -v '^ *+' conftest.er1 >conftest.err
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.$ac_objext; then
7365 ac_cv_header_sys_wait_h=yes
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 ac_cv_header_sys_wait_h=no
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7376 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7377 if test $ac_cv_header_sys_wait_h = yes; then
7379 cat >>confdefs.h <<\_ACEOF
7380 #define HAVE_SYS_WAIT_H 1
7386 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7387 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7388 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 cat >conftest.$ac_ext <<_ACEOF
7394 cat confdefs.h >>conftest.$ac_ext
7395 cat >>conftest.$ac_ext <<_ACEOF
7396 /* end confdefs.h. */
7397 #ifdef TIME_WITH_SYS_TIME
7398 #include <sys/time.h>
7401 #ifdef HAVE_SYS_TIME_H
7402 #include <sys/time.h>
7413 static struct utimbuf x; x.actime = x.modtime;
7418 rm -f conftest.$ac_objext
7419 if { (ac_try="$ac_compile"
7421 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7422 *) ac_try_echo
=$ac_try;;
7424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7425 (eval "$ac_compile") 2>conftest.er1
7427 grep -v '^ *+' conftest.er1
>conftest.err
7429 cat conftest.err
>&5
7430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7431 (exit $ac_status); } && {
7432 test -z "$ac_c_werror_flag" ||
7433 test ! -s conftest.err
7434 } && test -s conftest.
$ac_objext; then
7435 emacs_cv_struct_utimbuf
=yes
7437 echo "$as_me: failed program was:" >&5
7438 sed 's/^/| /' conftest.
$ac_ext >&5
7440 emacs_cv_struct_utimbuf
=no
7443 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7445 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7446 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7447 if test $emacs_cv_struct_utimbuf = yes; then
7449 cat >>confdefs.h
<<\_ACEOF
7450 #define HAVE_STRUCT_UTIMBUF 1
7455 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7456 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7457 if test "${ac_cv_type_signal+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7460 cat >conftest.
$ac_ext <<_ACEOF
7463 cat confdefs.h
>>conftest.
$ac_ext
7464 cat >>conftest.
$ac_ext <<_ACEOF
7465 /* end confdefs.h. */
7466 #include <sys/types.h>
7472 return *(signal (0, 0)) (0) == 1;
7477 rm -f conftest.
$ac_objext
7478 if { (ac_try
="$ac_compile"
7480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7481 *) ac_try_echo=$ac_try;;
7483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7484 (eval "$ac_compile") 2>conftest.er1
7486 grep -v '^ *+' conftest.er1 >conftest.err
7488 cat conftest.err >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } && {
7491 test -z "$ac_c_werror_flag" ||
7492 test ! -s conftest.err
7493 } && test -s conftest.$ac_objext; then
7494 ac_cv_type_signal=int
7496 echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7499 ac_cv_type_signal=void
7502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7505 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7507 cat >>confdefs.h <<_ACEOF
7508 #define RETSIGTYPE $ac_cv_type_signal
7513 { echo "$as_me:$LINENO: checking for speed_t" >&5
7514 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7515 if test "${emacs_cv_speed_t+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 cat >conftest.$ac_ext <<_ACEOF
7521 cat confdefs.h >>conftest.$ac_ext
7522 cat >>conftest.$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 #include <termios.h>
7533 rm -f conftest.$ac_objext
7534 if { (ac_try="$ac_compile"
7536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7537 *) ac_try_echo
=$ac_try;;
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_compile") 2>conftest.er1
7542 grep -v '^ *+' conftest.er1
>conftest.err
7544 cat conftest.err
>&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } && {
7547 test -z "$ac_c_werror_flag" ||
7548 test ! -s conftest.err
7549 } && test -s conftest.
$ac_objext; then
7550 emacs_cv_speed_t
=yes
7552 echo "$as_me: failed program was:" >&5
7553 sed 's/^/| /' conftest.
$ac_ext >&5
7558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7560 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7561 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7562 if test $emacs_cv_speed_t = yes; then
7564 cat >>confdefs.h
<<\_ACEOF
7565 #define HAVE_SPEED_T 1
7570 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7571 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7572 if test "${emacs_cv_struct_timeval+set}" = set; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 cat >conftest.
$ac_ext <<_ACEOF
7578 cat confdefs.h
>>conftest.
$ac_ext
7579 cat >>conftest.
$ac_ext <<_ACEOF
7580 /* end confdefs.h. */
7581 #ifdef TIME_WITH_SYS_TIME
7582 #include <sys/time.h>
7585 #ifdef HAVE_SYS_TIME_H
7586 #include <sys/time.h>
7594 static struct timeval x; x.tv_sec = x.tv_usec;
7599 rm -f conftest.
$ac_objext
7600 if { (ac_try
="$ac_compile"
7602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7603 *) ac_try_echo=$ac_try;;
7605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606 (eval "$ac_compile") 2>conftest.er1
7608 grep -v '^ *+' conftest.er1 >conftest.err
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } && {
7613 test -z "$ac_c_werror_flag" ||
7614 test ! -s conftest.err
7615 } && test -s conftest.$ac_objext; then
7616 emacs_cv_struct_timeval=yes
7618 echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.$ac_ext >&5
7621 emacs_cv_struct_timeval=no
7624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7626 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7627 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7628 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7629 if test $emacs_cv_struct_timeval = yes; then
7631 cat >>confdefs.h <<\_ACEOF
7632 #define HAVE_TIMEVAL 1
7637 { echo "$as_me:$LINENO: checking for struct exception" >&5
7638 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7639 if test "${emacs_cv_struct_exception+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 cat >conftest.$ac_ext <<_ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7652 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
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 emacs_cv_struct_exception
=yes
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.
$ac_ext >&5
7679 emacs_cv_struct_exception
=no
7682 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7684 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7685 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7686 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7687 if test $emacs_cv_struct_exception != yes; then
7689 cat >>confdefs.h
<<\_ACEOF
7690 #define NO_MATHERR 1
7696 for ac_header
in sys
/socket.h
7698 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7699 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7700 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7701 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7702 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7703 echo $ECHO_N "(cached) $ECHO_C" >&6
7705 ac_res
=`eval echo '${'$as_ac_Header'}'`
7706 { echo "$as_me:$LINENO: result: $ac_res" >&5
7707 echo "${ECHO_T}$ac_res" >&6; }
7709 # Is the header compilable?
7710 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7711 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7712 cat >conftest.
$ac_ext <<_ACEOF
7715 cat confdefs.h
>>conftest.
$ac_ext
7716 cat >>conftest.
$ac_ext <<_ACEOF
7717 /* end confdefs.h. */
7718 $ac_includes_default
7719 #include <$ac_header>
7721 rm -f conftest.
$ac_objext
7722 if { (ac_try
="$ac_compile"
7724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7725 *) ac_try_echo=$ac_try;;
7727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7728 (eval "$ac_compile") 2>conftest.er1
7730 grep -v '^ *+' conftest.er1 >conftest.err
7732 cat conftest.err >&5
7733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7734 (exit $ac_status); } && {
7735 test -z "$ac_c_werror_flag" ||
7736 test ! -s conftest.err
7737 } && test -s conftest.$ac_objext; then
7738 ac_header_compiler=yes
7740 echo "$as_me: failed program was:" >&5
7741 sed 's/^/| /' conftest.$ac_ext >&5
7743 ac_header_compiler=no
7746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7747 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7748 echo "${ECHO_T}$ac_header_compiler" >&6; }
7750 # Is the header present?
7751 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7752 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7753 cat >conftest.$ac_ext <<_ACEOF
7756 cat confdefs.h >>conftest.$ac_ext
7757 cat >>conftest.$ac_ext <<_ACEOF
7758 /* end confdefs.h. */
7759 #include <$ac_header>
7761 if { (ac_try="$ac_cpp conftest.$ac_ext"
7763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7764 *) ac_try_echo
=$ac_try;;
7766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7769 grep -v '^ *+' conftest.er1
>conftest.err
7771 cat conftest.err
>&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } >/dev
/null
&& {
7774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7775 test ! -s conftest.err
7777 ac_header_preproc
=yes
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.
$ac_ext >&5
7782 ac_header_preproc
=no
7785 rm -f conftest.err conftest.
$ac_ext
7786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7787 echo "${ECHO_T}$ac_header_preproc" >&6; }
7789 # So? What about this header?
7790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7796 ac_header_preproc
=yes
7799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7806 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7816 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7817 echo $ECHO_N "(cached) $ECHO_C" >&6
7819 eval "$as_ac_Header=\$ac_header_preproc"
7821 ac_res
=`eval echo '${'$as_ac_Header'}'`
7822 { echo "$as_me:$LINENO: result: $ac_res" >&5
7823 echo "${ECHO_T}$ac_res" >&6; }
7826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7827 cat >>confdefs.h
<<_ACEOF
7828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7836 for ac_header
in net
/if.h
7838 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7841 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7842 echo $ECHO_N "(cached) $ECHO_C" >&6
7844 cat >conftest.
$ac_ext <<_ACEOF
7847 cat confdefs.h
>>conftest.
$ac_ext
7848 cat >>conftest.
$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7850 $ac_includes_default
7851 #if HAVE_SYS_SOCKET_H
7852 #include <sys/socket.h>
7855 #include <$ac_header>
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 eval "$as_ac_Header=yes"
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7879 eval "$as_ac_Header=no"
7882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884 ac_res=`eval echo '${'$as_ac_Header'}'`
7885 { echo "$as_me:$LINENO: result: $ac_res" >&5
7886 echo "${ECHO_T}$ac_res" >&6; }
7887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7888 cat >>confdefs.h <<_ACEOF
7889 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7897 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7898 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7899 if test "${ac_cv_struct_tm+set}" = set; then
7900 echo $ECHO_N "(cached) $ECHO_C" >&6
7902 cat >conftest.$ac_ext <<_ACEOF
7905 cat confdefs.h >>conftest.$ac_ext
7906 cat >>conftest.$ac_ext <<_ACEOF
7907 /* end confdefs.h. */
7908 #include <sys/types.h>
7915 int *p = &tm.tm_sec;
7921 rm -f conftest.$ac_objext
7922 if { (ac_try="$ac_compile"
7924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7925 *) ac_try_echo
=$ac_try;;
7927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7928 (eval "$ac_compile") 2>conftest.er1
7930 grep -v '^ *+' conftest.er1
>conftest.err
7932 cat conftest.err
>&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); } && {
7935 test -z "$ac_c_werror_flag" ||
7936 test ! -s conftest.err
7937 } && test -s conftest.
$ac_objext; then
7938 ac_cv_struct_tm
=time.h
7940 echo "$as_me: failed program was:" >&5
7941 sed 's/^/| /' conftest.
$ac_ext >&5
7943 ac_cv_struct_tm
=sys
/time.h
7946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7948 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7949 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7950 if test $ac_cv_struct_tm = sys
/time.h
; then
7952 cat >>confdefs.h
<<\_ACEOF
7953 #define TM_IN_SYS_TIME 1
7958 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7959 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7960 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7961 echo $ECHO_N "(cached) $ECHO_C" >&6
7963 cat >conftest.
$ac_ext <<_ACEOF
7966 cat confdefs.h
>>conftest.
$ac_ext
7967 cat >>conftest.
$ac_ext <<_ACEOF
7968 /* end confdefs.h. */
7969 #include <sys/types.h>
7970 #include <$ac_cv_struct_tm>
7976 static struct tm ac_aggr;
7977 if (ac_aggr.tm_zone)
7983 rm -f conftest.
$ac_objext
7984 if { (ac_try
="$ac_compile"
7986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_compile") 2>conftest.er1
7992 grep -v '^ *+' conftest.er1 >conftest.err
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } && {
7997 test -z "$ac_c_werror_flag" ||
7998 test ! -s conftest.err
7999 } && test -s conftest.$ac_objext; then
8000 ac_cv_member_struct_tm_tm_zone=yes
8002 echo "$as_me: failed program was:" >&5
8003 sed 's/^/| /' conftest.$ac_ext >&5
8005 cat >conftest.$ac_ext <<_ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8011 #include <sys/types.h>
8012 #include <$ac_cv_struct_tm>
8018 static struct tm ac_aggr;
8019 if (sizeof ac_aggr.tm_zone)
8025 rm -f conftest.$ac_objext
8026 if { (ac_try="$ac_compile"
8028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8029 *) ac_try_echo
=$ac_try;;
8031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8032 (eval "$ac_compile") 2>conftest.er1
8034 grep -v '^ *+' conftest.er1
>conftest.err
8036 cat conftest.err
>&5
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); } && {
8039 test -z "$ac_c_werror_flag" ||
8040 test ! -s conftest.err
8041 } && test -s conftest.
$ac_objext; then
8042 ac_cv_member_struct_tm_tm_zone
=yes
8044 echo "$as_me: failed program was:" >&5
8045 sed 's/^/| /' conftest.
$ac_ext >&5
8047 ac_cv_member_struct_tm_tm_zone
=no
8050 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8053 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8055 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8056 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8057 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8059 cat >>confdefs.h
<<_ACEOF
8060 #define HAVE_STRUCT_TM_TM_ZONE 1
8066 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8068 cat >>confdefs.h
<<\_ACEOF
8069 #define HAVE_TM_ZONE 1
8073 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8074 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8075 if test "${ac_cv_have_decl_tzname+set}" = set; then
8076 echo $ECHO_N "(cached) $ECHO_C" >&6
8078 cat >conftest.
$ac_ext <<_ACEOF
8081 cat confdefs.h
>>conftest.
$ac_ext
8082 cat >>conftest.
$ac_ext <<_ACEOF
8083 /* end confdefs.h. */
8097 rm -f conftest.
$ac_objext
8098 if { (ac_try
="$ac_compile"
8100 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8101 *) ac_try_echo=$ac_try;;
8103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8104 (eval "$ac_compile") 2>conftest.er1
8106 grep -v '^ *+' conftest.er1 >conftest.err
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } && {
8111 test -z "$ac_c_werror_flag" ||
8112 test ! -s conftest.err
8113 } && test -s conftest.$ac_objext; then
8114 ac_cv_have_decl_tzname=yes
8116 echo "$as_me: failed program was:" >&5
8117 sed 's/^/| /' conftest.$ac_ext >&5
8119 ac_cv_have_decl_tzname=no
8122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8124 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8125 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8126 if test $ac_cv_have_decl_tzname = yes; then
8128 cat >>confdefs.h <<_ACEOF
8129 #define HAVE_DECL_TZNAME 1
8134 cat >>confdefs.h <<_ACEOF
8135 #define HAVE_DECL_TZNAME 0
8142 { echo "$as_me:$LINENO: checking for tzname" >&5
8143 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8144 if test "${ac_cv_var_tzname+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. */
8154 #if !HAVE_DECL_TZNAME
8155 extern char *tzname[];
8161 return tzname[0][0];
8166 rm -f conftest.$ac_objext conftest$ac_exeext
8167 if { (ac_try="$ac_link"
8169 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8170 *) ac_try_echo
=$ac_try;;
8172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8173 (eval "$ac_link") 2>conftest.er1
8175 grep -v '^ *+' conftest.er1
>conftest.err
8177 cat conftest.err
>&5
8178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179 (exit $ac_status); } && {
8180 test -z "$ac_c_werror_flag" ||
8181 test ! -s conftest.err
8182 } && test -s conftest
$ac_exeext &&
8183 $as_test_x conftest
$ac_exeext; then
8184 ac_cv_var_tzname
=yes
8186 echo "$as_me: failed program was:" >&5
8187 sed 's/^/| /' conftest.
$ac_ext >&5
8192 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8193 conftest
$ac_exeext conftest.
$ac_ext
8195 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8196 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8197 if test $ac_cv_var_tzname = yes; then
8199 cat >>confdefs.h
<<\_ACEOF
8200 #define HAVE_TZNAME 1
8206 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8207 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8208 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8211 cat >conftest.
$ac_ext <<_ACEOF
8214 cat confdefs.h
>>conftest.
$ac_ext
8215 cat >>conftest.
$ac_ext <<_ACEOF
8216 /* end confdefs.h. */
8222 static struct tm ac_aggr;
8223 if (ac_aggr.tm_gmtoff)
8229 rm -f conftest.
$ac_objext
8230 if { (ac_try
="$ac_compile"
8232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8233 *) ac_try_echo=$ac_try;;
8235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8236 (eval "$ac_compile") 2>conftest.er1
8238 grep -v '^ *+' conftest.er1 >conftest.err
8240 cat conftest.err >&5
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); } && {
8243 test -z "$ac_c_werror_flag" ||
8244 test ! -s conftest.err
8245 } && test -s conftest.$ac_objext; then
8246 ac_cv_member_struct_tm_tm_gmtoff=yes
8248 echo "$as_me: failed program was:" >&5
8249 sed 's/^/| /' conftest.$ac_ext >&5
8251 cat >conftest.$ac_ext <<_ACEOF
8254 cat confdefs.h >>conftest.$ac_ext
8255 cat >>conftest.$ac_ext <<_ACEOF
8256 /* end confdefs.h. */
8262 static struct tm ac_aggr;
8263 if (sizeof ac_aggr.tm_gmtoff)
8269 rm -f conftest.$ac_objext
8270 if { (ac_try="$ac_compile"
8272 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8273 *) ac_try_echo
=$ac_try;;
8275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8276 (eval "$ac_compile") 2>conftest.er1
8278 grep -v '^ *+' conftest.er1
>conftest.err
8280 cat conftest.err
>&5
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } && {
8283 test -z "$ac_c_werror_flag" ||
8284 test ! -s conftest.err
8285 } && test -s conftest.
$ac_objext; then
8286 ac_cv_member_struct_tm_tm_gmtoff
=yes
8288 echo "$as_me: failed program was:" >&5
8289 sed 's/^/| /' conftest.
$ac_ext >&5
8291 ac_cv_member_struct_tm_tm_gmtoff
=no
8294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8299 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8300 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8301 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8303 cat >>confdefs.h
<<\_ACEOF
8304 #define HAVE_TM_GMTOFF 1
8309 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8310 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8311 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 cat >conftest.
$ac_ext <<_ACEOF
8317 cat confdefs.h
>>conftest.
$ac_ext
8318 cat >>conftest.
$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 $ac_includes_default
8321 #if HAVE_SYS_SOCKET_H
8322 #include <sys/socket.h>
8331 static struct ifreq ac_aggr;
8332 if (ac_aggr.ifr_flags)
8338 rm -f conftest.
$ac_objext
8339 if { (ac_try
="$ac_compile"
8341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8342 *) ac_try_echo=$ac_try;;
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345 (eval "$ac_compile") 2>conftest.er1
8347 grep -v '^ *+' conftest.er1 >conftest.err
8349 cat conftest.err >&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } && {
8352 test -z "$ac_c_werror_flag" ||
8353 test ! -s conftest.err
8354 } && test -s conftest.$ac_objext; then
8355 ac_cv_member_struct_ifreq_ifr_flags=yes
8357 echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.$ac_ext >&5
8360 cat >conftest.$ac_ext <<_ACEOF
8363 cat confdefs.h >>conftest.$ac_ext
8364 cat >>conftest.$ac_ext <<_ACEOF
8365 /* end confdefs.h. */
8366 $ac_includes_default
8367 #if HAVE_SYS_SOCKET_H
8368 #include <sys/socket.h>
8377 static struct ifreq ac_aggr;
8378 if (sizeof ac_aggr.ifr_flags)
8384 rm -f conftest.$ac_objext
8385 if { (ac_try="$ac_compile"
8387 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8388 *) ac_try_echo
=$ac_try;;
8390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8391 (eval "$ac_compile") 2>conftest.er1
8393 grep -v '^ *+' conftest.er1
>conftest.err
8395 cat conftest.err
>&5
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); } && {
8398 test -z "$ac_c_werror_flag" ||
8399 test ! -s conftest.err
8400 } && test -s conftest.
$ac_objext; then
8401 ac_cv_member_struct_ifreq_ifr_flags
=yes
8403 echo "$as_me: failed program was:" >&5
8404 sed 's/^/| /' conftest.
$ac_ext >&5
8406 ac_cv_member_struct_ifreq_ifr_flags
=no
8409 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8414 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8415 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8416 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8418 cat >>confdefs.h
<<_ACEOF
8419 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8424 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8425 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8426 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8429 cat >conftest.
$ac_ext <<_ACEOF
8432 cat confdefs.h
>>conftest.
$ac_ext
8433 cat >>conftest.
$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 $ac_includes_default
8436 #if HAVE_SYS_SOCKET_H
8437 #include <sys/socket.h>
8446 static struct ifreq ac_aggr;
8447 if (ac_aggr.ifr_hwaddr)
8453 rm -f conftest.
$ac_objext
8454 if { (ac_try
="$ac_compile"
8456 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8457 *) ac_try_echo=$ac_try;;
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_compile") 2>conftest.er1
8462 grep -v '^ *+' conftest.er1 >conftest.err
8464 cat conftest.err >&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } && {
8467 test -z "$ac_c_werror_flag" ||
8468 test ! -s conftest.err
8469 } && test -s conftest.$ac_objext; then
8470 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.$ac_ext >&5
8475 cat >conftest.$ac_ext <<_ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h. */
8481 $ac_includes_default
8482 #if HAVE_SYS_SOCKET_H
8483 #include <sys/socket.h>
8492 static struct ifreq ac_aggr;
8493 if (sizeof ac_aggr.ifr_hwaddr)
8499 rm -f conftest.$ac_objext
8500 if { (ac_try="$ac_compile"
8502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8503 *) ac_try_echo
=$ac_try;;
8505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8506 (eval "$ac_compile") 2>conftest.er1
8508 grep -v '^ *+' conftest.er1
>conftest.err
8510 cat conftest.err
>&5
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); } && {
8513 test -z "$ac_c_werror_flag" ||
8514 test ! -s conftest.err
8515 } && test -s conftest.
$ac_objext; then
8516 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8518 echo "$as_me: failed program was:" >&5
8519 sed 's/^/| /' conftest.
$ac_ext >&5
8521 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8527 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8529 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8530 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8531 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8533 cat >>confdefs.h
<<_ACEOF
8534 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8539 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8540 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8541 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8542 echo $ECHO_N "(cached) $ECHO_C" >&6
8544 cat >conftest.
$ac_ext <<_ACEOF
8547 cat confdefs.h
>>conftest.
$ac_ext
8548 cat >>conftest.
$ac_ext <<_ACEOF
8549 /* end confdefs.h. */
8550 $ac_includes_default
8551 #if HAVE_SYS_SOCKET_H
8552 #include <sys/socket.h>
8561 static struct ifreq ac_aggr;
8562 if (ac_aggr.ifr_netmask)
8568 rm -f conftest.
$ac_objext
8569 if { (ac_try
="$ac_compile"
8571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8572 *) ac_try_echo=$ac_try;;
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575 (eval "$ac_compile") 2>conftest.er1
8577 grep -v '^ *+' conftest.er1 >conftest.err
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } && {
8582 test -z "$ac_c_werror_flag" ||
8583 test ! -s conftest.err
8584 } && test -s conftest.$ac_objext; then
8585 ac_cv_member_struct_ifreq_ifr_netmask=yes
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8590 cat >conftest.$ac_ext <<_ACEOF
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8596 $ac_includes_default
8597 #if HAVE_SYS_SOCKET_H
8598 #include <sys/socket.h>
8607 static struct ifreq ac_aggr;
8608 if (sizeof ac_aggr.ifr_netmask)
8614 rm -f conftest.$ac_objext
8615 if { (ac_try="$ac_compile"
8617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8618 *) ac_try_echo
=$ac_try;;
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_compile") 2>conftest.er1
8623 grep -v '^ *+' conftest.er1
>conftest.err
8625 cat conftest.err
>&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } && {
8628 test -z "$ac_c_werror_flag" ||
8629 test ! -s conftest.err
8630 } && test -s conftest.
$ac_objext; then
8631 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.
$ac_ext >&5
8636 ac_cv_member_struct_ifreq_ifr_netmask
=no
8639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8644 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8645 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8646 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8648 cat >>confdefs.h
<<_ACEOF
8649 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8654 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8655 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8656 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8657 echo $ECHO_N "(cached) $ECHO_C" >&6
8659 cat >conftest.
$ac_ext <<_ACEOF
8662 cat confdefs.h
>>conftest.
$ac_ext
8663 cat >>conftest.
$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8665 $ac_includes_default
8666 #if HAVE_SYS_SOCKET_H
8667 #include <sys/socket.h>
8676 static struct ifreq ac_aggr;
8677 if (ac_aggr.ifr_broadaddr)
8683 rm -f conftest.
$ac_objext
8684 if { (ac_try
="$ac_compile"
8686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8692 grep -v '^ *+' conftest.er1 >conftest.err
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.$ac_objext; then
8700 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 cat >conftest.$ac_ext <<_ACEOF
8708 cat confdefs.h >>conftest.$ac_ext
8709 cat >>conftest.$ac_ext <<_ACEOF
8710 /* end confdefs.h. */
8711 $ac_includes_default
8712 #if HAVE_SYS_SOCKET_H
8713 #include <sys/socket.h>
8722 static struct ifreq ac_aggr;
8723 if (sizeof ac_aggr.ifr_broadaddr)
8729 rm -f conftest.$ac_objext
8730 if { (ac_try="$ac_compile"
8732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8733 *) ac_try_echo
=$ac_try;;
8735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8736 (eval "$ac_compile") 2>conftest.er1
8738 grep -v '^ *+' conftest.er1
>conftest.err
8740 cat conftest.err
>&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); } && {
8743 test -z "$ac_c_werror_flag" ||
8744 test ! -s conftest.err
8745 } && test -s conftest.
$ac_objext; then
8746 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8748 echo "$as_me: failed program was:" >&5
8749 sed 's/^/| /' conftest.
$ac_ext >&5
8751 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8759 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8760 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8761 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8763 cat >>confdefs.h
<<_ACEOF
8764 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8769 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8770 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8771 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8772 echo $ECHO_N "(cached) $ECHO_C" >&6
8774 cat >conftest.
$ac_ext <<_ACEOF
8777 cat confdefs.h
>>conftest.
$ac_ext
8778 cat >>conftest.
$ac_ext <<_ACEOF
8779 /* end confdefs.h. */
8780 $ac_includes_default
8781 #if HAVE_SYS_SOCKET_H
8782 #include <sys/socket.h>
8791 static struct ifreq ac_aggr;
8792 if (ac_aggr.ifr_addr)
8798 rm -f conftest.
$ac_objext
8799 if { (ac_try
="$ac_compile"
8801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8802 *) ac_try_echo=$ac_try;;
8804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8805 (eval "$ac_compile") 2>conftest.er1
8807 grep -v '^ *+' conftest.er1 >conftest.err
8809 cat conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && {
8812 test -z "$ac_c_werror_flag" ||
8813 test ! -s conftest.err
8814 } && test -s conftest.$ac_objext; then
8815 ac_cv_member_struct_ifreq_ifr_addr=yes
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8820 cat >conftest.$ac_ext <<_ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8826 $ac_includes_default
8827 #if HAVE_SYS_SOCKET_H
8828 #include <sys/socket.h>
8837 static struct ifreq ac_aggr;
8838 if (sizeof ac_aggr.ifr_addr)
8844 rm -f conftest.$ac_objext
8845 if { (ac_try="$ac_compile"
8847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8848 *) ac_try_echo
=$ac_try;;
8850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851 (eval "$ac_compile") 2>conftest.er1
8853 grep -v '^ *+' conftest.er1
>conftest.err
8855 cat conftest.err
>&5
8856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857 (exit $ac_status); } && {
8858 test -z "$ac_c_werror_flag" ||
8859 test ! -s conftest.err
8860 } && test -s conftest.
$ac_objext; then
8861 ac_cv_member_struct_ifreq_ifr_addr
=yes
8863 echo "$as_me: failed program was:" >&5
8864 sed 's/^/| /' conftest.
$ac_ext >&5
8866 ac_cv_member_struct_ifreq_ifr_addr
=no
8869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8874 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8875 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8876 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8878 cat >>confdefs.h
<<_ACEOF
8879 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8887 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8888 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8889 if test "$ac_cv_prog_cc_c89" != no
; then
8890 { echo "$as_me:$LINENO: result: yes" >&5
8891 echo "${ECHO_T}yes" >&6; }
8893 cat >>confdefs.h
<<\_ACEOF
8894 #define PROTOTYPES 1
8898 cat >>confdefs.h
<<\_ACEOF
8899 #define __PROTOTYPES 1
8903 { echo "$as_me:$LINENO: result: no" >&5
8904 echo "${ECHO_T}no" >&6; }
8907 { echo "$as_me:$LINENO: checking for working volatile" >&5
8908 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8909 if test "${ac_cv_c_volatile+set}" = set; then
8910 echo $ECHO_N "(cached) $ECHO_C" >&6
8912 cat >conftest.
$ac_ext <<_ACEOF
8915 cat confdefs.h
>>conftest.
$ac_ext
8916 cat >>conftest.
$ac_ext <<_ACEOF
8917 /* end confdefs.h. */
8924 int * volatile y = (int *) 0;
8930 rm -f conftest.
$ac_objext
8931 if { (ac_try
="$ac_compile"
8933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8934 *) ac_try_echo=$ac_try;;
8936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8937 (eval "$ac_compile") 2>conftest.er1
8939 grep -v '^ *+' conftest.er1 >conftest.err
8941 cat conftest.err >&5
8942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8943 (exit $ac_status); } && {
8944 test -z "$ac_c_werror_flag" ||
8945 test ! -s conftest.err
8946 } && test -s conftest.$ac_objext; then
8947 ac_cv_c_volatile=yes
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.$ac_ext >&5
8955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8957 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8958 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8959 if test $ac_cv_c_volatile = no; then
8961 cat >>confdefs.h <<\_ACEOF
8967 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8968 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8969 if test "${ac_cv_c_const+set}" = set; then
8970 echo $ECHO_N "(cached) $ECHO_C" >&6
8972 cat >conftest.$ac_ext <<_ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8982 /* FIXME: Include the comments suggested by Paul. */
8984 /* Ultrix mips cc rejects this. */
8985 typedef int charset[2];
8987 /* SunOS 4.1.1 cc rejects this. */
8988 char const *const *pcpcc;
8990 /* NEC SVR4.0.2 mips cc rejects this. */
8991 struct point {int x, y;};
8992 static struct point const zero = {0,0};
8993 /* AIX XL C 1.02.0.0 rejects this.
8994 It does not let you subtract one const X* pointer from another in
8995 an arm of an if-expression whose if-part is not a constant
8997 const char *g = "string";
8998 pcpcc = &g + (g ? g-g : 0);
8999 /* HPUX 7.0 cc rejects these. */
9001 ppc = (char**) pcpcc;
9002 pcpcc = (char const *const *) ppc;
9003 { /* SCO 3.2v4 cc rejects this. */
9005 char const *s = 0 ? (char *) 0 : (char const *) 0;
9010 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9012 const int *foo = &x[0];
9015 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9016 typedef const int *iptr;
9020 { /* AIX XL C 1.02.0.0 rejects this saying
9021 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9022 struct s { int j; const int *ap[3]; };
9023 struct s *b; b->j = 5;
9025 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9029 return !cs[0] && !zero.x;
9036 rm -f conftest.$ac_objext
9037 if { (ac_try="$ac_compile"
9039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9040 *) ac_try_echo
=$ac_try;;
9042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9043 (eval "$ac_compile") 2>conftest.er1
9045 grep -v '^ *+' conftest.er1
>conftest.err
9047 cat conftest.err
>&5
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } && {
9050 test -z "$ac_c_werror_flag" ||
9051 test ! -s conftest.err
9052 } && test -s conftest.
$ac_objext; then
9055 echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.
$ac_ext >&5
9061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9063 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9064 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9065 if test $ac_cv_c_const = no
; then
9067 cat >>confdefs.h
<<\_ACEOF
9073 { echo "$as_me:$LINENO: checking for void * support" >&5
9074 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9075 if test "${emacs_cv_void_star+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 cat >conftest.
$ac_ext <<_ACEOF
9081 cat confdefs.h
>>conftest.
$ac_ext
9082 cat >>conftest.
$ac_ext <<_ACEOF
9083 /* end confdefs.h. */
9093 rm -f conftest.
$ac_objext
9094 if { (ac_try
="$ac_compile"
9096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9097 *) ac_try_echo=$ac_try;;
9099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9100 (eval "$ac_compile") 2>conftest.er1
9102 grep -v '^ *+' conftest.er1 >conftest.err
9104 cat conftest.err >&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); } && {
9107 test -z "$ac_c_werror_flag" ||
9108 test ! -s conftest.err
9109 } && test -s conftest.$ac_objext; then
9110 emacs_cv_void_star=yes
9112 echo "$as_me: failed program was:" >&5
9113 sed 's/^/| /' conftest.$ac_ext >&5
9115 emacs_cv_void_star=no
9118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9120 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9121 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9122 if test $emacs_cv_void_star = yes; then
9123 cat >>confdefs.h <<\_ACEOF
9124 #define POINTER_TYPE void
9128 cat >>confdefs.h <<\_ACEOF
9129 #define POINTER_TYPE char
9138 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9139 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9140 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9141 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9142 echo $ECHO_N "(cached) $ECHO_C" >&6
9144 cat >conftest.make <<\_ACEOF
9147 @echo '@@@%%%=$(MAKE)=@@@%%%'
9149 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9150 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9152 eval ac_cv_prog_make_${ac_make}_set=yes;;
9154 eval ac_cv_prog_make_${ac_make}_set=no;;
9158 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9159 { echo "$as_me:$LINENO: result: yes" >&5
9160 echo "${ECHO_T}yes" >&6; }
9163 { echo "$as_me:$LINENO: result: no" >&5
9164 echo "${ECHO_T}no" >&6; }
9165 SET_MAKE="MAKE=${MAKE-make}"
9169 { echo "$as_me:$LINENO: checking for long file names" >&5
9170 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9171 if test "${ac_cv_sys_long_file_names+set}" = set; then
9172 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 ac_cv_sys_long_file_names=yes
9175 # Test for long file names in all the places we know might matter:
9176 # . the current directory, where building will happen
9177 # $prefix/lib where we will be installing things
9178 # $exec_prefix/lib likewise
9179 # $TMPDIR if set, where it might want to write temporary files
9180 # /tmp where it might want to write temporary files
9183 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9184 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9185 # in the usual case where exec_prefix is '${prefix}'.
9187 . | /* | ?:[\\/]*) ;; #(
9190 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9191 ac_xdir=$ac_dir/cf$$
9192 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9193 ac_tf1=$ac_xdir/conftest9012345
9194 ac_tf2=$ac_xdir/conftest9012346
9195 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9196 ac_cv_sys_long_file_names=no
9197 rm -f -r "$ac_xdir" 2>/dev/null
9198 test $ac_cv_sys_long_file_names = no && break
9201 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9202 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9203 if test $ac_cv_sys_long_file_names = yes; then
9205 cat >>confdefs.h <<\_ACEOF
9206 #define HAVE_LONG_FILE_NAMES 1
9212 #### Choose a window system.
9214 { echo "$as_me:$LINENO: checking for X" >&5
9215 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9218 # Check whether --with-x was given.
9219 if test "${with_x+set}" = set; then
9223 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9224 if test "x$with_x" = xno; then
9225 # The user explicitly disabled X.
9228 case $x_includes,$x_libraries in #(
9229 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9230 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9231 { (exit 1); exit 1; }; };; #(
9232 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9233 echo $ECHO_N "(cached) $ECHO_C" >&6
9235 # One or both of the vars are not set, and there is no cached value.
9236 ac_x_includes=no ac_x_libraries=no
9237 rm -f -r conftest.dir
9238 if mkdir conftest.dir; then
9240 cat >Imakefile <<'_ACEOF'
9242 @echo incroot='${INCROOT}'
9244 @echo usrlibdir='${USRLIBDIR}'
9246 @echo libdir='${LIBDIR}'
9248 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9249 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9250 for ac_var in incroot usrlibdir libdir; do
9251 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9253 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9254 for ac_extension in a so sl; do
9255 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9256 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9257 ac_im_usrlibdir=$ac_im_libdir; break
9260 # Screen out bogus values from the imake configuration. They are
9261 # bogus both because they are the default anyway, and because
9262 # using them would break gcc on systems where it needs fixed includes.
9263 case $ac_im_incroot in
9264 /usr/include) ac_x_includes= ;;
9265 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9267 case $ac_im_usrlibdir in
9269 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9273 rm -f -r conftest.dir
9276 # Standard set of common directories for X headers.
9277 # Check X11 before X11Rn because it is often a symlink to the current release.
9289 /usr/local/X11/include
9290 /usr/local/X11R6/include
9291 /usr/local/X11R5/include
9292 /usr/local/X11R4/include
9294 /usr/local/include/X11
9295 /usr/local/include/X11R6
9296 /usr/local/include/X11R5
9297 /usr/local/include/X11R4
9301 /usr/XFree86/include/X11
9305 /usr/unsupported/include
9307 /usr/local/x11r5/include
9308 /usr/lpp/Xamples/include
9310 /usr/openwin/include
9311 /usr/openwin/share/include'
9313 if test "$ac_x_includes" = no; then
9314 # Guess where to find include files, by looking for Xlib.h.
9315 # First, try using that file with no special directory specified.
9316 cat >conftest.$ac_ext <<_ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9322 #include <X11/Xlib.h>
9324 if { (ac_try="$ac_cpp conftest.$ac_ext"
9326 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9327 *) ac_try_echo
=$ac_try;;
9329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9332 grep -v '^ *+' conftest.er1
>conftest.err
9334 cat conftest.err
>&5
9335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9336 (exit $ac_status); } >/dev
/null
&& {
9337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9338 test ! -s conftest.err
9340 # We can compile using X headers with no special include directory.
9343 echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.
$ac_ext >&5
9346 for ac_dir
in $ac_x_header_dirs; do
9347 if test -r "$ac_dir/X11/Xlib.h"; then
9348 ac_x_includes
=$ac_dir
9354 rm -f conftest.err conftest.
$ac_ext
9355 fi # $ac_x_includes = no
9357 if test "$ac_x_libraries" = no
; then
9358 # Check for the libraries.
9359 # See if we find them without any special options.
9360 # Don't add to $LIBS permanently.
9363 cat >conftest.
$ac_ext <<_ACEOF
9366 cat confdefs.h
>>conftest.
$ac_ext
9367 cat >>conftest.
$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9369 #include <X11/Xlib.h>
9378 rm -f conftest.
$ac_objext conftest
$ac_exeext
9379 if { (ac_try
="$ac_link"
9381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_link") 2>conftest.er1
9387 grep -v '^ *+' conftest.er1 >conftest.err
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } && {
9392 test -z "$ac_c_werror_flag" ||
9393 test ! -s conftest.err
9394 } && test -s conftest$ac_exeext &&
9395 $as_test_x conftest$ac_exeext; then
9397 # We can link X programs with no special library path.
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9404 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9406 # Don't even attempt the hair of trying to link an X program!
9407 for ac_extension in a so sl; do
9408 if test -r "$ac_dir/libX11.$ac_extension"; then
9409 ac_x_libraries=$ac_dir
9416 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9417 conftest$ac_exeext conftest.$ac_ext
9418 fi # $ac_x_libraries = no
9420 case $ac_x_includes,$ac_x_libraries in #(
9422 # Didn't find X, or a directory has "'" in its name.
9423 ac_cv_have_x="have_x=no";; #(
9425 # Record where we found X for the cache.
9426 ac_cv_have_x="have_x=yes\
9427 ac_x_includes='$ac_x_includes'\
9428 ac_x_libraries='$ac_x_libraries'"
9434 eval "$ac_cv_have_x"
9437 if test "$have_x" != yes; then
9438 { echo "$as_me:$LINENO: result: $have_x" >&5
9439 echo "${ECHO_T}$have_x" >&6; }
9442 # If each of the values was on the command line, it overrides each guess.
9443 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9444 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9445 # Update the cache value to reflect the command line values.
9446 ac_cv_have_x="have_x=yes\
9447 ac_x_includes='$x_includes'\
9448 ac_x_libraries='$x_libraries'"
9449 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9450 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9453 if test "$no_x" = yes; then
9459 if test "${x_libraries}" != NONE; then
9460 if test -n "${x_libraries}"; then
9461 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9462 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9464 x_default_search_path=""
9465 x_search_path=${x_libraries}
9466 if test -z "${x_search_path}"; then
9467 x_search_path=/usr/lib
9469 for x_library in `echo ${x_search_path}: | \
9470 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9472 ${x_library}/X11/%L/%T/%N%C%S:\
9473 ${x_library}/X11/%l/%T/%N%C%S:\
9474 ${x_library}/X11/%T/%N%C%S:\
9475 ${x_library}/X11/%L/%T/%N%S:\
9476 ${x_library}/X11/%l/%T/%N%S:\
9477 ${x_library}/X11/%T/%N%S"
9478 if test x"${x_default_search_path}" = x; then
9479 x_default_search_path=${x_search_path}
9481 x_default_search_path="${x_search_path}:${x_default_search_path}"
9485 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9486 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9489 if test x"${x_includes}" = x; then
9490 bitmapdir=/usr/include/X11/bitmaps
9492 # accumulate include directories that have X11 bitmap subdirectories
9494 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9495 if test -d "${bmd}/X11/bitmaps"; then
9496 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9498 if test -d "${bmd}/bitmaps"; then
9499 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9502 if test ${bmd_acc} != "dummyval"; then
9503 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9508 if test "${with_carbon}" != no; then
9509 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9510 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9511 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9512 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9516 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9518 # Is the header compilable?
9519 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9520 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9521 cat >conftest.$ac_ext <<_ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9527 $ac_includes_default
9528 #include <Carbon/Carbon.h>
9530 rm -f conftest.$ac_objext
9531 if { (ac_try="$ac_compile"
9533 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9534 *) ac_try_echo
=$ac_try;;
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537 (eval "$ac_compile") 2>conftest.er1
9539 grep -v '^ *+' conftest.er1
>conftest.err
9541 cat conftest.err
>&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest.
$ac_objext; then
9547 ac_header_compiler
=yes
9549 echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.
$ac_ext >&5
9552 ac_header_compiler
=no
9555 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9556 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9557 echo "${ECHO_T}$ac_header_compiler" >&6; }
9559 # Is the header present?
9560 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9561 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9562 cat >conftest.
$ac_ext <<_ACEOF
9565 cat confdefs.h
>>conftest.
$ac_ext
9566 cat >>conftest.
$ac_ext <<_ACEOF
9567 /* end confdefs.h. */
9568 #include <Carbon/Carbon.h>
9570 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9573 *) ac_try_echo=$ac_try;;
9575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9576 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9578 grep -v '^ *+' conftest.er1 >conftest.err
9580 cat conftest.err >&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); } >/dev/null && {
9583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9584 test ! -s conftest.err
9586 ac_header_preproc=yes
9588 echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9591 ac_header_preproc=no
9594 rm -f conftest.err conftest.$ac_ext
9595 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9596 echo "${ECHO_T}$ac_header_preproc" >&6; }
9598 # So? What about this header?
9599 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9601 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9602 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9603 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9604 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9605 ac_header_preproc=yes
9608 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9609 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9610 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9611 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9612 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9613 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9614 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9615 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9616 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9617 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9618 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9619 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9623 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9624 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9625 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9630 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9631 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9634 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9640 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9641 if test "${with_carbon+set}" != set \
9642 && test "${carbon_appdir_x+set}" != set; then
9643 for var in with_x with_x_toolkit with_gtk with_xim \
9644 with_xpm with_jpeg with_tiff with_gif with_png; do
9645 if eval test \"\${$var+set}\" = set; then
9652 if test "${HAVE_CARBON}" = yes; then
9656 case "${window_system}" in
9660 case "${with_x_toolkit}" in
9661 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9662 motif ) USE_X_TOOLKIT=MOTIF ;;
9664 USE_X_TOOLKIT=none ;;
9665 no ) USE_X_TOOLKIT=none ;;
9667 if test x"$with_gtk" = xyes; then
9682 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9683 # Extract the first word of "X", so it can be a program name with args.
9684 set dummy X; ac_word=$2
9685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9687 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9690 if test -n "$HAVE_XSERVER"; then
9691 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9697 test -z "$as_dir" && as_dir=.
9698 for ac_exec_ext in '' $ac_executable_extensions; do
9699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9700 ac_cv_prog_HAVE_XSERVER="true"
9701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9711 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9712 if test -n "$HAVE_XSERVER"; then
9713 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9714 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9716 { echo "$as_me:$LINENO: result: no" >&5
9717 echo "${ECHO_T}no" >&6; }
9721 if test "$HAVE_XSERVER" = true ||
9722 test -n "$DISPLAY" ||
9723 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9724 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9725 were found. You should install the relevant development files for X
9726 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9727 sure you have development files for image handling, i.e.
9728 tiff, gif, jpeg, png and xpm.
9729 If you are sure you want Emacs compiled without X window support, pass
9732 echo "$as_me: error: You seem to be running X, but no X development libraries
9733 were found. You should install the relevant development files for X
9734 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9735 sure you have development files for image handling, i.e.
9736 tiff, gif, jpeg, png and xpm.
9737 If you are sure you want Emacs compiled without X window support, pass
9739 to configure." >&2;}
9740 { (exit 1); exit 1; }; }
9744 ### If we're using X11, we should use the X menu package.
9747 yes ) HAVE_MENUS=yes ;;
9750 if test "${opsys}" = "hpux9"; then
9751 case "${x_libraries}" in
9753 opsysfile="s/hpux9-x11r4.h"
9758 if test "${opsys}" = "hpux9shr"; then
9759 case "${x_libraries}" in
9761 opsysfile="s/hpux9shxr4.h"
9766 ### Compute the unexec source name from the object name.
9767 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9769 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9770 # Assume not, until told otherwise.
9773 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9774 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9775 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 cat >conftest.$ac_ext <<_ACEOF
9781 cat confdefs.h >>conftest.$ac_ext
9782 cat >>conftest.$ac_ext <<_ACEOF
9783 /* end confdefs.h. */
9784 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9786 #define malloc_get_state innocuous_malloc_get_state
9788 /* System header to define __stub macros and hopefully few prototypes,
9789 which can conflict with char malloc_get_state (); below.
9790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9791 <limits.h> exists even on freestanding compilers. */
9794 # include <limits.h>
9796 # include <assert.h>
9799 #undef malloc_get_state
9801 /* Override any GCC internal prototype to avoid an error.
9802 Use char because int might match the return type of a GCC
9803 builtin and then its argument prototype would still apply. */
9807 char malloc_get_state ();
9808 /* The GNU C library defines this for functions which it implements
9809 to always fail with ENOSYS. Some functions are actually named
9810 something starting with __ and the normal name is an alias. */
9811 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9818 return malloc_get_state ();
9823 rm -f conftest.$ac_objext conftest$ac_exeext
9824 if { (ac_try="$ac_link"
9826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9827 *) ac_try_echo
=$ac_try;;
9829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9830 (eval "$ac_link") 2>conftest.er1
9832 grep -v '^ *+' conftest.er1
>conftest.err
9834 cat conftest.err
>&5
9835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9836 (exit $ac_status); } && {
9837 test -z "$ac_c_werror_flag" ||
9838 test ! -s conftest.err
9839 } && test -s conftest
$ac_exeext &&
9840 $as_test_x conftest
$ac_exeext; then
9841 ac_cv_func_malloc_get_state
=yes
9843 echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.
$ac_ext >&5
9846 ac_cv_func_malloc_get_state
=no
9849 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9850 conftest
$ac_exeext conftest.
$ac_ext
9852 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9853 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9854 if test $ac_cv_func_malloc_get_state = yes; then
9860 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9861 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9862 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 cat >conftest.
$ac_ext <<_ACEOF
9868 cat confdefs.h
>>conftest.
$ac_ext
9869 cat >>conftest.
$ac_ext <<_ACEOF
9870 /* end confdefs.h. */
9871 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9873 #define malloc_set_state innocuous_malloc_set_state
9875 /* System header to define __stub macros and hopefully few prototypes,
9876 which can conflict with char malloc_set_state (); below.
9877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9878 <limits.h> exists even on freestanding compilers. */
9881 # include <limits.h>
9883 # include <assert.h>
9886 #undef malloc_set_state
9888 /* Override any GCC internal prototype to avoid an error.
9889 Use char because int might match the return type of a GCC
9890 builtin and then its argument prototype would still apply. */
9894 char malloc_set_state ();
9895 /* The GNU C library defines this for functions which it implements
9896 to always fail with ENOSYS. Some functions are actually named
9897 something starting with __ and the normal name is an alias. */
9898 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9905 return malloc_set_state ();
9910 rm -f conftest.
$ac_objext conftest
$ac_exeext
9911 if { (ac_try
="$ac_link"
9913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9914 *) ac_try_echo=$ac_try;;
9916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9917 (eval "$ac_link") 2>conftest.er1
9919 grep -v '^ *+' conftest.er1 >conftest.err
9921 cat conftest.err >&5
9922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9923 (exit $ac_status); } && {
9924 test -z "$ac_c_werror_flag" ||
9925 test ! -s conftest.err
9926 } && test -s conftest$ac_exeext &&
9927 $as_test_x conftest$ac_exeext; then
9928 ac_cv_func_malloc_set_state=yes
9930 echo "$as_me: failed program was:" >&5
9931 sed 's/^/| /' conftest.$ac_ext >&5
9933 ac_cv_func_malloc_set_state=no
9936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9937 conftest$ac_exeext conftest.$ac_ext
9939 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9940 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9941 if test $ac_cv_func_malloc_set_state = yes; then
9947 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9948 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9949 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9950 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 cat >conftest.$ac_ext <<_ACEOF
9955 cat confdefs.h >>conftest.$ac_ext
9956 cat >>conftest.$ac_ext <<_ACEOF
9957 /* end confdefs.h. */
9958 extern void (* __after_morecore_hook)();
9962 __after_morecore_hook = 0
9967 rm -f conftest.$ac_objext conftest$ac_exeext
9968 if { (ac_try="$ac_link"
9970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9971 *) ac_try_echo
=$ac_try;;
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_link") 2>conftest.er1
9976 grep -v '^ *+' conftest.er1
>conftest.err
9978 cat conftest.err
>&5
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); } && {
9981 test -z "$ac_c_werror_flag" ||
9982 test ! -s conftest.err
9983 } && test -s conftest
$ac_exeext &&
9984 $as_test_x conftest
$ac_exeext; then
9985 emacs_cv_var___after_morecore_hook
=yes
9987 echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.
$ac_ext >&5
9990 emacs_cv_var___after_morecore_hook
=no
9993 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9994 conftest
$ac_exeext conftest.
$ac_ext
9996 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9997 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9998 if test $emacs_cv_var___after_morecore_hook = no
; then
10001 if test "${system_malloc}" = "yes"; then
10003 GNU_MALLOC_reason
="
10004 (The GNU allocators don't work with this system configuration.)"
10006 if test "$doug_lea_malloc" = "yes" ; then
10007 if test "$GNU_MALLOC" = yes ; then
10008 GNU_MALLOC_reason
="
10009 (Using Doug Lea's new malloc from the GNU C Library.)"
10012 cat >>confdefs.h
<<\_ACEOF
10013 #define DOUG_LEA_MALLOC 1
10018 if test x
"${REL_ALLOC}" = x
; then
10019 REL_ALLOC
=${GNU_MALLOC}
10025 for ac_header
in stdlib.h unistd.h
10027 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10028 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10031 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 ac_res
=`eval echo '${'$as_ac_Header'}'`
10035 { echo "$as_me:$LINENO: result: $ac_res" >&5
10036 echo "${ECHO_T}$ac_res" >&6; }
10038 # Is the header compilable?
10039 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10041 cat >conftest.
$ac_ext <<_ACEOF
10044 cat confdefs.h
>>conftest.
$ac_ext
10045 cat >>conftest.
$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10047 $ac_includes_default
10048 #include <$ac_header>
10050 rm -f conftest.
$ac_objext
10051 if { (ac_try
="$ac_compile"
10052 case "(($ac_try" in
10053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_compile") 2>conftest.er1
10059 grep -v '^ *+' conftest.er1 >conftest.err
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } && {
10064 test -z "$ac_c_werror_flag" ||
10065 test ! -s conftest.err
10066 } && test -s conftest.$ac_objext; then
10067 ac_header_compiler=yes
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.$ac_ext >&5
10072 ac_header_compiler=no
10075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10077 echo "${ECHO_T}$ac_header_compiler" >&6; }
10079 # Is the header present?
10080 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10082 cat >conftest.$ac_ext <<_ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
10087 /* end confdefs.h. */
10088 #include <$ac_header>
10090 if { (ac_try="$ac_cpp conftest.$ac_ext"
10091 case "(($ac_try" in
10092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10093 *) ac_try_echo
=$ac_try;;
10095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10098 grep -v '^ *+' conftest.er1
>conftest.err
10100 cat conftest.err
>&5
10101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10102 (exit $ac_status); } >/dev
/null
&& {
10103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10104 test ! -s conftest.err
10106 ac_header_preproc
=yes
10108 echo "$as_me: failed program was:" >&5
10109 sed 's/^/| /' conftest.
$ac_ext >&5
10111 ac_header_preproc
=no
10114 rm -f conftest.err conftest.
$ac_ext
10115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10116 echo "${ECHO_T}$ac_header_preproc" >&6; }
10118 # So? What about this header?
10119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10125 ac_header_preproc
=yes
10128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10133 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10135 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10139 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10145 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10148 eval "$as_ac_Header=\$ac_header_preproc"
10150 ac_res
=`eval echo '${'$as_ac_Header'}'`
10151 { echo "$as_me:$LINENO: result: $ac_res" >&5
10152 echo "${ECHO_T}$ac_res" >&6; }
10155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10156 cat >>confdefs.h
<<_ACEOF
10157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10165 for ac_func
in getpagesize
10167 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10170 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 cat >conftest.
$ac_ext <<_ACEOF
10176 cat confdefs.h
>>conftest.
$ac_ext
10177 cat >>conftest.
$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10181 #define $ac_func innocuous_$ac_func
10183 /* System header to define __stub macros and hopefully few prototypes,
10184 which can conflict with char $ac_func (); below.
10185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10186 <limits.h> exists even on freestanding compilers. */
10189 # include <limits.h>
10191 # include <assert.h>
10196 /* Override any GCC internal prototype to avoid an error.
10197 Use char because int might match the return type of a GCC
10198 builtin and then its argument prototype would still apply. */
10203 /* The GNU C library defines this for functions which it implements
10204 to always fail with ENOSYS. Some functions are actually named
10205 something starting with __ and the normal name is an alias. */
10206 #if defined __stub_$ac_func || defined __stub___$ac_func
10213 return $ac_func ();
10218 rm -f conftest.
$ac_objext conftest
$ac_exeext
10219 if { (ac_try
="$ac_link"
10220 case "(($ac_try" in
10221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10225 (eval "$ac_link") 2>conftest.er1
10227 grep -v '^ *+' conftest.er1 >conftest.err
10229 cat conftest.err >&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); } && {
10232 test -z "$ac_c_werror_flag" ||
10233 test ! -s conftest.err
10234 } && test -s conftest$ac_exeext &&
10235 $as_test_x conftest$ac_exeext; then
10236 eval "$as_ac_var=yes"
10238 echo "$as_me: failed program was:" >&5
10239 sed 's/^/| /' conftest.$ac_ext >&5
10241 eval "$as_ac_var=no"
10244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10245 conftest$ac_exeext conftest.$ac_ext
10247 ac_res=`eval echo '${'$as_ac_var'}'`
10248 { echo "$as_me:$LINENO: result: $ac_res" >&5
10249 echo "${ECHO_T}$ac_res" >&6; }
10250 if test `eval echo '${'$as_ac_var'}'` = yes; then
10251 cat >>confdefs.h <<_ACEOF
10252 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10258 { echo "$as_me:$LINENO: checking for working mmap" >&5
10259 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10260 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 if test "$cross_compiling" = yes; then
10264 ac_cv_func_mmap_fixed_mapped=no
10266 cat >conftest.$ac_ext <<_ACEOF
10269 cat confdefs.h >>conftest.$ac_ext
10270 cat >>conftest.$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10272 $ac_includes_default
10273 /* malloc might have been renamed as rpl_malloc. */
10276 /* Thanks to Mike Haertel and Jim Avera for this test.
10277 Here is a matrix of mmap possibilities:
10278 mmap private not fixed
10279 mmap private fixed at somewhere currently unmapped
10280 mmap private fixed at somewhere already mapped
10281 mmap shared not fixed
10282 mmap shared fixed at somewhere currently unmapped
10283 mmap shared fixed at somewhere already mapped
10284 For private mappings, we should verify that changes cannot be read()
10285 back from the file, nor mmap's back from the file at a different
10286 address. (There have been systems where private was not correctly
10287 implemented like the infamous i386 svr4.0, and systems where the
10288 VM page cache was not coherent with the file system buffer cache
10289 like early versions of FreeBSD and possibly contemporary NetBSD.)
10290 For shared mappings, we should conversely verify that changes get
10291 propagated back to all the places they're supposed to be.
10293 Grep wants private fixed already mapped.
10294 The main things grep needs to know about mmap are:
10295 * does it exist and is it safe to write into the mmap'd area
10296 * how to use it (BSD variants) */
10299 #include <sys/mman.h>
10301 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10305 /* This mess was copied from the GNU getpagesize.h. */
10306 #ifndef HAVE_GETPAGESIZE
10307 /* Assume that all systems that can run configure have sys/param.h. */
10308 # ifndef HAVE_SYS_PARAM_H
10309 # define HAVE_SYS_PARAM_H 1
10312 # ifdef _SC_PAGESIZE
10313 # define getpagesize() sysconf(_SC_PAGESIZE)
10314 # else /* no _SC_PAGESIZE */
10315 # ifdef HAVE_SYS_PARAM_H
10316 # include <sys/param.h>
10317 # ifdef EXEC_PAGESIZE
10318 # define getpagesize() EXEC_PAGESIZE
10319 # else /* no EXEC_PAGESIZE */
10321 # define getpagesize() NBPG * CLSIZE
10324 # endif /* no CLSIZE */
10325 # else /* no NBPG */
10327 # define getpagesize() NBPC
10328 # else /* no NBPC */
10330 # define getpagesize() PAGESIZE
10331 # endif /* PAGESIZE */
10332 # endif /* no NBPC */
10333 # endif /* no NBPG */
10334 # endif /* no EXEC_PAGESIZE */
10335 # else /* no HAVE_SYS_PARAM_H */
10336 # define getpagesize() 8192 /* punt totally */
10337 # endif /* no HAVE_SYS_PARAM_H */
10338 # endif /* no _SC_PAGESIZE */
10340 #endif /* no HAVE_GETPAGESIZE */
10345 char *data, *data2, *data3;
10349 pagesize = getpagesize ();
10351 /* First, make a file with some known garbage in it. */
10352 data = (char *) malloc (pagesize);
10355 for (i = 0; i < pagesize; ++i)
10356 *(data + i) = rand ();
10358 fd = creat ("conftest.mmap", 0600);
10361 if (write (fd, data, pagesize) != pagesize)
10365 /* Next, try to mmap the file at a fixed address which already has
10366 something else allocated at it. If we can, also make sure that
10367 we see the same garbage. */
10368 fd = open ("conftest.mmap", O_RDWR);
10371 data2 = (char *) malloc (2 * pagesize);
10374 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10375 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10376 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10378 for (i = 0; i < pagesize; ++i)
10379 if (*(data + i) != *(data2 + i))
10382 /* Finally, make sure that changes to the mapped area do not
10383 percolate back to the file as seen by read(). (This is a bug on
10384 some variants of i386 svr4.0.) */
10385 for (i = 0; i < pagesize; ++i)
10386 *(data2 + i) = *(data2 + i) + 1;
10387 data3 = (char *) malloc (pagesize);
10390 if (read (fd, data3, pagesize) != pagesize)
10392 for (i = 0; i < pagesize; ++i)
10393 if (*(data + i) != *(data3 + i))
10399 rm -f conftest$ac_exeext
10400 if { (ac_try="$ac_link"
10401 case "(($ac_try" in
10402 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10403 *) ac_try_echo
=$ac_try;;
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 (eval "$ac_link") 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10410 { (case "(($ac_try" in
10411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_try") 2>&5
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); }; }; then
10419 ac_cv_func_mmap_fixed_mapped=yes
10421 echo "$as_me: program exited with status $ac_status" >&5
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10425 ( exit $ac_status )
10426 ac_cv_func_mmap_fixed_mapped=no
10428 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10433 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10434 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10435 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10437 cat >>confdefs.h <<\_ACEOF
10438 #define HAVE_MMAP 1
10442 rm -f conftest.mmap
10444 if test $use_mmap_for_buffers = yes; then
10448 LIBS="$libsrc_libs $LIBS"
10451 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10452 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10453 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10456 ac_check_lib_save_LIBS=$LIBS
10457 LIBS="-ldnet $LIBS"
10458 cat >conftest.$ac_ext <<_ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10465 /* Override any GCC internal prototype to avoid an error.
10466 Use char because int might match the return type of a GCC
10467 builtin and then its argument prototype would still apply. */
10475 return dnet_ntoa ();
10480 rm -f conftest.$ac_objext conftest$ac_exeext
10481 if { (ac_try="$ac_link"
10482 case "(($ac_try" in
10483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10484 *) ac_try_echo
=$ac_try;;
10486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10487 (eval "$ac_link") 2>conftest.er1
10489 grep -v '^ *+' conftest.er1
>conftest.err
10491 cat conftest.err
>&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } && {
10494 test -z "$ac_c_werror_flag" ||
10495 test ! -s conftest.err
10496 } && test -s conftest
$ac_exeext &&
10497 $as_test_x conftest
$ac_exeext; then
10498 ac_cv_lib_dnet_dnet_ntoa
=yes
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.
$ac_ext >&5
10503 ac_cv_lib_dnet_dnet_ntoa
=no
10506 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10507 conftest
$ac_exeext conftest.
$ac_ext
10508 LIBS
=$ac_check_lib_save_LIBS
10510 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10511 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10512 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10513 cat >>confdefs.h
<<_ACEOF
10514 #define HAVE_LIBDNET 1
10517 LIBS
="-ldnet $LIBS"
10522 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10523 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10524 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 ac_check_lib_save_LIBS
=$LIBS
10528 LIBS
="-lXbsd $LIBS"
10529 cat >conftest.
$ac_ext <<_ACEOF
10532 cat confdefs.h
>>conftest.
$ac_ext
10533 cat >>conftest.
$ac_ext <<_ACEOF
10534 /* end confdefs.h. */
10545 rm -f conftest.
$ac_objext conftest
$ac_exeext
10546 if { (ac_try
="$ac_link"
10547 case "(($ac_try" in
10548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_link") 2>conftest.er1
10554 grep -v '^ *+' conftest.er1 >conftest.err
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && {
10559 test -z "$ac_c_werror_flag" ||
10560 test ! -s conftest.err
10561 } && test -s conftest$ac_exeext &&
10562 $as_test_x conftest$ac_exeext; then
10563 ac_cv_lib_Xbsd_main=yes
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10568 ac_cv_lib_Xbsd_main=no
10571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10572 conftest$ac_exeext conftest.$ac_ext
10573 LIBS=$ac_check_lib_save_LIBS
10575 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10576 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10577 if test $ac_cv_lib_Xbsd_main = yes; then
10578 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10583 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10584 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10585 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10588 ac_check_lib_save_LIBS=$LIBS
10589 LIBS="-lpthreads $LIBS"
10590 cat >conftest.$ac_ext <<_ACEOF
10593 cat confdefs.h >>conftest.$ac_ext
10594 cat >>conftest.$ac_ext <<_ACEOF
10595 /* end confdefs.h. */
10597 /* Override any GCC internal prototype to avoid an error.
10598 Use char because int might match the return type of a GCC
10599 builtin and then its argument prototype would still apply. */
10607 return cma_open ();
10612 rm -f conftest.$ac_objext conftest$ac_exeext
10613 if { (ac_try="$ac_link"
10614 case "(($ac_try" in
10615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10616 *) ac_try_echo
=$ac_try;;
10618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10619 (eval "$ac_link") 2>conftest.er1
10621 grep -v '^ *+' conftest.er1
>conftest.err
10623 cat conftest.err
>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } && {
10626 test -z "$ac_c_werror_flag" ||
10627 test ! -s conftest.err
10628 } && test -s conftest
$ac_exeext &&
10629 $as_test_x conftest
$ac_exeext; then
10630 ac_cv_lib_pthreads_cma_open
=yes
10632 echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.
$ac_ext >&5
10635 ac_cv_lib_pthreads_cma_open
=no
10638 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10639 conftest
$ac_exeext conftest.
$ac_ext
10640 LIBS
=$ac_check_lib_save_LIBS
10642 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10643 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10644 if test $ac_cv_lib_pthreads_cma_open = yes; then
10645 cat >>confdefs.h
<<_ACEOF
10646 #define HAVE_LIBPTHREADS 1
10649 LIBS
="-lpthreads $LIBS"
10654 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10655 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10656 if test -d /usr
/X386
/include
; then
10658 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10662 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10663 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10668 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10669 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10670 if test "${gdb_cv_bigtoc+set}" = set; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
10675 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10676 *) gdb_cv_bigtoc
=-bbigtoc ;;
10679 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10680 cat >conftest.
$ac_ext <<_ACEOF
10683 cat confdefs.h
>>conftest.
$ac_ext
10684 cat >>conftest.
$ac_ext <<_ACEOF
10685 /* end confdefs.h. */
10695 rm -f conftest.
$ac_objext conftest
$ac_exeext
10696 if { (ac_try
="$ac_link"
10697 case "(($ac_try" in
10698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10702 (eval "$ac_link") 2>conftest.er1
10704 grep -v '^ *+' conftest.er1 >conftest.err
10706 cat conftest.err >&5
10707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708 (exit $ac_status); } && {
10709 test -z "$ac_c_werror_flag" ||
10710 test ! -s conftest.err
10711 } && test -s conftest$ac_exeext &&
10712 $as_test_x conftest$ac_exeext; then
10715 echo "$as_me: failed program was:" >&5
10716 sed 's/^/| /' conftest.$ac_ext >&5
10721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10722 conftest$ac_exeext conftest.$ac_ext
10725 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10726 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10730 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10731 # used for the tests that follow. We set them back to REAL_CFLAGS and
10732 # REAL_CPPFLAGS later on.
10734 REAL_CPPFLAGS="$CPPFLAGS"
10736 if test "${HAVE_X11}" = "yes"; then
10737 DEFS="$C_SWITCH_X_SITE $DEFS"
10738 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10740 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10741 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10743 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10744 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10745 # but it's more convenient here to set LD_RUN_PATH
10746 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10747 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10748 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10752 if test "${opsys}" = "gnu-linux"; then
10753 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10754 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10755 cat >conftest.$ac_ext <<_ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10765 XOpenDisplay ("foo");
10770 rm -f conftest.$ac_objext conftest$ac_exeext
10771 if { (ac_try="$ac_link"
10772 case "(($ac_try" in
10773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10774 *) ac_try_echo
=$ac_try;;
10776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10777 (eval "$ac_link") 2>conftest.er1
10779 grep -v '^ *+' conftest.er1
>conftest.err
10781 cat conftest.err
>&5
10782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest
$ac_exeext &&
10787 $as_test_x conftest
$ac_exeext; then
10788 xlinux_first_failure
=no
10790 echo "$as_me: failed program was:" >&5
10791 sed 's/^/| /' conftest.
$ac_ext >&5
10793 xlinux_first_failure
=yes
10796 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10797 conftest
$ac_exeext conftest.
$ac_ext
10798 if test "${xlinux_first_failure}" = "yes"; then
10799 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10800 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10801 OLD_CPPFLAGS
="$CPPFLAGS"
10803 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10804 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10805 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10806 LIBS
="$LIBS -b i486-linuxaout"
10807 cat >conftest.
$ac_ext <<_ACEOF
10810 cat confdefs.h
>>conftest.
$ac_ext
10811 cat >>conftest.
$ac_ext <<_ACEOF
10812 /* end confdefs.h. */
10817 XOpenDisplay ("foo");
10822 rm -f conftest.
$ac_objext conftest
$ac_exeext
10823 if { (ac_try
="$ac_link"
10824 case "(($ac_try" in
10825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10826 *) ac_try_echo=$ac_try;;
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_link") 2>conftest.er1
10831 grep -v '^ *+' conftest.er1 >conftest.err
10833 cat conftest.err >&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } && {
10836 test -z "$ac_c_werror_flag" ||
10837 test ! -s conftest.err
10838 } && test -s conftest$ac_exeext &&
10839 $as_test_x conftest$ac_exeext; then
10840 xlinux_second_failure=no
10842 echo "$as_me: failed program was:" >&5
10843 sed 's/^/| /' conftest.$ac_ext >&5
10845 xlinux_second_failure=yes
10848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10849 conftest$ac_exeext conftest.$ac_ext
10850 if test "${xlinux_second_failure}" = "yes"; then
10851 # If we get the same failure with -b, there is no use adding -b.
10852 # So take it out. This plays safe.
10853 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10854 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10855 CPPFLAGS="$OLD_CPPFLAGS"
10857 { echo "$as_me:$LINENO: result: no" >&5
10858 echo "${ECHO_T}no" >&6; }
10860 { echo "$as_me:$LINENO: result: yes" >&5
10861 echo "${ECHO_T}yes" >&6; }
10864 { echo "$as_me:$LINENO: result: no" >&5
10865 echo "${ECHO_T}no" >&6; }
10869 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10870 # header files included from there.
10871 { echo "$as_me:$LINENO: checking for Xkb" >&5
10872 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10873 cat >conftest.$ac_ext <<_ACEOF
10876 cat confdefs.h >>conftest.$ac_ext
10877 cat >>conftest.$ac_ext <<_ACEOF
10878 /* end confdefs.h. */
10879 #include <X11/Xlib.h>
10880 #include <X11/XKBlib.h>
10884 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10889 rm -f conftest.$ac_objext conftest$ac_exeext
10890 if { (ac_try="$ac_link"
10891 case "(($ac_try" in
10892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10893 *) ac_try_echo
=$ac_try;;
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_link") 2>conftest.er1
10898 grep -v '^ *+' conftest.er1
>conftest.err
10900 cat conftest.err
>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); } && {
10903 test -z "$ac_c_werror_flag" ||
10904 test ! -s conftest.err
10905 } && test -s conftest
$ac_exeext &&
10906 $as_test_x conftest
$ac_exeext; then
10909 echo "$as_me: failed program was:" >&5
10910 sed 's/^/| /' conftest.
$ac_ext >&5
10915 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10916 conftest
$ac_exeext conftest.
$ac_ext
10917 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10918 echo "${ECHO_T}$emacs_xkb" >&6; }
10919 if test $emacs_xkb = yes; then
10921 cat >>confdefs.h
<<\_ACEOF
10922 #define HAVE_XKBGETKEYBOARD 1
10931 for ac_func
in XrmSetDatabase XScreenResourceString \
10932 XScreenNumberOfScreen XSetWMProtocols
10934 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10935 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10937 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 cat >conftest.
$ac_ext <<_ACEOF
10943 cat confdefs.h
>>conftest.
$ac_ext
10944 cat >>conftest.
$ac_ext <<_ACEOF
10945 /* end confdefs.h. */
10946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10948 #define $ac_func innocuous_$ac_func
10950 /* System header to define __stub macros and hopefully few prototypes,
10951 which can conflict with char $ac_func (); below.
10952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10953 <limits.h> exists even on freestanding compilers. */
10956 # include <limits.h>
10958 # include <assert.h>
10963 /* Override any GCC internal prototype to avoid an error.
10964 Use char because int might match the return type of a GCC
10965 builtin and then its argument prototype would still apply. */
10970 /* The GNU C library defines this for functions which it implements
10971 to always fail with ENOSYS. Some functions are actually named
10972 something starting with __ and the normal name is an alias. */
10973 #if defined __stub_$ac_func || defined __stub___$ac_func
10980 return $ac_func ();
10985 rm -f conftest.
$ac_objext conftest
$ac_exeext
10986 if { (ac_try
="$ac_link"
10987 case "(($ac_try" in
10988 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10989 *) ac_try_echo=$ac_try;;
10991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10992 (eval "$ac_link") 2>conftest.er1
10994 grep -v '^ *+' conftest.er1 >conftest.err
10996 cat conftest.err >&5
10997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10998 (exit $ac_status); } && {
10999 test -z "$ac_c_werror_flag" ||
11000 test ! -s conftest.err
11001 } && test -s conftest$ac_exeext &&
11002 $as_test_x conftest$ac_exeext; then
11003 eval "$as_ac_var=yes"
11005 echo "$as_me: failed program was:" >&5
11006 sed 's/^/| /' conftest.$ac_ext >&5
11008 eval "$as_ac_var=no"
11011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11012 conftest$ac_exeext conftest.$ac_ext
11014 ac_res=`eval echo '${'$as_ac_var'}'`
11015 { echo "$as_me:$LINENO: result: $ac_res" >&5
11016 echo "${ECHO_T}$ac_res" >&6; }
11017 if test `eval echo '${'$as_ac_var'}'` = yes; then
11018 cat >>confdefs.h <<_ACEOF
11019 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11027 if test "${window_system}" = "x11"; then
11028 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11029 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11030 if test "${emacs_cv_x11_version_6+set}" = set; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11033 cat >conftest.$ac_ext <<_ACEOF
11036 cat confdefs.h >>conftest.$ac_ext
11037 cat >>conftest.$ac_ext <<_ACEOF
11038 /* end confdefs.h. */
11039 #include <X11/Xlib.h>
11043 #if XlibSpecificationRelease < 6
11051 rm -f conftest.$ac_objext conftest$ac_exeext
11052 if { (ac_try="$ac_link"
11053 case "(($ac_try" in
11054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11055 *) ac_try_echo
=$ac_try;;
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_link") 2>conftest.er1
11060 grep -v '^ *+' conftest.er1
>conftest.err
11062 cat conftest.err
>&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && {
11065 test -z "$ac_c_werror_flag" ||
11066 test ! -s conftest.err
11067 } && test -s conftest
$ac_exeext &&
11068 $as_test_x conftest
$ac_exeext; then
11069 emacs_cv_x11_version_6
=yes
11071 echo "$as_me: failed program was:" >&5
11072 sed 's/^/| /' conftest.
$ac_ext >&5
11074 emacs_cv_x11_version_6
=no
11077 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11078 conftest
$ac_exeext conftest.
$ac_ext
11081 if test $emacs_cv_x11_version_6 = yes; then
11082 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11083 echo "${ECHO_T}6 or newer" >&6; }
11085 cat >>confdefs.h
<<\_ACEOF
11086 #define HAVE_X11R6 1
11090 { echo "$as_me:$LINENO: result: before 6" >&5
11091 echo "${ECHO_T}before 6" >&6; }
11096 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11098 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
11099 if test "${with_rsvg}" != "no"; then
11100 if test "X${with_pkg_config_prog}" != X
; then
11101 PKG_CONFIG
="${with_pkg_config_prog}"
11104 RSVG_REQUIRED
=2.0.0
11105 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
11110 if test -z "$PKG_CONFIG"; then
11111 # Extract the first word of "pkg-config", so it can be a program name with args.
11112 set dummy pkg-config
; ac_word
=$2
11113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11115 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11116 echo $ECHO_N "(cached) $ECHO_C" >&6
11118 case $PKG_CONFIG in
11120 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11123 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11124 for as_dir
in $PATH
11127 test -z "$as_dir" && as_dir
=.
11128 for ac_exec_ext
in '' $ac_executable_extensions; do
11129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11130 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11138 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11142 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11143 if test -n "$PKG_CONFIG"; then
11144 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11145 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11147 { echo "$as_me:$LINENO: result: no" >&5
11148 echo "${ECHO_T}no" >&6; }
11154 if test "$PKG_CONFIG" = "no" ; then
11157 PKG_CONFIG_MIN_VERSION
=0.9.0
11158 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11159 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11160 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11162 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11163 { echo "$as_me:$LINENO: result: yes" >&5
11164 echo "${ECHO_T}yes" >&6; }
11167 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11168 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11169 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11170 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11171 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11173 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11174 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11175 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11176 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11177 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11179 { echo "$as_me:$LINENO: result: no" >&5
11180 echo "${ECHO_T}no" >&6; }
11183 ## If we have a custom action on failure, don't print errors, but
11184 ## do set a variable so people can do so.
11185 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11192 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11193 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11197 if test $succeeded = yes; then
11206 if test ".${RSVG_CFLAGS}" != "."; then
11209 cat >>confdefs.h
<<\_ACEOF
11210 #define HAVE_RSVG 1
11213 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11214 LIBS
="$RSVG_LIBS $LIBS"
11221 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11224 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk" || \
11225 test "$USE_X_TOOLKIT" = "maybe"; then
11226 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11227 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11228 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11229 { (exit 1); exit 1; }; };
11233 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11235 if test "X${with_pkg_config_prog}" != X
; then
11236 PKG_CONFIG
="${with_pkg_config_prog}"
11241 if test -z "$PKG_CONFIG"; then
11242 # Extract the first word of "pkg-config", so it can be a program name with args.
11243 set dummy pkg-config
; ac_word
=$2
11244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11246 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11247 echo $ECHO_N "(cached) $ECHO_C" >&6
11249 case $PKG_CONFIG in
11251 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11255 for as_dir
in $PATH
11258 test -z "$as_dir" && as_dir
=.
11259 for ac_exec_ext
in '' $ac_executable_extensions; do
11260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11261 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11269 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11273 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11274 if test -n "$PKG_CONFIG"; then
11275 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11276 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11278 { echo "$as_me:$LINENO: result: no" >&5
11279 echo "${ECHO_T}no" >&6; }
11285 if test "$PKG_CONFIG" = "no" ; then
11288 PKG_CONFIG_MIN_VERSION
=0.9.0
11289 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11290 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11291 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11293 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11294 { echo "$as_me:$LINENO: result: yes" >&5
11295 echo "${ECHO_T}yes" >&6; }
11298 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11299 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11300 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11301 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11302 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11304 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11305 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11306 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11307 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11308 echo "${ECHO_T}$GTK_LIBS" >&6; }
11310 { echo "$as_me:$LINENO: result: no" >&5
11311 echo "${ECHO_T}no" >&6; }
11314 ## If we have a custom action on failure, don't print errors, but
11315 ## do set a variable so people can do so.
11316 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11323 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11324 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11328 if test $succeeded = yes; then
11334 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11335 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11336 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11337 { (exit 1); exit 1; }; }
11342 if test x
"$pkg_check_gtk" = xyes
; then
11346 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11347 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11348 LIBS
="$GTK_LIBS $LIBS"
11351 for ac_func
in gtk_main
11353 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11354 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11355 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11356 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11359 cat >conftest.
$ac_ext <<_ACEOF
11362 cat confdefs.h
>>conftest.
$ac_ext
11363 cat >>conftest.
$ac_ext <<_ACEOF
11364 /* end confdefs.h. */
11365 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11366 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11367 #define $ac_func innocuous_$ac_func
11369 /* System header to define __stub macros and hopefully few prototypes,
11370 which can conflict with char $ac_func (); below.
11371 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11372 <limits.h> exists even on freestanding compilers. */
11375 # include <limits.h>
11377 # include <assert.h>
11382 /* Override any GCC internal prototype to avoid an error.
11383 Use char because int might match the return type of a GCC
11384 builtin and then its argument prototype would still apply. */
11389 /* The GNU C library defines this for functions which it implements
11390 to always fail with ENOSYS. Some functions are actually named
11391 something starting with __ and the normal name is an alias. */
11392 #if defined __stub_$ac_func || defined __stub___$ac_func
11399 return $ac_func ();
11404 rm -f conftest.
$ac_objext conftest
$ac_exeext
11405 if { (ac_try
="$ac_link"
11406 case "(($ac_try" in
11407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11408 *) ac_try_echo=$ac_try;;
11410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11411 (eval "$ac_link") 2>conftest.er1
11413 grep -v '^ *+' conftest.er1 >conftest.err
11415 cat conftest.err >&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } && {
11418 test -z "$ac_c_werror_flag" ||
11419 test ! -s conftest.err
11420 } && test -s conftest$ac_exeext &&
11421 $as_test_x conftest$ac_exeext; then
11422 eval "$as_ac_var=yes"
11424 echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11427 eval "$as_ac_var=no"
11430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11431 conftest$ac_exeext conftest.$ac_ext
11433 ac_res=`eval echo '${'$as_ac_var'}'`
11434 { echo "$as_me:$LINENO: result: $ac_res" >&5
11435 echo "${ECHO_T}$ac_res" >&6; }
11436 if test `eval echo '${'$as_ac_var'}'` = yes; then
11437 cat >>confdefs.h <<_ACEOF
11438 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11444 if test "${GTK_COMPILES}" != "yes"; then
11445 if test "$USE_X_TOOLKIT" != "maybe"; then
11446 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11447 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11448 { (exit 1); exit 1; }; };
11453 cat >>confdefs.h <<\_ACEOF
11463 if test "${HAVE_GTK}" = "yes"; then
11465 if test "$with_toolkit_scroll_bars" != no; then
11466 with_toolkit_scroll_bars=yes
11469 HAVE_GTK_MULTIDISPLAY=no
11471 for ac_func in gdk_display_open
11473 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11474 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11475 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11476 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11477 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 cat >conftest.$ac_ext <<_ACEOF
11482 cat confdefs.h >>conftest.$ac_ext
11483 cat >>conftest.$ac_ext <<_ACEOF
11484 /* end confdefs.h. */
11485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11487 #define $ac_func innocuous_$ac_func
11489 /* System header to define __stub macros and hopefully few prototypes,
11490 which can conflict with char $ac_func (); below.
11491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11492 <limits.h> exists even on freestanding compilers. */
11495 # include <limits.h>
11497 # include <assert.h>
11502 /* Override any GCC internal prototype to avoid an error.
11503 Use char because int might match the return type of a GCC
11504 builtin and then its argument prototype would still apply. */
11509 /* The GNU C library defines this for functions which it implements
11510 to always fail with ENOSYS. Some functions are actually named
11511 something starting with __ and the normal name is an alias. */
11512 #if defined __stub_$ac_func || defined __stub___$ac_func
11519 return $ac_func ();
11524 rm -f conftest.$ac_objext conftest$ac_exeext
11525 if { (ac_try="$ac_link"
11526 case "(($ac_try" in
11527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11528 *) ac_try_echo
=$ac_try;;
11530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11531 (eval "$ac_link") 2>conftest.er1
11533 grep -v '^ *+' conftest.er1
>conftest.err
11535 cat conftest.err
>&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } && {
11538 test -z "$ac_c_werror_flag" ||
11539 test ! -s conftest.err
11540 } && test -s conftest
$ac_exeext &&
11541 $as_test_x conftest
$ac_exeext; then
11542 eval "$as_ac_var=yes"
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.
$ac_ext >&5
11547 eval "$as_ac_var=no"
11550 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11551 conftest
$ac_exeext conftest.
$ac_ext
11553 ac_res
=`eval echo '${'$as_ac_var'}'`
11554 { echo "$as_me:$LINENO: result: $ac_res" >&5
11555 echo "${ECHO_T}$ac_res" >&6; }
11556 if test `eval echo '${'$as_ac_var'}'` = yes; then
11557 cat >>confdefs.h
<<_ACEOF
11558 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11560 HAVE_GTK_MULTIDISPLAY
=yes
11564 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11566 cat >>confdefs.h
<<\_ACEOF
11567 #define HAVE_GTK_MULTIDISPLAY 1
11572 HAVE_GTK_FILE_SELECTION
=no
11574 for ac_func
in gtk_file_selection_new
11576 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11577 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11579 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11580 echo $ECHO_N "(cached) $ECHO_C" >&6
11582 cat >conftest.
$ac_ext <<_ACEOF
11585 cat confdefs.h
>>conftest.
$ac_ext
11586 cat >>conftest.
$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11590 #define $ac_func innocuous_$ac_func
11592 /* System header to define __stub macros and hopefully few prototypes,
11593 which can conflict with char $ac_func (); below.
11594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11595 <limits.h> exists even on freestanding compilers. */
11598 # include <limits.h>
11600 # include <assert.h>
11605 /* Override any GCC internal prototype to avoid an error.
11606 Use char because int might match the return type of a GCC
11607 builtin and then its argument prototype would still apply. */
11612 /* The GNU C library defines this for functions which it implements
11613 to always fail with ENOSYS. Some functions are actually named
11614 something starting with __ and the normal name is an alias. */
11615 #if defined __stub_$ac_func || defined __stub___$ac_func
11622 return $ac_func ();
11627 rm -f conftest.
$ac_objext conftest
$ac_exeext
11628 if { (ac_try
="$ac_link"
11629 case "(($ac_try" in
11630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11631 *) ac_try_echo=$ac_try;;
11633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11634 (eval "$ac_link") 2>conftest.er1
11636 grep -v '^ *+' conftest.er1 >conftest.err
11638 cat conftest.err >&5
11639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11640 (exit $ac_status); } && {
11641 test -z "$ac_c_werror_flag" ||
11642 test ! -s conftest.err
11643 } && test -s conftest$ac_exeext &&
11644 $as_test_x conftest$ac_exeext; then
11645 eval "$as_ac_var=yes"
11647 echo "$as_me: failed program was:" >&5
11648 sed 's/^/| /' conftest.$ac_ext >&5
11650 eval "$as_ac_var=no"
11653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11654 conftest$ac_exeext conftest.$ac_ext
11656 ac_res=`eval echo '${'$as_ac_var'}'`
11657 { echo "$as_me:$LINENO: result: $ac_res" >&5
11658 echo "${ECHO_T}$ac_res" >&6; }
11659 if test `eval echo '${'$as_ac_var'}'` = yes; then
11660 cat >>confdefs.h <<_ACEOF
11661 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11663 HAVE_GTK_FILE_SELECTION=yes
11668 HAVE_GTK_FILE_CHOOSER=no
11670 for ac_func in gtk_file_chooser_dialog_new
11672 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11673 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11676 echo $ECHO_N "(cached) $ECHO_C" >&6
11678 cat >conftest.$ac_ext <<_ACEOF
11681 cat confdefs.h >>conftest.$ac_ext
11682 cat >>conftest.$ac_ext <<_ACEOF
11683 /* end confdefs.h. */
11684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11686 #define $ac_func innocuous_$ac_func
11688 /* System header to define __stub macros and hopefully few prototypes,
11689 which can conflict with char $ac_func (); below.
11690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11691 <limits.h> exists even on freestanding compilers. */
11694 # include <limits.h>
11696 # include <assert.h>
11701 /* Override any GCC internal prototype to avoid an error.
11702 Use char because int might match the return type of a GCC
11703 builtin and then its argument prototype would still apply. */
11708 /* The GNU C library defines this for functions which it implements
11709 to always fail with ENOSYS. Some functions are actually named
11710 something starting with __ and the normal name is an alias. */
11711 #if defined __stub_$ac_func || defined __stub___$ac_func
11718 return $ac_func ();
11723 rm -f conftest.$ac_objext conftest$ac_exeext
11724 if { (ac_try="$ac_link"
11725 case "(($ac_try" in
11726 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11727 *) ac_try_echo
=$ac_try;;
11729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11730 (eval "$ac_link") 2>conftest.er1
11732 grep -v '^ *+' conftest.er1
>conftest.err
11734 cat conftest.err
>&5
11735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11736 (exit $ac_status); } && {
11737 test -z "$ac_c_werror_flag" ||
11738 test ! -s conftest.err
11739 } && test -s conftest
$ac_exeext &&
11740 $as_test_x conftest
$ac_exeext; then
11741 eval "$as_ac_var=yes"
11743 echo "$as_me: failed program was:" >&5
11744 sed 's/^/| /' conftest.
$ac_ext >&5
11746 eval "$as_ac_var=no"
11749 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11750 conftest
$ac_exeext conftest.
$ac_ext
11752 ac_res
=`eval echo '${'$as_ac_var'}'`
11753 { echo "$as_me:$LINENO: result: $ac_res" >&5
11754 echo "${ECHO_T}$ac_res" >&6; }
11755 if test `eval echo '${'$as_ac_var'}'` = yes; then
11756 cat >>confdefs.h
<<_ACEOF
11757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11759 HAVE_GTK_FILE_CHOOSER
=yes
11764 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11765 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11767 cat >>confdefs.h
<<\_ACEOF
11768 #define HAVE_GTK_FILE_BOTH 1
11773 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11774 HAVE_GTK_AND_PTHREAD
=no
11776 for ac_header
in pthread.h
11778 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11779 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11782 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 ac_res
=`eval echo '${'$as_ac_Header'}'`
11786 { echo "$as_me:$LINENO: result: $ac_res" >&5
11787 echo "${ECHO_T}$ac_res" >&6; }
11789 # Is the header compilable?
11790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11792 cat >conftest.
$ac_ext <<_ACEOF
11795 cat confdefs.h
>>conftest.
$ac_ext
11796 cat >>conftest.
$ac_ext <<_ACEOF
11797 /* end confdefs.h. */
11798 $ac_includes_default
11799 #include <$ac_header>
11801 rm -f conftest.
$ac_objext
11802 if { (ac_try
="$ac_compile"
11803 case "(($ac_try" in
11804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11808 (eval "$ac_compile") 2>conftest.er1
11810 grep -v '^ *+' conftest.er1 >conftest.err
11812 cat conftest.err >&5
11813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814 (exit $ac_status); } && {
11815 test -z "$ac_c_werror_flag" ||
11816 test ! -s conftest.err
11817 } && test -s conftest.$ac_objext; then
11818 ac_header_compiler=yes
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11823 ac_header_compiler=no
11826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11828 echo "${ECHO_T}$ac_header_compiler" >&6; }
11830 # Is the header present?
11831 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11833 cat >conftest.$ac_ext <<_ACEOF
11836 cat confdefs.h >>conftest.$ac_ext
11837 cat >>conftest.$ac_ext <<_ACEOF
11838 /* end confdefs.h. */
11839 #include <$ac_header>
11841 if { (ac_try="$ac_cpp conftest.$ac_ext"
11842 case "(($ac_try" in
11843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11844 *) ac_try_echo
=$ac_try;;
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11849 grep -v '^ *+' conftest.er1
>conftest.err
11851 cat conftest.err
>&5
11852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } >/dev
/null
&& {
11854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11855 test ! -s conftest.err
11857 ac_header_preproc
=yes
11859 echo "$as_me: failed program was:" >&5
11860 sed 's/^/| /' conftest.
$ac_ext >&5
11862 ac_header_preproc
=no
11865 rm -f conftest.err conftest.
$ac_ext
11866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11867 echo "${ECHO_T}$ac_header_preproc" >&6; }
11869 # So? What about this header?
11870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11876 ac_header_preproc
=yes
11879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11896 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 eval "$as_ac_Header=\$ac_header_preproc"
11901 ac_res
=`eval echo '${'$as_ac_Header'}'`
11902 { echo "$as_me:$LINENO: result: $ac_res" >&5
11903 echo "${ECHO_T}$ac_res" >&6; }
11906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11907 cat >>confdefs.h
<<_ACEOF
11908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11915 if test "$ac_cv_header_pthread_h"; then
11916 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11917 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11918 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 ac_check_lib_save_LIBS
=$LIBS
11922 LIBS
="-lpthread $LIBS"
11923 cat >conftest.
$ac_ext <<_ACEOF
11926 cat confdefs.h
>>conftest.
$ac_ext
11927 cat >>conftest.
$ac_ext <<_ACEOF
11928 /* end confdefs.h. */
11930 /* Override any GCC internal prototype to avoid an error.
11931 Use char because int might match the return type of a GCC
11932 builtin and then its argument prototype would still apply. */
11936 char pthread_self ();
11940 return pthread_self ();
11945 rm -f conftest.
$ac_objext conftest
$ac_exeext
11946 if { (ac_try
="$ac_link"
11947 case "(($ac_try" in
11948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11949 *) ac_try_echo=$ac_try;;
11951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11952 (eval "$ac_link") 2>conftest.er1
11954 grep -v '^ *+' conftest.er1 >conftest.err
11956 cat conftest.err >&5
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); } && {
11959 test -z "$ac_c_werror_flag" ||
11960 test ! -s conftest.err
11961 } && test -s conftest$ac_exeext &&
11962 $as_test_x conftest$ac_exeext; then
11963 ac_cv_lib_pthread_pthread_self=yes
11965 echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11968 ac_cv_lib_pthread_pthread_self=no
11971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11972 conftest$ac_exeext conftest.$ac_ext
11973 LIBS=$ac_check_lib_save_LIBS
11975 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11976 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11977 if test $ac_cv_lib_pthread_pthread_self = yes; then
11978 HAVE_GTK_AND_PTHREAD=yes
11982 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11983 case "${canonical}" in
11985 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11988 cat >>confdefs.h <<\_ACEOF
11989 #define HAVE_GTK_AND_PTHREAD 1
11996 ### Link with -lXft if available to work around a bug.
11998 if test "${HAVE_GTK}" = "yes"; then
11999 if test "X${with_pkg_config_prog}" != X; then
12000 PKG_CONFIG="${with_pkg_config_prog}"
12006 if test -z "$PKG_CONFIG"; then
12007 # Extract the first word of "pkg-config", so it can be a program name with args.
12008 set dummy pkg-config; ac_word=$2
12009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12011 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12012 echo $ECHO_N "(cached) $ECHO_C" >&6
12014 case $PKG_CONFIG in
12016 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12020 for as_dir in $PATH
12023 test -z "$as_dir" && as_dir=.
12024 for ac_exec_ext in '' $ac_executable_extensions; do
12025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12026 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12034 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12038 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12039 if test -n "$PKG_CONFIG"; then
12040 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12041 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12043 { echo "$as_me:$LINENO: result: no" >&5
12044 echo "${ECHO_T}no" >&6; }
12050 if test "$PKG_CONFIG" = "no" ; then
12053 PKG_CONFIG_MIN_VERSION=0.9.0
12054 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12055 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12056 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12058 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12059 { echo "$as_me:$LINENO: result: yes" >&5
12060 echo "${ECHO_T}yes" >&6; }
12063 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12064 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12065 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
12066 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12067 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12069 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12070 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12071 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|
sed -e 's,///*,/,g'`
12072 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12073 echo "${ECHO_T}$XFT_LIBS" >&6; }
12075 { echo "$as_me:$LINENO: result: no" >&5
12076 echo "${ECHO_T}no" >&6; }
12079 ## If we have a custom action on failure, don't print errors, but
12080 ## do set a variable so people can do so.
12081 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12088 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12089 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12093 if test $succeeded = yes; then
12099 if test "$HAVE_XFT" != no; then
12100 OLD_CFLAGS="$CPPFLAGS"
12101 OLD_CPPFLAGS="$CFLAGS"
12103 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12104 CFLAGS="$CFLAGS $XFT_CFLAGS"
12105 LIBS="$XFT_LIBS $LIBS"
12106 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12107 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12108 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12109 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12112 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12113 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12115 # Is the header compilable?
12116 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12117 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12118 cat >conftest.$ac_ext <<_ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h. */
12124 $ac_includes_default
12125 #include <X11/Xft/Xft.h>
12127 rm -f conftest.$ac_objext
12128 if { (ac_try="$ac_compile"
12129 case "(($ac_try" in
12130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12131 *) ac_try_echo
=$ac_try;;
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_compile") 2>conftest.er1
12136 grep -v '^ *+' conftest.er1
>conftest.err
12138 cat conftest.err
>&5
12139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140 (exit $ac_status); } && {
12141 test -z "$ac_c_werror_flag" ||
12142 test ! -s conftest.err
12143 } && test -s conftest.
$ac_objext; then
12144 ac_header_compiler
=yes
12146 echo "$as_me: failed program was:" >&5
12147 sed 's/^/| /' conftest.
$ac_ext >&5
12149 ac_header_compiler
=no
12152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12154 echo "${ECHO_T}$ac_header_compiler" >&6; }
12156 # Is the header present?
12157 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12158 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12159 cat >conftest.
$ac_ext <<_ACEOF
12162 cat confdefs.h
>>conftest.
$ac_ext
12163 cat >>conftest.
$ac_ext <<_ACEOF
12164 /* end confdefs.h. */
12165 #include <X11/Xft/Xft.h>
12167 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12168 case "(($ac_try" in
12169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12170 *) ac_try_echo=$ac_try;;
12172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12175 grep -v '^ *+' conftest.er1 >conftest.err
12177 cat conftest.err >&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } >/dev/null && {
12180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12181 test ! -s conftest.err
12183 ac_header_preproc=yes
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 ac_header_preproc=no
12191 rm -f conftest.err conftest.$ac_ext
12192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12193 echo "${ECHO_T}$ac_header_preproc" >&6; }
12195 # So? What about this header?
12196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12198 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12199 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12201 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12202 ac_header_preproc=yes
12205 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12206 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12207 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12208 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12210 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12211 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12212 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12213 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12214 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12215 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12216 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12220 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12221 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12222 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12225 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12227 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12228 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12231 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12232 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12233 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12234 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12235 echo $ECHO_N "(cached) $ECHO_C" >&6
12237 ac_check_lib_save_LIBS=$LIBS
12238 LIBS="-lXft $XFT_LIBS $LIBS"
12239 cat >conftest.$ac_ext <<_ACEOF
12242 cat confdefs.h >>conftest.$ac_ext
12243 cat >>conftest.$ac_ext <<_ACEOF
12244 /* end confdefs.h. */
12246 /* Override any GCC internal prototype to avoid an error.
12247 Use char because int might match the return type of a GCC
12248 builtin and then its argument prototype would still apply. */
12252 char XftFontOpen ();
12256 return XftFontOpen ();
12261 rm -f conftest.$ac_objext conftest$ac_exeext
12262 if { (ac_try="$ac_link"
12263 case "(($ac_try" in
12264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12265 *) ac_try_echo
=$ac_try;;
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_link") 2>conftest.er1
12270 grep -v '^ *+' conftest.er1
>conftest.err
12272 cat conftest.err
>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } && {
12275 test -z "$ac_c_werror_flag" ||
12276 test ! -s conftest.err
12277 } && test -s conftest
$ac_exeext &&
12278 $as_test_x conftest
$ac_exeext; then
12279 ac_cv_lib_Xft_XftFontOpen
=yes
12281 echo "$as_me: failed program was:" >&5
12282 sed 's/^/| /' conftest.
$ac_ext >&5
12284 ac_cv_lib_Xft_XftFontOpen
=no
12287 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12288 conftest
$ac_exeext conftest.
$ac_ext
12289 LIBS
=$ac_check_lib_save_LIBS
12291 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12292 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12293 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12301 if test "${HAVE_XFT}" = "yes"; then
12303 cat >>confdefs.h
<<\_ACEOF
12308 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $XFT_CFLAGS"
12310 CFLAGS
="$OLD_CPPFLAGS"
12311 CFLAGS
="$OLD_CFLAGS"
12318 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12319 if test "$with_xaw3d" != no
; then
12320 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12321 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12322 if test "${emacs_cv_xaw3d+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12325 cat >conftest.
$ac_ext <<_ACEOF
12328 cat confdefs.h
>>conftest.
$ac_ext
12329 cat >>conftest.
$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12332 #include <X11/Intrinsic.h>
12333 #include <X11/Xaw3d/Simple.h>
12342 rm -f conftest.
$ac_objext conftest
$ac_exeext
12343 if { (ac_try
="$ac_link"
12344 case "(($ac_try" in
12345 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349 (eval "$ac_link") 2>conftest.er1
12351 grep -v '^ *+' conftest.er1 >conftest.err
12353 cat conftest.err >&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); } && {
12356 test -z "$ac_c_werror_flag" ||
12357 test ! -s conftest.err
12358 } && test -s conftest$ac_exeext &&
12359 $as_test_x conftest$ac_exeext; then
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12368 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12369 conftest$ac_exeext conftest.$ac_ext
12375 if test $emacs_cv_xaw3d = yes; then
12376 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12377 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12378 USE_X_TOOLKIT=LUCID
12381 cat >>confdefs.h <<\_ACEOF
12382 #define HAVE_XAW3D 1
12386 { echo "$as_me:$LINENO: result: no" >&5
12387 echo "${ECHO_T}no" >&6; }
12388 { echo "$as_me:$LINENO: checking for libXaw" >&5
12389 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12390 if test "${emacs_cv_xaw+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12393 cat >conftest.$ac_ext <<_ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12400 #include <X11/Intrinsic.h>
12401 #include <X11/Xaw/Simple.h>
12410 rm -f conftest.$ac_objext conftest$ac_exeext
12411 if { (ac_try="$ac_link"
12412 case "(($ac_try" in
12413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12414 *) ac_try_echo
=$ac_try;;
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417 (eval "$ac_link") 2>conftest.er1
12419 grep -v '^ *+' conftest.er1
>conftest.err
12421 cat conftest.err
>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } && {
12424 test -z "$ac_c_werror_flag" ||
12425 test ! -s conftest.err
12426 } && test -s conftest
$ac_exeext &&
12427 $as_test_x conftest
$ac_exeext; then
12430 echo "$as_me: failed program was:" >&5
12431 sed 's/^/| /' conftest.
$ac_ext >&5
12436 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12437 conftest
$ac_exeext conftest.
$ac_ext
12440 if test $emacs_cv_xaw = yes; then
12441 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12442 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12443 USE_X_TOOLKIT
=LUCID
12444 elif test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12445 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12446 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12447 { (exit 1); exit 1; }; }
12449 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12450 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12456 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12458 if test "${USE_X_TOOLKIT}" != "none"; then
12459 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12460 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12461 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12462 echo $ECHO_N "(cached) $ECHO_C" >&6
12464 cat >conftest.
$ac_ext <<_ACEOF
12467 cat confdefs.h
>>conftest.
$ac_ext
12468 cat >>conftest.
$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470 #include <X11/Intrinsic.h>
12474 #if XtSpecificationRelease < 6
12482 rm -f conftest.
$ac_objext conftest
$ac_exeext
12483 if { (ac_try
="$ac_link"
12484 case "(($ac_try" in
12485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12486 *) ac_try_echo=$ac_try;;
12488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12489 (eval "$ac_link") 2>conftest.er1
12491 grep -v '^ *+' conftest.er1 >conftest.err
12493 cat conftest.err >&5
12494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12495 (exit $ac_status); } && {
12496 test -z "$ac_c_werror_flag" ||
12497 test ! -s conftest.err
12498 } && test -s conftest$ac_exeext &&
12499 $as_test_x conftest$ac_exeext; then
12500 emacs_cv_x11_toolkit_version_6=yes
12502 echo "$as_me: failed program was:" >&5
12503 sed 's/^/| /' conftest.$ac_ext >&5
12505 emacs_cv_x11_toolkit_version_6=no
12508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12509 conftest$ac_exeext conftest.$ac_ext
12512 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12513 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12514 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12515 echo "${ECHO_T}6 or newer" >&6; }
12517 cat >>confdefs.h <<\_ACEOF
12518 #define HAVE_X11XTR6 1
12522 { echo "$as_me:$LINENO: result: before 6" >&5
12523 echo "${ECHO_T}before 6" >&6; }
12527 if test x$HAVE_X11XTR6 = xyes; then
12528 LIBS="-lXt -lSM -lICE $LIBS"
12533 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12534 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12535 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12536 echo $ECHO_N "(cached) $ECHO_C" >&6
12538 ac_check_lib_save_LIBS=$LIBS
12540 cat >conftest.$ac_ext <<_ACEOF
12543 cat confdefs.h >>conftest.$ac_ext
12544 cat >>conftest.$ac_ext <<_ACEOF
12545 /* end confdefs.h. */
12547 /* Override any GCC internal prototype to avoid an error.
12548 Use char because int might match the return type of a GCC
12549 builtin and then its argument prototype would still apply. */
12553 char XmuConvertStandardSelection ();
12557 return XmuConvertStandardSelection ();
12562 rm -f conftest.$ac_objext conftest$ac_exeext
12563 if { (ac_try="$ac_link"
12564 case "(($ac_try" in
12565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12566 *) ac_try_echo
=$ac_try;;
12568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569 (eval "$ac_link") 2>conftest.er1
12571 grep -v '^ *+' conftest.er1
>conftest.err
12573 cat conftest.err
>&5
12574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12575 (exit $ac_status); } && {
12576 test -z "$ac_c_werror_flag" ||
12577 test ! -s conftest.err
12578 } && test -s conftest
$ac_exeext &&
12579 $as_test_x conftest
$ac_exeext; then
12580 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12582 echo "$as_me: failed program was:" >&5
12583 sed 's/^/| /' conftest.
$ac_ext >&5
12585 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12588 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12589 conftest
$ac_exeext conftest.
$ac_ext
12590 LIBS
=$ac_check_lib_save_LIBS
12592 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12593 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12594 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12595 cat >>confdefs.h
<<_ACEOF
12596 #define HAVE_LIBXMU 1
12603 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12606 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12607 if test "${HAVE_X11}" = "yes"; then
12608 if test "${USE_X_TOOLKIT}" != "none"; then
12610 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12611 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12612 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12615 ac_check_lib_save_LIBS
=$LIBS
12616 LIBS
="-lXext $LIBS"
12617 cat >conftest.
$ac_ext <<_ACEOF
12620 cat confdefs.h
>>conftest.
$ac_ext
12621 cat >>conftest.
$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12624 /* Override any GCC internal prototype to avoid an error.
12625 Use char because int might match the return type of a GCC
12626 builtin and then its argument prototype would still apply. */
12630 char XShapeQueryExtension ();
12634 return XShapeQueryExtension ();
12639 rm -f conftest.
$ac_objext conftest
$ac_exeext
12640 if { (ac_try
="$ac_link"
12641 case "(($ac_try" in
12642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12643 *) ac_try_echo=$ac_try;;
12645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646 (eval "$ac_link") 2>conftest.er1
12648 grep -v '^ *+' conftest.er1 >conftest.err
12650 cat conftest.err >&5
12651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12652 (exit $ac_status); } && {
12653 test -z "$ac_c_werror_flag" ||
12654 test ! -s conftest.err
12655 } && test -s conftest$ac_exeext &&
12656 $as_test_x conftest$ac_exeext; then
12657 ac_cv_lib_Xext_XShapeQueryExtension=yes
12659 echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.$ac_ext >&5
12662 ac_cv_lib_Xext_XShapeQueryExtension=no
12665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12666 conftest$ac_exeext conftest.$ac_ext
12667 LIBS=$ac_check_lib_save_LIBS
12669 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12670 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12671 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12672 cat >>confdefs.h <<_ACEOF
12673 #define HAVE_LIBXEXT 1
12676 LIBS="-lXext $LIBS"
12683 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12684 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12685 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12686 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12689 cat >conftest.$ac_ext <<_ACEOF
12692 cat confdefs.h >>conftest.$ac_ext
12693 cat >>conftest.$ac_ext <<_ACEOF
12694 /* end confdefs.h. */
12699 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12702 Motif version prior to 2.1.
12708 rm -f conftest.$ac_objext
12709 if { (ac_try="$ac_compile"
12710 case "(($ac_try" in
12711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12712 *) ac_try_echo
=$ac_try;;
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_compile") 2>conftest.er1
12717 grep -v '^ *+' conftest.er1
>conftest.err
12719 cat conftest.err
>&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } && {
12722 test -z "$ac_c_werror_flag" ||
12723 test ! -s conftest.err
12724 } && test -s conftest.
$ac_objext; then
12725 emacs_cv_motif_version_2_1
=yes
12727 echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.
$ac_ext >&5
12730 emacs_cv_motif_version_2_1
=no
12733 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12735 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12736 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12737 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12738 if test $emacs_cv_motif_version_2_1 = yes; then
12741 cat >>confdefs.h
<<\_ACEOF
12742 #define HAVE_MOTIF_2_1 1
12745 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12746 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12747 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 ac_check_lib_save_LIBS
=$LIBS
12752 cat >conftest.
$ac_ext <<_ACEOF
12755 cat confdefs.h
>>conftest.
$ac_ext
12756 cat >>conftest.
$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12759 /* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
12765 char XpCreateContext ();
12769 return XpCreateContext ();
12774 rm -f conftest.
$ac_objext conftest
$ac_exeext
12775 if { (ac_try
="$ac_link"
12776 case "(($ac_try" in
12777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781 (eval "$ac_link") 2>conftest.er1
12783 grep -v '^ *+' conftest.er1 >conftest.err
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } && {
12788 test -z "$ac_c_werror_flag" ||
12789 test ! -s conftest.err
12790 } && test -s conftest$ac_exeext &&
12791 $as_test_x conftest$ac_exeext; then
12792 ac_cv_lib_Xp_XpCreateContext=yes
12794 echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12797 ac_cv_lib_Xp_XpCreateContext=no
12800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12801 conftest$ac_exeext conftest.$ac_ext
12802 LIBS=$ac_check_lib_save_LIBS
12804 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12805 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12806 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12810 if test ${HAVE_LIBXP} = yes; then
12812 cat >>confdefs.h <<\_ACEOF
12813 #define HAVE_LIBXP 1
12818 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12819 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12820 if test "${emacs_cv_lesstif+set}" = set; then
12821 echo $ECHO_N "(cached) $ECHO_C" >&6
12823 # We put this in CFLAGS temporarily to precede other -I options
12824 # that might be in CFLAGS temporarily.
12825 # We put this in CPPFLAGS where it precedes the other -I options.
12826 OLD_CPPFLAGS=$CPPFLAGS
12828 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12829 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12830 cat >conftest.$ac_ext <<_ACEOF
12833 cat confdefs.h >>conftest.$ac_ext
12834 cat >>conftest.$ac_ext <<_ACEOF
12835 /* end confdefs.h. */
12836 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12845 rm -f conftest.$ac_objext
12846 if { (ac_try="$ac_compile"
12847 case "(($ac_try" in
12848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12849 *) ac_try_echo
=$ac_try;;
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_compile") 2>conftest.er1
12854 grep -v '^ *+' conftest.er1
>conftest.err
12856 cat conftest.err
>&5
12857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12858 (exit $ac_status); } && {
12859 test -z "$ac_c_werror_flag" ||
12860 test ! -s conftest.err
12861 } && test -s conftest.
$ac_objext; then
12862 emacs_cv_lesstif
=yes
12864 echo "$as_me: failed program was:" >&5
12865 sed 's/^/| /' conftest.
$ac_ext >&5
12867 emacs_cv_lesstif
=no
12870 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12872 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12873 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12874 if test $emacs_cv_lesstif = yes; then
12875 # Make sure this -I option remains in CPPFLAGS after it is set
12876 # back to REAL_CPPFLAGS.
12877 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12878 # have those other -I options anyway. Ultimately, having this
12879 # directory ultimately in CPPFLAGS will be enough.
12880 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12881 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12884 CPPFLAGS
=$OLD_CPPFLAGS
12891 USE_TOOLKIT_SCROLL_BARS
=no
12892 if test "${with_toolkit_scroll_bars}" != "no"; then
12893 if test "${USE_X_TOOLKIT}" != "none"; then
12894 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12895 cat >>confdefs.h
<<\_ACEOF
12896 #define USE_TOOLKIT_SCROLL_BARS 1
12900 USE_TOOLKIT_SCROLL_BARS
=yes
12901 elif test "${HAVE_XAW3D}" = "yes"; then
12902 cat >>confdefs.h
<<\_ACEOF
12903 #define USE_TOOLKIT_SCROLL_BARS 1
12906 USE_TOOLKIT_SCROLL_BARS
=yes
12908 elif test "${HAVE_GTK}" = "yes"; then
12909 cat >>confdefs.h
<<\_ACEOF
12910 #define USE_TOOLKIT_SCROLL_BARS 1
12913 USE_TOOLKIT_SCROLL_BARS
=yes
12914 elif test "${HAVE_CARBON}" = "yes"; then
12915 cat >>confdefs.h
<<\_ACEOF
12916 #define USE_TOOLKIT_SCROLL_BARS 1
12919 USE_TOOLKIT_SCROLL_BARS
=yes
12923 cat >conftest.
$ac_ext <<_ACEOF
12926 cat confdefs.h
>>conftest.
$ac_ext
12927 cat >>conftest.
$ac_ext <<_ACEOF
12928 /* end confdefs.h. */
12930 #include <X11/Xlib.h>
12931 #include <X11/Xresource.h>
12940 rm -f conftest.
$ac_objext
12941 if { (ac_try
="$ac_compile"
12942 case "(($ac_try" in
12943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12944 *) ac_try_echo=$ac_try;;
12946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12947 (eval "$ac_compile") 2>conftest.er1
12949 grep -v '^ *+' conftest.er1 >conftest.err
12951 cat conftest.err >&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); } && {
12954 test -z "$ac_c_werror_flag" ||
12955 test ! -s conftest.err
12956 } && test -s conftest.$ac_objext; then
12959 cat >>confdefs.h <<\_ACEOF
12964 echo "$as_me: failed program was:" >&5
12965 sed 's/^/| /' conftest.$ac_ext >&5
12970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12973 if test "${with_xim}" != "no"; then
12975 cat >>confdefs.h <<\_ACEOF
12982 if test "${HAVE_XIM}" != "no"; then
12983 late_CFLAGS=$CFLAGS
12984 if test "$GCC" = yes; then
12985 CFLAGS="$CFLAGS --pedantic-errors"
12987 cat >conftest.$ac_ext <<_ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h. */
12994 #include <X11/Xlib.h>
12995 #include <X11/Xresource.h>
13004 XPointer *client_data;
13006 /* If we're not using GCC, it's probably not XFree86, and this is
13007 probably right, but we can't use something like --pedantic-errors. */
13008 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13009 char*, XIMProc, XPointer*);
13011 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13017 rm -f conftest.$ac_objext
13018 if { (ac_try="$ac_compile"
13019 case "(($ac_try" in
13020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13021 *) ac_try_echo
=$ac_try;;
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_compile") 2>conftest.er1
13026 grep -v '^ *+' conftest.er1
>conftest.err
13028 cat conftest.err
>&5
13029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } && {
13031 test -z "$ac_c_werror_flag" ||
13032 test ! -s conftest.err
13033 } && test -s conftest.
$ac_objext; then
13034 emacs_cv_arg6_star
=yes
13036 echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.
$ac_ext >&5
13042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13044 if test "$emacs_cv_arg6_star" = yes; then
13045 cat >>confdefs.h
<<\_ACEOF
13046 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13050 cat >>confdefs.h
<<\_ACEOF
13051 #define XRegisterIMInstantiateCallback_arg6 XPointer
13055 CFLAGS
=$late_CFLAGS
13058 ### Use -lXpm if available, unless `--with-xpm=no'.
13060 if test "${HAVE_X11}" = "yes"; then
13061 if test "${with_xpm}" != "no"; then
13062 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13063 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13064 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13065 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13069 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13071 # Is the header compilable?
13072 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13073 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13074 cat >conftest.
$ac_ext <<_ACEOF
13077 cat confdefs.h
>>conftest.
$ac_ext
13078 cat >>conftest.
$ac_ext <<_ACEOF
13079 /* end confdefs.h. */
13080 $ac_includes_default
13081 #include <X11/xpm.h>
13083 rm -f conftest.
$ac_objext
13084 if { (ac_try
="$ac_compile"
13085 case "(($ac_try" in
13086 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_compile") 2>conftest.er1
13092 grep -v '^ *+' conftest.er1 >conftest.err
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } && {
13097 test -z "$ac_c_werror_flag" ||
13098 test ! -s conftest.err
13099 } && test -s conftest.$ac_objext; then
13100 ac_header_compiler=yes
13102 echo "$as_me: failed program was:" >&5
13103 sed 's/^/| /' conftest.$ac_ext >&5
13105 ac_header_compiler=no
13108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13110 echo "${ECHO_T}$ac_header_compiler" >&6; }
13112 # Is the header present?
13113 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13114 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13115 cat >conftest.$ac_ext <<_ACEOF
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h. */
13121 #include <X11/xpm.h>
13123 if { (ac_try="$ac_cpp conftest.$ac_ext"
13124 case "(($ac_try" in
13125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13126 *) ac_try_echo
=$ac_try;;
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13131 grep -v '^ *+' conftest.er1
>conftest.err
13133 cat conftest.err
>&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } >/dev
/null
&& {
13136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13137 test ! -s conftest.err
13139 ac_header_preproc
=yes
13141 echo "$as_me: failed program was:" >&5
13142 sed 's/^/| /' conftest.
$ac_ext >&5
13144 ac_header_preproc
=no
13147 rm -f conftest.err conftest.
$ac_ext
13148 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13149 echo "${ECHO_T}$ac_header_preproc" >&6; }
13151 # So? What about this header?
13152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13154 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13155 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13157 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13158 ac_header_preproc
=yes
13161 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13162 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13163 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13164 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13166 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13168 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13170 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13172 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13176 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13177 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13178 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13183 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13184 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13187 if test $ac_cv_header_X11_xpm_h = yes; then
13188 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13189 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13190 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 ac_check_lib_save_LIBS
=$LIBS
13194 LIBS
="-lXpm -lX11 $LIBS"
13195 cat >conftest.
$ac_ext <<_ACEOF
13198 cat confdefs.h
>>conftest.
$ac_ext
13199 cat >>conftest.
$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13202 /* Override any GCC internal prototype to avoid an error.
13203 Use char because int might match the return type of a GCC
13204 builtin and then its argument prototype would still apply. */
13208 char XpmReadFileToPixmap ();
13212 return XpmReadFileToPixmap ();
13217 rm -f conftest.
$ac_objext conftest
$ac_exeext
13218 if { (ac_try
="$ac_link"
13219 case "(($ac_try" in
13220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_link") 2>conftest.er1
13226 grep -v '^ *+' conftest.er1 >conftest.err
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } && {
13231 test -z "$ac_c_werror_flag" ||
13232 test ! -s conftest.err
13233 } && test -s conftest$ac_exeext &&
13234 $as_test_x conftest$ac_exeext; then
13235 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13237 echo "$as_me: failed program was:" >&5
13238 sed 's/^/| /' conftest.$ac_ext >&5
13240 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13244 conftest$ac_exeext conftest.$ac_ext
13245 LIBS=$ac_check_lib_save_LIBS
13247 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13248 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13249 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13256 if test "${HAVE_XPM}" = "yes"; then
13257 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13258 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13259 cat >conftest.$ac_ext <<_ACEOF
13262 cat confdefs.h >>conftest.$ac_ext
13263 cat >>conftest.$ac_ext <<_ACEOF
13264 /* end confdefs.h. */
13265 #include "X11/xpm.h"
13266 #ifndef XpmReturnAllocPixels
13267 no_return_alloc_pixels
13271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13272 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13280 if test "${HAVE_XPM}" = "yes"; then
13281 { echo "$as_me:$LINENO: result: yes" >&5
13282 echo "${ECHO_T}yes" >&6; }
13284 { echo "$as_me:$LINENO: result: no" >&5
13285 echo "${ECHO_T}no" >&6; }
13290 if test "${HAVE_XPM}" = "yes"; then
13292 cat >>confdefs.h <<\_ACEOF
13299 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13301 if test "${HAVE_X11}" = "yes"; then
13302 if test "${with_jpeg}" != "no"; then
13303 if test "${ac_cv_header_jerror_h+set}" = set; then
13304 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13305 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13306 if test "${ac_cv_header_jerror_h+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13310 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13312 # Is the header compilable?
13313 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13314 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13315 cat >conftest.$ac_ext <<_ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13321 $ac_includes_default
13322 #include <jerror.h>
13324 rm -f conftest.$ac_objext
13325 if { (ac_try="$ac_compile"
13326 case "(($ac_try" in
13327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13328 *) ac_try_echo=$ac_try;;
13330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13331 (eval "$ac_compile") 2>conftest.er1
13333 grep -v '^
*+' conftest.er1 >conftest.err
13335 cat conftest.err >&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); } && {
13338 test -z "$ac_c_werror_flag" ||
13339 test ! -s conftest.err
13340 } && test -s conftest.$ac_objext; then
13341 ac_header_compiler=yes
13343 echo "$as_me: failed program was:" >&5
13344 sed 's
/^
/|
/' conftest.$ac_ext >&5
13346 ac_header_compiler=no
13349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13350 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13351 echo "${ECHO_T}$ac_header_compiler" >&6; }
13353 # Is the header present?
13354 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13355 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13356 cat >conftest.$ac_ext <<_ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13362 #include <jerror.h>
13364 if { (ac_try="$ac_cpp conftest.$ac_ext"
13365 case "(($ac_try" in
13366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13367 *) ac_try_echo=$ac_try;;
13369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13372 grep -v '^
*+' conftest.er1 >conftest.err
13374 cat conftest.err >&5
13375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13376 (exit $ac_status); } >/dev/null && {
13377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13378 test ! -s conftest.err
13380 ac_header_preproc=yes
13382 echo "$as_me: failed program was:" >&5
13383 sed 's
/^
/|
/' conftest.$ac_ext >&5
13385 ac_header_preproc=no
13388 rm -f conftest.err conftest.$ac_ext
13389 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13390 echo "${ECHO_T}$ac_header_preproc" >&6; }
13392 # So? What about this header?
13393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13395 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13396 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13397 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13398 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13399 ac_header_preproc=yes
13402 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13403 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13405 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13407 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13408 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13409 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13411 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13413 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13417 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13418 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13419 if test "${ac_cv_header_jerror_h+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 ac_cv_header_jerror_h=$ac_header_preproc
13424 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13425 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13428 if test $ac_cv_header_jerror_h = yes; then
13429 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13430 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13431 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13434 ac_check_lib_save_LIBS=$LIBS
13435 LIBS="-ljpeg $LIBS"
13436 cat >conftest.$ac_ext <<_ACEOF
13439 cat confdefs.h >>conftest.$ac_ext
13440 cat >>conftest.$ac_ext <<_ACEOF
13441 /* end confdefs.h. */
13443 /* Override any GCC internal prototype to avoid an error.
13444 Use char because int might match the return type of a GCC
13445 builtin and then its argument prototype would still apply. */
13449 char jpeg_destroy_compress ();
13453 return jpeg_destroy_compress ();
13458 rm -f conftest.$ac_objext conftest$ac_exeext
13459 if { (ac_try="$ac_link"
13460 case "(($ac_try" in
13461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462 *) ac_try_echo=$ac_try;;
13464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13465 (eval "$ac_link") 2>conftest.er1
13467 grep -v '^
*+' conftest.er1 >conftest.err
13469 cat conftest.err >&5
13470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13471 (exit $ac_status); } && {
13472 test -z "$ac_c_werror_flag" ||
13473 test ! -s conftest.err
13474 } && test -s conftest$ac_exeext &&
13475 $as_test_x conftest$ac_exeext; then
13476 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13478 echo "$as_me: failed program was:" >&5
13479 sed 's
/^
/|
/' conftest.$ac_ext >&5
13481 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13485 conftest$ac_exeext conftest.$ac_ext
13486 LIBS=$ac_check_lib_save_LIBS
13488 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13489 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13490 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13500 if test "${HAVE_JPEG}" = "yes"; then
13501 cat >>confdefs.h <<\_ACEOF
13502 #define HAVE_JPEG 1
13505 cat >conftest.$ac_ext <<_ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13511 #include <jpeglib.h>
13512 version=JPEG_LIB_VERSION
13515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13516 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13517 cat >>confdefs.h <<\_ACEOF
13518 #define HAVE_JPEG 1
13522 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13523 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13531 ### Use -lpng if available, unless `--with-png=no'.
13533 if test "${HAVE_X11}" = "yes"; then
13534 if test "${with_png}" != "no"; then
13535 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13536 # in /usr/include/libpng.
13539 for ac_header
in png.h libpng
/png.h
13541 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13542 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13545 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13546 echo $ECHO_N "(cached) $ECHO_C" >&6
13548 ac_res
=`eval echo '${'$as_ac_Header'}'`
13549 { echo "$as_me:$LINENO: result: $ac_res" >&5
13550 echo "${ECHO_T}$ac_res" >&6; }
13552 # Is the header compilable?
13553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13555 cat >conftest.
$ac_ext <<_ACEOF
13558 cat confdefs.h
>>conftest.
$ac_ext
13559 cat >>conftest.
$ac_ext <<_ACEOF
13560 /* end confdefs.h. */
13561 $ac_includes_default
13562 #include <$ac_header>
13564 rm -f conftest.
$ac_objext
13565 if { (ac_try
="$ac_compile"
13566 case "(($ac_try" in
13567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13568 *) ac_try_echo=$ac_try;;
13570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13571 (eval "$ac_compile") 2>conftest.er1
13573 grep -v '^ *+' conftest.er1 >conftest.err
13575 cat conftest.err >&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } && {
13578 test -z "$ac_c_werror_flag" ||
13579 test ! -s conftest.err
13580 } && test -s conftest.$ac_objext; then
13581 ac_header_compiler=yes
13583 echo "$as_me: failed program was:" >&5
13584 sed 's/^/| /' conftest.$ac_ext >&5
13586 ac_header_compiler=no
13589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13591 echo "${ECHO_T}$ac_header_compiler" >&6; }
13593 # Is the header present?
13594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13596 cat >conftest.$ac_ext <<_ACEOF
13599 cat confdefs.h >>conftest.$ac_ext
13600 cat >>conftest.$ac_ext <<_ACEOF
13601 /* end confdefs.h. */
13602 #include <$ac_header>
13604 if { (ac_try="$ac_cpp conftest.$ac_ext"
13605 case "(($ac_try" in
13606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13607 *) ac_try_echo
=$ac_try;;
13609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13612 grep -v '^ *+' conftest.er1
>conftest.err
13614 cat conftest.err
>&5
13615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13616 (exit $ac_status); } >/dev
/null
&& {
13617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13618 test ! -s conftest.err
13620 ac_header_preproc
=yes
13622 echo "$as_me: failed program was:" >&5
13623 sed 's/^/| /' conftest.
$ac_ext >&5
13625 ac_header_preproc
=no
13628 rm -f conftest.err conftest.
$ac_ext
13629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13630 echo "${ECHO_T}$ac_header_preproc" >&6; }
13632 # So? What about this header?
13633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13639 ac_header_preproc
=yes
13642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13659 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13660 echo $ECHO_N "(cached) $ECHO_C" >&6
13662 eval "$as_ac_Header=\$ac_header_preproc"
13664 ac_res
=`eval echo '${'$as_ac_Header'}'`
13665 { echo "$as_me:$LINENO: result: $ac_res" >&5
13666 echo "${ECHO_T}$ac_res" >&6; }
13669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13670 cat >>confdefs.h
<<_ACEOF
13671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13678 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13679 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13680 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13681 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13682 echo $ECHO_N "(cached) $ECHO_C" >&6
13684 ac_check_lib_save_LIBS
=$LIBS
13685 LIBS
="-lpng -lz -lm $LIBS"
13686 cat >conftest.
$ac_ext <<_ACEOF
13689 cat confdefs.h
>>conftest.
$ac_ext
13690 cat >>conftest.
$ac_ext <<_ACEOF
13691 /* end confdefs.h. */
13693 /* Override any GCC internal prototype to avoid an error.
13694 Use char because int might match the return type of a GCC
13695 builtin and then its argument prototype would still apply. */
13699 char png_get_channels ();
13703 return png_get_channels ();
13708 rm -f conftest.
$ac_objext conftest
$ac_exeext
13709 if { (ac_try
="$ac_link"
13710 case "(($ac_try" in
13711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13712 *) ac_try_echo=$ac_try;;
13714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13715 (eval "$ac_link") 2>conftest.er1
13717 grep -v '^ *+' conftest.er1 >conftest.err
13719 cat conftest.err >&5
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } && {
13722 test -z "$ac_c_werror_flag" ||
13723 test ! -s conftest.err
13724 } && test -s conftest$ac_exeext &&
13725 $as_test_x conftest$ac_exeext; then
13726 ac_cv_lib_png_png_get_channels=yes
13728 echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.$ac_ext >&5
13731 ac_cv_lib_png_png_get_channels=no
13734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13735 conftest$ac_exeext conftest.$ac_ext
13736 LIBS=$ac_check_lib_save_LIBS
13738 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13739 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13740 if test $ac_cv_lib_png_png_get_channels = yes; then
13747 if test "${HAVE_PNG}" = "yes"; then
13749 cat >>confdefs.h <<\_ACEOF
13756 ### Use -ltiff if available, unless `--with-tiff=no
'.
13758 if test "${HAVE_X11}" = "yes"; then
13759 if test "${with_tiff}" != "no"; then
13760 if test "${ac_cv_header_tiffio_h+set}" = set; then
13761 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13762 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13763 if test "${ac_cv_header_tiffio_h+set}" = set; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
13766 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13767 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13769 # Is the header compilable?
13770 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13771 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13772 cat >conftest.$ac_ext <<_ACEOF
13775 cat confdefs.h >>conftest.$ac_ext
13776 cat >>conftest.$ac_ext <<_ACEOF
13777 /* end confdefs.h. */
13778 $ac_includes_default
13779 #include <tiffio.h>
13781 rm -f conftest.$ac_objext
13782 if { (ac_try="$ac_compile"
13783 case "(($ac_try" in
13784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785 *) ac_try_echo=$ac_try;;
13787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_compile") 2>conftest.er1
13790 grep -v '^
*+' conftest.er1 >conftest.err
13792 cat conftest.err >&5
13793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13794 (exit $ac_status); } && {
13795 test -z "$ac_c_werror_flag" ||
13796 test ! -s conftest.err
13797 } && test -s conftest.$ac_objext; then
13798 ac_header_compiler=yes
13800 echo "$as_me: failed program was:" >&5
13801 sed 's
/^
/|
/' conftest.$ac_ext >&5
13803 ac_header_compiler=no
13806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13807 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13808 echo "${ECHO_T}$ac_header_compiler" >&6; }
13810 # Is the header present?
13811 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13812 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13813 cat >conftest.$ac_ext <<_ACEOF
13816 cat confdefs.h >>conftest.$ac_ext
13817 cat >>conftest.$ac_ext <<_ACEOF
13818 /* end confdefs.h. */
13819 #include <tiffio.h>
13821 if { (ac_try="$ac_cpp conftest.$ac_ext"
13822 case "(($ac_try" in
13823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13829 grep -v '^
*+' conftest.er1 >conftest.err
13831 cat conftest.err >&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } >/dev/null && {
13834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13835 test ! -s conftest.err
13837 ac_header_preproc=yes
13839 echo "$as_me: failed program was:" >&5
13840 sed 's
/^
/|
/' conftest.$ac_ext >&5
13842 ac_header_preproc=no
13845 rm -f conftest.err conftest.$ac_ext
13846 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13847 echo "${ECHO_T}$ac_header_preproc" >&6; }
13849 # So? What about this header?
13850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13852 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13853 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13854 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13855 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13856 ac_header_preproc=yes
13859 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13860 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13861 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13862 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13863 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13864 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13865 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13866 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13867 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13868 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13869 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13870 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13874 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13875 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13876 if test "${ac_cv_header_tiffio_h+set}" = set; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13879 ac_cv_header_tiffio_h=$ac_header_preproc
13881 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13882 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13885 if test $ac_cv_header_tiffio_h = yes; then
13887 # At least one tiff package requires the jpeg library.
13888 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13889 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13890 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13891 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13894 ac_check_lib_save_LIBS=$LIBS
13895 LIBS="-ltiff $tifflibs $LIBS"
13896 cat >conftest.$ac_ext <<_ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13903 /* Override any GCC internal prototype to avoid an error.
13904 Use char because int might match the return type of a GCC
13905 builtin and then its argument prototype would still apply. */
13909 char TIFFGetVersion ();
13913 return TIFFGetVersion ();
13918 rm -f conftest.$ac_objext conftest$ac_exeext
13919 if { (ac_try="$ac_link"
13920 case "(($ac_try" in
13921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922 *) ac_try_echo=$ac_try;;
13924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13925 (eval "$ac_link") 2>conftest.er1
13927 grep -v '^
*+' conftest.er1 >conftest.err
13929 cat conftest.err >&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } && {
13932 test -z "$ac_c_werror_flag" ||
13933 test ! -s conftest.err
13934 } && test -s conftest$ac_exeext &&
13935 $as_test_x conftest$ac_exeext; then
13936 ac_cv_lib_tiff_TIFFGetVersion=yes
13938 echo "$as_me: failed program was:" >&5
13939 sed 's
/^
/|
/' conftest.$ac_ext >&5
13941 ac_cv_lib_tiff_TIFFGetVersion=no
13944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13945 conftest$ac_exeext conftest.$ac_ext
13946 LIBS=$ac_check_lib_save_LIBS
13948 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13949 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13950 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13959 if test "${HAVE_TIFF}" = "yes"; then
13961 cat >>confdefs.h <<\_ACEOF
13962 #define HAVE_TIFF 1
13968 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13970 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13971 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13972 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13973 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13974 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13978 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13980 # Is the header compilable?
13981 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13982 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13983 cat >conftest.
$ac_ext <<_ACEOF
13986 cat confdefs.h
>>conftest.
$ac_ext
13987 cat >>conftest.
$ac_ext <<_ACEOF
13988 /* end confdefs.h. */
13989 $ac_includes_default
13990 #include <gif_lib.h>
13992 rm -f conftest.
$ac_objext
13993 if { (ac_try
="$ac_compile"
13994 case "(($ac_try" in
13995 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13996 *) ac_try_echo=$ac_try;;
13998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13999 (eval "$ac_compile") 2>conftest.er1
14001 grep -v '^ *+' conftest.er1 >conftest.err
14003 cat conftest.err >&5
14004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14005 (exit $ac_status); } && {
14006 test -z "$ac_c_werror_flag" ||
14007 test ! -s conftest.err
14008 } && test -s conftest.$ac_objext; then
14009 ac_header_compiler=yes
14011 echo "$as_me: failed program was:" >&5
14012 sed 's/^/| /' conftest.$ac_ext >&5
14014 ac_header_compiler=no
14017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14018 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14019 echo "${ECHO_T}$ac_header_compiler" >&6; }
14021 # Is the header present?
14022 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14023 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14024 cat >conftest.$ac_ext <<_ACEOF
14027 cat confdefs.h >>conftest.$ac_ext
14028 cat >>conftest.$ac_ext <<_ACEOF
14029 /* end confdefs.h. */
14030 #include <gif_lib.h>
14032 if { (ac_try="$ac_cpp conftest.$ac_ext"
14033 case "(($ac_try" in
14034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14035 *) ac_try_echo
=$ac_try;;
14037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14040 grep -v '^ *+' conftest.er1
>conftest.err
14042 cat conftest.err
>&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } >/dev
/null
&& {
14045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14046 test ! -s conftest.err
14048 ac_header_preproc
=yes
14050 echo "$as_me: failed program was:" >&5
14051 sed 's/^/| /' conftest.
$ac_ext >&5
14053 ac_header_preproc
=no
14056 rm -f conftest.err conftest.
$ac_ext
14057 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14058 echo "${ECHO_T}$ac_header_preproc" >&6; }
14060 # So? What about this header?
14061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14063 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14064 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14065 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14066 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14067 ac_header_preproc
=yes
14070 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14071 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14072 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14073 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14074 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14075 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14076 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14077 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14078 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14079 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14080 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14081 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14085 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14086 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14087 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14088 echo $ECHO_N "(cached) $ECHO_C" >&6
14090 ac_cv_header_gif_lib_h
=$ac_header_preproc
14092 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14093 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14096 if test $ac_cv_header_gif_lib_h = yes; then
14097 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14098 # Earlier versions can crash Emacs.
14099 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14100 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14101 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14102 echo $ECHO_N "(cached) $ECHO_C" >&6
14104 ac_check_lib_save_LIBS
=$LIBS
14106 cat >conftest.
$ac_ext <<_ACEOF
14109 cat confdefs.h
>>conftest.
$ac_ext
14110 cat >>conftest.
$ac_ext <<_ACEOF
14111 /* end confdefs.h. */
14113 /* Override any GCC internal prototype to avoid an error.
14114 Use char because int might match the return type of a GCC
14115 builtin and then its argument prototype would still apply. */
14119 char EGifPutExtensionLast ();
14123 return EGifPutExtensionLast ();
14128 rm -f conftest.
$ac_objext conftest
$ac_exeext
14129 if { (ac_try
="$ac_link"
14130 case "(($ac_try" in
14131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14132 *) ac_try_echo=$ac_try;;
14134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14135 (eval "$ac_link") 2>conftest.er1
14137 grep -v '^ *+' conftest.er1 >conftest.err
14139 cat conftest.err >&5
14140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14141 (exit $ac_status); } && {
14142 test -z "$ac_c_werror_flag" ||
14143 test ! -s conftest.err
14144 } && test -s conftest$ac_exeext &&
14145 $as_test_x conftest$ac_exeext; then
14146 ac_cv_lib_gif_EGifPutExtensionLast=yes
14148 echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.$ac_ext >&5
14151 ac_cv_lib_gif_EGifPutExtensionLast=no
14154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14155 conftest$ac_exeext conftest.$ac_ext
14156 LIBS=$ac_check_lib_save_LIBS
14158 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14159 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14160 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14170 if test "$HAVE_GIF" = yes; then
14171 ac_gif_lib_name="-lgif"
14174 # If gif_lib.h but no libgif, try libungif.
14175 if test x"$try_libungif" = xyes; then
14176 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14177 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14178 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14179 echo $ECHO_N "(cached) $ECHO_C" >&6
14181 ac_check_lib_save_LIBS=$LIBS
14182 LIBS="-lungif $LIBS"
14183 cat >conftest.$ac_ext <<_ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h. */
14190 /* Override any GCC internal prototype to avoid an error.
14191 Use char because int might match the return type of a GCC
14192 builtin and then its argument prototype would still apply. */
14196 char EGifPutExtensionLast ();
14200 return EGifPutExtensionLast ();
14205 rm -f conftest.$ac_objext conftest$ac_exeext
14206 if { (ac_try="$ac_link"
14207 case "(($ac_try" in
14208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14209 *) ac_try_echo
=$ac_try;;
14211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14212 (eval "$ac_link") 2>conftest.er1
14214 grep -v '^ *+' conftest.er1
>conftest.err
14216 cat conftest.err
>&5
14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14218 (exit $ac_status); } && {
14219 test -z "$ac_c_werror_flag" ||
14220 test ! -s conftest.err
14221 } && test -s conftest
$ac_exeext &&
14222 $as_test_x conftest
$ac_exeext; then
14223 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14225 echo "$as_me: failed program was:" >&5
14226 sed 's/^/| /' conftest.
$ac_ext >&5
14228 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14231 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14232 conftest
$ac_exeext conftest.
$ac_ext
14233 LIBS
=$ac_check_lib_save_LIBS
14235 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14236 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14237 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14242 if test "$HAVE_GIF" = yes; then
14244 cat >>confdefs.h
<<\_ACEOF
14245 #define LIBGIF -lungif
14248 ac_gif_lib_name
="-lungif"
14252 if test "${HAVE_GIF}" = "yes"; then
14254 cat >>confdefs.h
<<\_ACEOF
14261 if test "${HAVE_X11}" = "yes"; then
14264 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14265 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14266 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14267 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14268 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14269 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14270 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14271 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14272 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14273 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14275 if test "X${MISSING}" != X
; then
14276 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14278 Maybe some development libraries/packages are missing?
14279 If you don't want to link with them give
14281 as options to configure" >&5
14282 echo "$as_me: error: The following required libraries were not found:
14284 Maybe some development libraries/packages are missing?
14285 If you don't want to link with them give
14287 as options to configure" >&2;}
14288 { (exit 1); exit 1; }; }
14292 ### Use -lgpm if available, unless `--with-gpm=no'.
14294 if test "${with_gpm}" != "no"; then
14295 if test "${ac_cv_header_gpm_h+set}" = set; then
14296 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14297 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14298 if test "${ac_cv_header_gpm_h+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14301 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14302 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14304 # Is the header compilable?
14305 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14306 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14307 cat >conftest.
$ac_ext <<_ACEOF
14310 cat confdefs.h
>>conftest.
$ac_ext
14311 cat >>conftest.
$ac_ext <<_ACEOF
14312 /* end confdefs.h. */
14313 $ac_includes_default
14316 rm -f conftest.
$ac_objext
14317 if { (ac_try
="$ac_compile"
14318 case "(($ac_try" in
14319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_compile") 2>conftest.er1
14325 grep -v '^ *+' conftest.er1 >conftest.err
14327 cat conftest.err >&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); } && {
14330 test -z "$ac_c_werror_flag" ||
14331 test ! -s conftest.err
14332 } && test -s conftest.$ac_objext; then
14333 ac_header_compiler=yes
14335 echo "$as_me: failed program was:" >&5
14336 sed 's/^/| /' conftest.$ac_ext >&5
14338 ac_header_compiler=no
14341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14342 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14343 echo "${ECHO_T}$ac_header_compiler" >&6; }
14345 # Is the header present?
14346 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14347 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14348 cat >conftest.$ac_ext <<_ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14356 if { (ac_try="$ac_cpp conftest.$ac_ext"
14357 case "(($ac_try" in
14358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14359 *) ac_try_echo
=$ac_try;;
14361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14364 grep -v '^ *+' conftest.er1
>conftest.err
14366 cat conftest.err
>&5
14367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14368 (exit $ac_status); } >/dev
/null
&& {
14369 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14370 test ! -s conftest.err
14372 ac_header_preproc
=yes
14374 echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.
$ac_ext >&5
14377 ac_header_preproc
=no
14380 rm -f conftest.err conftest.
$ac_ext
14381 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14382 echo "${ECHO_T}$ac_header_preproc" >&6; }
14384 # So? What about this header?
14385 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14387 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14388 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14389 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14390 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14391 ac_header_preproc
=yes
14394 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14395 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14396 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14397 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14398 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14399 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14400 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14401 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14402 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14403 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14404 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14405 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14409 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14410 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14411 if test "${ac_cv_header_gpm_h+set}" = set; then
14412 echo $ECHO_N "(cached) $ECHO_C" >&6
14414 ac_cv_header_gpm_h
=$ac_header_preproc
14416 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14417 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14420 if test $ac_cv_header_gpm_h = yes; then
14421 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14422 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14423 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14424 echo $ECHO_N "(cached) $ECHO_C" >&6
14426 ac_check_lib_save_LIBS
=$LIBS
14428 cat >conftest.
$ac_ext <<_ACEOF
14431 cat confdefs.h
>>conftest.
$ac_ext
14432 cat >>conftest.
$ac_ext <<_ACEOF
14433 /* end confdefs.h. */
14435 /* Override any GCC internal prototype to avoid an error.
14436 Use char because int might match the return type of a GCC
14437 builtin and then its argument prototype would still apply. */
14445 return Gpm_Open ();
14450 rm -f conftest.
$ac_objext conftest
$ac_exeext
14451 if { (ac_try
="$ac_link"
14452 case "(($ac_try" in
14453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14454 *) ac_try_echo=$ac_try;;
14456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14457 (eval "$ac_link") 2>conftest.er1
14459 grep -v '^ *+' conftest.er1 >conftest.err
14461 cat conftest.err >&5
14462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14463 (exit $ac_status); } && {
14464 test -z "$ac_c_werror_flag" ||
14465 test ! -s conftest.err
14466 } && test -s conftest$ac_exeext &&
14467 $as_test_x conftest$ac_exeext; then
14468 ac_cv_lib_gpm_Gpm_Open=yes
14470 echo "$as_me: failed program was:" >&5
14471 sed 's/^/| /' conftest.$ac_ext >&5
14473 ac_cv_lib_gpm_Gpm_Open=no
14476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14477 conftest$ac_exeext conftest.$ac_ext
14478 LIBS=$ac_check_lib_save_LIBS
14480 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14481 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14482 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14491 if test "${HAVE_GPM}" = "yes"; then
14493 cat >>confdefs.h <<\_ACEOF
14499 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14500 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14501 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14502 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14503 echo $ECHO_N "(cached) $ECHO_C" >&6
14505 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14506 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14508 # Is the header compilable?
14509 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14510 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14511 cat >conftest.$ac_ext <<_ACEOF
14514 cat confdefs.h >>conftest.$ac_ext
14515 cat >>conftest.$ac_ext <<_ACEOF
14516 /* end confdefs.h. */
14517 $ac_includes_default
14518 #include <malloc/malloc.h>
14520 rm -f conftest.$ac_objext
14521 if { (ac_try="$ac_compile"
14522 case "(($ac_try" in
14523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14524 *) ac_try_echo
=$ac_try;;
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_compile") 2>conftest.er1
14529 grep -v '^ *+' conftest.er1
>conftest.err
14531 cat conftest.err
>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } && {
14534 test -z "$ac_c_werror_flag" ||
14535 test ! -s conftest.err
14536 } && test -s conftest.
$ac_objext; then
14537 ac_header_compiler
=yes
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.
$ac_ext >&5
14542 ac_header_compiler
=no
14545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14546 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14547 echo "${ECHO_T}$ac_header_compiler" >&6; }
14549 # Is the header present?
14550 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14551 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14552 cat >conftest.
$ac_ext <<_ACEOF
14555 cat confdefs.h
>>conftest.
$ac_ext
14556 cat >>conftest.
$ac_ext <<_ACEOF
14557 /* end confdefs.h. */
14558 #include <malloc/malloc.h>
14560 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14561 case "(($ac_try" in
14562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14568 grep -v '^ *+' conftest.er1 >conftest.err
14570 cat conftest.err >&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } >/dev/null && {
14573 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14574 test ! -s conftest.err
14576 ac_header_preproc=yes
14578 echo "$as_me: failed program was:" >&5
14579 sed 's/^/| /' conftest.$ac_ext >&5
14581 ac_header_preproc=no
14584 rm -f conftest.err conftest.$ac_ext
14585 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14586 echo "${ECHO_T}$ac_header_preproc" >&6; }
14588 # So? What about this header?
14589 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14591 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14592 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14593 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14594 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14595 ac_header_preproc=yes
14598 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14599 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14600 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14601 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14602 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14603 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14604 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14605 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14606 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14607 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14608 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14609 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14613 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14614 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14615 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14618 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14620 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14621 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14624 if test $ac_cv_header_malloc_malloc_h = yes; then
14626 cat >>confdefs.h <<\_ACEOF
14627 #define HAVE_MALLOC_MALLOC_H 1
14634 ### Use Mac OS X Carbon API to implement GUI.
14635 if test "${HAVE_CARBON}" = "yes"; then
14637 cat >>confdefs.h <<\_ACEOF
14638 #define HAVE_CARBON 1
14641 ## Specify the install directory
14643 if test "${carbon_appdir_x}" != ""; then
14644 case ${carbon_appdir_x} in
14645 y | ye | yes) carbon_appdir=/Applications ;;
14646 * ) carbon_appdir=${carbon_appdir_x} ;;
14649 # We also have mouse menus.
14653 ### Use session management (-lSM -lICE) if available
14655 if test "${HAVE_X11}" = "yes"; then
14656 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14657 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14658 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14659 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14660 echo $ECHO_N "(cached) $ECHO_C" >&6
14662 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14663 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14665 # Is the header compilable?
14666 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14667 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14668 cat >conftest.$ac_ext <<_ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14674 $ac_includes_default
14675 #include <X11/SM/SMlib.h>
14677 rm -f conftest.$ac_objext
14678 if { (ac_try="$ac_compile"
14679 case "(($ac_try" in
14680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14681 *) ac_try_echo
=$ac_try;;
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684 (eval "$ac_compile") 2>conftest.er1
14686 grep -v '^ *+' conftest.er1
>conftest.err
14688 cat conftest.err
>&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } && {
14691 test -z "$ac_c_werror_flag" ||
14692 test ! -s conftest.err
14693 } && test -s conftest.
$ac_objext; then
14694 ac_header_compiler
=yes
14696 echo "$as_me: failed program was:" >&5
14697 sed 's/^/| /' conftest.
$ac_ext >&5
14699 ac_header_compiler
=no
14702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14703 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14704 echo "${ECHO_T}$ac_header_compiler" >&6; }
14706 # Is the header present?
14707 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14708 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14709 cat >conftest.
$ac_ext <<_ACEOF
14712 cat confdefs.h
>>conftest.
$ac_ext
14713 cat >>conftest.
$ac_ext <<_ACEOF
14714 /* end confdefs.h. */
14715 #include <X11/SM/SMlib.h>
14717 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14718 case "(($ac_try" in
14719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14725 grep -v '^ *+' conftest.er1 >conftest.err
14727 cat conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } >/dev/null && {
14730 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14731 test ! -s conftest.err
14733 ac_header_preproc=yes
14735 echo "$as_me: failed program was:" >&5
14736 sed 's/^/| /' conftest.$ac_ext >&5
14738 ac_header_preproc=no
14741 rm -f conftest.err conftest.$ac_ext
14742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14743 echo "${ECHO_T}$ac_header_preproc" >&6; }
14745 # So? What about this header?
14746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14748 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14749 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14750 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14751 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14752 ac_header_preproc=yes
14755 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14756 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14757 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14758 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14759 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14760 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14761 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14762 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14763 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14764 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14765 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14766 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14770 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14771 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14772 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14773 echo $ECHO_N "(cached) $ECHO_C" >&6
14775 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14777 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14778 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14781 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14782 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14783 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14784 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14785 echo $ECHO_N "(cached) $ECHO_C" >&6
14787 ac_check_lib_save_LIBS=$LIBS
14788 LIBS="-lSM -lICE $LIBS"
14789 cat >conftest.$ac_ext <<_ACEOF
14792 cat confdefs.h >>conftest.$ac_ext
14793 cat >>conftest.$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14796 /* Override any GCC internal prototype to avoid an error.
14797 Use char because int might match the return type of a GCC
14798 builtin and then its argument prototype would still apply. */
14802 char SmcOpenConnection ();
14806 return SmcOpenConnection ();
14811 rm -f conftest.$ac_objext conftest$ac_exeext
14812 if { (ac_try="$ac_link"
14813 case "(($ac_try" in
14814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14815 *) ac_try_echo
=$ac_try;;
14817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818 (eval "$ac_link") 2>conftest.er1
14820 grep -v '^ *+' conftest.er1
>conftest.err
14822 cat conftest.err
>&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } && {
14825 test -z "$ac_c_werror_flag" ||
14826 test ! -s conftest.err
14827 } && test -s conftest
$ac_exeext &&
14828 $as_test_x conftest
$ac_exeext; then
14829 ac_cv_lib_SM_SmcOpenConnection
=yes
14831 echo "$as_me: failed program was:" >&5
14832 sed 's/^/| /' conftest.
$ac_ext >&5
14834 ac_cv_lib_SM_SmcOpenConnection
=no
14837 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14838 conftest
$ac_exeext conftest.
$ac_ext
14839 LIBS
=$ac_check_lib_save_LIBS
14841 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14842 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14843 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14851 if test "${HAVE_X_SM}" = "yes"; then
14853 cat >>confdefs.h
<<\_ACEOF
14854 #define HAVE_X_SM 1
14859 *) LIBS
="-lSM -lICE $LIBS" ;;
14864 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14865 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14866 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14867 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14868 echo $ECHO_N "(cached) $ECHO_C" >&6
14870 cat >conftest.
$ac_ext <<_ACEOF
14873 cat confdefs.h
>>conftest.
$ac_ext
14874 cat >>conftest.
$ac_ext <<_ACEOF
14875 /* end confdefs.h. */
14885 rm -f conftest.
$ac_objext conftest
$ac_exeext
14886 if { (ac_try
="$ac_link"
14887 case "(($ac_try" in
14888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_link") 2>conftest.er1
14894 grep -v '^ *+' conftest.er1 >conftest.err
14896 cat conftest.err >&5
14897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14898 (exit $ac_status); } && {
14899 test -z "$ac_c_werror_flag" ||
14900 test ! -s conftest.err
14901 } && test -s conftest$ac_exeext &&
14902 $as_test_x conftest$ac_exeext; then
14903 emacs_cv_netdb_declares_h_errno=yes
14905 echo "$as_me: failed program was:" >&5
14906 sed 's/^/| /' conftest.$ac_ext >&5
14908 emacs_cv_netdb_declares_h_errno=no
14911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14912 conftest$ac_exeext conftest.$ac_ext
14914 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14915 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14916 if test $emacs_cv_netdb_declares_h_errno = yes; then
14918 cat >>confdefs.h <<\_ACEOF
14919 #define HAVE_H_ERRNO 1
14924 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14925 # for constant arguments. Useless!
14926 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14927 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14928 if test "${ac_cv_working_alloca_h+set}" = set; then
14929 echo $ECHO_N "(cached) $ECHO_C" >&6
14931 cat >conftest.$ac_ext <<_ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14937 #include <alloca.h>
14941 char *p = (char *) alloca (2 * sizeof (int));
14947 rm -f conftest.$ac_objext conftest$ac_exeext
14948 if { (ac_try="$ac_link"
14949 case "(($ac_try" in
14950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14951 *) ac_try_echo
=$ac_try;;
14953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14954 (eval "$ac_link") 2>conftest.er1
14956 grep -v '^ *+' conftest.er1
>conftest.err
14958 cat conftest.err
>&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); } && {
14961 test -z "$ac_c_werror_flag" ||
14962 test ! -s conftest.err
14963 } && test -s conftest
$ac_exeext &&
14964 $as_test_x conftest
$ac_exeext; then
14965 ac_cv_working_alloca_h
=yes
14967 echo "$as_me: failed program was:" >&5
14968 sed 's/^/| /' conftest.
$ac_ext >&5
14970 ac_cv_working_alloca_h
=no
14973 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14974 conftest
$ac_exeext conftest.
$ac_ext
14976 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14977 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14978 if test $ac_cv_working_alloca_h = yes; then
14980 cat >>confdefs.h
<<\_ACEOF
14981 #define HAVE_ALLOCA_H 1
14986 { echo "$as_me:$LINENO: checking for alloca" >&5
14987 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14988 if test "${ac_cv_func_alloca_works+set}" = set; then
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14991 cat >conftest.
$ac_ext <<_ACEOF
14994 cat confdefs.h
>>conftest.
$ac_ext
14995 cat >>conftest.
$ac_ext <<_ACEOF
14996 /* end confdefs.h. */
14998 # define alloca __builtin_alloca
15001 # include <malloc.h>
15002 # define alloca _alloca
15004 # ifdef HAVE_ALLOCA_H
15005 # include <alloca.h>
15010 # ifndef alloca /* predefined by HP cc +Olibcalls */
15021 char *p = (char *) alloca (1);
15027 rm -f conftest.
$ac_objext conftest
$ac_exeext
15028 if { (ac_try
="$ac_link"
15029 case "(($ac_try" in
15030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15031 *) ac_try_echo=$ac_try;;
15033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15034 (eval "$ac_link") 2>conftest.er1
15036 grep -v '^ *+' conftest.er1 >conftest.err
15038 cat conftest.err >&5
15039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); } && {
15041 test -z "$ac_c_werror_flag" ||
15042 test ! -s conftest.err
15043 } && test -s conftest$ac_exeext &&
15044 $as_test_x conftest$ac_exeext; then
15045 ac_cv_func_alloca_works=yes
15047 echo "$as_me: failed program was:" >&5
15048 sed 's/^/| /' conftest.$ac_ext >&5
15050 ac_cv_func_alloca_works=no
15053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15054 conftest$ac_exeext conftest.$ac_ext
15056 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15057 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15059 if test $ac_cv_func_alloca_works = yes; then
15061 cat >>confdefs.h <<\_ACEOF
15062 #define HAVE_ALLOCA 1
15066 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15067 # that cause trouble. Some versions do not even contain alloca or
15068 # contain a buggy version. If you still want to use their alloca,
15069 # use ar to extract alloca.o from them instead of compiling alloca.c.
15071 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15073 cat >>confdefs.h <<\_ACEOF
15078 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15079 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15080 if test "${ac_cv_os_cray+set}" = set; then
15081 echo $ECHO_N "(cached
) $ECHO_C" >&6
15083 cat >conftest.$ac_ext <<_ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15089 #if defined CRAY && ! defined CRAY2
15096 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15097 $EGREP "webecray
" >/dev/null 2>&1; then
15105 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15106 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15107 if test $ac_cv_os_cray = yes; then
15108 for ac_func in _getb67 GETB67 getb67; do
15109 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15110 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15111 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15112 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15113 echo $ECHO_N "(cached
) $ECHO_C" >&6
15115 cat >conftest.$ac_ext <<_ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15123 #define $ac_func innocuous_$ac_func
15125 /* System header to define __stub macros and hopefully few prototypes,
15126 which can conflict with char $ac_func (); below.
15127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15128 <limits.h> exists even on freestanding compilers. */
15131 # include <limits.h>
15133 # include <assert.h>
15138 /* Override any GCC internal prototype to avoid an error.
15139 Use char because int might match the return type of a GCC
15140 builtin and then its argument prototype would still apply. */
15145 /* The GNU C library defines this for functions which it implements
15146 to always fail with ENOSYS. Some functions are actually named
15147 something starting with __ and the normal name is an alias. */
15148 #if defined __stub_$ac_func || defined __stub___$ac_func
15155 return $ac_func ();
15160 rm -f conftest.$ac_objext conftest$ac_exeext
15161 if { (ac_try="$ac_link"
15162 case "(($ac_try" in
15163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15164 *) ac_try_echo=$ac_try;;
15166 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15167 (eval "$ac_link") 2>conftest.er1
15169 grep -v '^ *+' conftest.er1 >conftest.err
15171 cat conftest.err >&5
15172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15173 (exit $ac_status); } && {
15174 test -z "$ac_c_werror_flag" ||
15175 test ! -s conftest.err
15176 } && test -s conftest$ac_exeext &&
15177 $as_test_x conftest$ac_exeext; then
15178 eval "$as_ac_var=yes"
15180 echo "$as_me: failed program was
:" >&5
15181 sed 's/^/| /' conftest.$ac_ext >&5
15183 eval "$as_ac_var=no
"
15186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15187 conftest$ac_exeext conftest.$ac_ext
15189 ac_res=`eval echo '${'$as_ac_var'}'`
15190 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15191 echo "${ECHO_T}$ac_res" >&6; }
15192 if test `eval echo '${'$as_ac_var'}'` = yes; then
15194 cat >>confdefs.h <<_ACEOF
15195 #define CRAY_STACKSEG_END $ac_func
15204 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15205 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15206 if test "${ac_cv_c_stack_direction+set}" = set; then
15207 echo $ECHO_N "(cached
) $ECHO_C" >&6
15209 if test "$cross_compiling" = yes; then
15210 ac_cv_c_stack_direction=0
15212 cat >conftest.$ac_ext <<_ACEOF
15215 cat confdefs.h >>conftest.$ac_ext
15216 cat >>conftest.$ac_ext <<_ACEOF
15217 /* end confdefs.h. */
15218 $ac_includes_default
15220 find_stack_direction ()
15222 static char *addr = 0;
15227 return find_stack_direction ();
15230 return (&dummy > addr) ? 1 : -1;
15236 return find_stack_direction () < 0;
15239 rm -f conftest$ac_exeext
15240 if { (ac_try="$ac_link"
15241 case "(($ac_try" in
15242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15243 *) ac_try_echo=$ac_try;;
15245 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15246 (eval "$ac_link") 2>&5
15248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15250 { (case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_try") 2>&5
15257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15258 (exit $ac_status); }; }; then
15259 ac_cv_c_stack_direction=1
15261 echo "$as_me: program exited with status
$ac_status" >&5
15262 echo "$as_me: failed program was
:" >&5
15263 sed 's/^/| /' conftest.$ac_ext >&5
15265 ( exit $ac_status )
15266 ac_cv_c_stack_direction=-1
15268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15273 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15274 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15276 cat >>confdefs.h <<_ACEOF
15277 #define STACK_DIRECTION $ac_cv_c_stack_direction
15284 if test x"$ac_cv_func_alloca_works" != xyes; then
15285 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15286 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15287 { (exit 1); exit 1; }; }
15290 # fmod, logb, and frexp are found in -lm on most systems.
15291 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15293 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15294 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15295 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15296 echo $ECHO_N "(cached
) $ECHO_C" >&6
15298 ac_check_lib_save_LIBS=$LIBS
15300 cat >conftest.$ac_ext <<_ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h. */
15307 /* Override any GCC internal prototype to avoid an error.
15308 Use char because int might match the return type of a GCC
15309 builtin and then its argument prototype would still apply. */
15322 rm -f conftest.$ac_objext conftest$ac_exeext
15323 if { (ac_try="$ac_link"
15324 case "(($ac_try" in
15325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15326 *) ac_try_echo=$ac_try;;
15328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15329 (eval "$ac_link") 2>conftest.er1
15331 grep -v '^ *+' conftest.er1 >conftest.err
15333 cat conftest.err >&5
15334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15335 (exit $ac_status); } && {
15336 test -z "$ac_c_werror_flag" ||
15337 test ! -s conftest.err
15338 } && test -s conftest$ac_exeext &&
15339 $as_test_x conftest$ac_exeext; then
15340 ac_cv_lib_m_sqrt=yes
15342 echo "$as_me: failed program was
:" >&5
15343 sed 's/^/| /' conftest.$ac_ext >&5
15345 ac_cv_lib_m_sqrt=no
15348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15349 conftest$ac_exeext conftest.$ac_ext
15350 LIBS=$ac_check_lib_save_LIBS
15352 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15353 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15354 if test $ac_cv_lib_m_sqrt = yes; then
15355 cat >>confdefs.h <<_ACEOF
15356 #define HAVE_LIBM 1
15364 # Check for mail-locking functions in a "mail" library. Probably this should
15365 # have the same check as for liblockfile below.
15367 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15368 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15369 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15370 echo $ECHO_N "(cached
) $ECHO_C" >&6
15372 ac_check_lib_save_LIBS=$LIBS
15373 LIBS="-lmail $LIBS"
15374 cat >conftest.$ac_ext <<_ACEOF
15377 cat confdefs.h >>conftest.$ac_ext
15378 cat >>conftest.$ac_ext <<_ACEOF
15379 /* end confdefs.h. */
15381 /* Override any GCC internal prototype to avoid an error.
15382 Use char because int might match the return type of a GCC
15383 builtin and then its argument prototype would still apply. */
15391 return maillock ();
15396 rm -f conftest.$ac_objext conftest$ac_exeext
15397 if { (ac_try="$ac_link"
15398 case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15402 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_link") 2>conftest.er1
15405 grep -v '^ *+' conftest.er1 >conftest.err
15407 cat conftest.err >&5
15408 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15409 (exit $ac_status); } && {
15410 test -z "$ac_c_werror_flag" ||
15411 test ! -s conftest.err
15412 } && test -s conftest$ac_exeext &&
15413 $as_test_x conftest$ac_exeext; then
15414 ac_cv_lib_mail_maillock=yes
15416 echo "$as_me: failed program was
:" >&5
15417 sed 's/^/| /' conftest.$ac_ext >&5
15419 ac_cv_lib_mail_maillock=no
15422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15423 conftest$ac_exeext conftest.$ac_ext
15424 LIBS=$ac_check_lib_save_LIBS
15426 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15427 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15428 if test $ac_cv_lib_mail_maillock = yes; then
15429 cat >>confdefs.h <<_ACEOF
15430 #define HAVE_LIBMAIL 1
15433 LIBS="-lmail $LIBS"
15438 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15439 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15440 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15441 echo $ECHO_N "(cached
) $ECHO_C" >&6
15443 ac_check_lib_save_LIBS=$LIBS
15444 LIBS="-llockfile $LIBS"
15445 cat >conftest.$ac_ext <<_ACEOF
15448 cat confdefs.h >>conftest.$ac_ext
15449 cat >>conftest.$ac_ext <<_ACEOF
15450 /* end confdefs.h. */
15452 /* Override any GCC internal prototype to avoid an error.
15453 Use char because int might match the return type of a GCC
15454 builtin and then its argument prototype would still apply. */
15462 return maillock ();
15467 rm -f conftest.$ac_objext conftest$ac_exeext
15468 if { (ac_try="$ac_link"
15469 case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15473 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_link") 2>conftest.er1
15476 grep -v '^ *+' conftest.er1 >conftest.err
15478 cat conftest.err >&5
15479 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15480 (exit $ac_status); } && {
15481 test -z "$ac_c_werror_flag" ||
15482 test ! -s conftest.err
15483 } && test -s conftest$ac_exeext &&
15484 $as_test_x conftest$ac_exeext; then
15485 ac_cv_lib_lockfile_maillock=yes
15487 echo "$as_me: failed program was
:" >&5
15488 sed 's/^/| /' conftest.$ac_ext >&5
15490 ac_cv_lib_lockfile_maillock=no
15493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15494 conftest$ac_exeext conftest.$ac_ext
15495 LIBS=$ac_check_lib_save_LIBS
15497 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15498 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15499 if test $ac_cv_lib_lockfile_maillock = yes; then
15500 cat >>confdefs.h <<_ACEOF
15501 #define HAVE_LIBLOCKFILE 1
15504 LIBS="-llockfile $LIBS"
15508 # If we have the shared liblockfile, assume we must use it for mail
15509 # locking (e.g. Debian). If we couldn't link against liblockfile
15510 # (no liblockfile.a installed), ensure that we don't need to.
15511 if test "$ac_cv_lib_lockfile_maillock" = no; then
15512 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15513 set dummy liblockfile.so; ac_word=$2
15514 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15515 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15516 if test "${ac_cv_prog_liblockfile+set}" = set; then
15517 echo $ECHO_N "(cached
) $ECHO_C" >&6
15519 if test -n "$liblockfile"; then
15520 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15523 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15524 for as_dir in $as_dummy
15527 test -z "$as_dir" && as_dir=.
15528 for ac_exec_ext in '' $ac_executable_extensions; do
15529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15530 ac_cv_prog_liblockfile="yes"
15531 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15538 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15541 liblockfile=$ac_cv_prog_liblockfile
15542 if test -n "$liblockfile"; then
15543 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15544 echo "${ECHO_T}$liblockfile" >&6; }
15546 { echo "$as_me:$LINENO: result
: no
" >&5
15547 echo "${ECHO_T}no
" >&6; }
15551 if test $ac_cv_prog_liblockfile = yes; then
15552 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15553 This probably means that movemail could lose mail.
15554 There may be a \`development' package to
install containing liblockfile.
" >&5
15555 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15556 This probably means that movemail could lose mail.
15557 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15558 { (exit 1); exit 1; }; }
15563 for ac_func in touchlock
15565 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15566 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15567 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15568 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15569 echo $ECHO_N "(cached
) $ECHO_C" >&6
15571 cat >conftest.$ac_ext <<_ACEOF
15574 cat confdefs.h >>conftest.$ac_ext
15575 cat >>conftest.$ac_ext <<_ACEOF
15576 /* end confdefs.h. */
15577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15579 #define $ac_func innocuous_$ac_func
15581 /* System header to define __stub macros and hopefully few prototypes,
15582 which can conflict with char $ac_func (); below.
15583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15584 <limits.h> exists even on freestanding compilers. */
15587 # include <limits.h>
15589 # include <assert.h>
15594 /* Override any GCC internal prototype to avoid an error.
15595 Use char because int might match the return type of a GCC
15596 builtin and then its argument prototype would still apply. */
15601 /* The GNU C library defines this for functions which it implements
15602 to always fail with ENOSYS. Some functions are actually named
15603 something starting with __ and the normal name is an alias. */
15604 #if defined __stub_$ac_func || defined __stub___$ac_func
15611 return $ac_func ();
15616 rm -f conftest.$ac_objext conftest$ac_exeext
15617 if { (ac_try="$ac_link"
15618 case "(($ac_try" in
15619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15620 *) ac_try_echo=$ac_try;;
15622 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15623 (eval "$ac_link") 2>conftest.er1
15625 grep -v '^ *+' conftest.er1 >conftest.err
15627 cat conftest.err >&5
15628 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15629 (exit $ac_status); } && {
15630 test -z "$ac_c_werror_flag" ||
15631 test ! -s conftest.err
15632 } && test -s conftest$ac_exeext &&
15633 $as_test_x conftest$ac_exeext; then
15634 eval "$as_ac_var=yes"
15636 echo "$as_me: failed program was
:" >&5
15637 sed 's/^/| /' conftest.$ac_ext >&5
15639 eval "$as_ac_var=no
"
15642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15643 conftest$ac_exeext conftest.$ac_ext
15645 ac_res=`eval echo '${'$as_ac_var'}'`
15646 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15647 echo "${ECHO_T}$ac_res" >&6; }
15648 if test `eval echo '${'$as_ac_var'}'` = yes; then
15649 cat >>confdefs.h <<_ACEOF
15650 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15657 for ac_header in maillock.h
15659 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15660 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15661 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15662 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15663 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15664 echo $ECHO_N "(cached
) $ECHO_C" >&6
15666 ac_res=`eval echo '${'$as_ac_Header'}'`
15667 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15668 echo "${ECHO_T}$ac_res" >&6; }
15670 # Is the header compilable?
15671 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15672 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15673 cat >conftest.$ac_ext <<_ACEOF
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h. */
15679 $ac_includes_default
15680 #include <$ac_header>
15682 rm -f conftest.$ac_objext
15683 if { (ac_try="$ac_compile"
15684 case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15689 (eval "$ac_compile") 2>conftest.er1
15691 grep -v '^ *+' conftest.er1 >conftest.err
15693 cat conftest.err >&5
15694 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15695 (exit $ac_status); } && {
15696 test -z "$ac_c_werror_flag" ||
15697 test ! -s conftest.err
15698 } && test -s conftest.$ac_objext; then
15699 ac_header_compiler=yes
15701 echo "$as_me: failed program was
:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15704 ac_header_compiler=no
15707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15708 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15709 echo "${ECHO_T}$ac_header_compiler" >&6; }
15711 # Is the header present?
15712 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15713 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15714 cat >conftest.$ac_ext <<_ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h. */
15720 #include <$ac_header>
15722 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15723 case "(($ac_try" in
15724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725 *) ac_try_echo=$ac_try;;
15727 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15728 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15730 grep -v '^ *+' conftest.er1 >conftest.err
15732 cat conftest.err >&5
15733 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15734 (exit $ac_status); } >/dev/null && {
15735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15736 test ! -s conftest.err
15738 ac_header_preproc=yes
15740 echo "$as_me: failed program was
:" >&5
15741 sed 's/^/| /' conftest.$ac_ext >&5
15743 ac_header_preproc=no
15746 rm -f conftest.err conftest.$ac_ext
15747 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15748 echo "${ECHO_T}$ac_header_preproc" >&6; }
15750 # So? What about this header?
15751 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15753 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15754 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15755 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15756 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15757 ac_header_preproc=yes
15760 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15761 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15762 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15763 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15764 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15765 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15766 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15767 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15768 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15769 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15770 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15771 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15775 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15776 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15777 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15778 echo $ECHO_N "(cached
) $ECHO_C" >&6
15780 eval "$as_ac_Header=\
$ac_header_preproc"
15782 ac_res=`eval echo '${'$as_ac_Header'}'`
15783 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15784 echo "${ECHO_T}$ac_res" >&6; }
15787 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15788 cat >>confdefs.h <<_ACEOF
15789 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15865 for ac_func in gethostname getdomainname dup2 \
15866 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15867 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15868 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15869 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15870 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15871 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15872 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15873 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15875 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15876 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15877 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15878 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15879 echo $ECHO_N "(cached
) $ECHO_C" >&6
15881 cat >conftest.$ac_ext <<_ACEOF
15884 cat confdefs.h >>conftest.$ac_ext
15885 cat >>conftest.$ac_ext <<_ACEOF
15886 /* end confdefs.h. */
15887 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15889 #define $ac_func innocuous_$ac_func
15891 /* System header to define __stub macros and hopefully few prototypes,
15892 which can conflict with char $ac_func (); below.
15893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15894 <limits.h> exists even on freestanding compilers. */
15897 # include <limits.h>
15899 # include <assert.h>
15904 /* Override any GCC internal prototype to avoid an error.
15905 Use char because int might match the return type of a GCC
15906 builtin and then its argument prototype would still apply. */
15911 /* The GNU C library defines this for functions which it implements
15912 to always fail with ENOSYS. Some functions are actually named
15913 something starting with __ and the normal name is an alias. */
15914 #if defined __stub_$ac_func || defined __stub___$ac_func
15921 return $ac_func ();
15926 rm -f conftest.$ac_objext conftest$ac_exeext
15927 if { (ac_try="$ac_link"
15928 case "(($ac_try" in
15929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15930 *) ac_try_echo=$ac_try;;
15932 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15933 (eval "$ac_link") 2>conftest.er1
15935 grep -v '^ *+' conftest.er1 >conftest.err
15937 cat conftest.err >&5
15938 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15939 (exit $ac_status); } && {
15940 test -z "$ac_c_werror_flag" ||
15941 test ! -s conftest.err
15942 } && test -s conftest$ac_exeext &&
15943 $as_test_x conftest$ac_exeext; then
15944 eval "$as_ac_var=yes"
15946 echo "$as_me: failed program was
:" >&5
15947 sed 's/^/| /' conftest.$ac_ext >&5
15949 eval "$as_ac_var=no
"
15952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15953 conftest$ac_exeext conftest.$ac_ext
15955 ac_res=`eval echo '${'$as_ac_var'}'`
15956 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15957 echo "${ECHO_T}$ac_res" >&6; }
15958 if test `eval echo '${'$as_ac_var'}'` = yes; then
15959 cat >>confdefs.h <<_ACEOF
15960 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15968 for ac_header in sys/un.h
15970 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15971 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15972 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15973 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15974 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15975 echo $ECHO_N "(cached
) $ECHO_C" >&6
15977 ac_res=`eval echo '${'$as_ac_Header'}'`
15978 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15979 echo "${ECHO_T}$ac_res" >&6; }
15981 # Is the header compilable?
15982 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15983 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15984 cat >conftest.$ac_ext <<_ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 $ac_includes_default
15991 #include <$ac_header>
15993 rm -f conftest.$ac_objext
15994 if { (ac_try="$ac_compile"
15995 case "(($ac_try" in
15996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15997 *) ac_try_echo=$ac_try;;
15999 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16000 (eval "$ac_compile") 2>conftest.er1
16002 grep -v '^ *+' conftest.er1 >conftest.err
16004 cat conftest.err >&5
16005 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16006 (exit $ac_status); } && {
16007 test -z "$ac_c_werror_flag" ||
16008 test ! -s conftest.err
16009 } && test -s conftest.$ac_objext; then
16010 ac_header_compiler=yes
16012 echo "$as_me: failed program was
:" >&5
16013 sed 's/^/| /' conftest.$ac_ext >&5
16015 ac_header_compiler=no
16018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16019 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16020 echo "${ECHO_T}$ac_header_compiler" >&6; }
16022 # Is the header present?
16023 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16024 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16025 cat >conftest.$ac_ext <<_ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h. */
16031 #include <$ac_header>
16033 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16034 case "(($ac_try" in
16035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16036 *) ac_try_echo=$ac_try;;
16038 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16039 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16041 grep -v '^ *+' conftest.er1 >conftest.err
16043 cat conftest.err >&5
16044 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16045 (exit $ac_status); } >/dev/null && {
16046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16047 test ! -s conftest.err
16049 ac_header_preproc=yes
16051 echo "$as_me: failed program was
:" >&5
16052 sed 's/^/| /' conftest.$ac_ext >&5
16054 ac_header_preproc=no
16057 rm -f conftest.err conftest.$ac_ext
16058 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16059 echo "${ECHO_T}$ac_header_preproc" >&6; }
16061 # So? What about this header?
16062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16064 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16065 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16066 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16068 ac_header_preproc=yes
16071 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16072 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16073 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16074 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16075 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16076 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16077 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16078 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16079 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16081 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16082 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16086 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16087 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16088 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16089 echo $ECHO_N "(cached
) $ECHO_C" >&6
16091 eval "$as_ac_Header=\
$ac_header_preproc"
16093 ac_res=`eval echo '${'$as_ac_Header'}'`
16094 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16095 echo "${ECHO_T}$ac_res" >&6; }
16098 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16099 cat >>confdefs.h <<_ACEOF
16100 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16112 for ac_header in $ac_header_list
16114 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16115 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16116 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16117 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16118 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16119 echo $ECHO_N "(cached
) $ECHO_C" >&6
16121 ac_res=`eval echo '${'$as_ac_Header'}'`
16122 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16123 echo "${ECHO_T}$ac_res" >&6; }
16125 # Is the header compilable?
16126 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16127 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16128 cat >conftest.$ac_ext <<_ACEOF
16131 cat confdefs.h >>conftest.$ac_ext
16132 cat >>conftest.$ac_ext <<_ACEOF
16133 /* end confdefs.h. */
16134 $ac_includes_default
16135 #include <$ac_header>
16137 rm -f conftest.$ac_objext
16138 if { (ac_try="$ac_compile"
16139 case "(($ac_try" in
16140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16141 *) ac_try_echo=$ac_try;;
16143 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16144 (eval "$ac_compile") 2>conftest.er1
16146 grep -v '^ *+' conftest.er1 >conftest.err
16148 cat conftest.err >&5
16149 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16150 (exit $ac_status); } && {
16151 test -z "$ac_c_werror_flag" ||
16152 test ! -s conftest.err
16153 } && test -s conftest.$ac_objext; then
16154 ac_header_compiler=yes
16156 echo "$as_me: failed program was
:" >&5
16157 sed 's/^/| /' conftest.$ac_ext >&5
16159 ac_header_compiler=no
16162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16163 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16164 echo "${ECHO_T}$ac_header_compiler" >&6; }
16166 # Is the header present?
16167 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16168 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16169 cat >conftest.$ac_ext <<_ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16175 #include <$ac_header>
16177 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16178 case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16182 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16185 grep -v '^ *+' conftest.er1 >conftest.err
16187 cat conftest.err >&5
16188 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16189 (exit $ac_status); } >/dev/null && {
16190 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16191 test ! -s conftest.err
16193 ac_header_preproc=yes
16195 echo "$as_me: failed program was
:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16198 ac_header_preproc=no
16201 rm -f conftest.err conftest.$ac_ext
16202 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16203 echo "${ECHO_T}$ac_header_preproc" >&6; }
16205 # So? What about this header?
16206 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16208 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16209 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16210 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16211 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16212 ac_header_preproc=yes
16215 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16216 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16217 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16218 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16219 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16220 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16221 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16222 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16223 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16224 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16225 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16226 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16230 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16231 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16232 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16233 echo $ECHO_N "(cached
) $ECHO_C" >&6
16235 eval "$as_ac_Header=\
$ac_header_preproc"
16237 ac_res=`eval echo '${'$as_ac_Header'}'`
16238 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16239 echo "${ECHO_T}$ac_res" >&6; }
16242 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16243 cat >>confdefs.h <<_ACEOF
16244 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16259 for ac_func in $ac_func_list
16261 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16262 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16263 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16264 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16265 echo $ECHO_N "(cached
) $ECHO_C" >&6
16267 cat >conftest.$ac_ext <<_ACEOF
16270 cat confdefs.h >>conftest.$ac_ext
16271 cat >>conftest.$ac_ext <<_ACEOF
16272 /* end confdefs.h. */
16273 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16275 #define $ac_func innocuous_$ac_func
16277 /* System header to define __stub macros and hopefully few prototypes,
16278 which can conflict with char $ac_func (); below.
16279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16280 <limits.h> exists even on freestanding compilers. */
16283 # include <limits.h>
16285 # include <assert.h>
16290 /* Override any GCC internal prototype to avoid an error.
16291 Use char because int might match the return type of a GCC
16292 builtin and then its argument prototype would still apply. */
16297 /* The GNU C library defines this for functions which it implements
16298 to always fail with ENOSYS. Some functions are actually named
16299 something starting with __ and the normal name is an alias. */
16300 #if defined __stub_$ac_func || defined __stub___$ac_func
16307 return $ac_func ();
16312 rm -f conftest.$ac_objext conftest$ac_exeext
16313 if { (ac_try="$ac_link"
16314 case "(($ac_try" in
16315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16316 *) ac_try_echo=$ac_try;;
16318 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16319 (eval "$ac_link") 2>conftest.er1
16321 grep -v '^ *+' conftest.er1 >conftest.err
16323 cat conftest.err >&5
16324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16325 (exit $ac_status); } && {
16326 test -z "$ac_c_werror_flag" ||
16327 test ! -s conftest.err
16328 } && test -s conftest$ac_exeext &&
16329 $as_test_x conftest$ac_exeext; then
16330 eval "$as_ac_var=yes"
16332 echo "$as_me: failed program was
:" >&5
16333 sed 's/^/| /' conftest.$ac_ext >&5
16335 eval "$as_ac_var=no
"
16338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16339 conftest$ac_exeext conftest.$ac_ext
16341 ac_res=`eval echo '${'$as_ac_var'}'`
16342 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16343 echo "${ECHO_T}$ac_res" >&6; }
16344 if test `eval echo '${'$as_ac_var'}'` = yes; then
16345 cat >>confdefs.h <<_ACEOF
16346 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16368 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16369 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16370 if test "${ac_cv_func_working_mktime+set}" = set; then
16371 echo $ECHO_N "(cached
) $ECHO_C" >&6
16373 if test "$cross_compiling" = yes; then
16374 ac_cv_func_working_mktime=no
16376 cat >conftest.$ac_ext <<_ACEOF
16379 cat confdefs.h >>conftest.$ac_ext
16380 cat >>conftest.$ac_ext <<_ACEOF
16381 /* end confdefs.h. */
16382 /* Test program from Paul Eggert and Tony Leneis. */
16383 #ifdef TIME_WITH_SYS_TIME
16384 # include <sys/time.h>
16387 # ifdef HAVE_SYS_TIME_H
16388 # include <sys/time.h>
16394 #include <stdlib.h>
16396 #ifdef HAVE_UNISTD_H
16397 # include <unistd.h>
16401 # define alarm(X) /* empty */
16404 /* Work around redefinition to rpl_putenv by other config tests. */
16407 static time_t time_t_max;
16408 static time_t time_t_min;
16410 /* Values we'll use to set the TZ environment variable. */
16411 static char *tz_strings[] = {
16412 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16413 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16415 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16417 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16418 Based on a problem report from Andreas Jaeger. */
16420 spring_forward_gap ()
16422 /* glibc (up to about 1998-10-07) failed this test. */
16425 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16426 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16427 on systems that don't support the Olson extension, or don't have the
16428 full zoneinfo tables installed. */
16429 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16438 return mktime (&tm) != (time_t) -1;
16446 return ! (lt = localtime (&now)) || mktime (lt) == now;
16453 return (mktime_test1 (now)
16454 && mktime_test1 ((time_t) (time_t_max - now))
16455 && mktime_test1 ((time_t) (time_t_min + now)));
16461 /* Based on code from Ariel Faigon. */
16471 return tm.tm_mon == 2 && tm.tm_mday == 31;
16480 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16481 now = mktime (&tm);
16482 if (now != (time_t) -1)
16484 struct tm *lt = localtime (&now);
16486 && lt->tm_year == tm.tm_year
16487 && lt->tm_mon == tm.tm_mon
16488 && lt->tm_mday == tm.tm_mday
16489 && lt->tm_hour == tm.tm_hour
16490 && lt->tm_min == tm.tm_min
16491 && lt->tm_sec == tm.tm_sec
16492 && lt->tm_yday == tm.tm_yday
16493 && lt->tm_wday == tm.tm_wday
16494 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16495 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16504 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16505 ignoring leap seconds. */
16506 unsigned long int answer = 2527315200UL;
16510 tm.tm_year = 2050 - 1900;
16513 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16516 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16517 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16518 on systems that don't support the Olson extension, or don't have the
16519 full zoneinfo tables installed. */
16520 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16524 /* Check that the result is either a failure, or close enough
16525 to the correct answer that we can assume the discrepancy is
16526 due to leap seconds. */
16527 return (t == (time_t) -1
16528 || (0 < t && answer - 120 <= t && t <= answer + 120));
16537 /* This test makes some buggy mktime implementations loop.
16538 Give up after 60 seconds; a mktime slower than that
16539 isn't worth using anyway. */
16542 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16545 if ((time_t) -1 < 0)
16546 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16548 delta = time_t_max / 997; /* a suitable prime number */
16549 for (i = 0; i < N_STRINGS; i++)
16552 putenv (tz_strings[i]);
16554 for (t = 0; t <= time_t_max - delta; t += delta)
16555 if (! mktime_test (t))
16557 if (! (mktime_test ((time_t) 1)
16558 && mktime_test ((time_t) (60 * 60))
16559 && mktime_test ((time_t) (60 * 60 * 24))))
16562 for (j = 1; 0 < j; j *= 2)
16563 if (! bigtime_test (j))
16565 if (! bigtime_test (j - 1))
16568 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16571 rm -f conftest$ac_exeext
16572 if { (ac_try="$ac_link"
16573 case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_link") 2>&5
16580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16581 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16582 { (case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16587 (eval "$ac_try") 2>&5
16589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16590 (exit $ac_status); }; }; then
16591 ac_cv_func_working_mktime=yes
16593 echo "$as_me: program exited with status
$ac_status" >&5
16594 echo "$as_me: failed program was
:" >&5
16595 sed 's/^/| /' conftest.$ac_ext >&5
16597 ( exit $ac_status )
16598 ac_cv_func_working_mktime=no
16600 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16605 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16606 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16607 if test $ac_cv_func_working_mktime = no; then
16608 case " $LIBOBJS " in
16609 *" mktime.
$ac_objext "* ) ;;
16610 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16616 if test "$ac_cv_func_working_mktime" = no; then
16618 cat >>confdefs.h <<\_ACEOF
16619 #define BROKEN_MKTIME 1
16624 ac_have_func=no # yes means we've found a way to get the load average.
16626 # Make sure getloadavg.c is where it belongs, at configure-time.
16627 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16628 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16629 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16630 { (exit 1); exit 1; }; }
16634 # Check for getloadavg, but be sure not to touch the cache variable.
16635 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16636 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16637 if test "${ac_cv_func_getloadavg+set}" = set; then
16638 echo $ECHO_N "(cached
) $ECHO_C" >&6
16640 cat >conftest.$ac_ext <<_ACEOF
16643 cat confdefs.h >>conftest.$ac_ext
16644 cat >>conftest.$ac_ext <<_ACEOF
16645 /* end confdefs.h. */
16646 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16648 #define getloadavg innocuous_getloadavg
16650 /* System header to define __stub macros and hopefully few prototypes,
16651 which can conflict with char getloadavg (); below.
16652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16653 <limits.h> exists even on freestanding compilers. */
16656 # include <limits.h>
16658 # include <assert.h>
16663 /* Override any GCC internal prototype to avoid an error.
16664 Use char because int might match the return type of a GCC
16665 builtin and then its argument prototype would still apply. */
16669 char getloadavg ();
16670 /* The GNU C library defines this for functions which it implements
16671 to always fail with ENOSYS. Some functions are actually named
16672 something starting with __ and the normal name is an alias. */
16673 #if defined __stub_getloadavg || defined __stub___getloadavg
16680 return getloadavg ();
16685 rm -f conftest.$ac_objext conftest$ac_exeext
16686 if { (ac_try="$ac_link"
16687 case "(($ac_try" in
16688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689 *) ac_try_echo=$ac_try;;
16691 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16692 (eval "$ac_link") 2>conftest.er1
16694 grep -v '^ *+' conftest.er1 >conftest.err
16696 cat conftest.err >&5
16697 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16698 (exit $ac_status); } && {
16699 test -z "$ac_c_werror_flag" ||
16700 test ! -s conftest.err
16701 } && test -s conftest$ac_exeext &&
16702 $as_test_x conftest$ac_exeext; then
16703 ac_cv_func_getloadavg=yes
16705 echo "$as_me: failed program was
:" >&5
16706 sed 's/^/| /' conftest.$ac_ext >&5
16708 ac_cv_func_getloadavg=no
16711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16712 conftest$ac_exeext conftest.$ac_ext
16714 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16715 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16716 if test $ac_cv_func_getloadavg = yes; then
16721 ) && ac_have_func=yes
16723 # On HPUX9, an unprivileged user can get load averages through this function.
16725 for ac_func in pstat_getdynamic
16727 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16728 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16729 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16730 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16731 echo $ECHO_N "(cached
) $ECHO_C" >&6
16733 cat >conftest.$ac_ext <<_ACEOF
16736 cat confdefs.h >>conftest.$ac_ext
16737 cat >>conftest.$ac_ext <<_ACEOF
16738 /* end confdefs.h. */
16739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16741 #define $ac_func innocuous_$ac_func
16743 /* System header to define __stub macros and hopefully few prototypes,
16744 which can conflict with char $ac_func (); below.
16745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16746 <limits.h> exists even on freestanding compilers. */
16749 # include <limits.h>
16751 # include <assert.h>
16756 /* Override any GCC internal prototype to avoid an error.
16757 Use char because int might match the return type of a GCC
16758 builtin and then its argument prototype would still apply. */
16763 /* The GNU C library defines this for functions which it implements
16764 to always fail with ENOSYS. Some functions are actually named
16765 something starting with __ and the normal name is an alias. */
16766 #if defined __stub_$ac_func || defined __stub___$ac_func
16773 return $ac_func ();
16778 rm -f conftest.$ac_objext conftest$ac_exeext
16779 if { (ac_try="$ac_link"
16780 case "(($ac_try" in
16781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782 *) ac_try_echo=$ac_try;;
16784 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16785 (eval "$ac_link") 2>conftest.er1
16787 grep -v '^ *+' conftest.er1 >conftest.err
16789 cat conftest.err >&5
16790 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16791 (exit $ac_status); } && {
16792 test -z "$ac_c_werror_flag" ||
16793 test ! -s conftest.err
16794 } && test -s conftest$ac_exeext &&
16795 $as_test_x conftest$ac_exeext; then
16796 eval "$as_ac_var=yes"
16798 echo "$as_me: failed program was
:" >&5
16799 sed 's/^/| /' conftest.$ac_ext >&5
16801 eval "$as_ac_var=no
"
16804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16805 conftest$ac_exeext conftest.$ac_ext
16807 ac_res=`eval echo '${'$as_ac_var'}'`
16808 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16809 echo "${ECHO_T}$ac_res" >&6; }
16810 if test `eval echo '${'$as_ac_var'}'` = yes; then
16811 cat >>confdefs.h <<_ACEOF
16812 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16819 # Solaris has libkstat which does not require root.
16821 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16822 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16823 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16824 echo $ECHO_N "(cached
) $ECHO_C" >&6
16826 ac_check_lib_save_LIBS=$LIBS
16827 LIBS="-lkstat $LIBS"
16828 cat >conftest.$ac_ext <<_ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16835 /* Override any GCC internal prototype to avoid an error.
16836 Use char because int might match the return type of a GCC
16837 builtin and then its argument prototype would still apply. */
16841 char kstat_open ();
16845 return kstat_open ();
16850 rm -f conftest.$ac_objext conftest$ac_exeext
16851 if { (ac_try="$ac_link"
16852 case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_link") 2>conftest.er1
16859 grep -v '^ *+' conftest.er1 >conftest.err
16861 cat conftest.err >&5
16862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16863 (exit $ac_status); } && {
16864 test -z "$ac_c_werror_flag" ||
16865 test ! -s conftest.err
16866 } && test -s conftest$ac_exeext &&
16867 $as_test_x conftest$ac_exeext; then
16868 ac_cv_lib_kstat_kstat_open=yes
16870 echo "$as_me: failed program was
:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16873 ac_cv_lib_kstat_kstat_open=no
16876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16877 conftest$ac_exeext conftest.$ac_ext
16878 LIBS=$ac_check_lib_save_LIBS
16880 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16881 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16882 if test $ac_cv_lib_kstat_kstat_open = yes; then
16883 cat >>confdefs.h <<_ACEOF
16884 #define HAVE_LIBKSTAT 1
16887 LIBS="-lkstat $LIBS"
16891 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16893 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16894 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16895 # to get the right answer into the cache.
16896 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16897 if test $ac_have_func = no; then
16898 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16899 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16900 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16901 echo $ECHO_N "(cached
) $ECHO_C" >&6
16903 ac_check_lib_save_LIBS=$LIBS
16905 cat >conftest.$ac_ext <<_ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16912 /* Override any GCC internal prototype to avoid an error.
16913 Use char because int might match the return type of a GCC
16914 builtin and then its argument prototype would still apply. */
16922 return elf_begin ();
16927 rm -f conftest.$ac_objext conftest$ac_exeext
16928 if { (ac_try="$ac_link"
16929 case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16933 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_link") 2>conftest.er1
16936 grep -v '^ *+' conftest.er1 >conftest.err
16938 cat conftest.err >&5
16939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16940 (exit $ac_status); } && {
16941 test -z "$ac_c_werror_flag" ||
16942 test ! -s conftest.err
16943 } && test -s conftest$ac_exeext &&
16944 $as_test_x conftest$ac_exeext; then
16945 ac_cv_lib_elf_elf_begin=yes
16947 echo "$as_me: failed program was
:" >&5
16948 sed 's/^/| /' conftest.$ac_ext >&5
16950 ac_cv_lib_elf_elf_begin=no
16953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16954 conftest$ac_exeext conftest.$ac_ext
16955 LIBS=$ac_check_lib_save_LIBS
16957 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16958 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16959 if test $ac_cv_lib_elf_elf_begin = yes; then
16964 if test $ac_have_func = no; then
16965 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16966 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16967 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16968 echo $ECHO_N "(cached
) $ECHO_C" >&6
16970 ac_check_lib_save_LIBS=$LIBS
16972 cat >conftest.$ac_ext <<_ACEOF
16975 cat confdefs.h >>conftest.$ac_ext
16976 cat >>conftest.$ac_ext <<_ACEOF
16977 /* end confdefs.h. */
16979 /* Override any GCC internal prototype to avoid an error.
16980 Use char because int might match the return type of a GCC
16981 builtin and then its argument prototype would still apply. */
16989 return kvm_open ();
16994 rm -f conftest.$ac_objext conftest$ac_exeext
16995 if { (ac_try="$ac_link"
16996 case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
17000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_link") 2>conftest.er1
17003 grep -v '^ *+' conftest.er1 >conftest.err
17005 cat conftest.err >&5
17006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17007 (exit $ac_status); } && {
17008 test -z "$ac_c_werror_flag" ||
17009 test ! -s conftest.err
17010 } && test -s conftest$ac_exeext &&
17011 $as_test_x conftest$ac_exeext; then
17012 ac_cv_lib_kvm_kvm_open=yes
17014 echo "$as_me: failed program was
:" >&5
17015 sed 's/^/| /' conftest.$ac_ext >&5
17017 ac_cv_lib_kvm_kvm_open=no
17020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17021 conftest$ac_exeext conftest.$ac_ext
17022 LIBS=$ac_check_lib_save_LIBS
17024 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17025 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17026 if test $ac_cv_lib_kvm_kvm_open = yes; then
17030 # Check for the 4.4BSD definition of getloadavg.
17031 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17032 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17033 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17034 echo $ECHO_N "(cached
) $ECHO_C" >&6
17036 ac_check_lib_save_LIBS=$LIBS
17037 LIBS="-lutil $LIBS"
17038 cat >conftest.$ac_ext <<_ACEOF
17041 cat confdefs.h >>conftest.$ac_ext
17042 cat >>conftest.$ac_ext <<_ACEOF
17043 /* end confdefs.h. */
17045 /* Override any GCC internal prototype to avoid an error.
17046 Use char because int might match the return type of a GCC
17047 builtin and then its argument prototype would still apply. */
17051 char getloadavg ();
17055 return getloadavg ();
17060 rm -f conftest.$ac_objext conftest$ac_exeext
17061 if { (ac_try="$ac_link"
17062 case "(($ac_try" in
17063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064 *) ac_try_echo=$ac_try;;
17066 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17067 (eval "$ac_link") 2>conftest.er1
17069 grep -v '^ *+' conftest.er1 >conftest.err
17071 cat conftest.err >&5
17072 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17073 (exit $ac_status); } && {
17074 test -z "$ac_c_werror_flag" ||
17075 test ! -s conftest.err
17076 } && test -s conftest$ac_exeext &&
17077 $as_test_x conftest$ac_exeext; then
17078 ac_cv_lib_util_getloadavg=yes
17080 echo "$as_me: failed program was
:" >&5
17081 sed 's/^/| /' conftest.$ac_ext >&5
17083 ac_cv_lib_util_getloadavg=no
17086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17087 conftest$ac_exeext conftest.$ac_ext
17088 LIBS=$ac_check_lib_save_LIBS
17090 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17091 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17092 if test $ac_cv_lib_util_getloadavg = yes; then
17093 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17098 if test $ac_have_func = no; then
17099 # There is a commonly available library for RS/6000 AIX.
17100 # Since it is not a standard part of AIX, it might be installed locally.
17101 ac_getloadavg_LIBS=$LIBS
17102 LIBS="-L/usr
/local
/lib
$LIBS"
17103 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17104 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17105 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17106 echo $ECHO_N "(cached
) $ECHO_C" >&6
17108 ac_check_lib_save_LIBS=$LIBS
17109 LIBS="-lgetloadavg $LIBS"
17110 cat >conftest.$ac_ext <<_ACEOF
17113 cat confdefs.h >>conftest.$ac_ext
17114 cat >>conftest.$ac_ext <<_ACEOF
17115 /* end confdefs.h. */
17117 /* Override any GCC internal prototype to avoid an error.
17118 Use char because int might match the return type of a GCC
17119 builtin and then its argument prototype would still apply. */
17123 char getloadavg ();
17127 return getloadavg ();
17132 rm -f conftest.$ac_objext conftest$ac_exeext
17133 if { (ac_try="$ac_link"
17134 case "(($ac_try" in
17135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17136 *) ac_try_echo=$ac_try;;
17138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17139 (eval "$ac_link") 2>conftest.er1
17141 grep -v '^ *+' conftest.er1 >conftest.err
17143 cat conftest.err >&5
17144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17145 (exit $ac_status); } && {
17146 test -z "$ac_c_werror_flag" ||
17147 test ! -s conftest.err
17148 } && test -s conftest$ac_exeext &&
17149 $as_test_x conftest$ac_exeext; then
17150 ac_cv_lib_getloadavg_getloadavg=yes
17152 echo "$as_me: failed program was
:" >&5
17153 sed 's/^/| /' conftest.$ac_ext >&5
17155 ac_cv_lib_getloadavg_getloadavg=no
17158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17159 conftest$ac_exeext conftest.$ac_ext
17160 LIBS=$ac_check_lib_save_LIBS
17162 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17163 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17164 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17165 LIBS="-lgetloadavg $LIBS"
17167 LIBS=$ac_getloadavg_LIBS
17172 # Make sure it is really in the library, if we think we found it,
17173 # otherwise set up the replacement function.
17175 for ac_func in getloadavg
17177 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17178 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17179 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17180 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17181 echo $ECHO_N "(cached
) $ECHO_C" >&6
17183 cat >conftest.$ac_ext <<_ACEOF
17186 cat confdefs.h >>conftest.$ac_ext
17187 cat >>conftest.$ac_ext <<_ACEOF
17188 /* end confdefs.h. */
17189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17191 #define $ac_func innocuous_$ac_func
17193 /* System header to define __stub macros and hopefully few prototypes,
17194 which can conflict with char $ac_func (); below.
17195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17196 <limits.h> exists even on freestanding compilers. */
17199 # include <limits.h>
17201 # include <assert.h>
17206 /* Override any GCC internal prototype to avoid an error.
17207 Use char because int might match the return type of a GCC
17208 builtin and then its argument prototype would still apply. */
17213 /* The GNU C library defines this for functions which it implements
17214 to always fail with ENOSYS. Some functions are actually named
17215 something starting with __ and the normal name is an alias. */
17216 #if defined __stub_$ac_func || defined __stub___$ac_func
17223 return $ac_func ();
17228 rm -f conftest.$ac_objext conftest$ac_exeext
17229 if { (ac_try="$ac_link"
17230 case "(($ac_try" in
17231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17232 *) ac_try_echo=$ac_try;;
17234 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17235 (eval "$ac_link") 2>conftest.er1
17237 grep -v '^ *+' conftest.er1 >conftest.err
17239 cat conftest.err >&5
17240 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17241 (exit $ac_status); } && {
17242 test -z "$ac_c_werror_flag" ||
17243 test ! -s conftest.err
17244 } && test -s conftest$ac_exeext &&
17245 $as_test_x conftest$ac_exeext; then
17246 eval "$as_ac_var=yes"
17248 echo "$as_me: failed program was
:" >&5
17249 sed 's/^/| /' conftest.$ac_ext >&5
17251 eval "$as_ac_var=no
"
17254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17255 conftest$ac_exeext conftest.$ac_ext
17257 ac_res=`eval echo '${'$as_ac_var'}'`
17258 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17259 echo "${ECHO_T}$ac_res" >&6; }
17260 if test `eval echo '${'$as_ac_var'}'` = yes; then
17261 cat >>confdefs.h <<_ACEOF
17262 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17266 case " $LIBOBJS " in
17267 *" getloadavg.
$ac_objext "* ) ;;
17268 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17273 cat >>confdefs.h <<\_ACEOF
17274 #define C_GETLOADAVG 1
17277 # Figure out what our getloadavg.c needs.
17279 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17280 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17281 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17282 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17283 echo $ECHO_N "(cached
) $ECHO_C" >&6
17285 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17286 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17288 # Is the header compilable?
17289 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17290 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17291 cat >conftest.$ac_ext <<_ACEOF
17294 cat confdefs.h >>conftest.$ac_ext
17295 cat >>conftest.$ac_ext <<_ACEOF
17296 /* end confdefs.h. */
17297 $ac_includes_default
17298 #include <sys/dg_sys_info.h>
17300 rm -f conftest.$ac_objext
17301 if { (ac_try="$ac_compile"
17302 case "(($ac_try" in
17303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17304 *) ac_try_echo=$ac_try;;
17306 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17307 (eval "$ac_compile") 2>conftest.er1
17309 grep -v '^ *+' conftest.er1 >conftest.err
17311 cat conftest.err >&5
17312 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17313 (exit $ac_status); } && {
17314 test -z "$ac_c_werror_flag" ||
17315 test ! -s conftest.err
17316 } && test -s conftest.$ac_objext; then
17317 ac_header_compiler=yes
17319 echo "$as_me: failed program was
:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17322 ac_header_compiler=no
17325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17326 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17327 echo "${ECHO_T}$ac_header_compiler" >&6; }
17329 # Is the header present?
17330 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17331 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17332 cat >conftest.$ac_ext <<_ACEOF
17335 cat confdefs.h >>conftest.$ac_ext
17336 cat >>conftest.$ac_ext <<_ACEOF
17337 /* end confdefs.h. */
17338 #include <sys/dg_sys_info.h>
17340 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17341 case "(($ac_try" in
17342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17343 *) ac_try_echo=$ac_try;;
17345 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17346 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17348 grep -v '^ *+' conftest.er1 >conftest.err
17350 cat conftest.err >&5
17351 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17352 (exit $ac_status); } >/dev/null && {
17353 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17354 test ! -s conftest.err
17356 ac_header_preproc=yes
17358 echo "$as_me: failed program was
:" >&5
17359 sed 's/^/| /' conftest.$ac_ext >&5
17361 ac_header_preproc=no
17364 rm -f conftest.err conftest.$ac_ext
17365 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17366 echo "${ECHO_T}$ac_header_preproc" >&6; }
17368 # So? What about this header?
17369 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17371 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17372 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17373 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17374 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17375 ac_header_preproc=yes
17378 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17379 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17380 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17381 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17382 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17383 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17384 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17385 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17386 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17387 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17388 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17389 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17393 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17394 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17395 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17396 echo $ECHO_N "(cached
) $ECHO_C" >&6
17398 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17400 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17401 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17404 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17407 cat >>confdefs.h <<\_ACEOF
17412 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17413 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17414 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17415 echo $ECHO_N "(cached
) $ECHO_C" >&6
17417 ac_check_lib_save_LIBS=$LIBS
17419 cat >conftest.$ac_ext <<_ACEOF
17422 cat confdefs.h >>conftest.$ac_ext
17423 cat >>conftest.$ac_ext <<_ACEOF
17424 /* end confdefs.h. */
17426 /* Override any GCC internal prototype to avoid an error.
17427 Use char because int might match the return type of a GCC
17428 builtin and then its argument prototype would still apply. */
17432 char dg_sys_info ();
17436 return dg_sys_info ();
17441 rm -f conftest.$ac_objext conftest$ac_exeext
17442 if { (ac_try="$ac_link"
17443 case "(($ac_try" in
17444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17445 *) ac_try_echo=$ac_try;;
17447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17448 (eval "$ac_link") 2>conftest.er1
17450 grep -v '^ *+' conftest.er1 >conftest.err
17452 cat conftest.err >&5
17453 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17454 (exit $ac_status); } && {
17455 test -z "$ac_c_werror_flag" ||
17456 test ! -s conftest.err
17457 } && test -s conftest$ac_exeext &&
17458 $as_test_x conftest$ac_exeext; then
17459 ac_cv_lib_dgc_dg_sys_info=yes
17461 echo "$as_me: failed program was
:" >&5
17462 sed 's/^/| /' conftest.$ac_ext >&5
17464 ac_cv_lib_dgc_dg_sys_info=no
17467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17468 conftest$ac_exeext conftest.$ac_ext
17469 LIBS=$ac_check_lib_save_LIBS
17471 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17472 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17473 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17474 cat >>confdefs.h <<_ACEOF
17475 #define HAVE_LIBDGC 1
17486 if test "${ac_cv_header_locale_h+set}" = set; then
17487 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17488 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17489 if test "${ac_cv_header_locale_h+set}" = set; then
17490 echo $ECHO_N "(cached
) $ECHO_C" >&6
17492 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17493 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17495 # Is the header compilable?
17496 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17497 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17498 cat >conftest.$ac_ext <<_ACEOF
17501 cat confdefs.h >>conftest.$ac_ext
17502 cat >>conftest.$ac_ext <<_ACEOF
17503 /* end confdefs.h. */
17504 $ac_includes_default
17505 #include <locale.h>
17507 rm -f conftest.$ac_objext
17508 if { (ac_try="$ac_compile"
17509 case "(($ac_try" in
17510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17511 *) ac_try_echo=$ac_try;;
17513 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17514 (eval "$ac_compile") 2>conftest.er1
17516 grep -v '^ *+' conftest.er1 >conftest.err
17518 cat conftest.err >&5
17519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17520 (exit $ac_status); } && {
17521 test -z "$ac_c_werror_flag" ||
17522 test ! -s conftest.err
17523 } && test -s conftest.$ac_objext; then
17524 ac_header_compiler=yes
17526 echo "$as_me: failed program was
:" >&5
17527 sed 's/^/| /' conftest.$ac_ext >&5
17529 ac_header_compiler=no
17532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17533 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17534 echo "${ECHO_T}$ac_header_compiler" >&6; }
17536 # Is the header present?
17537 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17538 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17539 cat >conftest.$ac_ext <<_ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545 #include <locale.h>
17547 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17548 case "(($ac_try" in
17549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17550 *) ac_try_echo=$ac_try;;
17552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17553 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17555 grep -v '^ *+' conftest.er1 >conftest.err
17557 cat conftest.err >&5
17558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17559 (exit $ac_status); } >/dev/null && {
17560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17561 test ! -s conftest.err
17563 ac_header_preproc=yes
17565 echo "$as_me: failed program was
:" >&5
17566 sed 's/^/| /' conftest.$ac_ext >&5
17568 ac_header_preproc=no
17571 rm -f conftest.err conftest.$ac_ext
17572 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17573 echo "${ECHO_T}$ac_header_preproc" >&6; }
17575 # So? What about this header?
17576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17578 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17579 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17580 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17581 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17582 ac_header_preproc=yes
17585 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17586 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17587 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17588 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17589 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17590 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17591 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17592 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17593 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17594 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17595 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17596 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17600 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17601 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17602 if test "${ac_cv_header_locale_h+set}" = set; then
17603 echo $ECHO_N "(cached
) $ECHO_C" >&6
17605 ac_cv_header_locale_h=$ac_header_preproc
17607 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17608 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17614 for ac_func in setlocale
17616 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17617 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17618 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17619 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17620 echo $ECHO_N "(cached
) $ECHO_C" >&6
17622 cat >conftest.$ac_ext <<_ACEOF
17625 cat confdefs.h >>conftest.$ac_ext
17626 cat >>conftest.$ac_ext <<_ACEOF
17627 /* end confdefs.h. */
17628 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17629 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17630 #define $ac_func innocuous_$ac_func
17632 /* System header to define __stub macros and hopefully few prototypes,
17633 which can conflict with char $ac_func (); below.
17634 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17635 <limits.h> exists even on freestanding compilers. */
17638 # include <limits.h>
17640 # include <assert.h>
17645 /* Override any GCC internal prototype to avoid an error.
17646 Use char because int might match the return type of a GCC
17647 builtin and then its argument prototype would still apply. */
17652 /* The GNU C library defines this for functions which it implements
17653 to always fail with ENOSYS. Some functions are actually named
17654 something starting with __ and the normal name is an alias. */
17655 #if defined __stub_$ac_func || defined __stub___$ac_func
17662 return $ac_func ();
17667 rm -f conftest.$ac_objext conftest$ac_exeext
17668 if { (ac_try="$ac_link"
17669 case "(($ac_try" in
17670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671 *) ac_try_echo=$ac_try;;
17673 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17674 (eval "$ac_link") 2>conftest.er1
17676 grep -v '^ *+' conftest.er1 >conftest.err
17678 cat conftest.err >&5
17679 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17680 (exit $ac_status); } && {
17681 test -z "$ac_c_werror_flag" ||
17682 test ! -s conftest.err
17683 } && test -s conftest$ac_exeext &&
17684 $as_test_x conftest$ac_exeext; then
17685 eval "$as_ac_var=yes"
17687 echo "$as_me: failed program was
:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17690 eval "$as_ac_var=no
"
17693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17694 conftest$ac_exeext conftest.$ac_ext
17696 ac_res=`eval echo '${'$as_ac_var'}'`
17697 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17698 echo "${ECHO_T}$ac_res" >&6; }
17699 if test `eval echo '${'$as_ac_var'}'` = yes; then
17700 cat >>confdefs.h <<_ACEOF
17701 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17708 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17709 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17710 # Irix 4.0.5F has the header but not the library.
17711 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17714 cat >>confdefs.h <<\_ACEOF
17720 if test $ac_have_func = no; then
17721 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17722 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17723 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17724 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17725 echo $ECHO_N "(cached
) $ECHO_C" >&6
17727 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17728 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17730 # Is the header compilable?
17731 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17732 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17733 cat >conftest.$ac_ext <<_ACEOF
17736 cat confdefs.h >>conftest.$ac_ext
17737 cat >>conftest.$ac_ext <<_ACEOF
17738 /* end confdefs.h. */
17739 $ac_includes_default
17740 #include <inq_stats/cpustats.h>
17742 rm -f conftest.$ac_objext
17743 if { (ac_try="$ac_compile"
17744 case "(($ac_try" in
17745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746 *) ac_try_echo=$ac_try;;
17748 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17749 (eval "$ac_compile") 2>conftest.er1
17751 grep -v '^ *+' conftest.er1 >conftest.err
17753 cat conftest.err >&5
17754 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17755 (exit $ac_status); } && {
17756 test -z "$ac_c_werror_flag" ||
17757 test ! -s conftest.err
17758 } && test -s conftest.$ac_objext; then
17759 ac_header_compiler=yes
17761 echo "$as_me: failed program was
:" >&5
17762 sed 's/^/| /' conftest.$ac_ext >&5
17764 ac_header_compiler=no
17767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17768 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17769 echo "${ECHO_T}$ac_header_compiler" >&6; }
17771 # Is the header present?
17772 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17773 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17774 cat >conftest.$ac_ext <<_ACEOF
17777 cat confdefs.h >>conftest.$ac_ext
17778 cat >>conftest.$ac_ext <<_ACEOF
17779 /* end confdefs.h. */
17780 #include <inq_stats/cpustats.h>
17782 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17783 case "(($ac_try" in
17784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17785 *) ac_try_echo=$ac_try;;
17787 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17788 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17790 grep -v '^ *+' conftest.er1 >conftest.err
17792 cat conftest.err >&5
17793 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17794 (exit $ac_status); } >/dev/null && {
17795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17796 test ! -s conftest.err
17798 ac_header_preproc=yes
17800 echo "$as_me: failed program was
:" >&5
17801 sed 's/^/| /' conftest.$ac_ext >&5
17803 ac_header_preproc=no
17806 rm -f conftest.err conftest.$ac_ext
17807 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17808 echo "${ECHO_T}$ac_header_preproc" >&6; }
17810 # So? What about this header?
17811 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17813 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17814 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17815 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17816 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17817 ac_header_preproc=yes
17820 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17821 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17822 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17823 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17824 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17825 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17826 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17827 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17828 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17829 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17830 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17831 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17835 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17836 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17837 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17838 echo $ECHO_N "(cached
) $ECHO_C" >&6
17840 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17842 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17843 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17846 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17849 cat >>confdefs.h <<\_ACEOF
17854 cat >>confdefs.h <<\_ACEOF
17863 if test $ac_have_func = no; then
17864 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17865 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17866 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17867 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17868 echo $ECHO_N "(cached
) $ECHO_C" >&6
17870 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17871 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17873 # Is the header compilable?
17874 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17875 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17876 cat >conftest.$ac_ext <<_ACEOF
17879 cat confdefs.h >>conftest.$ac_ext
17880 cat >>conftest.$ac_ext <<_ACEOF
17881 /* end confdefs.h. */
17882 $ac_includes_default
17883 #include <sys/cpustats.h>
17885 rm -f conftest.$ac_objext
17886 if { (ac_try="$ac_compile"
17887 case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17891 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_compile") 2>conftest.er1
17894 grep -v '^ *+' conftest.er1 >conftest.err
17896 cat conftest.err >&5
17897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17898 (exit $ac_status); } && {
17899 test -z "$ac_c_werror_flag" ||
17900 test ! -s conftest.err
17901 } && test -s conftest.$ac_objext; then
17902 ac_header_compiler=yes
17904 echo "$as_me: failed program was
:" >&5
17905 sed 's/^/| /' conftest.$ac_ext >&5
17907 ac_header_compiler=no
17910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17911 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17912 echo "${ECHO_T}$ac_header_compiler" >&6; }
17914 # Is the header present?
17915 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17916 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17917 cat >conftest.$ac_ext <<_ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h. */
17923 #include <sys/cpustats.h>
17925 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17926 case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17930 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17933 grep -v '^ *+' conftest.er1 >conftest.err
17935 cat conftest.err >&5
17936 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17937 (exit $ac_status); } >/dev/null && {
17938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17939 test ! -s conftest.err
17941 ac_header_preproc=yes
17943 echo "$as_me: failed program was
:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17946 ac_header_preproc=no
17949 rm -f conftest.err conftest.$ac_ext
17950 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17951 echo "${ECHO_T}$ac_header_preproc" >&6; }
17953 # So? What about this header?
17954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17956 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17957 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17958 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17959 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17960 ac_header_preproc=yes
17963 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17964 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17965 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17966 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17967 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17968 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17969 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17970 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17971 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17972 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17973 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17974 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17978 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17979 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17980 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17981 echo $ECHO_N "(cached
) $ECHO_C" >&6
17983 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17985 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17986 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17989 if test $ac_cv_header_sys_cpustats_h = yes; then
17990 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17999 if test $ac_have_func = no; then
18001 for ac_header in mach/mach.h
18003 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18004 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18005 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18006 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18007 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18008 echo $ECHO_N "(cached
) $ECHO_C" >&6
18010 ac_res=`eval echo '${'$as_ac_Header'}'`
18011 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18012 echo "${ECHO_T}$ac_res" >&6; }
18014 # Is the header compilable?
18015 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18016 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18017 cat >conftest.$ac_ext <<_ACEOF
18020 cat confdefs.h >>conftest.$ac_ext
18021 cat >>conftest.$ac_ext <<_ACEOF
18022 /* end confdefs.h. */
18023 $ac_includes_default
18024 #include <$ac_header>
18026 rm -f conftest.$ac_objext
18027 if { (ac_try="$ac_compile"
18028 case "(($ac_try" in
18029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030 *) ac_try_echo=$ac_try;;
18032 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18033 (eval "$ac_compile") 2>conftest.er1
18035 grep -v '^ *+' conftest.er1 >conftest.err
18037 cat conftest.err >&5
18038 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18039 (exit $ac_status); } && {
18040 test -z "$ac_c_werror_flag" ||
18041 test ! -s conftest.err
18042 } && test -s conftest.$ac_objext; then
18043 ac_header_compiler=yes
18045 echo "$as_me: failed program was
:" >&5
18046 sed 's/^/| /' conftest.$ac_ext >&5
18048 ac_header_compiler=no
18051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18052 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18053 echo "${ECHO_T}$ac_header_compiler" >&6; }
18055 # Is the header present?
18056 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18057 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18058 cat >conftest.$ac_ext <<_ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h. */
18064 #include <$ac_header>
18066 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18067 case "(($ac_try" in
18068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069 *) ac_try_echo=$ac_try;;
18071 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18072 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18074 grep -v '^ *+' conftest.er1 >conftest.err
18076 cat conftest.err >&5
18077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18078 (exit $ac_status); } >/dev/null && {
18079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18080 test ! -s conftest.err
18082 ac_header_preproc=yes
18084 echo "$as_me: failed program was
:" >&5
18085 sed 's/^/| /' conftest.$ac_ext >&5
18087 ac_header_preproc=no
18090 rm -f conftest.err conftest.$ac_ext
18091 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18092 echo "${ECHO_T}$ac_header_preproc" >&6; }
18094 # So? What about this header?
18095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18097 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18098 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18099 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18101 ac_header_preproc=yes
18104 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18105 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18106 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18107 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18108 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18109 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18110 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18111 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18112 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18114 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18115 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18119 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18120 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18121 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18122 echo $ECHO_N "(cached
) $ECHO_C" >&6
18124 eval "$as_ac_Header=\
$ac_header_preproc"
18126 ac_res=`eval echo '${'$as_ac_Header'}'`
18127 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18128 echo "${ECHO_T}$ac_res" >&6; }
18131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18132 cat >>confdefs.h <<_ACEOF
18133 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18143 for ac_header in nlist.h
18145 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18146 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18147 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18148 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18149 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18150 echo $ECHO_N "(cached
) $ECHO_C" >&6
18152 ac_res=`eval echo '${'$as_ac_Header'}'`
18153 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18154 echo "${ECHO_T}$ac_res" >&6; }
18156 # Is the header compilable?
18157 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18158 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18159 cat >conftest.$ac_ext <<_ACEOF
18162 cat confdefs.h >>conftest.$ac_ext
18163 cat >>conftest.$ac_ext <<_ACEOF
18164 /* end confdefs.h. */
18165 $ac_includes_default
18166 #include <$ac_header>
18168 rm -f conftest.$ac_objext
18169 if { (ac_try="$ac_compile"
18170 case "(($ac_try" in
18171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18172 *) ac_try_echo=$ac_try;;
18174 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18175 (eval "$ac_compile") 2>conftest.er1
18177 grep -v '^ *+' conftest.er1 >conftest.err
18179 cat conftest.err >&5
18180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18181 (exit $ac_status); } && {
18182 test -z "$ac_c_werror_flag" ||
18183 test ! -s conftest.err
18184 } && test -s conftest.$ac_objext; then
18185 ac_header_compiler=yes
18187 echo "$as_me: failed program was
:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18190 ac_header_compiler=no
18193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18194 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18195 echo "${ECHO_T}$ac_header_compiler" >&6; }
18197 # Is the header present?
18198 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18199 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18200 cat >conftest.$ac_ext <<_ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18206 #include <$ac_header>
18208 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18209 case "(($ac_try" in
18210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18211 *) ac_try_echo=$ac_try;;
18213 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18214 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18216 grep -v '^ *+' conftest.er1 >conftest.err
18218 cat conftest.err >&5
18219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18220 (exit $ac_status); } >/dev/null && {
18221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18222 test ! -s conftest.err
18224 ac_header_preproc=yes
18226 echo "$as_me: failed program was
:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18229 ac_header_preproc=no
18232 rm -f conftest.err conftest.$ac_ext
18233 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18234 echo "${ECHO_T}$ac_header_preproc" >&6; }
18236 # So? What about this header?
18237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18239 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18240 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18241 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18242 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18243 ac_header_preproc=yes
18246 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18247 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18248 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18249 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18250 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18251 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18252 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18253 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18254 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18255 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18256 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18257 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18261 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18262 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18263 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18264 echo $ECHO_N "(cached
) $ECHO_C" >&6
18266 eval "$as_ac_Header=\
$ac_header_preproc"
18268 ac_res=`eval echo '${'$as_ac_Header'}'`
18269 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18270 echo "${ECHO_T}$ac_res" >&6; }
18273 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18274 cat >>confdefs.h <<_ACEOF
18275 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18277 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18278 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18279 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18280 echo $ECHO_N "(cached
) $ECHO_C" >&6
18282 cat >conftest.$ac_ext <<_ACEOF
18285 cat confdefs.h >>conftest.$ac_ext
18286 cat >>conftest.$ac_ext <<_ACEOF
18287 /* end confdefs.h. */
18293 static struct nlist ac_aggr;
18294 if (ac_aggr.n_un.n_name)
18300 rm -f conftest.$ac_objext
18301 if { (ac_try="$ac_compile"
18302 case "(($ac_try" in
18303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18304 *) ac_try_echo=$ac_try;;
18306 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18307 (eval "$ac_compile") 2>conftest.er1
18309 grep -v '^ *+' conftest.er1 >conftest.err
18311 cat conftest.err >&5
18312 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18313 (exit $ac_status); } && {
18314 test -z "$ac_c_werror_flag" ||
18315 test ! -s conftest.err
18316 } && test -s conftest.$ac_objext; then
18317 ac_cv_member_struct_nlist_n_un_n_name=yes
18319 echo "$as_me: failed program was
:" >&5
18320 sed 's/^/| /' conftest.$ac_ext >&5
18322 cat >conftest.$ac_ext <<_ACEOF
18325 cat confdefs.h >>conftest.$ac_ext
18326 cat >>conftest.$ac_ext <<_ACEOF
18327 /* end confdefs.h. */
18333 static struct nlist ac_aggr;
18334 if (sizeof ac_aggr.n_un.n_name)
18340 rm -f conftest.$ac_objext
18341 if { (ac_try="$ac_compile"
18342 case "(($ac_try" in
18343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18344 *) ac_try_echo=$ac_try;;
18346 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18347 (eval "$ac_compile") 2>conftest.er1
18349 grep -v '^ *+' conftest.er1 >conftest.err
18351 cat conftest.err >&5
18352 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18353 (exit $ac_status); } && {
18354 test -z "$ac_c_werror_flag" ||
18355 test ! -s conftest.err
18356 } && test -s conftest.$ac_objext; then
18357 ac_cv_member_struct_nlist_n_un_n_name=yes
18359 echo "$as_me: failed program was
:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18362 ac_cv_member_struct_nlist_n_un_n_name=no
18365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18370 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18371 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18372 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18374 cat >>confdefs.h <<_ACEOF
18375 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18379 cat >>confdefs.h <<\_ACEOF
18380 #define NLIST_NAME_UNION 1
18394 # Some definitions of getloadavg require that the program be installed setgid.
18395 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18396 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18397 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18398 echo $ECHO_N "(cached
) $ECHO_C" >&6
18400 cat >conftest.$ac_ext <<_ACEOF
18403 cat confdefs.h >>conftest.$ac_ext
18404 cat >>conftest.$ac_ext <<_ACEOF
18405 /* end confdefs.h. */
18406 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18407 #ifdef LDAV_PRIVILEGED
18408 Yowza Am I SETGID yet
18411 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18412 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18413 ac_cv_func_getloadavg_setgid=yes
18415 ac_cv_func_getloadavg_setgid=no
18420 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18421 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18422 if test $ac_cv_func_getloadavg_setgid = yes; then
18425 cat >>confdefs.h <<\_ACEOF
18426 #define GETLOADAVG_PRIVILEGED 1
18433 if test $ac_cv_func_getloadavg_setgid = yes; then
18434 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18435 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18436 if test "${ac_cv_group_kmem+set}" = set; then
18437 echo $ECHO_N "(cached
) $ECHO_C" >&6
18439 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18440 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18441 # If we got an error (system does not support symlinks), try without -L.
18442 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18443 ac_cv_group_kmem=`echo $ac_ls_output \
18444 | sed -ne 's/[ ][ ]*/ /g;
18445 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18449 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18450 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18451 KMEM_GROUP=$ac_cv_group_kmem
18453 if test "x
$ac_save_LIBS" = x; then
18454 GETLOADAVG_LIBS=$LIBS
18456 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18462 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18463 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18464 if test "${ac_cv_sys_largefile_source+set}" = set; then
18465 echo $ECHO_N "(cached
) $ECHO_C" >&6
18468 cat >conftest.$ac_ext <<_ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h. */
18478 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18483 rm -f conftest.$ac_objext conftest$ac_exeext
18484 if { (ac_try="$ac_link"
18485 case "(($ac_try" in
18486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18487 *) ac_try_echo=$ac_try;;
18489 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18490 (eval "$ac_link") 2>conftest.er1
18492 grep -v '^ *+' conftest.er1 >conftest.err
18494 cat conftest.err >&5
18495 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18496 (exit $ac_status); } && {
18497 test -z "$ac_c_werror_flag" ||
18498 test ! -s conftest.err
18499 } && test -s conftest$ac_exeext &&
18500 $as_test_x conftest$ac_exeext; then
18501 ac_cv_sys_largefile_source=no; break
18503 echo "$as_me: failed program was
:" >&5
18504 sed 's/^/| /' conftest.$ac_ext >&5
18509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18510 conftest$ac_exeext conftest.$ac_ext
18511 cat >conftest.$ac_ext <<_ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h. */
18517 #define _LARGEFILE_SOURCE 1
18522 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18527 rm -f conftest.$ac_objext conftest$ac_exeext
18528 if { (ac_try="$ac_link"
18529 case "(($ac_try" in
18530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531 *) ac_try_echo=$ac_try;;
18533 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18534 (eval "$ac_link") 2>conftest.er1
18536 grep -v '^ *+' conftest.er1 >conftest.err
18538 cat conftest.err >&5
18539 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18540 (exit $ac_status); } && {
18541 test -z "$ac_c_werror_flag" ||
18542 test ! -s conftest.err
18543 } && test -s conftest$ac_exeext &&
18544 $as_test_x conftest$ac_exeext; then
18545 ac_cv_sys_largefile_source=1; break
18547 echo "$as_me: failed program was
:" >&5
18548 sed 's/^/| /' conftest.$ac_ext >&5
18553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18554 conftest$ac_exeext conftest.$ac_ext
18555 ac_cv_sys_largefile_source=unknown
18559 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18560 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18561 case $ac_cv_sys_largefile_source in #(
18564 cat >>confdefs.h <<_ACEOF
18565 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18571 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18572 # in glibc 2.1.3, but that breaks too many other things.
18573 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18574 if test $ac_cv_sys_largefile_source != unknown; then
18576 cat >>confdefs.h <<\_ACEOF
18577 #define HAVE_FSEEKO 1
18583 # Configure getopt.
18584 # getopt.m4 serial 10
18586 # The getopt module assume you want GNU getopt, with getopt_long etc,
18587 # rather than vanilla POSIX getopt. This means your your code should
18588 # always include <getopt.h> for the getopt prototypes.
18600 # Prerequisites of lib/getopt*.
18607 for ac_header in getopt.h
18609 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18610 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18611 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18612 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18613 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18614 echo $ECHO_N "(cached
) $ECHO_C" >&6
18616 ac_res=`eval echo '${'$as_ac_Header'}'`
18617 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18618 echo "${ECHO_T}$ac_res" >&6; }
18620 # Is the header compilable?
18621 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18622 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18623 cat >conftest.$ac_ext <<_ACEOF
18626 cat confdefs.h >>conftest.$ac_ext
18627 cat >>conftest.$ac_ext <<_ACEOF
18628 /* end confdefs.h. */
18629 $ac_includes_default
18630 #include <$ac_header>
18632 rm -f conftest.$ac_objext
18633 if { (ac_try="$ac_compile"
18634 case "(($ac_try" in
18635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18636 *) ac_try_echo=$ac_try;;
18638 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18639 (eval "$ac_compile") 2>conftest.er1
18641 grep -v '^ *+' conftest.er1 >conftest.err
18643 cat conftest.err >&5
18644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18645 (exit $ac_status); } && {
18646 test -z "$ac_c_werror_flag" ||
18647 test ! -s conftest.err
18648 } && test -s conftest.$ac_objext; then
18649 ac_header_compiler=yes
18651 echo "$as_me: failed program was
:" >&5
18652 sed 's/^/| /' conftest.$ac_ext >&5
18654 ac_header_compiler=no
18657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18658 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18659 echo "${ECHO_T}$ac_header_compiler" >&6; }
18661 # Is the header present?
18662 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18663 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18664 cat >conftest.$ac_ext <<_ACEOF
18667 cat confdefs.h >>conftest.$ac_ext
18668 cat >>conftest.$ac_ext <<_ACEOF
18669 /* end confdefs.h. */
18670 #include <$ac_header>
18672 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18673 case "(($ac_try" in
18674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18680 grep -v '^ *+' conftest.er1 >conftest.err
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18684 (exit $ac_status); } >/dev/null && {
18685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18686 test ! -s conftest.err
18688 ac_header_preproc=yes
18690 echo "$as_me: failed program was
:" >&5
18691 sed 's/^/| /' conftest.$ac_ext >&5
18693 ac_header_preproc=no
18696 rm -f conftest.err conftest.$ac_ext
18697 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18698 echo "${ECHO_T}$ac_header_preproc" >&6; }
18700 # So? What about this header?
18701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18703 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18704 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18705 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18707 ac_header_preproc=yes
18710 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18711 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18712 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18713 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18714 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18715 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18716 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18717 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18718 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18720 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18721 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18725 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18726 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18727 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18728 echo $ECHO_N "(cached
) $ECHO_C" >&6
18730 eval "$as_ac_Header=\
$ac_header_preproc"
18732 ac_res=`eval echo '${'$as_ac_Header'}'`
18733 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18734 echo "${ECHO_T}$ac_res" >&6; }
18737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18738 cat >>confdefs.h <<_ACEOF
18739 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18748 if test -z "$GETOPT_H"; then
18750 for ac_func in getopt_long_only
18752 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18753 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18754 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18755 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18756 echo $ECHO_N "(cached
) $ECHO_C" >&6
18758 cat >conftest.$ac_ext <<_ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h. */
18764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18766 #define $ac_func innocuous_$ac_func
18768 /* System header to define __stub macros and hopefully few prototypes,
18769 which can conflict with char $ac_func (); below.
18770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18771 <limits.h> exists even on freestanding compilers. */
18774 # include <limits.h>
18776 # include <assert.h>
18781 /* Override any GCC internal prototype to avoid an error.
18782 Use char because int might match the return type of a GCC
18783 builtin and then its argument prototype would still apply. */
18788 /* The GNU C library defines this for functions which it implements
18789 to always fail with ENOSYS. Some functions are actually named
18790 something starting with __ and the normal name is an alias. */
18791 #if defined __stub_$ac_func || defined __stub___$ac_func
18798 return $ac_func ();
18803 rm -f conftest.$ac_objext conftest$ac_exeext
18804 if { (ac_try="$ac_link"
18805 case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_link") 2>conftest.er1
18812 grep -v '^ *+' conftest.er1 >conftest.err
18814 cat conftest.err >&5
18815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18816 (exit $ac_status); } && {
18817 test -z "$ac_c_werror_flag" ||
18818 test ! -s conftest.err
18819 } && test -s conftest$ac_exeext &&
18820 $as_test_x conftest$ac_exeext; then
18821 eval "$as_ac_var=yes"
18823 echo "$as_me: failed program was
:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18826 eval "$as_ac_var=no
"
18829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18830 conftest$ac_exeext conftest.$ac_ext
18832 ac_res=`eval echo '${'$as_ac_var'}'`
18833 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18834 echo "${ECHO_T}$ac_res" >&6; }
18835 if test `eval echo '${'$as_ac_var'}'` = yes; then
18836 cat >>confdefs.h <<_ACEOF
18837 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18847 if test -z "$GETOPT_H"; then
18848 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18849 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18850 if test "${ac_cv_have_decl_optreset+set}" = set; then
18851 echo $ECHO_N "(cached
) $ECHO_C" >&6
18853 cat >conftest.$ac_ext <<_ACEOF
18856 cat confdefs.h >>conftest.$ac_ext
18857 cat >>conftest.$ac_ext <<_ACEOF
18858 /* end confdefs.h. */
18859 #include <getopt.h>
18872 rm -f conftest.$ac_objext
18873 if { (ac_try="$ac_compile"
18874 case "(($ac_try" in
18875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18876 *) ac_try_echo=$ac_try;;
18878 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18879 (eval "$ac_compile") 2>conftest.er1
18881 grep -v '^ *+' conftest.er1 >conftest.err
18883 cat conftest.err >&5
18884 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18885 (exit $ac_status); } && {
18886 test -z "$ac_c_werror_flag" ||
18887 test ! -s conftest.err
18888 } && test -s conftest.$ac_objext; then
18889 ac_cv_have_decl_optreset=yes
18891 echo "$as_me: failed program was
:" >&5
18892 sed 's/^/| /' conftest.$ac_ext >&5
18894 ac_cv_have_decl_optreset=no
18897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18899 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18900 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18901 if test $ac_cv_have_decl_optreset = yes; then
18907 if test -z "$GETOPT_H"; then
18908 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18909 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18910 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18911 echo $ECHO_N "(cached
) $ECHO_C" >&6
18913 if test "$cross_compiling" = yes; then
18914 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18915 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18916 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18917 echo $ECHO_N "(cached
) $ECHO_C" >&6
18919 cat >conftest.$ac_ext <<_ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18925 #include <getopt.h>
18930 #ifndef getopt_clip
18931 (void) getopt_clip;
18938 rm -f conftest.$ac_objext
18939 if { (ac_try="$ac_compile"
18940 case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18944 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_compile") 2>conftest.er1
18947 grep -v '^ *+' conftest.er1 >conftest.err
18949 cat conftest.err >&5
18950 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18951 (exit $ac_status); } && {
18952 test -z "$ac_c_werror_flag" ||
18953 test ! -s conftest.err
18954 } && test -s conftest.$ac_objext; then
18955 ac_cv_have_decl_getopt_clip=yes
18957 echo "$as_me: failed program was
:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18960 ac_cv_have_decl_getopt_clip=no
18963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18965 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18966 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18967 if test $ac_cv_have_decl_getopt_clip = yes; then
18968 gl_cv_func_gnu_getopt=no
18970 gl_cv_func_gnu_getopt=yes
18974 cat >conftest.$ac_ext <<_ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18980 #include <getopt.h>
18986 myargv[0] = "conftest
";
18989 return getopt (2, myargv, "+a
") != '?';
18995 rm -f conftest$ac_exeext
18996 if { (ac_try="$ac_link"
18997 case "(($ac_try" in
18998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19001 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_link") 2>&5
19004 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19006 { (case "(($ac_try" in
19007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008 *) ac_try_echo=$ac_try;;
19010 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_try") 2>&5
19013 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19014 (exit $ac_status); }; }; then
19015 gl_cv_func_gnu_getopt=yes
19017 echo "$as_me: program exited with status
$ac_status" >&5
19018 echo "$as_me: failed program was
:" >&5
19019 sed 's/^/| /' conftest.$ac_ext >&5
19021 ( exit $ac_status )
19022 gl_cv_func_gnu_getopt=no
19024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19029 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19030 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19031 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19038 if test -n "$GETOPT_H"; then
19043 cat >>confdefs.h <<\_ACEOF
19044 #define __GETOPT_PREFIX rpl_
19050 GETOPTOBJS='getopt.o getopt1.o'
19057 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19058 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19059 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19060 echo $ECHO_N "(cached
) $ECHO_C" >&6
19062 # Use it with a single arg.
19063 cat >conftest.$ac_ext <<_ACEOF
19066 cat confdefs.h >>conftest.$ac_ext
19067 cat >>conftest.$ac_ext <<_ACEOF
19068 /* end confdefs.h. */
19069 $ac_includes_default
19078 rm -f conftest.$ac_objext
19079 if { (ac_try="$ac_compile"
19080 case "(($ac_try" in
19081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19082 *) ac_try_echo=$ac_try;;
19084 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19085 (eval "$ac_compile") 2>conftest.er1
19087 grep -v '^ *+' conftest.er1 >conftest.err
19089 cat conftest.err >&5
19090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19091 (exit $ac_status); } && {
19092 test -z "$ac_c_werror_flag" ||
19093 test ! -s conftest.err
19094 } && test -s conftest.$ac_objext; then
19095 ac_cv_func_getpgrp_void=no
19097 echo "$as_me: failed program was
:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19100 ac_cv_func_getpgrp_void=yes
19103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19106 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19107 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19108 if test $ac_cv_func_getpgrp_void = yes; then
19110 cat >>confdefs.h <<\_ACEOF
19111 #define GETPGRP_VOID 1
19118 for ac_func in strftime
19120 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19121 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19122 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19123 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19124 echo $ECHO_N "(cached
) $ECHO_C" >&6
19126 cat >conftest.$ac_ext <<_ACEOF
19129 cat confdefs.h >>conftest.$ac_ext
19130 cat >>conftest.$ac_ext <<_ACEOF
19131 /* end confdefs.h. */
19132 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19133 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19134 #define $ac_func innocuous_$ac_func
19136 /* System header to define __stub macros and hopefully few prototypes,
19137 which can conflict with char $ac_func (); below.
19138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19139 <limits.h> exists even on freestanding compilers. */
19142 # include <limits.h>
19144 # include <assert.h>
19149 /* Override any GCC internal prototype to avoid an error.
19150 Use char because int might match the return type of a GCC
19151 builtin and then its argument prototype would still apply. */
19156 /* The GNU C library defines this for functions which it implements
19157 to always fail with ENOSYS. Some functions are actually named
19158 something starting with __ and the normal name is an alias. */
19159 #if defined __stub_$ac_func || defined __stub___$ac_func
19166 return $ac_func ();
19171 rm -f conftest.$ac_objext conftest$ac_exeext
19172 if { (ac_try="$ac_link"
19173 case "(($ac_try" in
19174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19175 *) ac_try_echo=$ac_try;;
19177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19178 (eval "$ac_link") 2>conftest.er1
19180 grep -v '^ *+' conftest.er1 >conftest.err
19182 cat conftest.err >&5
19183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19184 (exit $ac_status); } && {
19185 test -z "$ac_c_werror_flag" ||
19186 test ! -s conftest.err
19187 } && test -s conftest$ac_exeext &&
19188 $as_test_x conftest$ac_exeext; then
19189 eval "$as_ac_var=yes"
19191 echo "$as_me: failed program was
:" >&5
19192 sed 's/^/| /' conftest.$ac_ext >&5
19194 eval "$as_ac_var=no
"
19197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19198 conftest$ac_exeext conftest.$ac_ext
19200 ac_res=`eval echo '${'$as_ac_var'}'`
19201 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19202 echo "${ECHO_T}$ac_res" >&6; }
19203 if test `eval echo '${'$as_ac_var'}'` = yes; then
19204 cat >>confdefs.h <<_ACEOF
19205 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19209 # strftime is in -lintl on SCO UNIX.
19210 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19211 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19212 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19213 echo $ECHO_N "(cached
) $ECHO_C" >&6
19215 ac_check_lib_save_LIBS=$LIBS
19216 LIBS="-lintl $LIBS"
19217 cat >conftest.$ac_ext <<_ACEOF
19220 cat confdefs.h >>conftest.$ac_ext
19221 cat >>conftest.$ac_ext <<_ACEOF
19222 /* end confdefs.h. */
19224 /* Override any GCC internal prototype to avoid an error.
19225 Use char because int might match the return type of a GCC
19226 builtin and then its argument prototype would still apply. */
19234 return strftime ();
19239 rm -f conftest.$ac_objext conftest$ac_exeext
19240 if { (ac_try="$ac_link"
19241 case "(($ac_try" in
19242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243 *) ac_try_echo=$ac_try;;
19245 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19246 (eval "$ac_link") 2>conftest.er1
19248 grep -v '^ *+' conftest.er1 >conftest.err
19250 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19252 (exit $ac_status); } && {
19253 test -z "$ac_c_werror_flag" ||
19254 test ! -s conftest.err
19255 } && test -s conftest$ac_exeext &&
19256 $as_test_x conftest$ac_exeext; then
19257 ac_cv_lib_intl_strftime=yes
19259 echo "$as_me: failed program was
:" >&5
19260 sed 's/^/| /' conftest.$ac_ext >&5
19262 ac_cv_lib_intl_strftime=no
19265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19266 conftest$ac_exeext conftest.$ac_ext
19267 LIBS=$ac_check_lib_save_LIBS
19269 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19270 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19271 if test $ac_cv_lib_intl_strftime = yes; then
19272 cat >>confdefs.h <<\_ACEOF
19273 #define HAVE_STRFTIME 1
19276 LIBS="-lintl $LIBS"
19285 for ac_func in grantpt
19287 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19288 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19289 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19290 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19291 echo $ECHO_N "(cached
) $ECHO_C" >&6
19293 cat >conftest.$ac_ext <<_ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h. */
19299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19301 #define $ac_func innocuous_$ac_func
19303 /* System header to define __stub macros and hopefully few prototypes,
19304 which can conflict with char $ac_func (); below.
19305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19306 <limits.h> exists even on freestanding compilers. */
19309 # include <limits.h>
19311 # include <assert.h>
19316 /* Override any GCC internal prototype to avoid an error.
19317 Use char because int might match the return type of a GCC
19318 builtin and then its argument prototype would still apply. */
19323 /* The GNU C library defines this for functions which it implements
19324 to always fail with ENOSYS. Some functions are actually named
19325 something starting with __ and the normal name is an alias. */
19326 #if defined __stub_$ac_func || defined __stub___$ac_func
19333 return $ac_func ();
19338 rm -f conftest.$ac_objext conftest$ac_exeext
19339 if { (ac_try="$ac_link"
19340 case "(($ac_try" in
19341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342 *) ac_try_echo=$ac_try;;
19344 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_link") 2>conftest.er1
19347 grep -v '^ *+' conftest.er1 >conftest.err
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19351 (exit $ac_status); } && {
19352 test -z "$ac_c_werror_flag" ||
19353 test ! -s conftest.err
19354 } && test -s conftest$ac_exeext &&
19355 $as_test_x conftest$ac_exeext; then
19356 eval "$as_ac_var=yes"
19358 echo "$as_me: failed program was
:" >&5
19359 sed 's/^/| /' conftest.$ac_ext >&5
19361 eval "$as_ac_var=no
"
19364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19365 conftest$ac_exeext conftest.$ac_ext
19367 ac_res=`eval echo '${'$as_ac_var'}'`
19368 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19369 echo "${ECHO_T}$ac_res" >&6; }
19370 if test `eval echo '${'$as_ac_var'}'` = yes; then
19371 cat >>confdefs.h <<_ACEOF
19372 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19379 # PTY-related GNU extensions.
19381 for ac_func in getpt
19383 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19384 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19385 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19386 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19387 echo $ECHO_N "(cached
) $ECHO_C" >&6
19389 cat >conftest.$ac_ext <<_ACEOF
19392 cat confdefs.h >>conftest.$ac_ext
19393 cat >>conftest.$ac_ext <<_ACEOF
19394 /* end confdefs.h. */
19395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19397 #define $ac_func innocuous_$ac_func
19399 /* System header to define __stub macros and hopefully few prototypes,
19400 which can conflict with char $ac_func (); below.
19401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19402 <limits.h> exists even on freestanding compilers. */
19405 # include <limits.h>
19407 # include <assert.h>
19412 /* Override any GCC internal prototype to avoid an error.
19413 Use char because int might match the return type of a GCC
19414 builtin and then its argument prototype would still apply. */
19419 /* The GNU C library defines this for functions which it implements
19420 to always fail with ENOSYS. Some functions are actually named
19421 something starting with __ and the normal name is an alias. */
19422 #if defined __stub_$ac_func || defined __stub___$ac_func
19429 return $ac_func ();
19434 rm -f conftest.$ac_objext conftest$ac_exeext
19435 if { (ac_try="$ac_link"
19436 case "(($ac_try" in
19437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19438 *) ac_try_echo=$ac_try;;
19440 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19441 (eval "$ac_link") 2>conftest.er1
19443 grep -v '^ *+' conftest.er1 >conftest.err
19445 cat conftest.err >&5
19446 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19447 (exit $ac_status); } && {
19448 test -z "$ac_c_werror_flag" ||
19449 test ! -s conftest.err
19450 } && test -s conftest$ac_exeext &&
19451 $as_test_x conftest$ac_exeext; then
19452 eval "$as_ac_var=yes"
19454 echo "$as_me: failed program was
:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19457 eval "$as_ac_var=no
"
19460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19461 conftest$ac_exeext conftest.$ac_ext
19463 ac_res=`eval echo '${'$as_ac_var'}'`
19464 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19465 echo "${ECHO_T}$ac_res" >&6; }
19466 if test `eval echo '${'$as_ac_var'}'` = yes; then
19467 cat >>confdefs.h <<_ACEOF
19468 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19475 # Check this now, so that we will NOT find the above functions in ncurses.
19476 # That is because we have not set up to link ncurses in lib-src.
19477 # It's better to believe a function is not available
19478 # than to expect to find it in ncurses.
19480 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19481 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19482 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19483 echo $ECHO_N "(cached
) $ECHO_C" >&6
19485 ac_check_lib_save_LIBS=$LIBS
19486 LIBS="-lncurses $LIBS"
19487 cat >conftest.$ac_ext <<_ACEOF
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h. */
19494 /* Override any GCC internal prototype to avoid an error.
19495 Use char because int might match the return type of a GCC
19496 builtin and then its argument prototype would still apply. */
19509 rm -f conftest.$ac_objext conftest$ac_exeext
19510 if { (ac_try="$ac_link"
19511 case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19515 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_link") 2>conftest.er1
19518 grep -v '^ *+' conftest.er1 >conftest.err
19520 cat conftest.err >&5
19521 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19522 (exit $ac_status); } && {
19523 test -z "$ac_c_werror_flag" ||
19524 test ! -s conftest.err
19525 } && test -s conftest$ac_exeext &&
19526 $as_test_x conftest$ac_exeext; then
19527 ac_cv_lib_ncurses_tparm=yes
19529 echo "$as_me: failed program was
:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19532 ac_cv_lib_ncurses_tparm=no
19535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19536 conftest$ac_exeext conftest.$ac_ext
19537 LIBS=$ac_check_lib_save_LIBS
19539 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19540 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19541 if test $ac_cv_lib_ncurses_tparm = yes; then
19542 cat >>confdefs.h <<_ACEOF
19543 #define HAVE_LIBNCURSES 1
19546 LIBS="-lncurses $LIBS"
19551 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19554 cat >conftest.$ac_ext <<_ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19560 #include <netinet/in.h>
19561 #include <arpa/nameser.h>
19562 #include <resolv.h>
19571 rm -f conftest.$ac_objext conftest$ac_exeext
19572 if { (ac_try="$ac_link"
19573 case "(($ac_try" in
19574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19575 *) ac_try_echo=$ac_try;;
19577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19578 (eval "$ac_link") 2>conftest.er1
19580 grep -v '^ *+' conftest.er1 >conftest.err
19582 cat conftest.err >&5
19583 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19584 (exit $ac_status); } && {
19585 test -z "$ac_c_werror_flag" ||
19586 test ! -s conftest.err
19587 } && test -s conftest$ac_exeext &&
19588 $as_test_x conftest$ac_exeext; then
19591 echo "$as_me: failed program was
:" >&5
19592 sed 's/^/| /' conftest.$ac_ext >&5
19597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19598 conftest$ac_exeext conftest.$ac_ext
19599 if test "$have_res_init" = no; then
19601 LIBS="$LIBS -lresolv"
19602 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19603 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19604 cat >conftest.$ac_ext <<_ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19610 #include <netinet/in.h>
19611 #include <arpa/nameser.h>
19612 #include <resolv.h>
19621 rm -f conftest.$ac_objext conftest$ac_exeext
19622 if { (ac_try="$ac_link"
19623 case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19627 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_link") 2>conftest.er1
19630 grep -v '^ *+' conftest.er1 >conftest.err
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19634 (exit $ac_status); } && {
19635 test -z "$ac_c_werror_flag" ||
19636 test ! -s conftest.err
19637 } && test -s conftest$ac_exeext &&
19638 $as_test_x conftest$ac_exeext; then
19641 echo "$as_me: failed program was
:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19648 conftest$ac_exeext conftest.$ac_ext
19649 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19650 echo "${ECHO_T}$have_res_init" >&6; }
19651 if test "$have_res_init" = yes ; then
19657 if test "$have_res_init" = yes; then
19659 cat >>confdefs.h <<\_ACEOF
19660 #define HAVE_RES_INIT 1
19665 # Do we need the Hesiod library to provide the support routines?
19666 if test "$with_hesiod" = yes ; then
19667 # Don't set $LIBS here -- see comments above.
19668 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19669 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19670 if test "${ac_cv_func_res_send+set}" = set; then
19671 echo $ECHO_N "(cached
) $ECHO_C" >&6
19673 cat >conftest.$ac_ext <<_ACEOF
19676 cat confdefs.h >>conftest.$ac_ext
19677 cat >>conftest.$ac_ext <<_ACEOF
19678 /* end confdefs.h. */
19679 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19681 #define res_send innocuous_res_send
19683 /* System header to define __stub macros and hopefully few prototypes,
19684 which can conflict with char res_send (); below.
19685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19686 <limits.h> exists even on freestanding compilers. */
19689 # include <limits.h>
19691 # include <assert.h>
19696 /* Override any GCC internal prototype to avoid an error.
19697 Use char because int might match the return type of a GCC
19698 builtin and then its argument prototype would still apply. */
19703 /* The GNU C library defines this for functions which it implements
19704 to always fail with ENOSYS. Some functions are actually named
19705 something starting with __ and the normal name is an alias. */
19706 #if defined __stub_res_send || defined __stub___res_send
19713 return res_send ();
19718 rm -f conftest.$ac_objext conftest$ac_exeext
19719 if { (ac_try="$ac_link"
19720 case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_link") 2>conftest.er1
19727 grep -v '^ *+' conftest.er1 >conftest.err
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19731 (exit $ac_status); } && {
19732 test -z "$ac_c_werror_flag" ||
19733 test ! -s conftest.err
19734 } && test -s conftest$ac_exeext &&
19735 $as_test_x conftest$ac_exeext; then
19736 ac_cv_func_res_send=yes
19738 echo "$as_me: failed program was
:" >&5
19739 sed 's/^/| /' conftest.$ac_ext >&5
19741 ac_cv_func_res_send=no
19744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19745 conftest$ac_exeext conftest.$ac_ext
19747 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19748 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19749 if test $ac_cv_func_res_send = yes; then
19752 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19753 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19754 if test "${ac_cv_func___res_send+set}" = set; then
19755 echo $ECHO_N "(cached
) $ECHO_C" >&6
19757 cat >conftest.$ac_ext <<_ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h. */
19763 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19765 #define __res_send innocuous___res_send
19767 /* System header to define __stub macros and hopefully few prototypes,
19768 which can conflict with char __res_send (); below.
19769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19770 <limits.h> exists even on freestanding compilers. */
19773 # include <limits.h>
19775 # include <assert.h>
19780 /* Override any GCC internal prototype to avoid an error.
19781 Use char because int might match the return type of a GCC
19782 builtin and then its argument prototype would still apply. */
19786 char __res_send ();
19787 /* The GNU C library defines this for functions which it implements
19788 to always fail with ENOSYS. Some functions are actually named
19789 something starting with __ and the normal name is an alias. */
19790 #if defined __stub___res_send || defined __stub_____res_send
19797 return __res_send ();
19802 rm -f conftest.$ac_objext conftest$ac_exeext
19803 if { (ac_try="$ac_link"
19804 case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19808 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_link") 2>conftest.er1
19811 grep -v '^ *+' conftest.er1 >conftest.err
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19815 (exit $ac_status); } && {
19816 test -z "$ac_c_werror_flag" ||
19817 test ! -s conftest.err
19818 } && test -s conftest$ac_exeext &&
19819 $as_test_x conftest$ac_exeext; then
19820 ac_cv_func___res_send=yes
19822 echo "$as_me: failed program was
:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19825 ac_cv_func___res_send=no
19828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19829 conftest$ac_exeext conftest.$ac_ext
19831 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19832 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19833 if test $ac_cv_func___res_send = yes; then
19836 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19837 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19838 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19839 echo $ECHO_N "(cached
) $ECHO_C" >&6
19841 ac_check_lib_save_LIBS=$LIBS
19842 LIBS="-lresolv $LIBS"
19843 cat >conftest.$ac_ext <<_ACEOF
19846 cat confdefs.h >>conftest.$ac_ext
19847 cat >>conftest.$ac_ext <<_ACEOF
19848 /* end confdefs.h. */
19850 /* Override any GCC internal prototype to avoid an error.
19851 Use char because int might match the return type of a GCC
19852 builtin and then its argument prototype would still apply. */
19860 return res_send ();
19865 rm -f conftest.$ac_objext conftest$ac_exeext
19866 if { (ac_try="$ac_link"
19867 case "(($ac_try" in
19868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869 *) ac_try_echo=$ac_try;;
19871 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19872 (eval "$ac_link") 2>conftest.er1
19874 grep -v '^ *+' conftest.er1 >conftest.err
19876 cat conftest.err >&5
19877 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19878 (exit $ac_status); } && {
19879 test -z "$ac_c_werror_flag" ||
19880 test ! -s conftest.err
19881 } && test -s conftest$ac_exeext &&
19882 $as_test_x conftest$ac_exeext; then
19883 ac_cv_lib_resolv_res_send=yes
19885 echo "$as_me: failed program was
:" >&5
19886 sed 's/^/| /' conftest.$ac_ext >&5
19888 ac_cv_lib_resolv_res_send=no
19891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19892 conftest$ac_exeext conftest.$ac_ext
19893 LIBS=$ac_check_lib_save_LIBS
19895 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19896 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19897 if test $ac_cv_lib_resolv_res_send = yes; then
19900 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19901 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19902 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19903 echo $ECHO_N "(cached
) $ECHO_C" >&6
19905 ac_check_lib_save_LIBS=$LIBS
19906 LIBS="-lresolv $LIBS"
19907 cat >conftest.$ac_ext <<_ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h. */
19914 /* Override any GCC internal prototype to avoid an error.
19915 Use char because int might match the return type of a GCC
19916 builtin and then its argument prototype would still apply. */
19920 char __res_send ();
19924 return __res_send ();
19929 rm -f conftest.$ac_objext conftest$ac_exeext
19930 if { (ac_try="$ac_link"
19931 case "(($ac_try" in
19932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933 *) ac_try_echo=$ac_try;;
19935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19936 (eval "$ac_link") 2>conftest.er1
19938 grep -v '^ *+' conftest.er1 >conftest.err
19940 cat conftest.err >&5
19941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19942 (exit $ac_status); } && {
19943 test -z "$ac_c_werror_flag" ||
19944 test ! -s conftest.err
19945 } && test -s conftest$ac_exeext &&
19946 $as_test_x conftest$ac_exeext; then
19947 ac_cv_lib_resolv___res_send=yes
19949 echo "$as_me: failed program was
:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19952 ac_cv_lib_resolv___res_send=no
19955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19956 conftest$ac_exeext conftest.$ac_ext
19957 LIBS=$ac_check_lib_save_LIBS
19959 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19960 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19961 if test $ac_cv_lib_resolv___res_send = yes; then
19971 if test "$resolv" = yes ; then
19976 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19977 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19978 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19979 echo $ECHO_N "(cached
) $ECHO_C" >&6
19981 cat >conftest.$ac_ext <<_ACEOF
19984 cat confdefs.h >>conftest.$ac_ext
19985 cat >>conftest.$ac_ext <<_ACEOF
19986 /* end confdefs.h. */
19987 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19989 #define hes_getmailhost innocuous_hes_getmailhost
19991 /* System header to define __stub macros and hopefully few prototypes,
19992 which can conflict with char hes_getmailhost (); below.
19993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19994 <limits.h> exists even on freestanding compilers. */
19997 # include <limits.h>
19999 # include <assert.h>
20002 #undef hes_getmailhost
20004 /* Override any GCC internal prototype to avoid an error.
20005 Use char because int might match the return type of a GCC
20006 builtin and then its argument prototype would still apply. */
20010 char hes_getmailhost ();
20011 /* The GNU C library defines this for functions which it implements
20012 to always fail with ENOSYS. Some functions are actually named
20013 something starting with __ and the normal name is an alias. */
20014 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20021 return hes_getmailhost ();
20026 rm -f conftest.$ac_objext conftest$ac_exeext
20027 if { (ac_try="$ac_link"
20028 case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20032 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_link") 2>conftest.er1
20035 grep -v '^ *+' conftest.er1 >conftest.err
20037 cat conftest.err >&5
20038 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20039 (exit $ac_status); } && {
20040 test -z "$ac_c_werror_flag" ||
20041 test ! -s conftest.err
20042 } && test -s conftest$ac_exeext &&
20043 $as_test_x conftest$ac_exeext; then
20044 ac_cv_func_hes_getmailhost=yes
20046 echo "$as_me: failed program was
:" >&5
20047 sed 's/^/| /' conftest.$ac_ext >&5
20049 ac_cv_func_hes_getmailhost=no
20052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20053 conftest$ac_exeext conftest.$ac_ext
20055 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20056 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20057 if test $ac_cv_func_hes_getmailhost = yes; then
20060 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20061 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20062 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20063 echo $ECHO_N "(cached
) $ECHO_C" >&6
20065 ac_check_lib_save_LIBS=$LIBS
20066 LIBS="-lhesiod $RESOLVLIB $LIBS"
20067 cat >conftest.$ac_ext <<_ACEOF
20070 cat confdefs.h >>conftest.$ac_ext
20071 cat >>conftest.$ac_ext <<_ACEOF
20072 /* end confdefs.h. */
20074 /* Override any GCC internal prototype to avoid an error.
20075 Use char because int might match the return type of a GCC
20076 builtin and then its argument prototype would still apply. */
20080 char hes_getmailhost ();
20084 return hes_getmailhost ();
20089 rm -f conftest.$ac_objext conftest$ac_exeext
20090 if { (ac_try="$ac_link"
20091 case "(($ac_try" in
20092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20093 *) ac_try_echo=$ac_try;;
20095 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20096 (eval "$ac_link") 2>conftest.er1
20098 grep -v '^ *+' conftest.er1 >conftest.err
20100 cat conftest.err >&5
20101 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20102 (exit $ac_status); } && {
20103 test -z "$ac_c_werror_flag" ||
20104 test ! -s conftest.err
20105 } && test -s conftest$ac_exeext &&
20106 $as_test_x conftest$ac_exeext; then
20107 ac_cv_lib_hesiod_hes_getmailhost=yes
20109 echo "$as_me: failed program was
:" >&5
20110 sed 's/^/| /' conftest.$ac_ext >&5
20112 ac_cv_lib_hesiod_hes_getmailhost=no
20115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20116 conftest$ac_exeext conftest.$ac_ext
20117 LIBS=$ac_check_lib_save_LIBS
20119 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20120 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20121 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20123 cat >>confdefs.h <<\_ACEOF
20124 #define HAVE_LIBHESIOD 1
20135 # Do we need libresolv (due to res_init or Hesiod)?
20136 if test "$resolv" = yes ; then
20138 cat >>confdefs.h <<\_ACEOF
20139 #define HAVE_LIBRESOLV 1
20144 # These tell us which Kerberos-related libraries to use.
20145 if test "${with_kerberos+set}" = set; then
20147 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20148 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20149 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20150 echo $ECHO_N "(cached
) $ECHO_C" >&6
20152 ac_check_lib_save_LIBS=$LIBS
20153 LIBS="-lcom_err $LIBS"
20154 cat >conftest.$ac_ext <<_ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h. */
20161 /* Override any GCC internal prototype to avoid an error.
20162 Use char because int might match the return type of a GCC
20163 builtin and then its argument prototype would still apply. */
20176 rm -f conftest.$ac_objext conftest$ac_exeext
20177 if { (ac_try="$ac_link"
20178 case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20182 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20183 (eval "$ac_link") 2>conftest.er1
20185 grep -v '^ *+' conftest.er1 >conftest.err
20187 cat conftest.err >&5
20188 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20189 (exit $ac_status); } && {
20190 test -z "$ac_c_werror_flag" ||
20191 test ! -s conftest.err
20192 } && test -s conftest$ac_exeext &&
20193 $as_test_x conftest$ac_exeext; then
20194 ac_cv_lib_com_err_com_err=yes
20196 echo "$as_me: failed program was
:" >&5
20197 sed 's/^/| /' conftest.$ac_ext >&5
20199 ac_cv_lib_com_err_com_err=no
20202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20203 conftest$ac_exeext conftest.$ac_ext
20204 LIBS=$ac_check_lib_save_LIBS
20206 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20207 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20208 if test $ac_cv_lib_com_err_com_err = yes; then
20209 cat >>confdefs.h <<_ACEOF
20210 #define HAVE_LIBCOM_ERR 1
20213 LIBS="-lcom_err $LIBS"
20218 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20219 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20220 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20221 echo $ECHO_N "(cached
) $ECHO_C" >&6
20223 ac_check_lib_save_LIBS=$LIBS
20224 LIBS="-lk5crypto $LIBS"
20225 cat >conftest.$ac_ext <<_ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20232 /* Override any GCC internal prototype to avoid an error.
20233 Use char because int might match the return type of a GCC
20234 builtin and then its argument prototype would still apply. */
20238 char mit_des_cbc_encrypt ();
20242 return mit_des_cbc_encrypt ();
20247 rm -f conftest.$ac_objext conftest$ac_exeext
20248 if { (ac_try="$ac_link"
20249 case "(($ac_try" in
20250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20251 *) ac_try_echo=$ac_try;;
20253 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20254 (eval "$ac_link") 2>conftest.er1
20256 grep -v '^ *+' conftest.er1 >conftest.err
20258 cat conftest.err >&5
20259 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20260 (exit $ac_status); } && {
20261 test -z "$ac_c_werror_flag" ||
20262 test ! -s conftest.err
20263 } && test -s conftest$ac_exeext &&
20264 $as_test_x conftest$ac_exeext; then
20265 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20267 echo "$as_me: failed program was
:" >&5
20268 sed 's/^/| /' conftest.$ac_ext >&5
20270 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20274 conftest$ac_exeext conftest.$ac_ext
20275 LIBS=$ac_check_lib_save_LIBS
20277 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20278 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20279 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20280 cat >>confdefs.h <<_ACEOF
20281 #define HAVE_LIBK5CRYPTO 1
20284 LIBS="-lk5crypto $LIBS"
20289 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20290 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20291 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20292 echo $ECHO_N "(cached
) $ECHO_C" >&6
20294 ac_check_lib_save_LIBS=$LIBS
20295 LIBS="-lcrypto $LIBS"
20296 cat >conftest.$ac_ext <<_ACEOF
20299 cat confdefs.h >>conftest.$ac_ext
20300 cat >>conftest.$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20303 /* Override any GCC internal prototype to avoid an error.
20304 Use char because int might match the return type of a GCC
20305 builtin and then its argument prototype would still apply. */
20309 char mit_des_cbc_encrypt ();
20313 return mit_des_cbc_encrypt ();
20318 rm -f conftest.$ac_objext conftest$ac_exeext
20319 if { (ac_try="$ac_link"
20320 case "(($ac_try" in
20321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20322 *) ac_try_echo=$ac_try;;
20324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20325 (eval "$ac_link") 2>conftest.er1
20327 grep -v '^ *+' conftest.er1 >conftest.err
20329 cat conftest.err >&5
20330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20331 (exit $ac_status); } && {
20332 test -z "$ac_c_werror_flag" ||
20333 test ! -s conftest.err
20334 } && test -s conftest$ac_exeext &&
20335 $as_test_x conftest$ac_exeext; then
20336 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20338 echo "$as_me: failed program was
:" >&5
20339 sed 's/^/| /' conftest.$ac_ext >&5
20341 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20345 conftest$ac_exeext conftest.$ac_ext
20346 LIBS=$ac_check_lib_save_LIBS
20348 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20349 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20350 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20351 cat >>confdefs.h <<_ACEOF
20352 #define HAVE_LIBCRYPTO 1
20355 LIBS="-lcrypto $LIBS"
20360 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20361 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20362 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20363 echo $ECHO_N "(cached
) $ECHO_C" >&6
20365 ac_check_lib_save_LIBS=$LIBS
20366 LIBS="-lkrb5 $LIBS"
20367 cat >conftest.$ac_ext <<_ACEOF
20370 cat confdefs.h >>conftest.$ac_ext
20371 cat >>conftest.$ac_ext <<_ACEOF
20372 /* end confdefs.h. */
20374 /* Override any GCC internal prototype to avoid an error.
20375 Use char because int might match the return type of a GCC
20376 builtin and then its argument prototype would still apply. */
20380 char krb5_init_context ();
20384 return krb5_init_context ();
20389 rm -f conftest.$ac_objext conftest$ac_exeext
20390 if { (ac_try="$ac_link"
20391 case "(($ac_try" in
20392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20393 *) ac_try_echo=$ac_try;;
20395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20396 (eval "$ac_link") 2>conftest.er1
20398 grep -v '^ *+' conftest.er1 >conftest.err
20400 cat conftest.err >&5
20401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20402 (exit $ac_status); } && {
20403 test -z "$ac_c_werror_flag" ||
20404 test ! -s conftest.err
20405 } && test -s conftest$ac_exeext &&
20406 $as_test_x conftest$ac_exeext; then
20407 ac_cv_lib_krb5_krb5_init_context=yes
20409 echo "$as_me: failed program was
:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20412 ac_cv_lib_krb5_krb5_init_context=no
20415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20416 conftest$ac_exeext conftest.$ac_ext
20417 LIBS=$ac_check_lib_save_LIBS
20419 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20420 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20421 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20422 cat >>confdefs.h <<_ACEOF
20423 #define HAVE_LIBKRB5 1
20426 LIBS="-lkrb5 $LIBS"
20430 if test "${with_kerberos5+set}" != set; then
20432 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20433 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20434 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20435 echo $ECHO_N "(cached
) $ECHO_C" >&6
20437 ac_check_lib_save_LIBS=$LIBS
20438 LIBS="-ldes425 $LIBS"
20439 cat >conftest.$ac_ext <<_ACEOF
20442 cat confdefs.h >>conftest.$ac_ext
20443 cat >>conftest.$ac_ext <<_ACEOF
20444 /* end confdefs.h. */
20446 /* Override any GCC internal prototype to avoid an error.
20447 Use char because int might match the return type of a GCC
20448 builtin and then its argument prototype would still apply. */
20452 char des_cbc_encrypt ();
20456 return des_cbc_encrypt ();
20461 rm -f conftest.$ac_objext conftest$ac_exeext
20462 if { (ac_try="$ac_link"
20463 case "(($ac_try" in
20464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465 *) ac_try_echo=$ac_try;;
20467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20468 (eval "$ac_link") 2>conftest.er1
20470 grep -v '^ *+' conftest.er1 >conftest.err
20472 cat conftest.err >&5
20473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20474 (exit $ac_status); } && {
20475 test -z "$ac_c_werror_flag" ||
20476 test ! -s conftest.err
20477 } && test -s conftest$ac_exeext &&
20478 $as_test_x conftest$ac_exeext; then
20479 ac_cv_lib_des425_des_cbc_encrypt=yes
20481 echo "$as_me: failed program was
:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20484 ac_cv_lib_des425_des_cbc_encrypt=no
20487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20488 conftest$ac_exeext conftest.$ac_ext
20489 LIBS=$ac_check_lib_save_LIBS
20491 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20492 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20493 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20494 cat >>confdefs.h <<_ACEOF
20495 #define HAVE_LIBDES425 1
20498 LIBS="-ldes425 $LIBS"
20502 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20503 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20504 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20505 echo $ECHO_N "(cached
) $ECHO_C" >&6
20507 ac_check_lib_save_LIBS=$LIBS
20509 cat >conftest.$ac_ext <<_ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20516 /* Override any GCC internal prototype to avoid an error.
20517 Use char because int might match the return type of a GCC
20518 builtin and then its argument prototype would still apply. */
20522 char des_cbc_encrypt ();
20526 return des_cbc_encrypt ();
20531 rm -f conftest.$ac_objext conftest$ac_exeext
20532 if { (ac_try="$ac_link"
20533 case "(($ac_try" in
20534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535 *) ac_try_echo=$ac_try;;
20537 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20538 (eval "$ac_link") 2>conftest.er1
20540 grep -v '^ *+' conftest.er1 >conftest.err
20542 cat conftest.err >&5
20543 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20544 (exit $ac_status); } && {
20545 test -z "$ac_c_werror_flag" ||
20546 test ! -s conftest.err
20547 } && test -s conftest$ac_exeext &&
20548 $as_test_x conftest$ac_exeext; then
20549 ac_cv_lib_des_des_cbc_encrypt=yes
20551 echo "$as_me: failed program was
:" >&5
20552 sed 's/^/| /' conftest.$ac_ext >&5
20554 ac_cv_lib_des_des_cbc_encrypt=no
20557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20558 conftest$ac_exeext conftest.$ac_ext
20559 LIBS=$ac_check_lib_save_LIBS
20561 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20562 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20563 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20564 cat >>confdefs.h <<_ACEOF
20565 #define HAVE_LIBDES 1
20575 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20576 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20577 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20578 echo $ECHO_N "(cached
) $ECHO_C" >&6
20580 ac_check_lib_save_LIBS=$LIBS
20581 LIBS="-lkrb4 $LIBS"
20582 cat >conftest.$ac_ext <<_ACEOF
20585 cat confdefs.h >>conftest.$ac_ext
20586 cat >>conftest.$ac_ext <<_ACEOF
20587 /* end confdefs.h. */
20589 /* Override any GCC internal prototype to avoid an error.
20590 Use char because int might match the return type of a GCC
20591 builtin and then its argument prototype would still apply. */
20595 char krb_get_cred ();
20599 return krb_get_cred ();
20604 rm -f conftest.$ac_objext conftest$ac_exeext
20605 if { (ac_try="$ac_link"
20606 case "(($ac_try" in
20607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20608 *) ac_try_echo=$ac_try;;
20610 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20611 (eval "$ac_link") 2>conftest.er1
20613 grep -v '^ *+' conftest.er1 >conftest.err
20615 cat conftest.err >&5
20616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20617 (exit $ac_status); } && {
20618 test -z "$ac_c_werror_flag" ||
20619 test ! -s conftest.err
20620 } && test -s conftest$ac_exeext &&
20621 $as_test_x conftest$ac_exeext; then
20622 ac_cv_lib_krb4_krb_get_cred=yes
20624 echo "$as_me: failed program was
:" >&5
20625 sed 's/^/| /' conftest.$ac_ext >&5
20627 ac_cv_lib_krb4_krb_get_cred=no
20630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20631 conftest$ac_exeext conftest.$ac_ext
20632 LIBS=$ac_check_lib_save_LIBS
20634 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20635 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20636 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20637 cat >>confdefs.h <<_ACEOF
20638 #define HAVE_LIBKRB4 1
20641 LIBS="-lkrb4 $LIBS"
20645 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20646 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20647 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20648 echo $ECHO_N "(cached
) $ECHO_C" >&6
20650 ac_check_lib_save_LIBS=$LIBS
20652 cat >conftest.$ac_ext <<_ACEOF
20655 cat confdefs.h >>conftest.$ac_ext
20656 cat >>conftest.$ac_ext <<_ACEOF
20657 /* end confdefs.h. */
20659 /* Override any GCC internal prototype to avoid an error.
20660 Use char because int might match the return type of a GCC
20661 builtin and then its argument prototype would still apply. */
20665 char krb_get_cred ();
20669 return krb_get_cred ();
20674 rm -f conftest.$ac_objext conftest$ac_exeext
20675 if { (ac_try="$ac_link"
20676 case "(($ac_try" in
20677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678 *) ac_try_echo=$ac_try;;
20680 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20681 (eval "$ac_link") 2>conftest.er1
20683 grep -v '^ *+' conftest.er1 >conftest.err
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20687 (exit $ac_status); } && {
20688 test -z "$ac_c_werror_flag" ||
20689 test ! -s conftest.err
20690 } && test -s conftest$ac_exeext &&
20691 $as_test_x conftest$ac_exeext; then
20692 ac_cv_lib_krb_krb_get_cred=yes
20694 echo "$as_me: failed program was
:" >&5
20695 sed 's/^/| /' conftest.$ac_ext >&5
20697 ac_cv_lib_krb_krb_get_cred=no
20700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20701 conftest$ac_exeext conftest.$ac_ext
20702 LIBS=$ac_check_lib_save_LIBS
20704 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20705 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20706 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20707 cat >>confdefs.h <<_ACEOF
20708 #define HAVE_LIBKRB 1
20719 if test "${with_kerberos5+set}" = set; then
20721 for ac_header in krb5.h
20723 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20724 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20725 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20726 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20727 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20728 echo $ECHO_N "(cached
) $ECHO_C" >&6
20730 ac_res=`eval echo '${'$as_ac_Header'}'`
20731 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20732 echo "${ECHO_T}$ac_res" >&6; }
20734 # Is the header compilable?
20735 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20736 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20737 cat >conftest.$ac_ext <<_ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h. */
20743 $ac_includes_default
20744 #include <$ac_header>
20746 rm -f conftest.$ac_objext
20747 if { (ac_try="$ac_compile"
20748 case "(($ac_try" in
20749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750 *) ac_try_echo=$ac_try;;
20752 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20753 (eval "$ac_compile") 2>conftest.er1
20755 grep -v '^ *+' conftest.er1 >conftest.err
20757 cat conftest.err >&5
20758 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20759 (exit $ac_status); } && {
20760 test -z "$ac_c_werror_flag" ||
20761 test ! -s conftest.err
20762 } && test -s conftest.$ac_objext; then
20763 ac_header_compiler=yes
20765 echo "$as_me: failed program was
:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20768 ac_header_compiler=no
20771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20772 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20773 echo "${ECHO_T}$ac_header_compiler" >&6; }
20775 # Is the header present?
20776 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20777 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20778 cat >conftest.$ac_ext <<_ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h. */
20784 #include <$ac_header>
20786 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20787 case "(($ac_try" in
20788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20789 *) ac_try_echo=$ac_try;;
20791 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20792 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20794 grep -v '^ *+' conftest.er1 >conftest.err
20796 cat conftest.err >&5
20797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20798 (exit $ac_status); } >/dev/null && {
20799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20800 test ! -s conftest.err
20802 ac_header_preproc=yes
20804 echo "$as_me: failed program was
:" >&5
20805 sed 's/^/| /' conftest.$ac_ext >&5
20807 ac_header_preproc=no
20810 rm -f conftest.err conftest.$ac_ext
20811 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20812 echo "${ECHO_T}$ac_header_preproc" >&6; }
20814 # So? What about this header?
20815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20817 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20818 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20819 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20821 ac_header_preproc=yes
20824 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20825 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20826 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20827 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20828 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20829 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20830 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20831 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20832 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20834 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20835 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20839 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20840 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20841 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20842 echo $ECHO_N "(cached
) $ECHO_C" >&6
20844 eval "$as_ac_Header=\
$ac_header_preproc"
20846 ac_res=`eval echo '${'$as_ac_Header'}'`
20847 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20848 echo "${ECHO_T}$ac_res" >&6; }
20851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20852 cat >>confdefs.h <<_ACEOF
20853 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20862 for ac_header in des.h
20864 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20865 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20866 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20867 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20868 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20869 echo $ECHO_N "(cached
) $ECHO_C" >&6
20871 ac_res=`eval echo '${'$as_ac_Header'}'`
20872 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20873 echo "${ECHO_T}$ac_res" >&6; }
20875 # Is the header compilable?
20876 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20877 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20878 cat >conftest.$ac_ext <<_ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20884 $ac_includes_default
20885 #include <$ac_header>
20887 rm -f conftest.$ac_objext
20888 if { (ac_try="$ac_compile"
20889 case "(($ac_try" in
20890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20891 *) ac_try_echo=$ac_try;;
20893 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20894 (eval "$ac_compile") 2>conftest.er1
20896 grep -v '^ *+' conftest.er1 >conftest.err
20898 cat conftest.err >&5
20899 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20900 (exit $ac_status); } && {
20901 test -z "$ac_c_werror_flag" ||
20902 test ! -s conftest.err
20903 } && test -s conftest.$ac_objext; then
20904 ac_header_compiler=yes
20906 echo "$as_me: failed program was
:" >&5
20907 sed 's/^/| /' conftest.$ac_ext >&5
20909 ac_header_compiler=no
20912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20913 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20914 echo "${ECHO_T}$ac_header_compiler" >&6; }
20916 # Is the header present?
20917 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20918 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20919 cat >conftest.$ac_ext <<_ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20925 #include <$ac_header>
20927 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20928 case "(($ac_try" in
20929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20930 *) ac_try_echo=$ac_try;;
20932 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20933 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20935 grep -v '^ *+' conftest.er1 >conftest.err
20937 cat conftest.err >&5
20938 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20939 (exit $ac_status); } >/dev/null && {
20940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20941 test ! -s conftest.err
20943 ac_header_preproc=yes
20945 echo "$as_me: failed program was
:" >&5
20946 sed 's/^/| /' conftest.$ac_ext >&5
20948 ac_header_preproc=no
20951 rm -f conftest.err conftest.$ac_ext
20952 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20953 echo "${ECHO_T}$ac_header_preproc" >&6; }
20955 # So? What about this header?
20956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20958 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20959 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20960 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20962 ac_header_preproc=yes
20965 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20966 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20967 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20968 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20969 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20970 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20971 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20972 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20973 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20975 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20976 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20980 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20981 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20982 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20983 echo $ECHO_N "(cached
) $ECHO_C" >&6
20985 eval "$as_ac_Header=\
$ac_header_preproc"
20987 ac_res=`eval echo '${'$as_ac_Header'}'`
20988 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20989 echo "${ECHO_T}$ac_res" >&6; }
20992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20993 cat >>confdefs.h <<_ACEOF
20994 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20999 for ac_header in kerberosIV/des.h
21001 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21002 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21003 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21004 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21005 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21006 echo $ECHO_N "(cached
) $ECHO_C" >&6
21008 ac_res=`eval echo '${'$as_ac_Header'}'`
21009 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21010 echo "${ECHO_T}$ac_res" >&6; }
21012 # Is the header compilable?
21013 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21014 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21015 cat >conftest.$ac_ext <<_ACEOF
21018 cat confdefs.h >>conftest.$ac_ext
21019 cat >>conftest.$ac_ext <<_ACEOF
21020 /* end confdefs.h. */
21021 $ac_includes_default
21022 #include <$ac_header>
21024 rm -f conftest.$ac_objext
21025 if { (ac_try="$ac_compile"
21026 case "(($ac_try" in
21027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028 *) ac_try_echo=$ac_try;;
21030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21031 (eval "$ac_compile") 2>conftest.er1
21033 grep -v '^ *+' conftest.er1 >conftest.err
21035 cat conftest.err >&5
21036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21037 (exit $ac_status); } && {
21038 test -z "$ac_c_werror_flag" ||
21039 test ! -s conftest.err
21040 } && test -s conftest.$ac_objext; then
21041 ac_header_compiler=yes
21043 echo "$as_me: failed program was
:" >&5
21044 sed 's/^/| /' conftest.$ac_ext >&5
21046 ac_header_compiler=no
21049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21050 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21051 echo "${ECHO_T}$ac_header_compiler" >&6; }
21053 # Is the header present?
21054 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21055 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21056 cat >conftest.$ac_ext <<_ACEOF
21059 cat confdefs.h >>conftest.$ac_ext
21060 cat >>conftest.$ac_ext <<_ACEOF
21061 /* end confdefs.h. */
21062 #include <$ac_header>
21064 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21065 case "(($ac_try" in
21066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21067 *) ac_try_echo=$ac_try;;
21069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21070 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21072 grep -v '^ *+' conftest.er1 >conftest.err
21074 cat conftest.err >&5
21075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21076 (exit $ac_status); } >/dev/null && {
21077 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21078 test ! -s conftest.err
21080 ac_header_preproc=yes
21082 echo "$as_me: failed program was
:" >&5
21083 sed 's/^/| /' conftest.$ac_ext >&5
21085 ac_header_preproc=no
21088 rm -f conftest.err conftest.$ac_ext
21089 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21090 echo "${ECHO_T}$ac_header_preproc" >&6; }
21092 # So? What about this header?
21093 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21095 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21096 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21097 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21098 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21099 ac_header_preproc=yes
21102 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21103 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21104 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21105 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21106 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21107 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21108 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21109 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21110 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21111 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21112 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21113 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21117 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21118 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21119 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21120 echo $ECHO_N "(cached
) $ECHO_C" >&6
21122 eval "$as_ac_Header=\
$ac_header_preproc"
21124 ac_res=`eval echo '${'$as_ac_Header'}'`
21125 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21126 echo "${ECHO_T}$ac_res" >&6; }
21129 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21130 cat >>confdefs.h <<_ACEOF
21131 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21136 for ac_header in kerberos/des.h
21138 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21139 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21140 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21141 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21142 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21143 echo $ECHO_N "(cached
) $ECHO_C" >&6
21145 ac_res=`eval echo '${'$as_ac_Header'}'`
21146 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21147 echo "${ECHO_T}$ac_res" >&6; }
21149 # Is the header compilable?
21150 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21151 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21152 cat >conftest.$ac_ext <<_ACEOF
21155 cat confdefs.h >>conftest.$ac_ext
21156 cat >>conftest.$ac_ext <<_ACEOF
21157 /* end confdefs.h. */
21158 $ac_includes_default
21159 #include <$ac_header>
21161 rm -f conftest.$ac_objext
21162 if { (ac_try="$ac_compile"
21163 case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_compile") 2>conftest.er1
21170 grep -v '^ *+' conftest.er1 >conftest.err
21172 cat conftest.err >&5
21173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21174 (exit $ac_status); } && {
21175 test -z "$ac_c_werror_flag" ||
21176 test ! -s conftest.err
21177 } && test -s conftest.$ac_objext; then
21178 ac_header_compiler=yes
21180 echo "$as_me: failed program was
:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21183 ac_header_compiler=no
21186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21187 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21188 echo "${ECHO_T}$ac_header_compiler" >&6; }
21190 # Is the header present?
21191 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21192 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21193 cat >conftest.$ac_ext <<_ACEOF
21196 cat confdefs.h >>conftest.$ac_ext
21197 cat >>conftest.$ac_ext <<_ACEOF
21198 /* end confdefs.h. */
21199 #include <$ac_header>
21201 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21202 case "(($ac_try" in
21203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21204 *) ac_try_echo=$ac_try;;
21206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21207 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21209 grep -v '^ *+' conftest.er1 >conftest.err
21211 cat conftest.err >&5
21212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21213 (exit $ac_status); } >/dev/null && {
21214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21215 test ! -s conftest.err
21217 ac_header_preproc=yes
21219 echo "$as_me: failed program was
:" >&5
21220 sed 's/^/| /' conftest.$ac_ext >&5
21222 ac_header_preproc=no
21225 rm -f conftest.err conftest.$ac_ext
21226 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21227 echo "${ECHO_T}$ac_header_preproc" >&6; }
21229 # So? What about this header?
21230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21232 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21233 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21234 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21235 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21236 ac_header_preproc=yes
21239 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21240 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21241 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21242 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21243 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21244 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21245 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21246 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21247 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21248 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21249 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21250 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21254 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21255 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21256 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21257 echo $ECHO_N "(cached
) $ECHO_C" >&6
21259 eval "$as_ac_Header=\
$ac_header_preproc"
21261 ac_res=`eval echo '${'$as_ac_Header'}'`
21262 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21263 echo "${ECHO_T}$ac_res" >&6; }
21266 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21267 cat >>confdefs.h <<_ACEOF
21268 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21284 for ac_header in krb.h
21286 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21287 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21288 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21289 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21290 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21291 echo $ECHO_N "(cached
) $ECHO_C" >&6
21293 ac_res=`eval echo '${'$as_ac_Header'}'`
21294 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21295 echo "${ECHO_T}$ac_res" >&6; }
21297 # Is the header compilable?
21298 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21299 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21300 cat >conftest.$ac_ext <<_ACEOF
21303 cat confdefs.h >>conftest.$ac_ext
21304 cat >>conftest.$ac_ext <<_ACEOF
21305 /* end confdefs.h. */
21306 $ac_includes_default
21307 #include <$ac_header>
21309 rm -f conftest.$ac_objext
21310 if { (ac_try="$ac_compile"
21311 case "(($ac_try" in
21312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21313 *) ac_try_echo=$ac_try;;
21315 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21316 (eval "$ac_compile") 2>conftest.er1
21318 grep -v '^ *+' conftest.er1 >conftest.err
21320 cat conftest.err >&5
21321 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21322 (exit $ac_status); } && {
21323 test -z "$ac_c_werror_flag" ||
21324 test ! -s conftest.err
21325 } && test -s conftest.$ac_objext; then
21326 ac_header_compiler=yes
21328 echo "$as_me: failed program was
:" >&5
21329 sed 's/^/| /' conftest.$ac_ext >&5
21331 ac_header_compiler=no
21334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21335 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21336 echo "${ECHO_T}$ac_header_compiler" >&6; }
21338 # Is the header present?
21339 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21340 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21341 cat >conftest.$ac_ext <<_ACEOF
21344 cat confdefs.h >>conftest.$ac_ext
21345 cat >>conftest.$ac_ext <<_ACEOF
21346 /* end confdefs.h. */
21347 #include <$ac_header>
21349 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21350 case "(($ac_try" in
21351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21352 *) ac_try_echo=$ac_try;;
21354 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21355 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21357 grep -v '^ *+' conftest.er1 >conftest.err
21359 cat conftest.err >&5
21360 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21361 (exit $ac_status); } >/dev/null && {
21362 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21363 test ! -s conftest.err
21365 ac_header_preproc=yes
21367 echo "$as_me: failed program was
:" >&5
21368 sed 's/^/| /' conftest.$ac_ext >&5
21370 ac_header_preproc=no
21373 rm -f conftest.err conftest.$ac_ext
21374 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21375 echo "${ECHO_T}$ac_header_preproc" >&6; }
21377 # So? What about this header?
21378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21380 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21381 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21382 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21384 ac_header_preproc=yes
21387 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21388 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21389 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21390 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21391 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21392 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21393 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21394 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21395 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21397 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21398 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21402 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21403 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21404 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21405 echo $ECHO_N "(cached
) $ECHO_C" >&6
21407 eval "$as_ac_Header=\
$ac_header_preproc"
21409 ac_res=`eval echo '${'$as_ac_Header'}'`
21410 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21411 echo "${ECHO_T}$ac_res" >&6; }
21414 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21415 cat >>confdefs.h <<_ACEOF
21416 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21421 for ac_header in kerberosIV/krb.h
21423 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21424 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21425 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21426 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21427 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21428 echo $ECHO_N "(cached
) $ECHO_C" >&6
21430 ac_res=`eval echo '${'$as_ac_Header'}'`
21431 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21432 echo "${ECHO_T}$ac_res" >&6; }
21434 # Is the header compilable?
21435 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21436 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21437 cat >conftest.$ac_ext <<_ACEOF
21440 cat confdefs.h >>conftest.$ac_ext
21441 cat >>conftest.$ac_ext <<_ACEOF
21442 /* end confdefs.h. */
21443 $ac_includes_default
21444 #include <$ac_header>
21446 rm -f conftest.$ac_objext
21447 if { (ac_try="$ac_compile"
21448 case "(($ac_try" in
21449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21450 *) ac_try_echo=$ac_try;;
21452 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21453 (eval "$ac_compile") 2>conftest.er1
21455 grep -v '^ *+' conftest.er1 >conftest.err
21457 cat conftest.err >&5
21458 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21459 (exit $ac_status); } && {
21460 test -z "$ac_c_werror_flag" ||
21461 test ! -s conftest.err
21462 } && test -s conftest.$ac_objext; then
21463 ac_header_compiler=yes
21465 echo "$as_me: failed program was
:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21468 ac_header_compiler=no
21471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21472 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21473 echo "${ECHO_T}$ac_header_compiler" >&6; }
21475 # Is the header present?
21476 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21477 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21478 cat >conftest.$ac_ext <<_ACEOF
21481 cat confdefs.h >>conftest.$ac_ext
21482 cat >>conftest.$ac_ext <<_ACEOF
21483 /* end confdefs.h. */
21484 #include <$ac_header>
21486 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21487 case "(($ac_try" in
21488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489 *) ac_try_echo=$ac_try;;
21491 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21492 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21494 grep -v '^ *+' conftest.er1 >conftest.err
21496 cat conftest.err >&5
21497 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21498 (exit $ac_status); } >/dev/null && {
21499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21500 test ! -s conftest.err
21502 ac_header_preproc=yes
21504 echo "$as_me: failed program was
:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21507 ac_header_preproc=no
21510 rm -f conftest.err conftest.$ac_ext
21511 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21512 echo "${ECHO_T}$ac_header_preproc" >&6; }
21514 # So? What about this header?
21515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21517 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21518 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21519 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21521 ac_header_preproc=yes
21524 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21525 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21526 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21527 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21528 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21529 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21530 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21531 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21532 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21534 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21535 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21539 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21540 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21541 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21542 echo $ECHO_N "(cached
) $ECHO_C" >&6
21544 eval "$as_ac_Header=\
$ac_header_preproc"
21546 ac_res=`eval echo '${'$as_ac_Header'}'`
21547 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21548 echo "${ECHO_T}$ac_res" >&6; }
21551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21552 cat >>confdefs.h <<_ACEOF
21553 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21558 for ac_header in kerberos/krb.h
21560 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21561 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21562 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21563 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21564 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21565 echo $ECHO_N "(cached
) $ECHO_C" >&6
21567 ac_res=`eval echo '${'$as_ac_Header'}'`
21568 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21569 echo "${ECHO_T}$ac_res" >&6; }
21571 # Is the header compilable?
21572 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21573 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21574 cat >conftest.$ac_ext <<_ACEOF
21577 cat confdefs.h >>conftest.$ac_ext
21578 cat >>conftest.$ac_ext <<_ACEOF
21579 /* end confdefs.h. */
21580 $ac_includes_default
21581 #include <$ac_header>
21583 rm -f conftest.$ac_objext
21584 if { (ac_try="$ac_compile"
21585 case "(($ac_try" in
21586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587 *) ac_try_echo=$ac_try;;
21589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21590 (eval "$ac_compile") 2>conftest.er1
21592 grep -v '^ *+' conftest.er1 >conftest.err
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21596 (exit $ac_status); } && {
21597 test -z "$ac_c_werror_flag" ||
21598 test ! -s conftest.err
21599 } && test -s conftest.$ac_objext; then
21600 ac_header_compiler=yes
21602 echo "$as_me: failed program was
:" >&5
21603 sed 's/^/| /' conftest.$ac_ext >&5
21605 ac_header_compiler=no
21608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21609 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21610 echo "${ECHO_T}$ac_header_compiler" >&6; }
21612 # Is the header present?
21613 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21614 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21615 cat >conftest.$ac_ext <<_ACEOF
21618 cat confdefs.h >>conftest.$ac_ext
21619 cat >>conftest.$ac_ext <<_ACEOF
21620 /* end confdefs.h. */
21621 #include <$ac_header>
21623 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21624 case "(($ac_try" in
21625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21626 *) ac_try_echo=$ac_try;;
21628 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21629 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21631 grep -v '^ *+' conftest.er1 >conftest.err
21633 cat conftest.err >&5
21634 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21635 (exit $ac_status); } >/dev/null && {
21636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21637 test ! -s conftest.err
21639 ac_header_preproc=yes
21641 echo "$as_me: failed program was
:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21644 ac_header_preproc=no
21647 rm -f conftest.err conftest.$ac_ext
21648 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21649 echo "${ECHO_T}$ac_header_preproc" >&6; }
21651 # So? What about this header?
21652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21654 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21655 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21656 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21657 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21658 ac_header_preproc=yes
21661 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21662 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21663 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21664 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21665 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21666 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21667 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21668 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21669 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21670 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21671 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21672 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21676 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21677 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21678 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21679 echo $ECHO_N "(cached
) $ECHO_C" >&6
21681 eval "$as_ac_Header=\
$ac_header_preproc"
21683 ac_res=`eval echo '${'$as_ac_Header'}'`
21684 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21685 echo "${ECHO_T}$ac_res" >&6; }
21688 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21689 cat >>confdefs.h <<_ACEOF
21690 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21707 for ac_header in com_err.h
21709 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21710 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21711 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21712 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21713 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21714 echo $ECHO_N "(cached
) $ECHO_C" >&6
21716 ac_res=`eval echo '${'$as_ac_Header'}'`
21717 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21718 echo "${ECHO_T}$ac_res" >&6; }
21720 # Is the header compilable?
21721 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21722 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21723 cat >conftest.$ac_ext <<_ACEOF
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h. */
21729 $ac_includes_default
21730 #include <$ac_header>
21732 rm -f conftest.$ac_objext
21733 if { (ac_try="$ac_compile"
21734 case "(($ac_try" in
21735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21736 *) ac_try_echo=$ac_try;;
21738 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21739 (eval "$ac_compile") 2>conftest.er1
21741 grep -v '^ *+' conftest.er1 >conftest.err
21743 cat conftest.err >&5
21744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21745 (exit $ac_status); } && {
21746 test -z "$ac_c_werror_flag" ||
21747 test ! -s conftest.err
21748 } && test -s conftest.$ac_objext; then
21749 ac_header_compiler=yes
21751 echo "$as_me: failed program was
:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21754 ac_header_compiler=no
21757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21758 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21759 echo "${ECHO_T}$ac_header_compiler" >&6; }
21761 # Is the header present?
21762 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21763 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21764 cat >conftest.$ac_ext <<_ACEOF
21767 cat confdefs.h >>conftest.$ac_ext
21768 cat >>conftest.$ac_ext <<_ACEOF
21769 /* end confdefs.h. */
21770 #include <$ac_header>
21772 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21773 case "(($ac_try" in
21774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21775 *) ac_try_echo=$ac_try;;
21777 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21778 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21780 grep -v '^ *+' conftest.er1 >conftest.err
21782 cat conftest.err >&5
21783 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21784 (exit $ac_status); } >/dev/null && {
21785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21786 test ! -s conftest.err
21788 ac_header_preproc=yes
21790 echo "$as_me: failed program was
:" >&5
21791 sed 's/^/| /' conftest.$ac_ext >&5
21793 ac_header_preproc=no
21796 rm -f conftest.err conftest.$ac_ext
21797 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21798 echo "${ECHO_T}$ac_header_preproc" >&6; }
21800 # So? What about this header?
21801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21803 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21804 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21805 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21807 ac_header_preproc=yes
21810 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21811 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21812 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21813 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21814 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21815 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21816 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21817 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21818 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21820 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21821 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21825 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21826 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21827 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21828 echo $ECHO_N "(cached
) $ECHO_C" >&6
21830 eval "$as_ac_Header=\
$ac_header_preproc"
21832 ac_res=`eval echo '${'$as_ac_Header'}'`
21833 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21834 echo "${ECHO_T}$ac_res" >&6; }
21837 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21838 cat >>confdefs.h <<_ACEOF
21839 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21848 # Solaris requires -lintl if you want strerror (which calls dgettext)
21849 # to return localized messages.
21851 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21852 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21853 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21854 echo $ECHO_N "(cached
) $ECHO_C" >&6
21856 ac_check_lib_save_LIBS=$LIBS
21857 LIBS="-lintl $LIBS"
21858 cat >conftest.$ac_ext <<_ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21865 /* Override any GCC internal prototype to avoid an error.
21866 Use char because int might match the return type of a GCC
21867 builtin and then its argument prototype would still apply. */
21875 return dgettext ();
21880 rm -f conftest.$ac_objext conftest$ac_exeext
21881 if { (ac_try="$ac_link"
21882 case "(($ac_try" in
21883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21884 *) ac_try_echo=$ac_try;;
21886 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21887 (eval "$ac_link") 2>conftest.er1
21889 grep -v '^ *+' conftest.er1 >conftest.err
21891 cat conftest.err >&5
21892 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21893 (exit $ac_status); } && {
21894 test -z "$ac_c_werror_flag" ||
21895 test ! -s conftest.err
21896 } && test -s conftest$ac_exeext &&
21897 $as_test_x conftest$ac_exeext; then
21898 ac_cv_lib_intl_dgettext=yes
21900 echo "$as_me: failed program was
:" >&5
21901 sed 's/^/| /' conftest.$ac_ext >&5
21903 ac_cv_lib_intl_dgettext=no
21906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21907 conftest$ac_exeext conftest.$ac_ext
21908 LIBS=$ac_check_lib_save_LIBS
21910 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21911 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21912 if test $ac_cv_lib_intl_dgettext = yes; then
21913 cat >>confdefs.h <<_ACEOF
21914 #define HAVE_LIBINTL 1
21917 LIBS="-lintl $LIBS"
21922 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21923 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21924 if test "${emacs_cv_localtime_cache+set}" = set; then
21925 echo $ECHO_N "(cached
) $ECHO_C" >&6
21927 if test x$ac_cv_func_tzset = xyes; then
21928 if test "$cross_compiling" = yes; then
21929 # If we have tzset, assume the worst when cross-compiling.
21930 emacs_cv_localtime_cache=yes
21932 cat >conftest.$ac_ext <<_ACEOF
21935 cat confdefs.h >>conftest.$ac_ext
21936 cat >>conftest.$ac_ext <<_ACEOF
21937 /* end confdefs.h. */
21939 extern char **environ;
21943 for (to = from = environ; (*to = *from); from++)
21944 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21947 char TZ_GMT0[] = "TZ
=GMT0
";
21948 char TZ_PST8[] = "TZ
=PST8
";
21951 time_t now = time ((time_t *) 0);
21952 int hour_GMT0, hour_unset;
21953 if (putenv (TZ_GMT0) != 0)
21955 hour_GMT0 = localtime (&now)->tm_hour;
21957 hour_unset = localtime (&now)->tm_hour;
21958 if (putenv (TZ_PST8) != 0)
21960 if (localtime (&now)->tm_hour == hour_GMT0)
21963 if (localtime (&now)->tm_hour != hour_unset)
21968 rm -f conftest$ac_exeext
21969 if { (ac_try="$ac_link"
21970 case "(($ac_try" in
21971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21972 *) ac_try_echo=$ac_try;;
21974 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21975 (eval "$ac_link") 2>&5
21977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21979 { (case "(($ac_try" in
21980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21981 *) ac_try_echo=$ac_try;;
21983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21984 (eval "$ac_try") 2>&5
21986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21987 (exit $ac_status); }; }; then
21988 emacs_cv_localtime_cache=no
21990 echo "$as_me: program exited with status
$ac_status" >&5
21991 echo "$as_me: failed program was
:" >&5
21992 sed 's/^/| /' conftest.$ac_ext >&5
21994 ( exit $ac_status )
21995 emacs_cv_localtime_cache=yes
21997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22002 # If we lack tzset, report that localtime does not cache TZ,
22003 # since we can't invalidate the cache if we don't have tzset.
22004 emacs_cv_localtime_cache=no
22007 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22008 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22009 if test $emacs_cv_localtime_cache = yes; then
22011 cat >>confdefs.h <<\_ACEOF
22012 #define LOCALTIME_CACHE 1
22017 if test "x
$HAVE_TIMEVAL" = xyes; then
22019 for ac_func in gettimeofday
22021 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22022 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22023 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22024 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22025 echo $ECHO_N "(cached
) $ECHO_C" >&6
22027 cat >conftest.$ac_ext <<_ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h. */
22033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22035 #define $ac_func innocuous_$ac_func
22037 /* System header to define __stub macros and hopefully few prototypes,
22038 which can conflict with char $ac_func (); below.
22039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22040 <limits.h> exists even on freestanding compilers. */
22043 # include <limits.h>
22045 # include <assert.h>
22050 /* Override any GCC internal prototype to avoid an error.
22051 Use char because int might match the return type of a GCC
22052 builtin and then its argument prototype would still apply. */
22057 /* The GNU C library defines this for functions which it implements
22058 to always fail with ENOSYS. Some functions are actually named
22059 something starting with __ and the normal name is an alias. */
22060 #if defined __stub_$ac_func || defined __stub___$ac_func
22067 return $ac_func ();
22072 rm -f conftest.$ac_objext conftest$ac_exeext
22073 if { (ac_try="$ac_link"
22074 case "(($ac_try" in
22075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22076 *) ac_try_echo=$ac_try;;
22078 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22079 (eval "$ac_link") 2>conftest.er1
22081 grep -v '^ *+' conftest.er1 >conftest.err
22083 cat conftest.err >&5
22084 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22085 (exit $ac_status); } && {
22086 test -z "$ac_c_werror_flag" ||
22087 test ! -s conftest.err
22088 } && test -s conftest$ac_exeext &&
22089 $as_test_x conftest$ac_exeext; then
22090 eval "$as_ac_var=yes"
22092 echo "$as_me: failed program was
:" >&5
22093 sed 's/^/| /' conftest.$ac_ext >&5
22095 eval "$as_ac_var=no
"
22098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22099 conftest$ac_exeext conftest.$ac_ext
22101 ac_res=`eval echo '${'$as_ac_var'}'`
22102 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22103 echo "${ECHO_T}$ac_res" >&6; }
22104 if test `eval echo '${'$as_ac_var'}'` = yes; then
22105 cat >>confdefs.h <<_ACEOF
22106 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22112 if test $ac_cv_func_gettimeofday = yes; then
22113 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22114 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22115 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22116 echo $ECHO_N "(cached
) $ECHO_C" >&6
22118 cat >conftest.$ac_ext <<_ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h. */
22125 #ifdef TIME_WITH_SYS_TIME
22126 #include <sys/time.h>
22129 #ifdef HAVE_SYS_TIME_H
22130 #include <sys/time.h>
22138 struct timeval time;
22139 gettimeofday (&time, 0);
22144 rm -f conftest.$ac_objext
22145 if { (ac_try="$ac_compile"
22146 case "(($ac_try" in
22147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22148 *) ac_try_echo=$ac_try;;
22150 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22151 (eval "$ac_compile") 2>conftest.er1
22153 grep -v '^ *+' conftest.er1 >conftest.err
22155 cat conftest.err >&5
22156 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22157 (exit $ac_status); } && {
22158 test -z "$ac_c_werror_flag" ||
22159 test ! -s conftest.err
22160 } && test -s conftest.$ac_objext; then
22161 emacs_cv_gettimeofday_two_arguments=yes
22163 echo "$as_me: failed program was
:" >&5
22164 sed 's/^/| /' conftest.$ac_ext >&5
22166 emacs_cv_gettimeofday_two_arguments=no
22169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22171 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22172 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22173 if test $emacs_cv_gettimeofday_two_arguments = no; then
22175 cat >>confdefs.h <<\_ACEOF
22176 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22184 { echo "$as_me:$LINENO: checking
for socket
" >&5
22185 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22186 if test "${ac_cv_func_socket+set}" = set; then
22187 echo $ECHO_N "(cached
) $ECHO_C" >&6
22189 cat >conftest.$ac_ext <<_ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h. */
22195 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22197 #define socket innocuous_socket
22199 /* System header to define __stub macros and hopefully few prototypes,
22200 which can conflict with char socket (); below.
22201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22202 <limits.h> exists even on freestanding compilers. */
22205 # include <limits.h>
22207 # include <assert.h>
22212 /* Override any GCC internal prototype to avoid an error.
22213 Use char because int might match the return type of a GCC
22214 builtin and then its argument prototype would still apply. */
22219 /* The GNU C library defines this for functions which it implements
22220 to always fail with ENOSYS. Some functions are actually named
22221 something starting with __ and the normal name is an alias. */
22222 #if defined __stub_socket || defined __stub___socket
22234 rm -f conftest.$ac_objext conftest$ac_exeext
22235 if { (ac_try="$ac_link"
22236 case "(($ac_try" in
22237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238 *) ac_try_echo=$ac_try;;
22240 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22241 (eval "$ac_link") 2>conftest.er1
22243 grep -v '^ *+' conftest.er1 >conftest.err
22245 cat conftest.err >&5
22246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22247 (exit $ac_status); } && {
22248 test -z "$ac_c_werror_flag" ||
22249 test ! -s conftest.err
22250 } && test -s conftest$ac_exeext &&
22251 $as_test_x conftest$ac_exeext; then
22252 ac_cv_func_socket=yes
22254 echo "$as_me: failed program was
:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22257 ac_cv_func_socket=no
22260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22261 conftest$ac_exeext conftest.$ac_ext
22263 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22264 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22265 if test $ac_cv_func_socket = yes; then
22271 if test $ok_so_far = yes; then
22272 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22273 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22274 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22275 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22276 echo $ECHO_N "(cached
) $ECHO_C" >&6
22278 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22279 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22281 # Is the header compilable?
22282 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22283 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22284 cat >conftest.$ac_ext <<_ACEOF
22287 cat confdefs.h >>conftest.$ac_ext
22288 cat >>conftest.$ac_ext <<_ACEOF
22289 /* end confdefs.h. */
22290 $ac_includes_default
22291 #include <netinet/in.h>
22293 rm -f conftest.$ac_objext
22294 if { (ac_try="$ac_compile"
22295 case "(($ac_try" in
22296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22297 *) ac_try_echo=$ac_try;;
22299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22300 (eval "$ac_compile") 2>conftest.er1
22302 grep -v '^ *+' conftest.er1 >conftest.err
22304 cat conftest.err >&5
22305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest.$ac_objext; then
22310 ac_header_compiler=yes
22312 echo "$as_me: failed program was
:" >&5
22313 sed 's/^/| /' conftest.$ac_ext >&5
22315 ac_header_compiler=no
22318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22319 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22320 echo "${ECHO_T}$ac_header_compiler" >&6; }
22322 # Is the header present?
22323 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22324 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22325 cat >conftest.$ac_ext <<_ACEOF
22328 cat confdefs.h >>conftest.$ac_ext
22329 cat >>conftest.$ac_ext <<_ACEOF
22330 /* end confdefs.h. */
22331 #include <netinet/in.h>
22333 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22334 case "(($ac_try" in
22335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22336 *) ac_try_echo=$ac_try;;
22338 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22339 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22341 grep -v '^ *+' conftest.er1 >conftest.err
22343 cat conftest.err >&5
22344 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22345 (exit $ac_status); } >/dev/null && {
22346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22347 test ! -s conftest.err
22349 ac_header_preproc=yes
22351 echo "$as_me: failed program was
:" >&5
22352 sed 's/^/| /' conftest.$ac_ext >&5
22354 ac_header_preproc=no
22357 rm -f conftest.err conftest.$ac_ext
22358 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22359 echo "${ECHO_T}$ac_header_preproc" >&6; }
22361 # So? What about this header?
22362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22364 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22365 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22366 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22367 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22368 ac_header_preproc=yes
22371 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22372 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22373 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22374 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22375 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22376 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22377 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22378 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22379 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22380 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22381 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22382 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22386 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22387 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22388 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22389 echo $ECHO_N "(cached
) $ECHO_C" >&6
22391 ac_cv_header_netinet_in_h=$ac_header_preproc
22393 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22394 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22397 if test $ac_cv_header_netinet_in_h = yes; then
22405 if test $ok_so_far = yes; then
22406 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22407 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22408 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22409 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22410 echo $ECHO_N "(cached
) $ECHO_C" >&6
22412 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22413 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22415 # Is the header compilable?
22416 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22417 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22418 cat >conftest.$ac_ext <<_ACEOF
22421 cat confdefs.h >>conftest.$ac_ext
22422 cat >>conftest.$ac_ext <<_ACEOF
22423 /* end confdefs.h. */
22424 $ac_includes_default
22425 #include <arpa/inet.h>
22427 rm -f conftest.$ac_objext
22428 if { (ac_try="$ac_compile"
22429 case "(($ac_try" in
22430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22431 *) ac_try_echo=$ac_try;;
22433 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22434 (eval "$ac_compile") 2>conftest.er1
22436 grep -v '^ *+' conftest.er1 >conftest.err
22438 cat conftest.err >&5
22439 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22440 (exit $ac_status); } && {
22441 test -z "$ac_c_werror_flag" ||
22442 test ! -s conftest.err
22443 } && test -s conftest.$ac_objext; then
22444 ac_header_compiler=yes
22446 echo "$as_me: failed program was
:" >&5
22447 sed 's/^/| /' conftest.$ac_ext >&5
22449 ac_header_compiler=no
22452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22453 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22454 echo "${ECHO_T}$ac_header_compiler" >&6; }
22456 # Is the header present?
22457 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22458 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22459 cat >conftest.$ac_ext <<_ACEOF
22462 cat confdefs.h >>conftest.$ac_ext
22463 cat >>conftest.$ac_ext <<_ACEOF
22464 /* end confdefs.h. */
22465 #include <arpa/inet.h>
22467 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22468 case "(($ac_try" in
22469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22470 *) ac_try_echo=$ac_try;;
22472 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22473 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22475 grep -v '^ *+' conftest.er1 >conftest.err
22477 cat conftest.err >&5
22478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22479 (exit $ac_status); } >/dev/null && {
22480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22481 test ! -s conftest.err
22483 ac_header_preproc=yes
22485 echo "$as_me: failed program was
:" >&5
22486 sed 's/^/| /' conftest.$ac_ext >&5
22488 ac_header_preproc=no
22491 rm -f conftest.err conftest.$ac_ext
22492 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22493 echo "${ECHO_T}$ac_header_preproc" >&6; }
22495 # So? What about this header?
22496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22498 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22499 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22500 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22501 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22502 ac_header_preproc=yes
22505 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22506 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22507 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22508 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22509 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22510 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22511 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22512 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22513 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22514 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22515 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22516 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22520 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22521 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22522 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22523 echo $ECHO_N "(cached
) $ECHO_C" >&6
22525 ac_cv_header_arpa_inet_h=$ac_header_preproc
22527 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22528 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22531 if test $ac_cv_header_arpa_inet_h = yes; then
22539 if test $ok_so_far = yes; then
22541 cat >>confdefs.h <<\_ACEOF
22542 #define HAVE_INET_SOCKETS 1
22548 for ac_header in sys/ioctl.h
22550 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22551 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22552 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22553 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22554 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22555 echo $ECHO_N "(cached
) $ECHO_C" >&6
22557 ac_res=`eval echo '${'$as_ac_Header'}'`
22558 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22559 echo "${ECHO_T}$ac_res" >&6; }
22561 # Is the header compilable?
22562 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22563 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22564 cat >conftest.$ac_ext <<_ACEOF
22567 cat confdefs.h >>conftest.$ac_ext
22568 cat >>conftest.$ac_ext <<_ACEOF
22569 /* end confdefs.h. */
22570 $ac_includes_default
22571 #include <$ac_header>
22573 rm -f conftest.$ac_objext
22574 if { (ac_try="$ac_compile"
22575 case "(($ac_try" in
22576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22577 *) ac_try_echo=$ac_try;;
22579 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22580 (eval "$ac_compile") 2>conftest.er1
22582 grep -v '^ *+' conftest.er1 >conftest.err
22584 cat conftest.err >&5
22585 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22586 (exit $ac_status); } && {
22587 test -z "$ac_c_werror_flag" ||
22588 test ! -s conftest.err
22589 } && test -s conftest.$ac_objext; then
22590 ac_header_compiler=yes
22592 echo "$as_me: failed program was
:" >&5
22593 sed 's/^/| /' conftest.$ac_ext >&5
22595 ac_header_compiler=no
22598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22599 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22600 echo "${ECHO_T}$ac_header_compiler" >&6; }
22602 # Is the header present?
22603 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22604 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22605 cat >conftest.$ac_ext <<_ACEOF
22608 cat confdefs.h >>conftest.$ac_ext
22609 cat >>conftest.$ac_ext <<_ACEOF
22610 /* end confdefs.h. */
22611 #include <$ac_header>
22613 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22614 case "(($ac_try" in
22615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616 *) ac_try_echo=$ac_try;;
22618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22619 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22621 grep -v '^ *+' conftest.er1 >conftest.err
22623 cat conftest.err >&5
22624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22625 (exit $ac_status); } >/dev/null && {
22626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22627 test ! -s conftest.err
22629 ac_header_preproc=yes
22631 echo "$as_me: failed program was
:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22634 ac_header_preproc=no
22637 rm -f conftest.err conftest.$ac_ext
22638 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22639 echo "${ECHO_T}$ac_header_preproc" >&6; }
22641 # So? What about this header?
22642 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22644 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22645 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22646 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22647 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22648 ac_header_preproc=yes
22651 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22652 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22653 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22654 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22655 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22656 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22657 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22658 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22659 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22660 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22661 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22662 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22666 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22667 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22668 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22669 echo $ECHO_N "(cached
) $ECHO_C" >&6
22671 eval "$as_ac_Header=\
$ac_header_preproc"
22673 ac_res=`eval echo '${'$as_ac_Header'}'`
22674 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22675 echo "${ECHO_T}$ac_res" >&6; }
22678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22679 cat >>confdefs.h <<_ACEOF
22680 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22688 if test -f /usr/lpp/X11/bin/smt.exp; then
22690 cat >>confdefs.h <<\_ACEOF
22691 #define HAVE_AIX_SMT_EXP 1
22696 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22697 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22698 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22699 { echo "$as_me:$LINENO: result
: yes" >&5
22700 echo "${ECHO_T}yes" >&6; }
22702 cat >>confdefs.h <<\_ACEOF
22703 #define HAVE_DEV_PTMX 1
22707 { echo "$as_me:$LINENO: result
: no
" >&5
22708 echo "${ECHO_T}no
" >&6; }
22711 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22712 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22713 if test "${ac_cv_type_pid_t+set}" = set; then
22714 echo $ECHO_N "(cached
) $ECHO_C" >&6
22716 cat >conftest.$ac_ext <<_ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22722 $ac_includes_default
22723 typedef pid_t ac__type_new_;
22727 if ((ac__type_new_ *) 0)
22729 if (sizeof (ac__type_new_))
22735 rm -f conftest.$ac_objext
22736 if { (ac_try="$ac_compile"
22737 case "(($ac_try" in
22738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739 *) ac_try_echo=$ac_try;;
22741 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22742 (eval "$ac_compile") 2>conftest.er1
22744 grep -v '^ *+' conftest.er1 >conftest.err
22746 cat conftest.err >&5
22747 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22748 (exit $ac_status); } && {
22749 test -z "$ac_c_werror_flag" ||
22750 test ! -s conftest.err
22751 } && test -s conftest.$ac_objext; then
22752 ac_cv_type_pid_t=yes
22754 echo "$as_me: failed program was
:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22757 ac_cv_type_pid_t=no
22760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22762 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22763 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22764 if test $ac_cv_type_pid_t = yes; then
22768 cat >>confdefs.h <<_ACEOF
22775 for ac_header in vfork.h
22777 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22778 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22779 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22780 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22781 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22782 echo $ECHO_N "(cached
) $ECHO_C" >&6
22784 ac_res=`eval echo '${'$as_ac_Header'}'`
22785 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22786 echo "${ECHO_T}$ac_res" >&6; }
22788 # Is the header compilable?
22789 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22790 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22791 cat >conftest.$ac_ext <<_ACEOF
22794 cat confdefs.h >>conftest.$ac_ext
22795 cat >>conftest.$ac_ext <<_ACEOF
22796 /* end confdefs.h. */
22797 $ac_includes_default
22798 #include <$ac_header>
22800 rm -f conftest.$ac_objext
22801 if { (ac_try="$ac_compile"
22802 case "(($ac_try" in
22803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22804 *) ac_try_echo=$ac_try;;
22806 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22807 (eval "$ac_compile") 2>conftest.er1
22809 grep -v '^ *+' conftest.er1 >conftest.err
22811 cat conftest.err >&5
22812 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22813 (exit $ac_status); } && {
22814 test -z "$ac_c_werror_flag" ||
22815 test ! -s conftest.err
22816 } && test -s conftest.$ac_objext; then
22817 ac_header_compiler=yes
22819 echo "$as_me: failed program was
:" >&5
22820 sed 's/^/| /' conftest.$ac_ext >&5
22822 ac_header_compiler=no
22825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22826 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22827 echo "${ECHO_T}$ac_header_compiler" >&6; }
22829 # Is the header present?
22830 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22831 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22832 cat >conftest.$ac_ext <<_ACEOF
22835 cat confdefs.h >>conftest.$ac_ext
22836 cat >>conftest.$ac_ext <<_ACEOF
22837 /* end confdefs.h. */
22838 #include <$ac_header>
22840 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22841 case "(($ac_try" in
22842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22843 *) ac_try_echo=$ac_try;;
22845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22846 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22848 grep -v '^ *+' conftest.er1 >conftest.err
22850 cat conftest.err >&5
22851 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22852 (exit $ac_status); } >/dev/null && {
22853 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22854 test ! -s conftest.err
22856 ac_header_preproc=yes
22858 echo "$as_me: failed program was
:" >&5
22859 sed 's/^/| /' conftest.$ac_ext >&5
22861 ac_header_preproc=no
22864 rm -f conftest.err conftest.$ac_ext
22865 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22866 echo "${ECHO_T}$ac_header_preproc" >&6; }
22868 # So? What about this header?
22869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22871 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22872 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22873 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22875 ac_header_preproc=yes
22878 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22879 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22880 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22881 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22882 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22883 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22884 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22885 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22886 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22888 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22889 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22893 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22894 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22895 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22896 echo $ECHO_N "(cached
) $ECHO_C" >&6
22898 eval "$as_ac_Header=\
$ac_header_preproc"
22900 ac_res=`eval echo '${'$as_ac_Header'}'`
22901 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22902 echo "${ECHO_T}$ac_res" >&6; }
22905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22906 cat >>confdefs.h <<_ACEOF
22907 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22916 for ac_func in fork vfork
22918 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22919 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22920 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22921 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22922 echo $ECHO_N "(cached
) $ECHO_C" >&6
22924 cat >conftest.$ac_ext <<_ACEOF
22927 cat confdefs.h >>conftest.$ac_ext
22928 cat >>conftest.$ac_ext <<_ACEOF
22929 /* end confdefs.h. */
22930 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22932 #define $ac_func innocuous_$ac_func
22934 /* System header to define __stub macros and hopefully few prototypes,
22935 which can conflict with char $ac_func (); below.
22936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22937 <limits.h> exists even on freestanding compilers. */
22940 # include <limits.h>
22942 # include <assert.h>
22947 /* Override any GCC internal prototype to avoid an error.
22948 Use char because int might match the return type of a GCC
22949 builtin and then its argument prototype would still apply. */
22954 /* The GNU C library defines this for functions which it implements
22955 to always fail with ENOSYS. Some functions are actually named
22956 something starting with __ and the normal name is an alias. */
22957 #if defined __stub_$ac_func || defined __stub___$ac_func
22964 return $ac_func ();
22969 rm -f conftest.$ac_objext conftest$ac_exeext
22970 if { (ac_try="$ac_link"
22971 case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22976 (eval "$ac_link") 2>conftest.er1
22978 grep -v '^ *+' conftest.er1 >conftest.err
22980 cat conftest.err >&5
22981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22982 (exit $ac_status); } && {
22983 test -z "$ac_c_werror_flag" ||
22984 test ! -s conftest.err
22985 } && test -s conftest$ac_exeext &&
22986 $as_test_x conftest$ac_exeext; then
22987 eval "$as_ac_var=yes"
22989 echo "$as_me: failed program was
:" >&5
22990 sed 's/^/| /' conftest.$ac_ext >&5
22992 eval "$as_ac_var=no
"
22995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22996 conftest$ac_exeext conftest.$ac_ext
22998 ac_res=`eval echo '${'$as_ac_var'}'`
22999 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23000 echo "${ECHO_T}$ac_res" >&6; }
23001 if test `eval echo '${'$as_ac_var'}'` = yes; then
23002 cat >>confdefs.h <<_ACEOF
23003 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23009 if test "x
$ac_cv_func_fork" = xyes; then
23010 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23011 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23012 if test "${ac_cv_func_fork_works+set}" = set; then
23013 echo $ECHO_N "(cached
) $ECHO_C" >&6
23015 if test "$cross_compiling" = yes; then
23016 ac_cv_func_fork_works=cross
23018 cat >conftest.$ac_ext <<_ACEOF
23021 cat confdefs.h >>conftest.$ac_ext
23022 cat >>conftest.$ac_ext <<_ACEOF
23023 /* end confdefs.h. */
23024 $ac_includes_default
23029 /* By Ruediger Kuhlmann. */
23030 return fork () < 0;
23036 rm -f conftest$ac_exeext
23037 if { (ac_try="$ac_link"
23038 case "(($ac_try" in
23039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23040 *) ac_try_echo=$ac_try;;
23042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23043 (eval "$ac_link") 2>&5
23045 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23046 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23047 { (case "(($ac_try" in
23048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049 *) ac_try_echo=$ac_try;;
23051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23052 (eval "$ac_try") 2>&5
23054 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23055 (exit $ac_status); }; }; then
23056 ac_cv_func_fork_works=yes
23058 echo "$as_me: program exited with status
$ac_status" >&5
23059 echo "$as_me: failed program was
:" >&5
23060 sed 's/^/| /' conftest.$ac_ext >&5
23062 ( exit $ac_status )
23063 ac_cv_func_fork_works=no
23065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23070 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23071 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23074 ac_cv_func_fork_works=$ac_cv_func_fork
23076 if test "x
$ac_cv_func_fork_works" = xcross; then
23078 *-*-amigaos* | *-*-msdosdjgpp*)
23079 # Override, as these systems have only a dummy fork() stub
23080 ac_cv_func_fork_works=no
23083 ac_cv_func_fork_works=yes
23086 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23087 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23089 ac_cv_func_vfork_works=$ac_cv_func_vfork
23090 if test "x
$ac_cv_func_vfork" = xyes; then
23091 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23092 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23093 if test "${ac_cv_func_vfork_works+set}" = set; then
23094 echo $ECHO_N "(cached
) $ECHO_C" >&6
23096 if test "$cross_compiling" = yes; then
23097 ac_cv_func_vfork_works=cross
23099 cat >conftest.$ac_ext <<_ACEOF
23102 cat confdefs.h >>conftest.$ac_ext
23103 cat >>conftest.$ac_ext <<_ACEOF
23104 /* end confdefs.h. */
23105 /* Thanks to Paul Eggert for this test. */
23106 $ac_includes_default
23107 #include <sys/wait.h>
23108 #ifdef HAVE_VFORK_H
23109 # include <vfork.h>
23111 /* On some sparc systems, changes by the child to local and incoming
23112 argument registers are propagated back to the parent. The compiler
23113 is told about this with #include <vfork.h>, but some compilers
23114 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23115 static variable whose address is put into a register that is
23116 clobbered by the vfork. */
23119 sparc_address_test (int arg)
23121 sparc_address_test (arg) int arg;
23124 static pid_t child;
23142 pid_t parent = getpid ();
23145 sparc_address_test (0);
23150 /* Here is another test for sparc vfork register problems. This
23151 test uses lots of local variables, at least as many local
23152 variables as main has allocated so far including compiler
23153 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23154 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23155 reuse the register of parent for one of the local variables,
23156 since it will think that parent can't possibly be used any more
23157 in this routine. Assigning to the local variable will thus
23158 munge parent in the parent process. */
23160 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23161 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23162 /* Convince the compiler that p..p7 are live; otherwise, it might
23163 use the same hardware register for all 8 local variables. */
23164 if (p != p1 || p != p2 || p != p3 || p != p4
23165 || p != p5 || p != p6 || p != p7)
23168 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23169 from child file descriptors. If the child closes a descriptor
23170 before it execs or exits, this munges the parent's descriptor
23171 as well. Test for this by closing stdout in the child. */
23172 _exit(close(fileno(stdout)) != 0);
23177 while (wait(&status) != child)
23180 /* Was there some problem with vforking? */
23183 /* Did the child fail? (This shouldn't happen.) */
23186 /* Did the vfork/compiler bug occur? */
23187 || parent != getpid()
23189 /* Did the file descriptor bug occur? */
23190 || fstat(fileno(stdout), &st) != 0
23195 rm -f conftest$ac_exeext
23196 if { (ac_try="$ac_link"
23197 case "(($ac_try" in
23198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23199 *) ac_try_echo=$ac_try;;
23201 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23202 (eval "$ac_link") 2>&5
23204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23205 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23206 { (case "(($ac_try" in
23207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23208 *) ac_try_echo=$ac_try;;
23210 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23211 (eval "$ac_try") 2>&5
23213 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23214 (exit $ac_status); }; }; then
23215 ac_cv_func_vfork_works=yes
23217 echo "$as_me: program exited with status
$ac_status" >&5
23218 echo "$as_me: failed program was
:" >&5
23219 sed 's/^/| /' conftest.$ac_ext >&5
23221 ( exit $ac_status )
23222 ac_cv_func_vfork_works=no
23224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23229 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23230 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23233 if test "x
$ac_cv_func_fork_works" = xcross; then
23234 ac_cv_func_vfork_works=$ac_cv_func_vfork
23235 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23236 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23239 if test "x
$ac_cv_func_vfork_works" = xyes; then
23241 cat >>confdefs.h <<\_ACEOF
23242 #define HAVE_WORKING_VFORK 1
23247 cat >>confdefs.h <<\_ACEOF
23252 if test "x
$ac_cv_func_fork_works" = xyes; then
23254 cat >>confdefs.h <<\_ACEOF
23255 #define HAVE_WORKING_FORK 1
23261 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23262 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23263 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23264 echo $ECHO_N "(cached
) $ECHO_C" >&6
23266 cat >conftest.$ac_ext <<_ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h. */
23272 #include <langinfo.h>
23276 char* cs = nl_langinfo(CODESET);
23281 rm -f conftest.$ac_objext conftest$ac_exeext
23282 if { (ac_try="$ac_link"
23283 case "(($ac_try" in
23284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23285 *) ac_try_echo=$ac_try;;
23287 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23288 (eval "$ac_link") 2>conftest.er1
23290 grep -v '^ *+' conftest.er1 >conftest.err
23292 cat conftest.err >&5
23293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23294 (exit $ac_status); } && {
23295 test -z "$ac_c_werror_flag" ||
23296 test ! -s conftest.err
23297 } && test -s conftest$ac_exeext &&
23298 $as_test_x conftest$ac_exeext; then
23299 emacs_cv_langinfo_codeset=yes
23301 echo "$as_me: failed program was
:" >&5
23302 sed 's/^/| /' conftest.$ac_ext >&5
23304 emacs_cv_langinfo_codeset=no
23307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23308 conftest$ac_exeext conftest.$ac_ext
23311 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23312 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23313 if test $emacs_cv_langinfo_codeset = yes; then
23315 cat >>confdefs.h <<\_ACEOF
23316 #define HAVE_LANGINFO_CODESET 1
23321 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23322 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23323 if test "${ac_cv_type_size_t+set}" = set; then
23324 echo $ECHO_N "(cached
) $ECHO_C" >&6
23326 cat >conftest.$ac_ext <<_ACEOF
23329 cat confdefs.h >>conftest.$ac_ext
23330 cat >>conftest.$ac_ext <<_ACEOF
23331 /* end confdefs.h. */
23332 $ac_includes_default
23333 typedef size_t ac__type_new_;
23337 if ((ac__type_new_ *) 0)
23339 if (sizeof (ac__type_new_))
23345 rm -f conftest.$ac_objext
23346 if { (ac_try="$ac_compile"
23347 case "(($ac_try" in
23348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23349 *) ac_try_echo=$ac_try;;
23351 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23352 (eval "$ac_compile") 2>conftest.er1
23354 grep -v '^ *+' conftest.er1 >conftest.err
23356 cat conftest.err >&5
23357 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23358 (exit $ac_status); } && {
23359 test -z "$ac_c_werror_flag" ||
23360 test ! -s conftest.err
23361 } && test -s conftest.$ac_objext; then
23362 ac_cv_type_size_t=yes
23364 echo "$as_me: failed program was
:" >&5
23365 sed 's/^/| /' conftest.$ac_ext >&5
23367 ac_cv_type_size_t=no
23370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23372 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23373 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23374 if test $ac_cv_type_size_t = yes; then
23376 cat >>confdefs.h <<_ACEOF
23377 #define HAVE_SIZE_T 1
23384 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23385 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23386 if test "${ac_cv_type_mbstate_t+set}" = set; then
23387 echo $ECHO_N "(cached
) $ECHO_C" >&6
23389 cat >conftest.$ac_ext <<_ACEOF
23392 cat confdefs.h >>conftest.$ac_ext
23393 cat >>conftest.$ac_ext <<_ACEOF
23394 /* end confdefs.h. */
23395 $ac_includes_default
23396 # include <wchar.h>
23400 mbstate_t x; return sizeof x;
23405 rm -f conftest.$ac_objext
23406 if { (ac_try="$ac_compile"
23407 case "(($ac_try" in
23408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23409 *) ac_try_echo=$ac_try;;
23411 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23412 (eval "$ac_compile") 2>conftest.er1
23414 grep -v '^ *+' conftest.er1 >conftest.err
23416 cat conftest.err >&5
23417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23418 (exit $ac_status); } && {
23419 test -z "$ac_c_werror_flag" ||
23420 test ! -s conftest.err
23421 } && test -s conftest.$ac_objext; then
23422 ac_cv_type_mbstate_t=yes
23424 echo "$as_me: failed program was
:" >&5
23425 sed 's/^/| /' conftest.$ac_ext >&5
23427 ac_cv_type_mbstate_t=no
23430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23432 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23433 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23434 if test $ac_cv_type_mbstate_t = yes; then
23436 cat >>confdefs.h <<\_ACEOF
23437 #define HAVE_MBSTATE_T 1
23442 cat >>confdefs.h <<\_ACEOF
23443 #define mbstate_t int
23448 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23449 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23450 if test "${emacs_cv_c_restrict+set}" = set; then
23451 echo $ECHO_N "(cached
) $ECHO_C" >&6
23453 cat >conftest.$ac_ext <<_ACEOF
23456 cat confdefs.h >>conftest.$ac_ext
23457 cat >>conftest.$ac_ext <<_ACEOF
23458 /* end confdefs.h. */
23459 void fred (int *restrict x);
23468 rm -f conftest.$ac_objext
23469 if { (ac_try="$ac_compile"
23470 case "(($ac_try" in
23471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23472 *) ac_try_echo=$ac_try;;
23474 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23475 (eval "$ac_compile") 2>conftest.er1
23477 grep -v '^ *+' conftest.er1 >conftest.err
23479 cat conftest.err >&5
23480 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23481 (exit $ac_status); } && {
23482 test -z "$ac_c_werror_flag" ||
23483 test ! -s conftest.err
23484 } && test -s conftest.$ac_objext; then
23485 emacs_cv_c_restrict=yes
23487 echo "$as_me: failed program was
:" >&5
23488 sed 's/^/| /' conftest.$ac_ext >&5
23490 cat >conftest.$ac_ext <<_ACEOF
23493 cat confdefs.h >>conftest.$ac_ext
23494 cat >>conftest.$ac_ext <<_ACEOF
23495 /* end confdefs.h. */
23496 void fred (int *__restrict x);
23505 rm -f conftest.$ac_objext
23506 if { (ac_try="$ac_compile"
23507 case "(($ac_try" in
23508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23509 *) ac_try_echo=$ac_try;;
23511 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23512 (eval "$ac_compile") 2>conftest.er1
23514 grep -v '^ *+' conftest.er1 >conftest.err
23516 cat conftest.err >&5
23517 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23518 (exit $ac_status); } && {
23519 test -z "$ac_c_werror_flag" ||
23520 test ! -s conftest.err
23521 } && test -s conftest.$ac_objext; then
23522 emacs_cv_c_restrict=__restrict
23524 echo "$as_me: failed program was
:" >&5
23525 sed 's/^/| /' conftest.$ac_ext >&5
23527 emacs_cv_c_restrict=no
23530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23535 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23536 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23537 case "$emacs_cv_c_restrict" in
23538 yes) emacs_restrict=restrict;;
23539 no) emacs_restrict="";;
23540 *) emacs_restrict="$emacs_cv_c_restrict";;
23542 if test "$emacs_restrict" != __restrict; then
23544 cat >>confdefs.h <<_ACEOF
23545 #define __restrict $emacs_restrict
23550 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23551 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23552 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23553 echo $ECHO_N "(cached
) $ECHO_C" >&6
23555 cat >conftest.$ac_ext <<_ACEOF
23558 cat confdefs.h >>conftest.$ac_ext
23559 cat >>conftest.$ac_ext <<_ACEOF
23560 /* end confdefs.h. */
23561 void fred (int x[__restrict]);
23570 rm -f conftest.$ac_objext
23571 if { (ac_try="$ac_compile"
23572 case "(($ac_try" in
23573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23574 *) ac_try_echo=$ac_try;;
23576 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23577 (eval "$ac_compile") 2>conftest.er1
23579 grep -v '^ *+' conftest.er1 >conftest.err
23581 cat conftest.err >&5
23582 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23583 (exit $ac_status); } && {
23584 test -z "$ac_c_werror_flag" ||
23585 test ! -s conftest.err
23586 } && test -s conftest.$ac_objext; then
23587 emacs_cv_c_restrict_arr=yes
23589 echo "$as_me: failed program was
:" >&5
23590 sed 's/^/| /' conftest.$ac_ext >&5
23592 emacs_cv_c_restrict_arr=no
23595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23597 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23598 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23599 if test "$emacs_cv_c_restrict_arr" = yes; then
23601 cat >>confdefs.h <<\_ACEOF
23602 #define __restrict_arr __restrict
23609 # Set up the CFLAGS for real compilation, so we can substitute it.
23610 CFLAGS="$REAL_CFLAGS"
23611 CPPFLAGS="$REAL_CPPFLAGS"
23613 #### Find out which version of Emacs this is.
23614 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23615 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23616 if test x"${version}" = x; then
23617 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23618 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23619 { (exit 1); exit 1; }; }
23622 ### Specify what sort of things we'll be editing into Makefile and config.h.
23623 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23659 cat >>confdefs.h <<_ACEOF
23660 #define EMACS_CONFIGURATION "${canonical}"
23664 cat >>confdefs.h <<_ACEOF
23665 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23669 cat >>confdefs.h <<_ACEOF
23670 #define config_machfile "${machfile}"
23674 cat >>confdefs.h <<_ACEOF
23675 #define config_opsysfile "${opsysfile}"
23679 cat >>confdefs.h <<_ACEOF
23680 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23684 cat >>confdefs.h <<_ACEOF
23685 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23689 cat >>confdefs.h <<_ACEOF
23690 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23694 cat >>confdefs.h <<_ACEOF
23695 #define UNEXEC_SRC ${UNEXEC_SRC}
23699 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23701 cat >>confdefs.h <<\_ACEOF
23702 #define HAVE_X_WINDOWS 1
23706 if test "${USE_X_TOOLKIT}" != "none
" ; then
23708 cat >>confdefs.h <<\_ACEOF
23709 #define USE_X_TOOLKIT 1
23713 if test "${HAVE_X11}" = "yes" ; then
23715 cat >>confdefs.h <<\_ACEOF
23720 if test "${HAVE_XFREE386}" = "yes" ; then
23722 cat >>confdefs.h <<\_ACEOF
23723 #define HAVE_XFREE386 1
23727 if test "${HAVE_MENUS}" = "yes" ; then
23729 cat >>confdefs.h <<\_ACEOF
23730 #define HAVE_MENUS 1
23734 if test "${GNU_MALLOC}" = "yes" ; then
23736 cat >>confdefs.h <<\_ACEOF
23737 #define GNU_MALLOC 1
23741 if test "${REL_ALLOC}" = "yes" ; then
23743 cat >>confdefs.h <<\_ACEOF
23744 #define REL_ALLOC 1
23754 #### Report on what we decided to do.
23755 #### Report GTK as a toolkit, even if it doesn't use Xt.
23756 #### It makes printing result more understandable as using GTK sets
23757 #### toolkit_scroll_bars to yes by default.
23758 if test "${HAVE_GTK}" = "yes"; then
23763 Configured
for \
`${canonical}'.
23765 Where should the build process find the source code? ${srcdir}
23766 What operating system and machine description files should Emacs use?
23767 \`${opsysfile}' and \`${machfile}'
23768 What compiler should emacs be built with?
${CC} ${CFLAGS}
23769 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23770 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23771 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23772 What window system should Emacs use?
${window_system}
23773 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23775 if test -n "${x_includes}"; then
23776 echo " Where
do we
find X Windows header files?
${x_includes}"
23778 echo " Where
do we
find X Windows header files? Standard
dirs"
23780 if test -n "${x_libraries}"; then
23781 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23783 echo " Where
do we
find X Windows libraries? Standard
dirs"
23786 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23787 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23788 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23789 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23790 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23791 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23792 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23793 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23794 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23797 if test $USE_XASSERTS = yes; then
23798 echo " Compiling with asserts turned on.
"
23799 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23803 if test "$USE_X_TOOLKIT" = GTK; then
23804 case "$canonical" in
23806 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23807 will probably get a crash on startup. If this happens
, please use another
23808 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23814 if test "$HAVE_CARBON" = "yes"; then
23816 echo "Warning
: The Mac Carbon port is currently unsupported and has
23817 known problems. It is not recommended
for use by non-developers.
23818 Read the emacs-devel archives
for more information.
"
23823 # Remove any trailing slashes in these variables.
23824 test "${prefix}" != NONE &&
23825 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23826 test "${exec_prefix}" != NONE &&
23827 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23829 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23830 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23831 ## from Makefile.c can correctly provide the arg `-traditional' to the
23834 cat >conftest.$ac_ext <<_ACEOF
23837 cat confdefs.h >>conftest.$ac_ext
23838 cat >>conftest.$ac_ext <<_ACEOF
23839 /* end confdefs.h. */
23842 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23843 $EGREP "yes..
yes" >/dev/null 2>&1; then
23844 CPP_NEED_TRADITIONAL=no
23846 CPP_NEED_TRADITIONAL=yes
23851 ac_config_files="$ac_config_files Makefile lib-src
/Makefile.c
:lib-src
/Makefile.
in oldXMenu
/Makefile
doc
/emacs
/Makefile
doc
/misc
/Makefile
doc
/lispintro
/Makefile
doc
/lispref
/Makefile src
/Makefile.c
:src
/Makefile.
in lwlib
/Makefile lisp
/Makefile leim
/Makefile
"
23853 ac_config_commands="$ac_config_commands default
"
23855 cat >confcache <<\_ACEOF
23856 # This file is a shell script that caches the results of configure
23857 # tests run on this system so they can be shared between configure
23858 # scripts and configure runs, see configure's option --config-cache.
23859 # It is not useful on other systems. If it contains results you don't
23860 # want to keep, you may remove or edit it.
23862 # config.status only pays attention to the cache file if you give it
23863 # the --recheck option to rerun configure.
23865 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23866 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23867 # following values.
23871 # The following way of writing the cache mishandles newlines in values,
23872 # but we know of no workaround that is simple, portable, and efficient.
23873 # So, we kill variables containing newlines.
23874 # Ultrix sh set writes to stderr and can't be redirected directly,
23875 # and sets the high bit in the cache file unless we assign to the vars.
23877 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23878 eval ac_val=\$$ac_var
23882 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23883 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23886 _ | IFS | as_nl) ;; #(
23887 *) $as_unset $ac_var ;;
23893 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23894 *${as_nl}ac_space=\ *)
23895 # `set' does not quote correctly, so add quotes (double-quote
23896 # substitution turns \\\\ into \\, and sed turns \\ into \).
23899 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23902 # `set' quotes correctly as required by POSIX, so do not add quotes.
23903 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23912 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23914 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23916 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23917 if test -w "$cache_file"; then
23918 test "x
$cache_file" != "x
/dev
/null
" &&
23919 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23920 echo "$as_me: updating cache
$cache_file" >&6;}
23921 cat confcache >$cache_file
23923 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23924 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23929 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23930 # Let make expand exec_prefix.
23931 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23933 DEFS=-DHAVE_CONFIG_H
23937 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23938 # 1. Remove the extension, and $U if already installed.
23939 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23940 ac_i=`echo "$ac_i" | sed "$ac_script"`
23941 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23942 # will be set to the directory where LIBOBJS objects are built.
23943 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23944 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23946 LIBOBJS=$ac_libobjs
23948 LTLIBOBJS=$ac_ltlibobjs
23952 : ${CONFIG_STATUS=./config.status}
23953 ac_clean_files_save=$ac_clean_files
23954 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23955 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23956 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23957 cat >$CONFIG_STATUS <<_ACEOF
23959 # Generated by $as_me.
23960 # Run this file to recreate the current configuration.
23961 # Compiler output produced by configure, useful for debugging
23962 # configure, is in config.log if it exists.
23965 ac_cs_recheck=false
23967 SHELL=\${CONFIG_SHELL-$SHELL}
23970 cat >>$CONFIG_STATUS <<\_ACEOF
23971 ## --------------------- ##
23972 ## M4sh Initialization. ##
23973 ## --------------------- ##
23975 # Be more Bourne compatible
23976 DUALCASE=1; export DUALCASE # for MKS sh
23977 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23980 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23981 # is contrary to our usage. Disable this feature.
23982 alias -g '${1+"$@"}'='"$@
"'
23983 setopt NO_GLOB_SUBST
23985 case `(set -o) 2>/dev/null` in
23986 *posix*) set -o posix ;;
23995 # Avoid depending upon Character Ranges.
23996 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23997 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23998 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23999 as_cr_digits='0123456789'
24000 as_cr_alnum=$as_cr_Letters$as_cr_digits
24002 # The user is always right.
24003 if test "${PATH_SEPARATOR+set}" != set; then
24004 echo "#! /bin/sh" >conf$$.sh
24005 echo "exit 0" >>conf$$.sh
24007 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24015 # Support unset when possible.
24016 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24024 # We need space, tab and new line, in precisely that order. Quoting is
24025 # there to prevent editors from complaining about space-tab.
24026 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24027 # splitting by setting IFS to empty value.)
24032 # Find who we are. Look in the path if we contain no directory separator.
24034 *[\\/]* ) as_myself
=$0 ;;
24035 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24036 for as_dir
in $PATH
24039 test -z "$as_dir" && as_dir
=.
24040 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24046 # We did not find ourselves, most probably we were run as `sh COMMAND'
24047 # in which case we are not to be found in the path.
24048 if test "x$as_myself" = x
; then
24051 if test ! -f "$as_myself"; then
24052 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24053 { (exit 1); exit 1; }
24056 # Work around bugs in pre-3.0 UWIN ksh.
24057 for as_var
in ENV MAIL MAILPATH
24058 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24066 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24067 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24068 LC_TELEPHONE LC_TIME
24070 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24071 eval $as_var=C
; export $as_var
24073 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24077 # Required to use basename.
24078 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24079 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24085 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24086 as_basename
=basename
24092 # Name of the executable.
24093 as_me
=`$as_basename -- "$0" ||
24094 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24095 X"$0" : 'X\(//\)$' \| \
24096 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24098 sed '/^.*\/\([^/][^/]*\)\/*$/{
24117 as_lineno_1
=$LINENO
24118 as_lineno_2
=$LINENO
24119 test "x$as_lineno_1" != "x$as_lineno_2" &&
24120 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24122 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24123 # uniformly replaced by the line number. The first 'sed' inserts a
24124 # line-number line after each line using $LINENO; the second 'sed'
24125 # does the real work. The second script uses 'N' to pair each
24126 # line-number line with the line containing $LINENO, and appends
24127 # trailing '-' during substitution so that $LINENO is not a special
24128 # case at line end.
24129 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24130 # scripts with optimization help from Paolo Bonzini. Blame Lee
24131 # E. McMahon (1931-1989) for sed's syntax. :-)
24143 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24146 ' >$as_me.lineno
&&
24147 chmod +x
"$as_me.lineno" ||
24148 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24149 { (exit 1); exit 1; }; }
24151 # Don't try to exec as it changes $[0], causing all sort of problems
24152 # (the dirname of $[0] is not the place where we might find the
24153 # original and so on. Autoconf is especially sensitive to this).
24154 .
"./$as_me.lineno"
24155 # Exit status is that of the last command.
24160 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24166 ECHO_C
= ECHO_N
= ECHO_T
=
24167 case `echo -n x` in
24169 case `echo 'x\c'` in
24170 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24177 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24178 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24184 rm -f conf$$ conf$$.exe conf$$.
file
24185 if test -d conf$$.dir
; then
24186 rm -f conf$$.dir
/conf$$.
file
24192 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24194 # ... but there are two gotchas:
24195 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24196 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24197 # In both cases, we have to default to `cp -p'.
24198 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24200 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24205 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24206 rmdir conf$$.dir
2>/dev
/null
24208 if mkdir
-p .
2>/dev
/null
; then
24211 test -d .
/-p && rmdir .
/-p
24215 if test -x / >/dev
/null
2>&1; then
24216 as_test_x
='test -x'
24218 if ls -dL / >/dev
/null
2>&1; then
24225 if test -d "$1"; then
24231 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24232 ???[sx]*):;;*)false;;esac;fi
24236 as_executable_p
=$as_test_x
24238 # Sed expression to map a string onto a valid CPP name.
24239 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24241 # Sed expression to map a string onto a valid variable name.
24242 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24247 # Save the log message, to keep $[0] and so on meaningful, and to
24248 # report actual input values of CONFIG_FILES etc. instead of their
24249 # values after options handling.
24251 This file was extended by $as_me, which was
24252 generated by GNU Autoconf 2.61. Invocation command line was
24254 CONFIG_FILES = $CONFIG_FILES
24255 CONFIG_HEADERS = $CONFIG_HEADERS
24256 CONFIG_LINKS = $CONFIG_LINKS
24257 CONFIG_COMMANDS = $CONFIG_COMMANDS
24260 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24265 cat >>$CONFIG_STATUS <<_ACEOF
24266 # Files that config.status was made for.
24267 config_files="$ac_config_files"
24268 config_headers="$ac_config_headers"
24269 config_commands="$ac_config_commands"
24273 cat >>$CONFIG_STATUS <<\_ACEOF
24275 \`$as_me' instantiates files from templates according to the
24276 current configuration.
24278 Usage: $0 [OPTIONS] [FILE]...
24280 -h, --help print this help, then exit
24281 -V, --version print version number and configuration settings, then exit
24282 -q, --quiet do not print progress messages
24283 -d, --debug don't remove temporary files
24284 --recheck update $as_me by reconfiguring in the same conditions
24285 --file=FILE[:TEMPLATE]
24286 instantiate the configuration file FILE
24287 --header=FILE[:TEMPLATE]
24288 instantiate the configuration header FILE
24290 Configuration files:
24293 Configuration headers:
24296 Configuration commands:
24299 Report bugs to <bug-autoconf@gnu.org>."
24302 cat >>$CONFIG_STATUS <<_ACEOF
24305 configured by $0, generated by GNU Autoconf 2.61,
24306 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24308 Copyright (C) 2006 Free Software Foundation, Inc.
24309 This config.status script is free software; the Free Software Foundation
24310 gives unlimited permission to copy, distribute and modify it."
24317 cat >>$CONFIG_STATUS <<\_ACEOF
24318 # If no file are specified by the user, then we need to provide default
24319 # value. By we need to know if files were specified by the user.
24325 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24326 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24337 # Handling of the options.
24338 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24340 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24341 echo "$ac_cs_version"; exit ;;
24342 --debug |
--debu |
--deb |
--de |
--d |
-d )
24344 --file |
--fil |
--fi |
--f )
24346 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24347 ac_need_defaults
=false
;;
24348 --header |
--heade |
--head |
--hea )
24350 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24351 ac_need_defaults
=false
;;
24353 # Conflict between --help and --header
24354 { echo "$as_me: error: ambiguous option: $1
24355 Try \`$0 --help' for more information." >&2
24356 { (exit 1); exit 1; }; };;
24357 --help |
--hel |
-h )
24358 echo "$ac_cs_usage"; exit ;;
24359 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24360 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24363 # This is an error.
24364 -*) { echo "$as_me: error: unrecognized option: $1
24365 Try \`$0 --help' for more information." >&2
24366 { (exit 1); exit 1; }; } ;;
24368 *) ac_config_targets
="$ac_config_targets $1"
24369 ac_need_defaults
=false
;;
24375 ac_configure_extra_args
=
24377 if $ac_cs_silent; then
24379 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24383 cat >>$CONFIG_STATUS <<_ACEOF
24384 if \$ac_cs_recheck; then
24385 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24386 CONFIG_SHELL=$SHELL
24387 export CONFIG_SHELL
24388 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24392 cat >>$CONFIG_STATUS <<\_ACEOF
24396 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24397 ## Running $as_me. ##
24403 cat >>$CONFIG_STATUS <<_ACEOF
24407 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24411 cat >>$CONFIG_STATUS <<\_ACEOF
24413 # Handling of arguments.
24414 for ac_config_target
in $ac_config_targets
24416 case $ac_config_target in
24417 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24418 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24419 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24420 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24421 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24422 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24423 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24424 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24425 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24426 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24427 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24428 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24429 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24431 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24432 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24433 { (exit 1); exit 1; }; };;
24438 # If the user did not use the arguments to specify the items to instantiate,
24439 # then the envvar interface is used. Set only those that are not.
24440 # We use the long form for the default assignment because of an extremely
24441 # bizarre bug on SunOS 4.1.3.
24442 if $ac_need_defaults; then
24443 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24444 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24445 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24448 # Have a temporary directory for convenience. Make it in the build tree
24449 # simply because there is no reason against having it here, and in addition,
24450 # creating and moving files from /tmp can sometimes cause problems.
24451 # Hook for its removal unless debugging.
24452 # Note that there is a small window in which the directory will not be cleaned:
24453 # after its creation but before its name has been assigned to `$tmp'.
24457 trap 'exit_status=$?
24458 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24460 trap '{ (exit 1); exit 1; }' 1 2 13 15
24462 # Create a (secure) tmp directory for tmp files.
24465 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24466 test -n "$tmp" && test -d "$tmp"
24469 tmp
=.
/conf$$
-$RANDOM
24470 (umask 077 && mkdir
"$tmp")
24473 echo "$me: cannot create a temporary directory in ." >&2
24474 { (exit 1); exit 1; }
24478 # Set up the sed scripts for CONFIG_FILES section.
24481 # No need to generate the scripts if there are no CONFIG_FILES.
24482 # This happens for instance when ./config.status config.h
24483 if test -n "$CONFIG_FILES"; then
24490 for ac_last_try
in false false false false false
:; do
24491 cat >conf$
$subs.
sed <<_ACEOF
24492 SHELL!$SHELL$ac_delim
24493 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24494 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24495 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24496 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24497 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24498 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24499 exec_prefix!$exec_prefix$ac_delim
24500 prefix!$prefix$ac_delim
24501 program_transform_name!$program_transform_name$ac_delim
24502 bindir!$bindir$ac_delim
24503 sbindir!$sbindir$ac_delim
24504 libexecdir!$libexecdir$ac_delim
24505 datarootdir!$datarootdir$ac_delim
24506 datadir!$datadir$ac_delim
24507 sysconfdir!$sysconfdir$ac_delim
24508 sharedstatedir!$sharedstatedir$ac_delim
24509 localstatedir!$localstatedir$ac_delim
24510 includedir!$includedir$ac_delim
24511 oldincludedir!$oldincludedir$ac_delim
24512 docdir!$docdir$ac_delim
24513 infodir!$infodir$ac_delim
24514 htmldir!$htmldir$ac_delim
24515 dvidir!$dvidir$ac_delim
24516 pdfdir!$pdfdir$ac_delim
24517 psdir!$psdir$ac_delim
24518 libdir!$libdir$ac_delim
24519 localedir!$localedir$ac_delim
24520 mandir!$mandir$ac_delim
24521 DEFS!$DEFS$ac_delim
24522 ECHO_C!$ECHO_C$ac_delim
24523 ECHO_N!$ECHO_N$ac_delim
24524 ECHO_T!$ECHO_T$ac_delim
24525 LIBS!$LIBS$ac_delim
24526 build_alias!$build_alias$ac_delim
24527 host_alias!$host_alias$ac_delim
24528 target_alias!$target_alias$ac_delim
24529 MAINT!$MAINT$ac_delim
24530 build!$build$ac_delim
24531 build_cpu!$build_cpu$ac_delim
24532 build_vendor!$build_vendor$ac_delim
24533 build_os!$build_os$ac_delim
24534 host!$host$ac_delim
24535 host_cpu!$host_cpu$ac_delim
24536 host_vendor!$host_vendor$ac_delim
24537 host_os!$host_os$ac_delim
24539 CFLAGS!$CFLAGS$ac_delim
24540 LDFLAGS!$LDFLAGS$ac_delim
24541 CPPFLAGS!$CPPFLAGS$ac_delim
24542 ac_ct_CC!$ac_ct_CC$ac_delim
24543 EXEEXT!$EXEEXT$ac_delim
24544 OBJEXT!$OBJEXT$ac_delim
24546 GREP!$GREP$ac_delim
24547 EGREP!$EGREP$ac_delim
24548 LN_S!$LN_S$ac_delim
24549 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24550 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24551 INSTALL_DATA!$INSTALL_DATA$ac_delim
24552 RANLIB!$RANLIB$ac_delim
24553 INSTALL_INFO!$INSTALL_INFO$ac_delim
24554 GZIP_PROG!$GZIP_PROG$ac_delim
24555 MAKEINFO!$MAKEINFO$ac_delim
24556 LIBSOUND!$LIBSOUND$ac_delim
24557 PKG_CONFIG!$PKG_CONFIG$ac_delim
24558 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24559 ALSA_LIBS!$ALSA_LIBS$ac_delim
24560 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24561 SET_MAKE!$SET_MAKE$ac_delim
24562 XMKMF!$XMKMF$ac_delim
24563 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24564 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24565 RSVG_LIBS!$RSVG_LIBS$ac_delim
24566 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24567 GTK_LIBS!$GTK_LIBS$ac_delim
24568 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24569 XFT_LIBS!$XFT_LIBS$ac_delim
24570 ALLOCA!$ALLOCA$ac_delim
24571 liblockfile!$liblockfile$ac_delim
24572 LIBOBJS!$LIBOBJS$ac_delim
24573 NEED_SETGID!$NEED_SETGID$ac_delim
24574 KMEM_GROUP!$KMEM_GROUP$ac_delim
24575 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24576 GETOPT_H!$GETOPT_H$ac_delim
24577 GETOPTOBJS!$GETOPTOBJS$ac_delim
24578 version!$version$ac_delim
24579 configuration!$configuration$ac_delim
24580 canonical!$canonical$ac_delim
24581 srcdir!$srcdir$ac_delim
24582 lispdir!$lispdir$ac_delim
24583 locallisppath!$locallisppath$ac_delim
24584 lisppath!$lisppath$ac_delim
24585 x_default_search_path!$x_default_search_path$ac_delim
24586 etcdir!$etcdir$ac_delim
24587 archlibdir!$archlibdir$ac_delim
24588 bitmapdir!$bitmapdir$ac_delim
24591 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24593 elif $ac_last_try; then
24594 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24595 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24596 { (exit 1); exit 1; }; }
24598 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24602 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24603 if test -n "$ac_eof"; then
24604 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24605 ac_eof
=`expr $ac_eof + 1`
24608 cat >>$CONFIG_STATUS <<_ACEOF
24609 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24610 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24613 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24614 s/^/s,@/; s/!/@,|#_!!_#|/
24617 s/'"$ac_delim"'$/,g/; t
24619 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24620 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24621 rm -f conf$
$subs.
sed
24622 cat >>$CONFIG_STATUS <<_ACEOF
24628 for ac_last_try
in false false false false false
:; do
24629 cat >conf$
$subs.
sed <<_ACEOF
24630 gamedir!$gamedir$ac_delim
24631 gameuser!$gameuser$ac_delim
24632 c_switch_system!$c_switch_system$ac_delim
24633 c_switch_machine!$c_switch_machine$ac_delim
24634 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24635 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24636 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24637 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24638 machfile!$machfile$ac_delim
24639 opsysfile!$opsysfile$ac_delim
24640 carbon_appdir!$carbon_appdir$ac_delim
24641 LTLIBOBJS!$LTLIBOBJS$ac_delim
24644 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
24646 elif $ac_last_try; then
24647 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24648 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24649 { (exit 1); exit 1; }; }
24651 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24655 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24656 if test -n "$ac_eof"; then
24657 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24658 ac_eof
=`expr $ac_eof + 1`
24661 cat >>$CONFIG_STATUS <<_ACEOF
24662 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24666 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24667 s/^/s,@/; s/!/@,|#_!!_#|/
24670 s/'"$ac_delim"'$/,g/; t
24672 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24673 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24674 rm -f conf$
$subs.
sed
24675 cat >>$CONFIG_STATUS <<_ACEOF
24682 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24683 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24684 # trailing colons and then remove the whole line if VPATH becomes empty
24685 # (actually we leave an empty line to preserve line numbers).
24686 if test "x$srcdir" = x.
; then
24687 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24688 s/:*\$(srcdir):*/:/
24689 s/:*\${srcdir}:*/:/
24691 s/^\([^=]*=[ ]*\):*/\1/
24697 cat >>$CONFIG_STATUS <<\_ACEOF
24698 fi # test -n "$CONFIG_FILES"
24701 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24704 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24706 case $ac_mode$ac_tag in
24708 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24709 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24710 { (exit 1); exit 1; }; };;
24711 :[FH
]-) ac_tag
=-:-;;
24712 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24729 -) ac_f
="$tmp/stdin";;
24730 *) # Look for the file first in the build tree, then in the source tree
24731 # (if the path is not absolute). The absolute path cannot be DOS-style,
24732 # because $ac_f cannot contain `:'.
24736 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24738 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24739 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24740 { (exit 1); exit 1; }; };;
24742 ac_file_inputs
="$ac_file_inputs $ac_f"
24745 # Let's still pretend it is `configure' which instantiates (i.e., don't
24746 # use $as_me), people would be surprised to read:
24747 # /* config.h. Generated by config.status. */
24748 configure_input
="Generated from "`IFS=:
24749 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24750 if test x
"$ac_file" != x-
; then
24751 configure_input
="$ac_file. $configure_input"
24752 { echo "$as_me:$LINENO: creating $ac_file" >&5
24753 echo "$as_me: creating $ac_file" >&6;}
24757 *:-:* |
*:-) cat >"$tmp/stdin";;
24762 ac_dir
=`$as_dirname -- "$ac_file" ||
24763 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24764 X"$ac_file" : 'X\(//\)[^/]' \| \
24765 X"$ac_file" : 'X\(//\)$' \| \
24766 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24772 /^X\(\/\/\)[^/].*/{
24787 -*) as_dir
=.
/$as_dir;;
24789 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24793 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24794 *) as_qdir
=$as_dir;;
24796 as_dirs
="'$as_qdir' $as_dirs"
24797 as_dir
=`$as_dirname -- "$as_dir" ||
24798 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24799 X"$as_dir" : 'X\(//\)[^/]' \| \
24800 X"$as_dir" : 'X\(//\)$' \| \
24801 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24807 /^X\(\/\/\)[^/].*/{
24820 test -d "$as_dir" && break
24822 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24823 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24824 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24825 { (exit 1); exit 1; }; }; }
24829 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24831 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24832 # A ".." for each directory in $ac_dir_suffix.
24833 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24834 case $ac_top_builddir_sub in
24835 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24836 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24839 ac_abs_top_builddir
=$ac_pwd
24840 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24841 # for backward compatibility:
24842 ac_top_builddir
=$ac_top_build_prefix
24845 .
) # We are building in place.
24847 ac_top_srcdir
=$ac_top_builddir_sub
24848 ac_abs_top_srcdir
=$ac_pwd ;;
24849 [\\/]* | ?
:[\\/]* ) # Absolute name.
24850 ac_srcdir
=$srcdir$ac_dir_suffix;
24851 ac_top_srcdir
=$srcdir
24852 ac_abs_top_srcdir
=$srcdir ;;
24853 *) # Relative name.
24854 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24855 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24856 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24858 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24868 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24869 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24873 cat >>$CONFIG_STATUS <<\_ACEOF
24874 # If the template does not know about datarootdir, expand it.
24875 # FIXME: This hack should be removed a few years after 2.60.
24876 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24878 case `sed -n '/datarootdir/ {
24887 ' $ac_file_inputs` in
24888 *datarootdir
*) ac_datarootdir_seen
=yes;;
24889 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24890 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24891 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24893 cat >>$CONFIG_STATUS <<_ACEOF
24894 ac_datarootdir_hack='
24895 s&@datadir@&$datadir&g
24896 s&@docdir@&$docdir&g
24897 s&@infodir@&$infodir&g
24898 s&@localedir@&$localedir&g
24899 s&@mandir@&$mandir&g
24900 s&\\\${datarootdir}&$datarootdir&g' ;;
24904 # Neutralize VPATH when `$srcdir' = `.'.
24905 # Shell code in configure.ac might set extrasub.
24906 # FIXME: do we really want to maintain this feature?
24907 cat >>$CONFIG_STATUS <<_ACEOF
24911 cat >>$CONFIG_STATUS <<\_ACEOF
24913 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24914 s
&@configure_input@
&$configure_input&;t t
24915 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24916 s
&@srcdir@
&$ac_srcdir&;t t
24917 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24918 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24919 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24920 s
&@builddir@
&$ac_builddir&;t t
24921 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24922 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24923 s
&@INSTALL@
&$ac_INSTALL&;t t
24924 $ac_datarootdir_hack
24925 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24927 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24928 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24929 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24930 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24931 which seems to be undefined. Please make sure it is defined." >&5
24932 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24933 which seems to be undefined. Please make sure it is defined." >&2;}
24937 -) cat "$tmp/out"; rm -f "$tmp/out";;
24938 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24947 # Transform confdefs.h into a sed script `conftest.defines', that
24948 # substitutes the proper values into config.h.in to produce config.h.
24949 rm -f conftest.defines conftest.
tail
24950 # First, append a space to every undef/define line, to ease matching.
24951 echo 's/$/ /' >conftest.defines
24952 # Then, protect against being on the right side of a sed subst, or in
24953 # an unquoted here document, in config.status. If some macros were
24954 # called several times there might be several #defines for the same
24955 # symbol, which is useless. But do not sort them, since the last
24956 # AC_DEFINE must be honored.
24957 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24958 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24959 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24960 # PARAMS is the parameter list in the macro definition--in most cases, it's
24961 # just an empty string.
24962 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24963 ac_dB
='\\)[ (].*,\\1define\\2'
24971 s/^[ ]*#[ ]*define[ ][ ]*//
24976 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24977 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24978 ' >>conftest.defines
24980 # Remove the space that was appended to ease matching.
24981 # Then replace #undef with comments. This is necessary, for
24982 # example, in the case of _POSIX_SOURCE, which is predefined and required
24983 # on some systems where configure will not decide to define it.
24984 # (The regexp can be short, since the line contains either #define or #undef.)
24986 s,^[ #]*u.*,/* & */,' >>conftest.defines
24988 # Break up conftest.defines:
24989 ac_max_sed_lines
=50
24991 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24992 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24993 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24995 ac_in
='$ac_file_inputs'
24996 ac_out
='"$tmp/out1"'
24997 ac_nxt
='"$tmp/out2"'
25001 # Write a here document:
25002 cat >>$CONFIG_STATUS <<_ACEOF
25003 # First, check the format of the line:
25004 cat >"\$tmp/defines.sed" <<\\CEOF
25005 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25006 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25010 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25012 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25013 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25014 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25015 grep . conftest.
tail >/dev
/null ||
break
25016 rm -f conftest.defines
25017 mv conftest.
tail conftest.defines
25019 rm -f conftest.defines conftest.
tail
25021 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25022 cat >>$CONFIG_STATUS <<\_ACEOF
25023 if test x
"$ac_file" != x-
; then
25024 echo "/* $configure_input */" >"$tmp/config.h"
25025 cat "$ac_result" >>"$tmp/config.h"
25026 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25027 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25028 echo "$as_me: $ac_file is unchanged" >&6;}
25031 mv "$tmp/config.h" $ac_file
25034 echo "/* $configure_input */"
25040 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25041 echo "$as_me: executing $ac_file commands" >&6;}
25046 case $ac_file$ac_mode in
25049 ### Make the necessary directories, if they don't exist.
25050 for dir
in etc lisp
; do
25051 test -d ${dir} || mkdir
${dir}
25054 # Build src/Makefile from ${srcdir}/src/Makefile.c
25055 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25056 # This must be done after src/config.h is built, since we rely on that file.
25058 # Now get this: Some word that is part of the ${srcdir} directory name
25059 # or the ${configuration} value might, just might, happen to be an
25060 # identifier like `sun4' or `i386' or something, and be predefined by
25061 # the C preprocessor to some helpful value like 1, or maybe the empty
25062 # string. Needless to say consequent macro substitutions are less
25063 # than conducive to the makefile finding the correct directory.
25064 undefs
="`echo $top_srcdir $configuration $canonical |
25065 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25066 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25069 echo creating src
/epaths.h
25070 ${MAKE-make} epaths-force
25072 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25073 # `..' to `. .' unless invoked with -traditional
25075 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25076 CPPFLAGS
="$CPPFLAGS -traditional"
25079 echo creating lib-src
/Makefile
25081 rm -f junk.c junk1.c junk2.c
25082 sed -e '/start of cpp stuff/q' \
25083 < Makefile.c
> junk1.c
25084 sed -e '1,/start of cpp stuff/d'\
25085 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25086 < Makefile.c
> junk.c
25087 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25088 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25089 cat junk1.c junk2.c
> Makefile.new
25090 rm -f junk.c junk1.c junk2.c
25091 chmod 444 Makefile.new
25092 mv -f Makefile.new Makefile
25095 echo creating src
/Makefile
25097 rm -f junk.c junk1.c junk2.c
25098 sed -e '/start of cpp stuff/q' \
25099 < Makefile.c
> junk1.c
25100 sed -e '1,/start of cpp stuff/d'\
25101 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25102 < Makefile.c
> junk.c
25103 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25104 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25105 cat junk1.c junk2.c
> Makefile.new
25106 rm -f junk.c junk1.c junk2.c
25107 chmod 444 Makefile.new
25108 mv -f Makefile.new Makefile
25111 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25112 echo creating src
/.gdbinit
25113 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25116 # This is how we know whether to re-run configure in certain cases.
25117 touch src
/config.stamp
25125 { (exit 0); exit 0; }
25127 chmod +x
$CONFIG_STATUS
25128 ac_clean_files
=$ac_clean_files_save
25131 # configure is writing to config.log, and then calls config.status.
25132 # config.status does its own redirection, appending to config.log.
25133 # Unfortunately, on DOS this fails, as config.log is still kept open
25134 # by configure, so config.status won't be able to write to it; its
25135 # output is simply discarded. So we exec the FD to /dev/null,
25136 # effectively closing config.log, so it can be properly (re)opened and
25137 # appended to by config.status. When coming back to configure, we
25138 # need to make the FD available again.
25139 if test "$no_create" != yes; then
25141 ac_config_status_args
=
25142 test "$silent" = yes &&
25143 ac_config_status_args
="$ac_config_status_args --quiet"
25145 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25147 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25148 # would make configure fail if this is the last instruction.
25149 $ac_cs_success ||
{ (exit 1); exit 1; }