2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="src/lisp.h"
580 ac_config_libobj_dir
=src
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
628 program_transform_name
719 x_default_search_path
736 ac_precious_vars
='build_alias
748 # Initialize some variables set by options.
750 ac_init_version
=false
751 # The variables have the same names as the options, with
752 # dashes changed to underlines.
760 program_transform_name
=s
,x
,x
,
768 # Installation directory options.
769 # These are left unexpanded so users can "make install exec_prefix=/foo"
770 # and all the variables that are supposed to be based on exec_prefix
771 # by default will actually change.
772 # Use braces instead of parens because sh, perl, etc. also accept them.
773 # (The list follows the same order as the GNU Coding Standards.)
774 bindir
='${exec_prefix}/bin'
775 sbindir
='${exec_prefix}/sbin'
776 libexecdir
='${exec_prefix}/libexec'
777 datarootdir
='${prefix}/share'
778 datadir
='${datarootdir}'
779 sysconfdir
='${prefix}/etc'
780 sharedstatedir
='${prefix}/com'
781 localstatedir
='${prefix}/var'
782 includedir
='${prefix}/include'
783 oldincludedir
='/usr/include'
784 docdir
='${datarootdir}/doc/${PACKAGE}'
785 infodir
='${datarootdir}/info'
790 libdir
='${exec_prefix}/lib'
791 localedir
='${datarootdir}/locale'
792 mandir
='${datarootdir}/man'
798 # If the previous option needs an argument, assign it.
799 if test -n "$ac_prev"; then
800 eval $ac_prev=\
$ac_option
806 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
810 # Accept the important Cygnus configure options, so we can diagnose typos.
812 case $ac_dashdash$ac_option in
816 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
818 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
821 -build |
--build |
--buil |
--bui |
--bu)
822 ac_prev
=build_alias
;;
823 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
824 build_alias
=$ac_optarg ;;
826 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
827 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
828 ac_prev
=cache_file
;;
829 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
830 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
831 cache_file
=$ac_optarg ;;
834 cache_file
=config.cache
;;
836 -datadir |
--datadir |
--datadi |
--datad)
838 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
839 datadir
=$ac_optarg ;;
841 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
842 |
--dataroo |
--dataro |
--datar)
843 ac_prev
=datarootdir
;;
844 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
845 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
846 datarootdir
=$ac_optarg ;;
848 -disable-* |
--disable-*)
849 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
850 # Reject names that are not valid shell variable names.
851 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
852 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
853 { (exit 1); exit 1; }; }
854 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
855 eval enable_
$ac_feature=no
;;
857 -docdir |
--docdir |
--docdi |
--doc |
--do)
859 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
862 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
864 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
867 -enable-* |
--enable-*)
868 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
871 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
872 { (exit 1); exit 1; }; }
873 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
874 eval enable_
$ac_feature=\
$ac_optarg ;;
876 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
877 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
878 |
--exec |
--exe |
--ex)
879 ac_prev
=exec_prefix
;;
880 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
881 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
882 |
--exec=* |
--exe=* |
--ex=*)
883 exec_prefix
=$ac_optarg ;;
885 -gas |
--gas |
--ga |
--g)
886 # Obsolete; use --with-gas.
889 -help |
--help |
--hel |
--he |
-h)
891 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
892 ac_init_help
=recursive
;;
893 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
894 ac_init_help
=short
;;
896 -host |
--host |
--hos |
--ho)
897 ac_prev
=host_alias
;;
898 -host=* |
--host=* |
--hos=* |
--ho=*)
899 host_alias
=$ac_optarg ;;
901 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
903 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
905 htmldir
=$ac_optarg ;;
907 -includedir |
--includedir |
--includedi |
--included |
--include \
908 |
--includ |
--inclu |
--incl |
--inc)
909 ac_prev
=includedir
;;
910 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
911 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
912 includedir
=$ac_optarg ;;
914 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
916 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
917 infodir
=$ac_optarg ;;
919 -libdir |
--libdir |
--libdi |
--libd)
921 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
924 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
925 |
--libexe |
--libex |
--libe)
926 ac_prev
=libexecdir
;;
927 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
928 |
--libexe=* |
--libex=* |
--libe=*)
929 libexecdir
=$ac_optarg ;;
931 -localedir |
--localedir |
--localedi |
--localed |
--locale)
933 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
934 localedir
=$ac_optarg ;;
936 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
937 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
938 ac_prev
=localstatedir
;;
939 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
940 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
941 localstatedir
=$ac_optarg ;;
943 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
945 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
949 # Obsolete; use --without-fp.
952 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
953 |
--no-cr |
--no-c |
-n)
956 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
957 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
960 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
961 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
962 |
--oldin |
--oldi |
--old |
--ol |
--o)
963 ac_prev
=oldincludedir
;;
964 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
965 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
966 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
967 oldincludedir
=$ac_optarg ;;
969 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
971 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
974 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
975 |
--program-pre |
--program-pr |
--program-p)
976 ac_prev
=program_prefix
;;
977 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
978 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
979 program_prefix
=$ac_optarg ;;
981 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
982 |
--program-suf |
--program-su |
--program-s)
983 ac_prev
=program_suffix
;;
984 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
985 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
986 program_suffix
=$ac_optarg ;;
988 -program-transform-name |
--program-transform-name \
989 |
--program-transform-nam |
--program-transform-na \
990 |
--program-transform-n |
--program-transform- \
991 |
--program-transform |
--program-transfor \
992 |
--program-transfo |
--program-transf \
993 |
--program-trans |
--program-tran \
994 |
--progr-tra |
--program-tr |
--program-t)
995 ac_prev
=program_transform_name
;;
996 -program-transform-name=* |
--program-transform-name=* \
997 |
--program-transform-nam=* |
--program-transform-na=* \
998 |
--program-transform-n=* |
--program-transform-=* \
999 |
--program-transform=* |
--program-transfor=* \
1000 |
--program-transfo=* |
--program-transf=* \
1001 |
--program-trans=* |
--program-tran=* \
1002 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1003 program_transform_name
=$ac_optarg ;;
1005 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1007 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1008 pdfdir
=$ac_optarg ;;
1010 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1012 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1015 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1016 |
-silent |
--silent |
--silen |
--sile |
--sil)
1019 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1021 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1023 sbindir
=$ac_optarg ;;
1025 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1026 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1027 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1029 ac_prev
=sharedstatedir
;;
1030 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1031 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1032 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1034 sharedstatedir
=$ac_optarg ;;
1036 -site |
--site |
--sit)
1038 -site=* |
--site=* |
--sit=*)
1041 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1043 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1044 srcdir
=$ac_optarg ;;
1046 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1047 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1048 ac_prev
=sysconfdir
;;
1049 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1050 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1051 sysconfdir
=$ac_optarg ;;
1053 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1054 ac_prev
=target_alias
;;
1055 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1056 target_alias
=$ac_optarg ;;
1058 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1061 -version |
--version |
--versio |
--versi |
--vers |
-V)
1062 ac_init_version
=: ;;
1065 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1066 # Reject names that are not valid shell variable names.
1067 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1068 { echo "$as_me: error: invalid package name: $ac_package" >&2
1069 { (exit 1); exit 1; }; }
1070 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1071 eval with_
$ac_package=\
$ac_optarg ;;
1073 -without-* |
--without-*)
1074 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1077 { echo "$as_me: error: invalid package name: $ac_package" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1080 eval with_
$ac_package=no
;;
1083 # Obsolete; use --with-x.
1086 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1087 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1088 ac_prev
=x_includes
;;
1089 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1090 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1091 x_includes
=$ac_optarg ;;
1093 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1094 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1095 ac_prev
=x_libraries
;;
1096 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1097 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1098 x_libraries
=$ac_optarg ;;
1100 -*) { echo "$as_me: error: unrecognized option: $ac_option
1101 Try \`$0 --help' for more information." >&2
1102 { (exit 1); exit 1; }; }
1106 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1109 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1110 { (exit 1); exit 1; }; }
1111 eval $ac_envvar=\
$ac_optarg
1112 export $ac_envvar ;;
1115 # FIXME: should be removed in autoconf 3.0.
1116 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1117 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1118 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1119 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1125 if test -n "$ac_prev"; then
1126 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1127 { echo "$as_me: error: missing argument to $ac_option" >&2
1128 { (exit 1); exit 1; }; }
1131 # Be sure to have absolute directory names.
1132 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1133 datadir sysconfdir sharedstatedir localstatedir includedir \
1134 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1135 libdir localedir mandir
1137 eval ac_val
=\$
$ac_var
1139 [\\/$
]* | ?
:[\\/]* ) continue;;
1140 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1142 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1143 { (exit 1); exit 1; }; }
1146 # There might be people who depend on the old broken behavior: `$host'
1147 # used to hold the argument of --host etc.
1148 # FIXME: To remove some day.
1151 target
=$target_alias
1153 # FIXME: To remove some day.
1154 if test "x$host_alias" != x
; then
1155 if test "x$build_alias" = x
; then
1156 cross_compiling
=maybe
1157 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1158 If a cross compiler is detected then cross compile mode will be used." >&2
1159 elif test "x$build_alias" != "x$host_alias"; then
1165 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1167 test "$silent" = yes && exec 6>/dev
/null
1170 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1171 ac_ls_di
=`ls -di .` &&
1172 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1173 { echo "$as_me: error: Working directory cannot be determined" >&2
1174 { (exit 1); exit 1; }; }
1175 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1176 { echo "$as_me: error: pwd does not report name of working directory" >&2
1177 { (exit 1); exit 1; }; }
1180 # Find the source files, if location was not specified.
1181 if test -z "$srcdir"; then
1182 ac_srcdir_defaulted
=yes
1183 # Try the directory containing this script, then the parent directory.
1184 ac_confdir
=`$as_dirname -- "$0" ||
1185 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1186 X"$0" : 'X\(//\)[^/]' \| \
1187 X"$0" : 'X\(//\)$' \| \
1188 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1208 if test ! -r "$srcdir/$ac_unique_file"; then
1212 ac_srcdir_defaulted
=no
1214 if test ! -r "$srcdir/$ac_unique_file"; then
1215 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1216 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1217 { (exit 1); exit 1; }; }
1219 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1221 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1222 { (exit 1); exit 1; }; }
1224 # When building in place, set srcdir=.
1225 if test "$ac_abs_confdir" = "$ac_pwd"; then
1228 # Remove unnecessary trailing slashes from srcdir.
1229 # Double slashes in file names in object file debugging info
1230 # mess up M-x gdb in Emacs.
1232 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1234 for ac_var
in $ac_precious_vars; do
1235 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1236 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1237 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1238 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1242 # Report the --help message.
1244 if test "$ac_init_help" = "long"; then
1245 # Omit some internal or obsolete options to make the list less imposing.
1246 # This message is too long to be a string in the A/UX 3.1 sh.
1248 \`configure' configures this package to adapt to many kinds of systems.
1250 Usage: $0 [OPTION]... [VAR=VALUE]...
1252 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1253 VAR=VALUE. See below for descriptions of some of the useful variables.
1255 Defaults for the options are specified in brackets.
1258 -h, --help display this help and exit
1259 --help=short display options specific to this package
1260 --help=recursive display the short help of all the included packages
1261 -V, --version display version information and exit
1262 -q, --quiet, --silent do not print \`checking...' messages
1263 --cache-file=FILE cache test results in FILE [disabled]
1264 -C, --config-cache alias for \`--cache-file=config.cache'
1265 -n, --no-create do not create output files
1266 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1268 Installation directories:
1269 --prefix=PREFIX install architecture-independent files in PREFIX
1270 [$ac_default_prefix]
1271 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1274 By default, \`make install' will install all the files in
1275 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1276 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1277 for instance \`--prefix=\$HOME'.
1279 For better control, use the options below.
1281 Fine tuning of the installation directories:
1282 --bindir=DIR user executables [EPREFIX/bin]
1283 --sbindir=DIR system admin executables [EPREFIX/sbin]
1284 --libexecdir=DIR program executables [EPREFIX/libexec]
1285 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1286 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1287 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1288 --libdir=DIR object code libraries [EPREFIX/lib]
1289 --includedir=DIR C header files [PREFIX/include]
1290 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1291 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1292 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1293 --infodir=DIR info documentation [DATAROOTDIR/info]
1294 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1295 --mandir=DIR man documentation [DATAROOTDIR/man]
1296 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1297 --htmldir=DIR html documentation [DOCDIR]
1298 --dvidir=DIR dvi documentation [DOCDIR]
1299 --pdfdir=DIR pdf documentation [DOCDIR]
1300 --psdir=DIR ps documentation [DOCDIR]
1306 --program-prefix=PREFIX prepend PREFIX to installed program names
1307 --program-suffix=SUFFIX append SUFFIX to installed program names
1308 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1311 --x-includes=DIR X include files are
in DIR
1312 --x-libraries=DIR X library files are
in DIR
1315 --build=BUILD configure
for building on BUILD
[guessed
]
1316 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1320 if test -n "$ac_init_help"; then
1325 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1326 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1327 --enable-carbon-app[=DIR
]
1328 specify
install directory
for Emacs.app on Mac OS X
1330 --enable-font-backend compile code of font-backend support
1331 --enable-asserts compile code with asserts enabled
1332 --enable-maintainer-mode
1333 enable make rules and dependencies not useful
(and
1334 sometimes confusing
) to the casual installer
1335 --enable-locallisppath=PATH
1336 directories Emacs should search
for lisp files
1337 specific to this site
1338 --disable-largefile omit support
for large files
1341 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1342 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1343 --without-gcc don
't use GCC to compile Emacs if GCC is found
1344 --without-pop don't support POP
mail retrieval with movemail
1345 --with-kerberos support Kerberos-authenticated POP
1346 --with-kerberos5 support Kerberos version
5 authenticated POP
1347 --with-hesiod support Hesiod to get the POP server
host
1348 --without-sound don
't compile with sound support
1349 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1351 --with-xpm use -lXpm for displaying XPM images
1352 --with-jpeg use -ljpeg for displaying JPEG images
1353 --with-tiff use -ltiff for displaying TIFF images
1354 --with-gif use -lgif (or -lungif) for displaying GIF images
1355 --with-png use -lpng for displaying PNG images
1356 --with-freetype use -lfreetype for local fonts support
1357 --with-xft use -lXft for anti aliased fonts
1358 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1359 --with-rsvg use -lrsvg-2 for displaying SVG images
1360 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1361 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1362 --without-toolkit-scroll-bars
1363 don't use Motif or Xaw3d scroll bars
1364 --without-xaw3d don
't use Xaw3d
1365 --without-xim don't use X11 XIM
1366 --without-carbon don
't use Carbon GUI on Mac OS X
1367 --with-x use the X Window System
1369 Some influential environment variables:
1370 CC C compiler command
1371 CFLAGS C compiler flags
1372 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1373 nonstandard directory <lib dir>
1374 LIBS libraries to pass to the linker, e.g. -l<library>
1375 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1376 you have headers in a nonstandard directory <include dir>
1378 XMKMF Path to xmkmf, Makefile generator for X Window System
1380 Use these variables to override the choices made by `configure' or to
help
1381 it to
find libraries and programs with nonstandard names
/locations.
1387 if test "$ac_init_help" = "recursive"; then
1388 # If there are subdirs, report their specific --help.
1389 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1390 test -d "$ac_dir" ||
continue
1394 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1396 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1397 # A ".." for each directory in $ac_dir_suffix.
1398 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1399 case $ac_top_builddir_sub in
1400 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1401 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1404 ac_abs_top_builddir
=$ac_pwd
1405 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1406 # for backward compatibility:
1407 ac_top_builddir
=$ac_top_build_prefix
1410 .
) # We are building in place.
1412 ac_top_srcdir
=$ac_top_builddir_sub
1413 ac_abs_top_srcdir
=$ac_pwd ;;
1414 [\\/]* | ?
:[\\/]* ) # Absolute name.
1415 ac_srcdir
=$srcdir$ac_dir_suffix;
1416 ac_top_srcdir
=$srcdir
1417 ac_abs_top_srcdir
=$srcdir ;;
1419 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1420 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1421 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1423 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1425 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1426 # Check for guested configure.
1427 if test -f "$ac_srcdir/configure.gnu"; then
1429 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1430 elif test -f "$ac_srcdir/configure"; then
1432 $SHELL "$ac_srcdir/configure" --help=recursive
1434 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1436 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1440 test -n "$ac_init_help" && exit $ac_status
1441 if $ac_init_version; then
1444 generated by GNU Autoconf
2.61
1446 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1447 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1448 This configure
script is free software
; the Free Software Foundation
1449 gives unlimited permission to copy
, distribute and modify it.
1453 cat >config.log
<<_ACEOF
1454 This file contains any messages produced by compilers while
1455 running configure, to aid debugging if configure makes a mistake.
1457 It was created by $as_me, which was
1458 generated by GNU Autoconf 2.61. Invocation command line was
1470 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1471 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1472 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1473 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1474 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1476 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1477 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1479 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1480 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1481 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1482 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1483 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1484 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1485 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1489 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1493 test -z "$as_dir" && as_dir
=.
1494 echo "PATH: $as_dir"
1510 # Keep a trace of the command line.
1511 # Strip out --no-create and --no-recursion so they do not pile up.
1512 # Strip out --silent because we don't want to record it for future runs.
1513 # Also quote any args containing shell meta-characters.
1514 # Make two passes to allow for proper duplicate-argument suppression.
1518 ac_must_keep_next
=false
1524 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1525 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1526 |
-silent |
--silent |
--silen |
--sile |
--sil)
1529 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1532 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1534 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1535 if test $ac_must_keep_next = true
; then
1536 ac_must_keep_next
=false
# Got value, back to normal.
1539 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1540 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1541 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1542 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1543 case "$ac_configure_args0 " in
1544 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1547 -* ) ac_must_keep_next
=true
;;
1550 ac_configure_args
="$ac_configure_args '$ac_arg'"
1555 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1556 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1558 # When interrupted or exit'd, cleanup temporary files, and complete
1559 # config.log. We remove comments because anyway the quotes in there
1560 # would cause problems or look ugly.
1561 # WARNING: Use '\'' to represent an apostrophe within the trap.
1562 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1563 trap 'exit_status=$?
1564 # Save into config.log some information that might help in debugging.
1569 ## ---------------- ##
1570 ## Cache variables. ##
1571 ## ---------------- ##
1574 # The following way of writing the cache mishandles newlines in values,
1576 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1577 eval ac_val=\$$ac_var
1581 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1582 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1585 _ | IFS | as_nl) ;; #(
1586 *) $as_unset $ac_var ;;
1591 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1592 *${as_nl}ac_space=\ *)
1594 "s/'\''/'\''\\\\'\'''\''/g;
1595 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1598 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1606 ## ----------------- ##
1607 ## Output variables. ##
1608 ## ----------------- ##
1611 for ac_var in $ac_subst_vars
1613 eval ac_val=\$$ac_var
1615 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 echo "$ac_var='\''$ac_val'\''"
1621 if test -n "$ac_subst_files"; then
1623 ## ------------------- ##
1624 ## File substitutions. ##
1625 ## ------------------- ##
1628 for ac_var
in $ac_subst_files
1630 eval ac_val
=\$
$ac_var
1632 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1634 echo "$ac_var='\''$ac_val'\''"
1639 if test -s confdefs.h; then
1649 test "$ac_signal" != 0 &&
1650 echo "$as_me: caught signal $ac_signal"
1651 echo "$as_me: exit $exit_status"
1653 rm -f core *.core core.conftest.* &&
1654 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1657 for ac_signal
in 1 2 13 15; do
1658 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1662 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1663 rm -f -r conftest
* confdefs.h
1665 # Predefined preprocessor variables.
1667 cat >>confdefs.h
<<_ACEOF
1668 #define PACKAGE_NAME "$PACKAGE_NAME"
1672 cat >>confdefs.h
<<_ACEOF
1673 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1677 cat >>confdefs.h
<<_ACEOF
1678 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1682 cat >>confdefs.h
<<_ACEOF
1683 #define PACKAGE_STRING "$PACKAGE_STRING"
1687 cat >>confdefs.h
<<_ACEOF
1688 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1692 # Let the site file select an alternate cache file if it wants to.
1693 # Prefer explicitly selected file to automatically selected ones.
1694 if test -n "$CONFIG_SITE"; then
1695 set x
"$CONFIG_SITE"
1696 elif test "x$prefix" != xNONE
; then
1697 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1699 set x
"$ac_default_prefix/share/config.site" \
1700 "$ac_default_prefix/etc/config.site"
1705 if test -r "$ac_site_file"; then
1706 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1707 echo "$as_me: loading site script $ac_site_file" >&6;}
1708 sed 's/^/| /' "$ac_site_file" >&5
1713 if test -r "$cache_file"; then
1714 # Some versions of bash will fail to source /dev/null (special
1715 # files actually), so we avoid doing that.
1716 if test -f "$cache_file"; then
1717 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1718 echo "$as_me: loading cache $cache_file" >&6;}
1720 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1721 *) .
"./$cache_file";;
1725 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1726 echo "$as_me: creating cache $cache_file" >&6;}
1730 ac_header_list
="$ac_header_list sys/time.h"
1731 ac_header_list
="$ac_header_list unistd.h"
1732 ac_func_list
="$ac_func_list alarm"
1733 # Check that the precious variables saved in the cache have kept the same
1735 ac_cache_corrupted
=false
1736 for ac_var
in $ac_precious_vars; do
1737 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1738 eval ac_new_set
=\
$ac_env_${ac_var}_set
1739 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1740 eval ac_new_val
=\
$ac_env_${ac_var}_value
1741 case $ac_old_set,$ac_new_set in
1743 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1744 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1745 ac_cache_corrupted
=: ;;
1747 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1748 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1749 ac_cache_corrupted
=: ;;
1752 if test "x$ac_old_val" != "x$ac_new_val"; then
1753 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1754 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1755 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1756 echo "$as_me: former value: $ac_old_val" >&2;}
1757 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1758 echo "$as_me: current value: $ac_new_val" >&2;}
1759 ac_cache_corrupted
=:
1762 # Pass precious variables to config.status.
1763 if test "$ac_new_set" = set; then
1765 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1766 *) ac_arg
=$ac_var=$ac_new_val ;;
1768 case " $ac_configure_args " in
1769 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1770 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1774 if $ac_cache_corrupted; then
1775 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1776 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1777 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1778 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1779 { (exit 1); exit 1; }; }
1799 ac_cpp
='$CPP $CPPFLAGS'
1800 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1801 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1802 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1805 ac_config_headers
="$ac_config_headers src/config.h:src/config.in"
1808 test "$program_prefix" != NONE
&&
1809 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1810 # Use a double $ so make ignores it.
1811 test "$program_suffix" != NONE
&&
1812 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1813 # Double any \ or $. echo might interpret backslashes.
1814 # By default was `s,x,x', remove it if useless.
1815 cat <<\_ACEOF
>conftest.
sed
1816 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1818 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1822 lispdir
='${datadir}/emacs/${version}/lisp'
1823 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1824 '${datadir}/emacs/site-lisp'
1825 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1826 etcdir
='${datadir}/emacs/${version}/etc'
1827 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1828 docdir
='${datadir}/emacs/${version}/etc'
1829 gamedir
='${localstatedir}/games/emacs'
1835 # Check whether --with-gcc was given.
1836 if test "${with_gcc+set}" = set; then
1842 # Check whether --with-pop was given.
1843 if test "${with_pop+set}" = set; then
1844 withval
=$with_pop; if test "$withval" = yes; then
1845 cat >>confdefs.h
<<\_ACEOF
1846 #define MAIL_USE_POP 1
1852 cat >>confdefs.h
<<\_ACEOF
1853 #define MAIL_USE_POP 1
1861 # Check whether --with-kerberos was given.
1862 if test "${with_kerberos+set}" = set; then
1863 withval
=$with_kerberos; if test "$withval" = yes; then
1864 cat >>confdefs.h
<<\_ACEOF
1874 # Check whether --with-kerberos5 was given.
1875 if test "${with_kerberos5+set}" = set; then
1876 withval
=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1877 if test "${with_kerberos+set}" != set; then
1879 cat >>confdefs.h
<<\_ACEOF
1885 cat >>confdefs.h
<<\_ACEOF
1894 # Check whether --with-hesiod was given.
1895 if test "${with_hesiod+set}" = set; then
1896 withval
=$with_hesiod; if test "$withval" = yes; then
1898 cat >>confdefs.h
<<\_ACEOF
1907 # Check whether --with-sound was given.
1908 if test "${with_sound+set}" = set; then
1909 withval
=$with_sound;
1914 # Check whether --with-x-toolkit was given.
1915 if test "${with_x_toolkit+set}" = set; then
1916 withval
=$with_x_toolkit; case "${withval}" in
1917 y | ye |
yes ) val
=gtk
;;
1919 l | lu | luc | luci | lucid
) val
=lucid
;;
1920 a |
at | ath | athe | athen | athena
) val
=athena
;;
1921 m | mo | mot | moti | motif
) val
=motif
;;
1922 g | gt | gtk
) val
=gtk
;;
1924 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1925 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1926 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1927 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1928 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1929 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1930 { (exit 1); exit 1; }; }
1939 # Check whether --with-xpm was given.
1940 if test "${with_xpm+set}" = set; then
1945 # Check whether --with-jpeg was given.
1946 if test "${with_jpeg+set}" = set; then
1951 # Check whether --with-tiff was given.
1952 if test "${with_tiff+set}" = set; then
1957 # Check whether --with-gif was given.
1958 if test "${with_gif+set}" = set; then
1963 # Check whether --with-png was given.
1964 if test "${with_png+set}" = set; then
1969 # Check whether --with-freetype was given.
1970 if test "${with_freetype+set}" = set; then
1971 withval
=$with_freetype;
1975 # Check whether --with-xft was given.
1976 if test "${with_xft+set}" = set; then
1981 # Check whether --with-gpm was given.
1982 if test "${with_gpm+set}" = set; then
1987 # Check whether --with-rsvg was given.
1988 if test "${with_rsvg+set}" = set; then
1993 # Check whether --with-gtk was given.
1994 if test "${with_gtk+set}" = set; then
1999 # Check whether --with-pkg-config-prog was given.
2000 if test "${with_pkg_config_prog+set}" = set; then
2001 withval
=$with_pkg_config_prog;
2005 # Check whether --with-toolkit-scroll-bars was given.
2006 if test "${with_toolkit_scroll_bars+set}" = set; then
2007 withval
=$with_toolkit_scroll_bars;
2011 # Check whether --with-xaw3d was given.
2012 if test "${with_xaw3d+set}" = set; then
2013 withval
=$with_xaw3d;
2017 # Check whether --with-xim was given.
2018 if test "${with_xim+set}" = set; then
2023 # Check whether --with-carbon was given.
2024 if test "${with_carbon+set}" = set; then
2025 withval
=$with_carbon;
2029 # Check whether --enable-carbon-app was given.
2030 if test "${enable_carbon_app+set}" = set; then
2031 enableval
=$enable_carbon_app; carbon_appdir_x
=${enableval}
2035 # Check whether --enable-font-backend was given.
2036 if test "${enable_font_backend+set}" = set; then
2037 enableval
=$enable_font_backend; USE_FONT_BACKEND
=$enableval
2043 # Check whether --enable-asserts was given.
2044 if test "${enable_asserts+set}" = set; then
2045 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2051 # Check whether --enable-maintainer-mode was given.
2052 if test "${enable_maintainer_mode+set}" = set; then
2053 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2055 USE_MAINTAINER_MODE
=no
2058 if test $USE_MAINTAINER_MODE = yes; then
2065 # Check whether --enable-locallisppath was given.
2066 if test "${enable_locallisppath+set}" = set; then
2067 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2069 elif test "${enableval}" != "yes"; then
2070 locallisppath
=${enableval}
2075 #### Make srcdir absolute, if it isn't already. It's important to
2076 #### avoid running the path through pwd unnecessarily, since pwd can
2077 #### give you automounter prefixes, which can go away. We do all this
2078 #### so Emacs can find its files when run uninstalled.
2079 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2084 ## We may be able to use the $PWD environment variable to make this
2085 ## absolute. But sometimes PWD is inaccurate.
2086 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2087 ## but that tested only for a well-formed and valid PWD,
2088 ## it did not object when PWD was well-formed and valid but just wrong.
2089 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2093 srcdir
="`(cd ${srcdir}; pwd)`"
2096 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2099 #### Check if the source directory already has a configured system in it.
2100 if test `pwd` != `(cd ${srcdir} && pwd)` \
2101 && test -f "${srcdir}/src/config.h" ; then
2102 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2103 as a build directory right now; it has been configured in its own
2104 right. To configure in another directory as well, you MUST
2105 use GNU make. If you do not have GNU make, then you must
2106 now do \`make distclean' in ${srcdir},
2107 and then run $0 again." >&5
2108 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2109 as a build directory right now; it has been configured in its own
2110 right. To configure in another directory as well, you MUST
2111 use GNU make. If you do not have GNU make, then you must
2112 now do \`make distclean' in ${srcdir},
2113 and then run $0 again." >&2;}
2116 #### Given the configuration name, set machfile and opsysfile to the
2117 #### names of the m/*.h and s/*.h files we should use.
2119 ### Canonicalize the configuration name.
2122 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2123 if test -f "$ac_dir/install-sh"; then
2125 ac_install_sh
="$ac_aux_dir/install-sh -c"
2127 elif test -f "$ac_dir/install.sh"; then
2129 ac_install_sh
="$ac_aux_dir/install.sh -c"
2131 elif test -f "$ac_dir/shtool"; then
2133 ac_install_sh
="$ac_aux_dir/shtool install -c"
2137 if test -z "$ac_aux_dir"; then
2138 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2139 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2140 { (exit 1); exit 1; }; }
2143 # These three variables are undocumented and unsupported,
2144 # and are intended to be withdrawn in a future Autoconf release.
2145 # They can cause serious problems if a builder's source tree is in a directory
2146 # whose full name contains unusual characters.
2147 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2148 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2149 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2152 # Make sure we can run config.sub.
2153 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2154 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2155 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2156 { (exit 1); exit 1; }; }
2158 { echo "$as_me:$LINENO: checking build system type" >&5
2159 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2160 if test "${ac_cv_build+set}" = set; then
2161 echo $ECHO_N "(cached) $ECHO_C" >&6
2163 ac_build_alias
=$build_alias
2164 test "x$ac_build_alias" = x
&&
2165 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2166 test "x$ac_build_alias" = x
&&
2167 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2168 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2169 { (exit 1); exit 1; }; }
2170 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2171 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2172 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2173 { (exit 1); exit 1; }; }
2176 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2177 echo "${ECHO_T}$ac_cv_build" >&6; }
2178 case $ac_cv_build in
2180 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2181 echo "$as_me: error: invalid value of canonical build" >&2;}
2182 { (exit 1); exit 1; }; };;
2185 ac_save_IFS
=$IFS; IFS
='-'
2191 # Remember, the first character of IFS is used to create $*,
2192 # except with old shells:
2195 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2198 { echo "$as_me:$LINENO: checking host system type" >&5
2199 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2200 if test "${ac_cv_host+set}" = set; then
2201 echo $ECHO_N "(cached) $ECHO_C" >&6
2203 if test "x$host_alias" = x
; then
2204 ac_cv_host
=$ac_cv_build
2206 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2207 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2208 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2209 { (exit 1); exit 1; }; }
2213 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2214 echo "${ECHO_T}$ac_cv_host" >&6; }
2217 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2218 echo "$as_me: error: invalid value of canonical host" >&2;}
2219 { (exit 1); exit 1; }; };;
2222 ac_save_IFS
=$IFS; IFS
='-'
2228 # Remember, the first character of IFS is used to create $*,
2229 # except with old shells:
2232 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2236 configuration
=${host_alias-${build_alias-$host}}
2240 ### If you add support for a new configuration, add code to this
2241 ### switch statement to recognize your configuration name and select
2242 ### the appropriate operating system and machine description files.
2244 ### You would hope that you could choose an m/*.h file pretty much
2245 ### based on the machine portion of the configuration name, and an s-
2246 ### file based on the operating system portion. However, it turns out
2247 ### that each m/*.h file is pretty manufacturer-specific - for
2248 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2249 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2250 ### machines. So we basically have to have a special case for each
2251 ### configuration name.
2253 ### As far as handling version numbers on operating systems is
2254 ### concerned, make sure things will fail in a fixable way. If
2255 ### /etc/MACHINES doesn't say anything about version numbers, be
2256 ### prepared to handle anything reasonably. If version numbers
2257 ### matter, be sure /etc/MACHINES says something about it.
2259 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2260 ### "System V Release 4"; he writes, "The old convention encouraged
2261 ### confusion between `system' and `release' levels'."
2263 machine
='' opsys
='' unported
=no
2264 case "${canonical}" in
2269 case "${canonical}" in
2270 alpha
*-*-freebsd*) machine
=alpha
;;
2271 ia64-
*-freebsd*) machine
=ia64
;;
2272 sparc64-
*-freebsd*) machine
=sparc
;;
2273 powerpc-
*-freebsd*) machine
=macppc
;;
2274 i
[3456]86-*-freebsd*) machine
=intel386
;;
2275 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2282 if test -f /usr
/lib
/crti.o
; then
2284 cat >>confdefs.h
<<\_ACEOF
2290 case "${canonical}" in
2291 alpha
*-*-netbsd*) machine
=alpha
;;
2292 i
[3456]86-*-netbsd*) machine
=intel386
;;
2294 # This is somewhat bogus.
2295 machine
=hp9000s300
;;
2296 mips-
*-netbsd*) machine
=pmax
;;
2297 mipsel-
*-netbsd*) machine
=pmax
;;
2298 mipseb-
*-netbsd*) machine
=pmax
;;
2299 ns32k-
*-netbsd*) machine
=ns32000
;;
2300 powerpc-
*-netbsd*) machine
=macppc
;;
2301 sparc
*-*-netbsd*) machine
=sparc
;;
2302 vax-
*-netbsd*) machine
=vax
;;
2303 arm-
*-netbsd*) machine
=arm
;;
2304 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2305 hppa-
*-netbsd*) machine
=hp800
;;
2306 shle-
*-netbsd*) machine
=sh3el
;;
2313 case "${canonical}" in
2314 alpha
*-*-openbsd*) machine
=alpha
;;
2315 arm-
*-openbsd*) machine
=arm
;;
2316 hppa-
*-openbsd*) machine
=hp9000s300
;;
2317 i386-
*-openbsd*) machine
=intel386
;;
2318 m68k-
*-openbsd*) machine
=hp9000s300
;;
2319 m88k-
*-openbsd*) machine
=aviion
;;
2320 mips64-
*-openbsd*) machine
=mips64
;;
2321 powerpc-
*-openbsd*) machine
=macppc
;;
2322 sh-
*-openbsd*) machine
=sh3el
;;
2323 sparc
*-*-openbsd*) machine
=sparc
;;
2324 vax-
*-openbsd*) machine
=vax
;;
2325 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2332 case "${canonical}" in
2333 i
[3456]86-*-lynxos*) machine
=intel386
;;
2334 powerpc-
*-lynxos*) machine
=powerpc
;;
2339 arm-acorn-riscix1.1
* )
2340 machine
=acorn opsys
=riscix1-1
2342 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2343 ## This name is riscix12 instead of riscix1.2
2344 ## to avoid a file name conflict on MSDOS.
2345 machine
=acorn opsys
=riscix12
2351 case "${canonical}" in
2352 i
[345]86-*-bsdi*) machine
=intel386
;;
2353 sparc-
*-bsdi*) machine
=sparc
;;
2354 powerpc-
*-bsdi*) machine
=macppc
;;
2356 case "${canonical}" in
2357 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2358 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2359 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2360 *-*-bsdi3* ) opsys
=bsdos3
;;
2361 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2366 ## Strictly speaking, we need the version of the alliant operating
2367 ## system to choose the right machine file, but currently the
2368 ## configuration name doesn't tell us enough to choose the right
2369 ## one; we need to give alliants their own operating system name to
2370 ## do this right. When someone cares, they can help us.
2372 machine
=alliant4 opsys
=bsd4-2
2375 machine
=alliant-2800 opsys
=bsd4-3
2378 ## Alpha (DEC) machines.
2380 machine
=alpha opsys
=osf1
2381 # This is needed to find X11R6.1 libraries for certain tests.
2382 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2383 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2384 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2385 # due to non-traditional preprocessing with the current compiler
2386 # defaults. OSF 4 can also have that compiler version, and there
2387 # seems always to have been a usable /usr/bin/cpp.
2388 NON_GNU_CPP
=/usr
/bin
/cpp
2389 case "${canonical}" in
2390 alpha
*-dec-osf[5-9]*)
2395 alpha
*-*-linux-gnu* )
2396 machine
=alpha opsys
=gnu-linux
2400 machine
=arm opsys
=gnu-linux
2405 machine
=altos opsys
=usg5-2
2410 machine
=amdahl opsys
=usg5-2-2
2413 ## Apollo, Domain/OS
2415 machine
=apollo opsys
=bsd4-3
2418 ## Apple Darwin / Mac OS X
2420 case "${canonical}" in
2421 i
[3456]86-* ) machine
=intel386
;;
2422 powerpc-
* ) machine
=powermac
;;
2426 # Define CPP as follows to make autoconf work correctly.
2427 CPP
="${CC-cc} -E -no-cpp-precomp"
2428 # Use fink packages if available.
2429 if test -d /sw
/include
&& test -d /sw
/lib
; then
2430 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2431 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2432 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2436 ## AT&T 3b2, 3b5, 3b15, 3b20
2438 machine
=att3b opsys
=usg5-2-2
2441 ## AT&T 3b1 - The Mighty Unix PC!
2443 machine
=7300 opsys
=usg5-2-2
2448 machine
=ibmrs6000 opsys
=aix3-2
2453 machine
=dpx2 opsys
=usg5-3
2458 machine
=sps7 opsys
=usg5-2
2461 ## CCI 5/32, 6/32 -- see "Tahoe".
2464 ## I don't know what configuration name to use for this; config.sub
2465 ## doesn't seem to know anything about it. Hey, Celerity users, get
2466 ## in touch with us!
2467 celerity-celerity-bsd
* )
2468 machine
=celerity opsys
=bsd4-2
2472 ## What operating systems does this chip run that Emacs has been
2476 ## We'll use the catch-all code at the bottom to guess the
2477 ## operating system.
2481 mips-compaq-nonstopux
* )
2482 machine
=nonstopux opsys
=nonstopux
2486 *-convex-bsd* |
*-convex-convexos* )
2487 machine
=convex opsys
=bsd4-3
2488 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2489 NON_GNU_CPP
="cc -E -P"
2493 i
[3456]86-cubix-sysv* )
2494 machine
=intel386 opsys
=usg5-3
2498 cydra
*-cydrome-sysv* )
2499 machine
=cydra5 opsys
=usg5-3
2502 ## Data General AViiON Machines
2503 ## DG changed naming conventions with the release of 5.4.4.10, they
2504 ## dropped the initial 5.4 but left the intervening R. Because of the
2505 ## R this shouldn't conflict with older versions of the OS (which I
2506 ## think were named like dgux4.*). In addition, DG new AViiONs series
2507 ## uses either Motorola M88k or Intel Pentium CPUs.
2508 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2509 machine
=aviion opsys
=dgux4
2511 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2512 ## This name is dgux5-4-3 instead of dgux5-4r3
2513 ## to avoid a file name conflict on MSDOS.
2514 machine
=aviion opsys
=dgux5-4-3
2516 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2517 machine
=aviion opsys
=dgux5-4r2
2520 machine
=aviion opsys
=dgux
2523 ## Data General AViiON Intel (x86) Machines
2524 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2525 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2526 i
[345]86-dg-dguxR4* )
2527 machine
=aviion-intel opsys
=dgux4
2531 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2532 machine
=pmax opsys
=bsd4-2
2534 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2535 machine
=pmax opsys
=bsd4-3
2538 machine
=pmax opsys
=ultrix4-3
2541 machine
=pmax opsys
=osf1
2543 mips-dec-mach_bsd4.3
* )
2544 machine
=pmax opsys
=mach-bsd4-3
2547 ## Motorola Delta machines
2548 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2549 machine
=delta opsys
=usg5-3
2550 if test -z "`type gnucc | grep 'not found'`"
2552 if test -s /etc
/167config
2553 then CC
="gnucc -m68040"
2554 else CC
="gnucc -m68881"
2557 if test -z "`type gcc | grep 'not found'`"
2563 m88k-motorola-sysv4
* )
2564 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2565 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2566 # I hope there are not other 4.0 versions for this machine
2567 # which really need usg5-4 instead.
2568 machine
=delta88k opsys
=usg5-4-2
2570 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2571 machine
=delta88k opsys
=usg5-3
2576 machine
=dual opsys
=usg5-2
2578 m68
*-dual-uniplus* )
2579 machine
=dual opsys
=unipl5-2
2584 machine
=elxsi opsys
=usg5-2
2589 machine
=ns16000 opsys
=umax
2592 ## The GEC 63 - apparently, this port isn't really finished yet.
2593 # I'm sure we finished off the last of the machines, though. -- fx
2595 ## Gould Power Node and NP1
2597 machine
=gould opsys
=bsd4-2
2600 machine
=gould opsys
=bsd4-3
2603 machine
=gould-np1 opsys
=bsd4-3
2606 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2607 ## as far as Emacs is concerned).
2609 # Build needs to be different on 7.0 and later releases
2610 case "`uname -r`" in
2611 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2612 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2614 NON_GNU_CPP
="/lib/cpp"
2616 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2618 machine
=nh3000 opsys
=cxux
2620 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2621 powerpc-harris-powerunix
)
2622 machine
=nh6000 opsys
=powerunix
2623 NON_GNU_CPP
="cc -Xo -E -P"
2625 ## SR2001/SR2201 running HI-UX/MPP
2626 hppa1.1
-hitachi-hiuxmpp* )
2627 machine
=sr2k opsys
=hiuxmpp
2629 hppa1.1
-hitachi-hiuxwe2* )
2630 machine
=sr2k opsys
=hiuxwe2
2633 xps
*-honeywell-sysv* )
2634 machine
=xps100 opsys
=usg5-2
2637 ## HP 9000 series 200 or 300
2639 machine
=hp9000s300 opsys
=bsd4-3
2641 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2643 case "`uname -r`" in
2644 ## Someone's system reports A.B8.05 for this.
2645 ## I wonder what other possibilities there are.
2646 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2647 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2648 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2649 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2650 *) machine
=hp9000s300 opsys
=hpux
;;
2654 ## HP 9000 series 700 and 800, running HP/UX
2656 machine
=hp800 opsys
=hpux
2659 machine
=hp800 opsys
=hpux8
2661 hppa
*-hp-hpux9shr* )
2662 machine
=hp800 opsys
=hpux9shr
2665 machine
=hp800 opsys
=hpux9
2667 hppa
*-hp-hpux10.2
* )
2668 machine
=hp800 opsys
=hpux10-20
2671 machine
=hp800 opsys
=hpux10
2673 hppa
*-hp-hpux1[1-9]* )
2674 machine
=hp800 opsys
=hpux11
2675 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2678 hppa
*-*-linux-gnu* )
2679 machine
=hp800 opsys
=gnu-linux
2682 ## HP 9000 series 700 and 800, running HP/UX
2684 ## Cross-compilation? Nah!
2685 case "`uname -r`" in
2686 ## Someone's system reports A.B8.05 for this.
2687 ## I wonder what other possibilities there are.
2688 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2689 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2690 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2691 *) machine
=hp800 opsys
=hpux10
;;
2695 machine
=hp800 opsys
=nextstep
2700 machine
=orion opsys
=bsd4-2
2702 clipper-orion-bsd
* )
2703 machine
=orion105 opsys
=bsd4-2
2707 i
[3456]86-ibm-aix1.1
* )
2708 machine
=ibmps2-aix opsys
=usg5-2-2
2710 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2711 machine
=ibmps2-aix opsys
=usg5-3
2714 machine
=ibm370aix opsys
=usg5-3
2717 machine
=ibms390 opsys
=gnu-linux
2719 s390x-
*-linux-gnu* )
2720 machine
=ibms390x opsys
=gnu-linux
2722 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2723 machine
=ibmrs6000 opsys
=aix3-1
2725 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2726 machine
=ibmrs6000 opsys
=aix3-2-5
2728 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2729 machine
=ibmrs6000 opsys
=aix4-1
2731 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2732 machine
=ibmrs6000 opsys
=aix4-2
2734 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2735 machine
=ibmrs6000 opsys
=aix4-2
2737 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2738 machine
=ibmrs6000 opsys
=aix4-2
2740 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2741 machine
=ibmrs6000 opsys
=aix4
2743 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2744 machine
=ibmrs6000 opsys
=aix4-1
2746 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2747 machine
=ibmrs6000 opsys
=aix3-2
2750 machine
=ibmrt opsys
=bsd4-3
2753 machine
=ibmrt opsys
=bsd4-2
2756 machine
=ibmrt opsys
=bsd4-3
2759 machine
=ibmrt opsys
=bsd4-2
2762 machine
=ibmrt opsys
=bsd4-3
2765 machine
=ibmrt opsys
=bsd4-3
2768 machine
=ibmrt-aix opsys
=usg5-2-2
2771 ## Integrated Solutions `Optimum V'
2773 machine
=isi-ov opsys
=bsd4-2
2776 machine
=isi-ov opsys
=bsd4-3
2779 ## Intel 386 machines where we do care about the manufacturer
2780 i
[3456]86-intsys-sysv* )
2781 machine
=is386 opsys
=usg5-2-2
2785 i
[3456]86-prime-sysv* )
2786 machine
=i386 opsys
=usg5-3
2789 ## Sequent Symmetry running Dynix
2790 i
[3456]86-sequent-bsd* )
2791 machine
=symmetry opsys
=bsd4-3
2794 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2795 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2796 machine
=sequent-ptx opsys
=ptx4
2797 NON_GNU_CPP
=/lib
/cpp
2800 ## Sequent Symmetry running DYNIX/ptx
2801 ## Use the old cpp rather than the newer ANSI one.
2802 i
[3456]86-sequent-ptx* )
2803 machine
=sequent-ptx opsys
=ptx
2804 NON_GNU_CPP
="/lib/cpp"
2807 ## ncr machine running svr4.3.
2808 i
[3456]86-ncr-sysv4.3
)
2809 machine
=ncr386 opsys
=usg5-4-3
2812 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2813 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2814 i
[3456]86-ncr-sysv* )
2815 machine
=ncr386 opsys
=usg5-4-2
2818 ## Intel Paragon OSF/1
2820 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2825 machine
=i860 opsys
=usg5-4
2826 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2827 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2830 ## Macintosh PowerPC
2831 powerpc
*-*-linux-gnu* )
2832 machine
=macppc opsys
=gnu-linux
2835 ## Masscomp machines
2836 m68
*-masscomp-rtu* )
2837 machine
=masscomp opsys
=rtu
2840 ## Megatest machines
2841 m68
*-megatest-bsd* )
2842 machine
=mega68 opsys
=bsd4-2
2845 ## Workstations sold by MIPS
2846 ## This is not necessarily all workstations using the MIPS processor -
2847 ## Irises are produced by SGI, and DECstations by DEC.
2849 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2850 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2851 ## it gives for choosing between the alternatives seems to be "Use
2852 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2853 ## the BSD world." I'll assume that these are instructions for
2854 ## handling two odd situations, and that every other situation
2855 ## should use mips.h and usg5-2-2, they being listed first.
2858 ## Fall through to the general code at the bottom to decide on the OS.
2860 mips-mips-riscos4
* )
2861 machine
=mips4 opsys
=bsd4-3
2862 NON_GNU_CC
="cc -systype bsd43"
2863 NON_GNU_CPP
="cc -systype bsd43 -E"
2865 mips-mips-riscos5
* )
2866 machine
=mips4 opsys
=riscos5
2867 NON_GNU_CC
="cc -systype bsd43"
2868 NON_GNU_CPP
="cc -systype bsd43 -E"
2871 machine
=mips opsys
=bsd4-3
2874 machine
=mips opsys
=usg5-2-2
2878 m68
*-next-* | m68k-
*-nextstep* )
2879 machine
=m68k opsys
=nextstep
2882 ## The complete machine from National Semiconductor
2884 machine
=ns32000 opsys
=usg5-2
2888 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2889 machine
=tower32 opsys
=usg5-2-2
2891 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2892 machine
=tower32v3 opsys
=usg5-3
2897 machine
=ews4800 opsys
=ux4800
2900 ## Nixdorf Targon 31
2901 m68
*-nixdorf-sysv* )
2902 machine
=targon31 opsys
=usg5-2-2
2907 machine
=nu opsys
=usg5-2
2912 machine
=plexus opsys
=usg5-2
2916 ## I don't really have any idea what sort of processor the Pyramid has,
2917 ## so I'm assuming it is its own architecture.
2918 pyramid-pyramid-bsd
* )
2919 machine
=pyramid opsys
=bsd4-2
2923 ns32k-sequent-bsd4.2
* )
2924 machine
=sequent opsys
=bsd4-2
2926 ns32k-sequent-bsd4.3
* )
2927 machine
=sequent opsys
=bsd4-3
2931 mips-siemens-sysv
* | mips-sni-sysv
*)
2932 machine
=mips-siemens opsys
=usg5-4
2933 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2934 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2937 ## Silicon Graphics machines
2938 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2940 machine
=irist opsys
=iris3-5
2942 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2943 machine
=irist opsys
=iris3-6
2947 machine
=iris4d opsys
=irix3-3
2950 machine
=iris4d opsys
=irix4-0
2953 machine
=iris4d opsys
=irix6-5
2954 # Without defining _LANGUAGE_C, things get masked out in the headers
2955 # so that, for instance, grepping for `free' in stdlib.h fails and
2956 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2957 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2958 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2961 machine
=iris4d opsys
=irix6-0
2962 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2963 # but presumably it does no harm.
2964 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2965 # -32 probably isn't necessary in later v.6s -- anyone know which?
2966 NON_GCC_TEST_OPTIONS
=-32
2968 mips-sgi-irix5.
[01]* )
2969 machine
=iris4d opsys
=irix5-0
2971 mips-sgi-irix5
* | mips-sgi-irix
* )
2972 machine
=iris4d opsys
=irix5-2
2977 machine
=news opsys
=bsd4-2
2980 machine
=news opsys
=bsd4-3
2982 m68
*-sony-newsos3* | m68
*-sony-news3*)
2983 machine
=news opsys
=bsd4-3
2985 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2986 machine
=news-risc opsys
=bsd4-3
2988 mips-sony-newsos6
* )
2989 machine
=news-r6 opsys
=newsos6
2992 machine
=news-risc opsys
=newsos5
2997 machine
=stride opsys
=usg5-2
3001 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
3002 machine
=sparc opsys
=gnu-linux
3005 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
3006 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
3007 | rs6000-
*-solaris2*)
3008 case "${canonical}" in
3009 m68
*-sunos1* ) machine
=sun1
;;
3010 m68
*-sunos2* ) machine
=sun2
;;
3011 m68
* ) machine
=sun3
;;
3012 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
3013 i
[3456]86-*-* ) machine
=intel386
;;
3014 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
3015 powerpcle
* ) machine
=powerpcle
;;
3016 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
3017 sparc
* ) machine
=sparc
;;
3020 case "${canonical}" in
3021 ## The Sun386 didn't get past 4.0.
3022 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
3023 *-sunos4.0
* ) opsys
=sunos4-0
;;
3024 *-sunos4.1.
[3-9]*noshare
)
3025 ## This name is sunos413 instead of sunos4-1-3
3026 ## to avoid a file name conflict on MSDOS.
3028 NON_GNU_CPP
=/usr
/lib
/cpp
3029 NON_GCC_TEST_OPTIONS
=-Bstatic
3030 GCC_TEST_OPTIONS
=-static
3032 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
3034 NON_GNU_CPP
=/usr
/lib
/cpp
3036 *-sunos4* |
*-sunos )
3038 NON_GCC_TEST_OPTIONS
=-Bstatic
3039 GCC_TEST_OPTIONS
=-static
3041 *-sunos5.3
* |
*-solaris2.3
* )
3043 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3045 *-sunos5.4
* |
*-solaris2.4
* )
3047 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3050 *-sunos5.5
* |
*-solaris2.5
* )
3052 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3055 *-sunos5.6
* |
*-solaris2.6
* )
3057 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3060 *-sunos5* |
*-solaris* )
3062 emacs_check_sunpro_c
=yes
3063 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3067 ## Watch out for a compiler that we know will not work.
3068 case "${canonical}" in
3069 *-solaris* |
*-sunos5* )
3070 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3071 ## /usr/ucb/cc doesn't work;
3072 ## we should find some other compiler that does work.
3080 machine
=sparc opsys
=nextstep
3084 m68
*-tadpole-sysv* )
3085 machine
=tad68k opsys
=usg5-3
3089 tahoe-tahoe-bsd4.2
* )
3090 machine
=tahoe opsys
=bsd4-2
3092 tahoe-tahoe-bsd4.3
* )
3093 machine
=tahoe opsys
=bsd4-3
3096 ## Tandem Integrity S2
3098 machine
=tandem-s2 opsys
=usg5-3
3102 m88k-tektronix-sysv3
* )
3103 machine
=tekxd88 opsys
=usg5-3
3106 ## Tektronix 16000 box (6130?)
3107 ns16k-tektronix-bsd
* )
3108 machine
=ns16000 opsys
=bsd4-2
3111 ## src/m/tek4300.h hints that this is a m68k machine.
3112 m68
*-tektronix-bsd* )
3113 machine
=tek4300 opsys
=bsd4-3
3117 ## We seem to have lost the machine-description file titan.h!
3119 machine
=titan opsys
=usg5-3
3122 ## Ustation E30 (SS5E)
3123 m68
*-unisys-uniplus* )
3124 machine
=ustation opsystem
=unipl5-2
3130 case "${canonical}" in
3131 *-bsd4.1
* ) opsys
=bsd4-1
;;
3132 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3133 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3134 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3135 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3136 *-vms* ) opsys
=vms
;;
3142 ns16k-whitechapel-
* )
3144 ## We don't know what sort of OS runs on these; we'll let the
3145 ## operating system guessing code below try.
3150 machine
=wicat opsys
=usg5-2
3155 machine
=ia64 opsys
=gnu-linux
3158 ## Intel 386 machines where we don't care about the manufacturer
3161 case "${canonical}" in
3162 *-cygwin ) opsys
=cygwin
;;
3163 *-darwin* ) opsys
=darwin
3164 CPP
="${CC-cc} -E -no-cpp-precomp"
3166 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3167 *-isc2.2
* ) opsys
=isc2-2
;;
3168 *-isc4.0
* ) opsys
=isc4-0
;;
3169 *-isc4.
* ) opsys
=isc4-1
3170 GCC_TEST_OPTIONS
=-posix
3171 NON_GCC_TEST_OPTIONS
=-Xp
3173 *-isc* ) opsys
=isc3-0
;;
3174 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3175 *-esix* ) opsys
=esix
;;
3176 *-xenix* ) opsys
=xenix
;;
3177 *-linux-gnu* ) opsys
=gnu-linux
;;
3178 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3179 *-sco3.2v5
* ) opsys
=sco5
3180 NON_GNU_CPP
=/lib
/cpp
3181 # Prevent -belf from being passed to $CPP.
3182 # /lib/cpp does not accept it.
3183 OVERRIDE_CPPFLAGS
=" "
3185 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3186 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3187 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3188 *-386bsd* ) opsys
=386bsd
;;
3189 *-nextstep* ) opsys
=nextstep
;;
3190 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3194 ## m68k Linux-based GNU system
3196 machine
=m68k opsys
=gnu-linux
3199 ## Mips Linux-based GNU system
3200 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3201 machine
=mips opsys
=gnu-linux
3205 sparc-fujitsu-sysv4
* )
3206 machine
=sparc opsys
=uxpds
3207 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3212 f301-fujitsu-uxpv4.1
)
3213 machine
=f301 opsys
=uxpv
3216 ## AMD x86-64 Linux-based GNU system
3217 x86_64-
*-linux-gnu* )
3218 machine
=amdx86-64 opsys
=gnu-linux
3221 ## Tensilica Xtensa Linux-based GNU system
3222 xtensa-
*-linux-gnu* )
3223 machine
=xtensa opsys
=gnu-linux
3231 ### If the code above didn't choose an operating system, just choose
3232 ### an operating system based on the configuration name. You really
3233 ### only want to use this when you have no idea what the right
3234 ### operating system is; if you know what operating systems a machine
3235 ### runs, it's cleaner to make it explicit in the case statement
3237 if test x
"${opsys}" = x
; then
3238 case "${canonical}" in
3239 *-gnu* ) opsys
=gnu
;;
3240 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3241 *-bsd4.2
) opsys
=bsd4-2
;;
3242 *-bsd4.3
) opsys
=bsd4-3
;;
3243 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3244 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3245 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3246 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3247 *-sysv4.2uw
* ) opsys
=unixware
;;
3248 *-sysv5uw* ) opsys
=unixware
;;
3249 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3250 *-sysv4.1
* |
*-sysvr4.1
* )
3251 NON_GNU_CPP
=/usr
/lib
/cpp
3253 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3254 if [ x
$NON_GNU_CPP = x
]; then
3255 if [ -f /usr
/ccs
/lib
/cpp
]; then
3256 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3258 NON_GNU_CPP
=/lib
/cpp
3262 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3271 if test $unported = yes; then
3272 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3273 Check \`etc/MACHINES' for recognized configuration names." >&5
3274 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3275 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3276 { (exit 1); exit 1; }; }
3279 machfile
="m/${machine}.h"
3280 opsysfile
="s/${opsys}.h"
3283 #### Choose a compiler.
3284 test -n "$CC" && cc_specified
=yes
3286 # Save the value of CFLAGS that the user specified.
3287 SPECIFIED_CFLAGS
="$CFLAGS"
3290 "yes" ) CC
="gcc" GCC
=yes ;;
3291 "no" ) : ${CC=cc} ;;
3295 ac_cpp
='$CPP $CPPFLAGS'
3296 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3297 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3298 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3299 if test -n "$ac_tool_prefix"; then
3300 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3301 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3302 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3304 if test "${ac_cv_prog_CC+set}" = set; then
3305 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 if test -n "$CC"; then
3308 ac_cv_prog_CC
="$CC" # Let the user override the test.
3310 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3314 test -z "$as_dir" && as_dir
=.
3315 for ac_exec_ext
in '' $ac_executable_extensions; do
3316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3317 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 if test -n "$CC"; then
3329 { echo "$as_me:$LINENO: result: $CC" >&5
3330 echo "${ECHO_T}$CC" >&6; }
3332 { echo "$as_me:$LINENO: result: no" >&5
3333 echo "${ECHO_T}no" >&6; }
3338 if test -z "$ac_cv_prog_CC"; then
3340 # Extract the first word of "gcc", so it can be a program name with args.
3341 set dummy gcc
; ac_word
=$2
3342 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3343 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3344 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3345 echo $ECHO_N "(cached) $ECHO_C" >&6
3347 if test -n "$ac_ct_CC"; then
3348 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3354 test -z "$as_dir" && as_dir
=.
3355 for ac_exec_ext
in '' $ac_executable_extensions; do
3356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357 ac_cv_prog_ac_ct_CC
="gcc"
3358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3367 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3368 if test -n "$ac_ct_CC"; then
3369 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3370 echo "${ECHO_T}$ac_ct_CC" >&6; }
3372 { echo "$as_me:$LINENO: result: no" >&5
3373 echo "${ECHO_T}no" >&6; }
3376 if test "x$ac_ct_CC" = x
; then
3379 case $cross_compiling:$ac_tool_warned in
3381 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3382 whose name does not start with the host triplet. If you think this
3383 configuration is useful to you, please write to autoconf@gnu.org." >&5
3384 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3385 whose name does not start with the host triplet. If you think this
3386 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3387 ac_tool_warned
=yes ;;
3395 if test -z "$CC"; then
3396 if test -n "$ac_tool_prefix"; then
3397 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3398 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3401 if test "${ac_cv_prog_CC+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3404 if test -n "$CC"; then
3405 ac_cv_prog_CC
="$CC" # Let the user override the test.
3407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3411 test -z "$as_dir" && as_dir
=.
3412 for ac_exec_ext
in '' $ac_executable_extensions; do
3413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3414 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3425 if test -n "$CC"; then
3426 { echo "$as_me:$LINENO: result: $CC" >&5
3427 echo "${ECHO_T}$CC" >&6; }
3429 { echo "$as_me:$LINENO: result: no" >&5
3430 echo "${ECHO_T}no" >&6; }
3436 if test -z "$CC"; then
3437 # Extract the first word of "cc", so it can be a program name with args.
3438 set dummy cc
; ac_word
=$2
3439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3441 if test "${ac_cv_prog_CC+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC
="$CC" # Let the user override the test.
3448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3452 test -z "$as_dir" && as_dir
=.
3453 for ac_exec_ext
in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3456 ac_prog_rejected
=yes
3460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 if test $ac_prog_rejected = yes; then
3468 # We found a bogon in the path, so make sure we never use it.
3469 set dummy
$ac_cv_prog_CC
3471 if test $# != 0; then
3472 # We chose a different compiler from the bogus one.
3473 # However, it has the same basename, so the bogon will be chosen
3474 # first if we set CC to just the basename; use the full file name.
3476 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3482 if test -n "$CC"; then
3483 { echo "$as_me:$LINENO: result: $CC" >&5
3484 echo "${ECHO_T}$CC" >&6; }
3486 { echo "$as_me:$LINENO: result: no" >&5
3487 echo "${ECHO_T}no" >&6; }
3492 if test -z "$CC"; then
3493 if test -n "$ac_tool_prefix"; then
3494 for ac_prog
in cl.exe
3496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3497 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3500 if test "${ac_cv_prog_CC+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 if test -n "$CC"; then
3504 ac_cv_prog_CC
="$CC" # Let the user override the test.
3506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3510 test -z "$as_dir" && as_dir
=.
3511 for ac_exec_ext
in '' $ac_executable_extensions; do
3512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 if test -n "$CC"; then
3525 { echo "$as_me:$LINENO: result: $CC" >&5
3526 echo "${ECHO_T}$CC" >&6; }
3528 { echo "$as_me:$LINENO: result: no" >&5
3529 echo "${ECHO_T}no" >&6; }
3533 test -n "$CC" && break
3536 if test -z "$CC"; then
3538 for ac_prog
in cl.exe
3540 # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy
$ac_prog; ac_word
=$2
3542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3544 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3545 echo $ECHO_N "(cached) $ECHO_C" >&6
3547 if test -n "$ac_ct_CC"; then
3548 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir
=.
3555 for ac_exec_ext
in '' $ac_executable_extensions; do
3556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3557 ac_cv_prog_ac_ct_CC
="$ac_prog"
3558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3568 if test -n "$ac_ct_CC"; then
3569 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3570 echo "${ECHO_T}$ac_ct_CC" >&6; }
3572 { echo "$as_me:$LINENO: result: no" >&5
3573 echo "${ECHO_T}no" >&6; }
3577 test -n "$ac_ct_CC" && break
3580 if test "x$ac_ct_CC" = x
; then
3583 case $cross_compiling:$ac_tool_warned in
3585 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3586 whose name does not start with the host triplet. If you think this
3587 configuration is useful to you, please write to autoconf@gnu.org." >&5
3588 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3589 whose name does not start with the host triplet. If you think this
3590 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3591 ac_tool_warned
=yes ;;
3600 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3601 See \`config.log' for more details." >&5
3602 echo "$as_me: error: no acceptable C compiler found in \$PATH
3603 See \`config.log' for more details." >&2;}
3604 { (exit 1); exit 1; }; }
3606 # Provide some information about the compiler.
3607 echo "$as_me:$LINENO: checking for C compiler version" >&5
3608 ac_compiler
=`set X $ac_compile; echo $2`
3609 { (ac_try
="$ac_compiler --version >&5"
3611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3612 *) ac_try_echo=$ac_try;;
3614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615 (eval "$ac_compiler --version >&5") 2>&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); }
3619 { (ac_try="$ac_compiler -v >&5"
3621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3622 *) ac_try_echo
=$ac_try;;
3624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3625 (eval "$ac_compiler -v >&5") 2>&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }
3629 { (ac_try
="$ac_compiler -V >&5"
3631 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3632 *) ac_try_echo=$ac_try;;
3634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3635 (eval "$ac_compiler -V >&5") 2>&5
3637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3638 (exit $ac_status); }
3640 cat >conftest.$ac_ext <<_ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3655 ac_clean_files_save=$ac_clean_files
3656 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3657 # Try to create an executable without -o first, disregard a.out.
3658 # It will help us diagnose broken compilers, and finding out an intuition
3660 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3661 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3662 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3664 # List of possible output files, starting from the most likely.
3665 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3666 # only as a last resort. b.out is created by i960 compilers.
3667 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3669 # The IRIX 6 linker writes into existing files which may not be
3670 # executable, retaining their permissions. Remove them first so a
3671 # subsequent execution test works.
3673 for ac_file in $ac_files
3676 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3677 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3682 if { (ac_try="$ac_link_default"
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3688 (eval "$ac_link_default") 2>&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; then
3692 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3693 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3694 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3695 # so that the user can short-circuit this test for compilers unknown to
3697 for ac_file
in $ac_files ''
3699 test -f "$ac_file" ||
continue
3701 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3704 # We found the default executable, but exeext='' is most
3708 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3710 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3712 # We set ac_cv_exeext here because the later test for it is not
3713 # safe: cross compilers may not add the suffix if given an `-o'
3714 # argument, so we may need to know it at that point already.
3715 # Even if this section looks crufty: it has the advantage of
3722 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3728 { echo "$as_me:$LINENO: result: $ac_file" >&5
3729 echo "${ECHO_T}$ac_file" >&6; }
3730 if test -z "$ac_file"; then
3731 echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.
$ac_ext >&5
3734 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3735 See \`config.log' for more details." >&5
3736 echo "$as_me: error: C compiler cannot create executables
3737 See \`config.log' for more details." >&2;}
3738 { (exit 77); exit 77; }; }
3741 ac_exeext
=$ac_cv_exeext
3743 # Check that the compiler produces executables we can run. If not, either
3744 # the compiler is broken, or we cross compile.
3745 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3746 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3747 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3748 # If not cross compiling, check that we can run a simple program.
3749 if test "$cross_compiling" != yes; then
3750 if { ac_try
='./$ac_file'
3751 { (case "(($ac_try" in
3752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3753 *) ac_try_echo=$ac_try;;
3755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3756 (eval "$ac_try") 2>&5
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3762 if test "$cross_compiling" = maybe; then
3765 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3766 If you meant to cross compile, use \`--host'.
3767 See \`config.log' for more details.
" >&5
3768 echo "$as_me: error
: cannot run C compiled programs.
3769 If you meant to cross compile
, use \
`--host'.
3770 See \`config.log
' for more details." >&2;}
3771 { (exit 1); exit 1; }; }
3775 { echo "$as_me:$LINENO: result: yes" >&5
3776 echo "${ECHO_T}yes" >&6; }
3778 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3779 ac_clean_files=$ac_clean_files_save
3780 # Check that the compiler produces executables we can run. If not, either
3781 # the compiler is broken, or we cross compile.
3782 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3783 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3784 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3785 echo "${ECHO_T}$cross_compiling" >&6; }
3787 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3788 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3789 if { (ac_try="$ac_link"
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_link") 2>&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); }; then
3799 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3800 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3801 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3803 for ac_file
in conftest.exe conftest conftest.
*; do
3804 test -f "$ac_file" ||
continue
3806 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3807 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3813 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3814 See \`config.log' for more details." >&5
3815 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3816 See \`config.log' for more details." >&2;}
3817 { (exit 1); exit 1; }; }
3820 rm -f conftest
$ac_cv_exeext
3821 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3822 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3824 rm -f conftest.
$ac_ext
3825 EXEEXT
=$ac_cv_exeext
3827 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3828 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3829 if test "${ac_cv_objext+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 cat >conftest.
$ac_ext <<_ACEOF
3835 cat confdefs.h
>>conftest.
$ac_ext
3836 cat >>conftest.
$ac_ext <<_ACEOF
3837 /* end confdefs.h. */
3847 rm -f conftest.o conftest.obj
3848 if { (ac_try
="$ac_compile"
3850 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3854 (eval "$ac_compile") 2>&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); }; then
3858 for ac_file in conftest.o conftest.obj conftest.*; do
3859 test -f "$ac_file" || continue;
3861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3862 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3871 See \`config.log
' for more details." >&5
3872 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3873 See \`config.log' for more details.
" >&2;}
3874 { (exit 1); exit 1; }; }
3877 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3879 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3880 echo "${ECHO_T}$ac_cv_objext" >&6; }
3881 OBJEXT=$ac_cv_objext
3883 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3884 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3885 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3886 echo $ECHO_N "(cached
) $ECHO_C" >&6
3888 cat >conftest.$ac_ext <<_ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3906 rm -f conftest.$ac_objext
3907 if { (ac_try="$ac_compile"
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_compile") 2>conftest.er1
3915 grep -v '^ *+' conftest.er1 >conftest.err
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3919 (exit $ac_status); } && {
3920 test -z "$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3922 } && test -s conftest.$ac_objext; then
3925 echo "$as_me: failed program was
:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3935 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3936 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3937 GCC=`test $ac_compiler_gnu = yes && echo yes`
3938 ac_test_CFLAGS=${CFLAGS+set}
3939 ac_save_CFLAGS=$CFLAGS
3940 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3941 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3942 if test "${ac_cv_prog_cc_g+set}" = set; then
3943 echo $ECHO_N "(cached
) $ECHO_C" >&6
3945 ac_save_c_werror_flag=$ac_c_werror_flag
3946 ac_c_werror_flag=yes
3949 cat >conftest.$ac_ext <<_ACEOF
3952 cat confdefs.h >>conftest.$ac_ext
3953 cat >>conftest.$ac_ext <<_ACEOF
3954 /* end confdefs.h. */
3964 rm -f conftest.$ac_objext
3965 if { (ac_try="$ac_compile"
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_compile") 2>conftest.er1
3973 grep -v '^ *+' conftest.er1 >conftest.err
3975 cat conftest.err >&5
3976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3977 (exit $ac_status); } && {
3978 test -z "$ac_c_werror_flag" ||
3979 test ! -s conftest.err
3980 } && test -s conftest.$ac_objext; then
3983 echo "$as_me: failed program was
:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3987 cat >conftest.$ac_ext <<_ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
4002 rm -f conftest.$ac_objext
4003 if { (ac_try="$ac_compile"
4005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4006 *) ac_try_echo=$ac_try;;
4008 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4009 (eval "$ac_compile") 2>conftest.er1
4011 grep -v '^ *+' conftest.er1 >conftest.err
4013 cat conftest.err >&5
4014 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4015 (exit $ac_status); } && {
4016 test -z "$ac_c_werror_flag" ||
4017 test ! -s conftest.err
4018 } && test -s conftest.$ac_objext; then
4021 echo "$as_me: failed program was
:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4024 ac_c_werror_flag=$ac_save_c_werror_flag
4026 cat >conftest.$ac_ext <<_ACEOF
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h. */
4041 rm -f conftest.$ac_objext
4042 if { (ac_try="$ac_compile"
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4047 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4048 (eval "$ac_compile") 2>conftest.er1
4050 grep -v '^ *+' conftest.er1 >conftest.err
4052 cat conftest.err >&5
4053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4054 (exit $ac_status); } && {
4055 test -z "$ac_c_werror_flag" ||
4056 test ! -s conftest.err
4057 } && test -s conftest.$ac_objext; then
4060 echo "$as_me: failed program was
:" >&5
4061 sed 's/^/| /' conftest.$ac_ext >&5
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4073 ac_c_werror_flag=$ac_save_c_werror_flag
4075 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4076 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4077 if test "$ac_test_CFLAGS" = set; then
4078 CFLAGS=$ac_save_CFLAGS
4079 elif test $ac_cv_prog_cc_g = yes; then
4080 if test "$GCC" = yes; then
4086 if test "$GCC" = yes; then
4092 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4093 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4094 if test "${ac_cv_prog_cc_c89+set}" = set; then
4095 echo $ECHO_N "(cached
) $ECHO_C" >&6
4097 ac_cv_prog_cc_c89=no
4099 cat >conftest.$ac_ext <<_ACEOF
4102 cat confdefs.h >>conftest.$ac_ext
4103 cat >>conftest.$ac_ext <<_ACEOF
4104 /* end confdefs.h. */
4107 #include <sys/types.h>
4108 #include <sys/stat.h>
4109 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4110 struct buf { int x; };
4111 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4112 static char *e (p, i)
4118 static char *f (char * (*g) (char **, int), char **p, ...)
4123 s = g (p, va_arg (v,int));
4128 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4129 function prototypes and stuff, but not '\xHH' hex character constants.
4130 These don't provoke an error unfortunately, instead are silently treated
4131 as 'x'. The following induces an error, until -std is added to get
4132 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4133 array size at least. It's necessary to write '\x00'==0 to get something
4134 that's true only with -std. */
4135 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4137 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4138 inside strings and character constants. */
4140 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4142 int test (int i, double x);
4143 struct s1 {int (*f) (int a);};
4144 struct s2 {int (*f) (double a);};
4145 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4151 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4156 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4157 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4159 CC="$ac_save_CC $ac_arg"
4160 rm -f conftest.$ac_objext
4161 if { (ac_try="$ac_compile"
4163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4164 *) ac_try_echo=$ac_try;;
4166 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4167 (eval "$ac_compile") 2>conftest.er1
4169 grep -v '^ *+' conftest.er1 >conftest.err
4171 cat conftest.err >&5
4172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4173 (exit $ac_status); } && {
4174 test -z "$ac_c_werror_flag" ||
4175 test ! -s conftest.err
4176 } && test -s conftest.$ac_objext; then
4177 ac_cv_prog_cc_c89=$ac_arg
4179 echo "$as_me: failed program was
:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4185 rm -f core conftest.err conftest.$ac_objext
4186 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4188 rm -f conftest.$ac_ext
4193 case "x
$ac_cv_prog_cc_c89" in
4195 { echo "$as_me:$LINENO: result
: none needed
" >&5
4196 echo "${ECHO_T}none needed
" >&6; } ;;
4198 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4199 echo "${ECHO_T}unsupported
" >&6; } ;;
4201 CC="$CC $ac_cv_prog_cc_c89"
4202 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4203 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4208 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4214 # On Suns, sometimes $CPP names a directory.
4215 if test -n "$CPP" && test -d "$CPP"; then
4219 ## If not using gcc, and on Solaris, and no CPP specified, see if
4220 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4221 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4222 test x"$CPP" = x; then
4223 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
4224 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
4226 if test "${emacs_cv_sunpro_c+set}" = set; then
4227 echo $ECHO_N "(cached
) $ECHO_C" >&6
4229 cat >conftest.$ac_ext <<_ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4247 rm -f conftest.$ac_objext conftest$ac_exeext
4248 if { (ac_try="$ac_link"
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4253 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4254 (eval "$ac_link") 2>conftest.er1
4256 grep -v '^ *+' conftest.er1 >conftest.err
4258 cat conftest.err >&5
4259 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4260 (exit $ac_status); } && {
4261 test -z "$ac_c_werror_flag" ||
4262 test ! -s conftest.err
4263 } && test -s conftest$ac_exeext &&
4264 $as_test_x conftest$ac_exeext; then
4265 emacs_cv_sunpro_c=yes
4267 echo "$as_me: failed program was
:" >&5
4268 sed 's/^/| /' conftest.$ac_ext >&5
4270 emacs_cv_sunpro_c=no
4273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4274 conftest$ac_exeext conftest.$ac_ext
4277 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
4278 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4280 if test x"$emacs_cv_sunpro_c" = xyes; then
4281 NON_GNU_CPP="$CC -E -Xs"
4285 #### Some systems specify a CPP to use unless we are using GCC.
4286 #### Now that we know whether we are using GCC, we can decide whether
4287 #### to use that one.
4288 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4293 #### Some systems specify a CC to use unless we are using GCC.
4294 #### Now that we know whether we are using GCC, we can decide whether
4295 #### to use that one.
4296 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4297 test x$cc_specified != xyes
4302 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4304 CC="$CC $GCC_TEST_OPTIONS"
4307 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4309 CC="$CC $NON_GCC_TEST_OPTIONS"
4313 ac_cpp='$CPP $CPPFLAGS'
4314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4317 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4318 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4319 # On Suns, sometimes $CPP names a directory.
4320 if test -n "$CPP" && test -d "$CPP"; then
4323 if test -z "$CPP"; then
4324 if test "${ac_cv_prog_CPP+set}" = set; then
4325 echo $ECHO_N "(cached
) $ECHO_C" >&6
4327 # Double quotes because CPP needs to be expanded
4328 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4331 for ac_c_preproc_warn_flag in '' yes
4333 # Use a header file that comes with gcc, so configuring glibc
4334 # with a fresh cross-compiler works.
4335 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4336 # <limits.h> exists even on freestanding compilers.
4337 # On the NeXT, cc -E runs the code through the compiler's parser,
4338 # not just through cpp. "Syntax error
" is here to catch this case.
4339 cat >conftest.$ac_ext <<_ACEOF
4342 cat confdefs.h >>conftest.$ac_ext
4343 cat >>conftest.$ac_ext <<_ACEOF
4344 /* end confdefs.h. */
4346 # include <limits.h>
4348 # include <assert.h>
4352 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4355 *) ac_try_echo=$ac_try;;
4357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4358 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4360 grep -v '^ *+' conftest.er1 >conftest.err
4362 cat conftest.err >&5
4363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4364 (exit $ac_status); } >/dev/null && {
4365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4366 test ! -s conftest.err
4370 echo "$as_me: failed program was
:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4373 # Broken: fails on valid input.
4377 rm -f conftest.err conftest.$ac_ext
4379 # OK, works on sane cases. Now check whether nonexistent headers
4380 # can be detected and how.
4381 cat >conftest.$ac_ext <<_ACEOF
4384 cat confdefs.h >>conftest.$ac_ext
4385 cat >>conftest.$ac_ext <<_ACEOF
4386 /* end confdefs.h. */
4387 #include <ac_nonexistent.h>
4389 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4392 *) ac_try_echo=$ac_try;;
4394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4395 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4397 grep -v '^ *+' conftest.er1 >conftest.err
4399 cat conftest.err >&5
4400 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4401 (exit $ac_status); } >/dev/null && {
4402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4403 test ! -s conftest.err
4405 # Broken: success on invalid input.
4408 echo "$as_me: failed program was
:" >&5
4409 sed 's/^/| /' conftest.$ac_ext >&5
4411 # Passes both tests.
4416 rm -f conftest.err conftest.$ac_ext
4419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4420 rm -f conftest.err conftest.$ac_ext
4421 if $ac_preproc_ok; then
4433 { echo "$as_me:$LINENO: result
: $CPP" >&5
4434 echo "${ECHO_T}$CPP" >&6; }
4436 for ac_c_preproc_warn_flag in '' yes
4438 # Use a header file that comes with gcc, so configuring glibc
4439 # with a fresh cross-compiler works.
4440 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4441 # <limits.h> exists even on freestanding compilers.
4442 # On the NeXT, cc -E runs the code through the compiler's parser,
4443 # not just through cpp. "Syntax error
" is here to catch this case.
4444 cat >conftest.$ac_ext <<_ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4451 # include <limits.h>
4453 # include <assert.h>
4457 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4462 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4465 grep -v '^ *+' conftest.er1 >conftest.err
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4469 (exit $ac_status); } >/dev/null && {
4470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4471 test ! -s conftest.err
4475 echo "$as_me: failed program was
:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4478 # Broken: fails on valid input.
4482 rm -f conftest.err conftest.$ac_ext
4484 # OK, works on sane cases. Now check whether nonexistent headers
4485 # can be detected and how.
4486 cat >conftest.$ac_ext <<_ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4491 /* end confdefs.h. */
4492 #include <ac_nonexistent.h>
4494 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4500 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4502 grep -v '^ *+' conftest.er1 >conftest.err
4504 cat conftest.err >&5
4505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4506 (exit $ac_status); } >/dev/null && {
4507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4508 test ! -s conftest.err
4510 # Broken: success on invalid input.
4513 echo "$as_me: failed program was
:" >&5
4514 sed 's/^/| /' conftest.$ac_ext >&5
4516 # Passes both tests.
4521 rm -f conftest.err conftest.$ac_ext
4524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4525 rm -f conftest.err conftest.$ac_ext
4526 if $ac_preproc_ok; then
4529 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4530 See \
`config.log' for more details." >&5
4531 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4532 See \`config.log
' for more details." >&2;}
4533 { (exit 1); exit 1; }; }
4537 ac_cpp='$CPP $CPPFLAGS'
4538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4539 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4543 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4544 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4545 if test "${ac_cv_path_GREP+set}" = set; then
4546 echo $ECHO_N "(cached) $ECHO_C" >&6
4548 # Extract the first word of "grep ggrep" to use in msg output
4549 if test -z "$GREP"; then
4550 set dummy grep ggrep; ac_prog_name=$2
4551 if test "${ac_cv_path_GREP+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4554 ac_path_GREP_found=false
4555 # Loop through the user's path and
test for each of PROGNAME-LIST
4556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4557 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4560 test -z "$as_dir" && as_dir
=.
4561 for ac_prog
in grep ggrep
; do
4562 for ac_exec_ext
in '' $ac_executable_extensions; do
4563 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4564 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4565 # Check for GNU ac_path_GREP and select it if it is found.
4566 # Check for GNU $ac_path_GREP
4567 case `"$ac_path_GREP" --version 2>&1` in
4569 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4572 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4575 cat "conftest.in" "conftest.in" >"conftest.tmp"
4576 mv "conftest.tmp" "conftest.in"
4577 cp "conftest.in" "conftest.nl"
4578 echo 'GREP' >> "conftest.nl"
4579 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4580 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4581 ac_count
=`expr $ac_count + 1`
4582 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4583 # Best one so far, save it but keep looking for a better one
4584 ac_cv_path_GREP
="$ac_path_GREP"
4585 ac_path_GREP_max
=$ac_count
4587 # 10*(2^10) chars as input seems more than enough
4588 test $ac_count -gt 10 && break
4590 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4594 $ac_path_GREP_found && break 3
4604 GREP
="$ac_cv_path_GREP"
4605 if test -z "$GREP"; then
4606 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4607 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4608 { (exit 1); exit 1; }; }
4612 ac_cv_path_GREP
=$GREP
4617 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4618 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4619 GREP
="$ac_cv_path_GREP"
4622 { echo "$as_me:$LINENO: checking for egrep" >&5
4623 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4624 if test "${ac_cv_path_EGREP+set}" = set; then
4625 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4628 then ac_cv_path_EGREP
="$GREP -E"
4630 # Extract the first word of "egrep" to use in msg output
4631 if test -z "$EGREP"; then
4632 set dummy
egrep; ac_prog_name
=$2
4633 if test "${ac_cv_path_EGREP+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4636 ac_path_EGREP_found
=false
4637 # Loop through the user's path and test for each of PROGNAME-LIST
4638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4639 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4642 test -z "$as_dir" && as_dir
=.
4643 for ac_prog
in egrep; do
4644 for ac_exec_ext
in '' $ac_executable_extensions; do
4645 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4646 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4647 # Check for GNU ac_path_EGREP and select it if it is found.
4648 # Check for GNU $ac_path_EGREP
4649 case `"$ac_path_EGREP" --version 2>&1` in
4651 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4654 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4657 cat "conftest.in" "conftest.in" >"conftest.tmp"
4658 mv "conftest.tmp" "conftest.in"
4659 cp "conftest.in" "conftest.nl"
4660 echo 'EGREP' >> "conftest.nl"
4661 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4662 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4663 ac_count
=`expr $ac_count + 1`
4664 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4665 # Best one so far, save it but keep looking for a better one
4666 ac_cv_path_EGREP
="$ac_path_EGREP"
4667 ac_path_EGREP_max
=$ac_count
4669 # 10*(2^10) chars as input seems more than enough
4670 test $ac_count -gt 10 && break
4672 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4676 $ac_path_EGREP_found && break 3
4686 EGREP
="$ac_cv_path_EGREP"
4687 if test -z "$EGREP"; then
4688 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4689 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4690 { (exit 1); exit 1; }; }
4694 ac_cv_path_EGREP
=$EGREP
4700 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4701 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4702 EGREP
="$ac_cv_path_EGREP"
4706 { echo "$as_me:$LINENO: checking for AIX" >&5
4707 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4708 cat >conftest.
$ac_ext <<_ACEOF
4711 cat confdefs.h
>>conftest.
$ac_ext
4712 cat >>conftest.
$ac_ext <<_ACEOF
4713 /* end confdefs.h. */
4719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4720 $EGREP "yes" >/dev
/null
2>&1; then
4721 { echo "$as_me:$LINENO: result: yes" >&5
4722 echo "${ECHO_T}yes" >&6; }
4723 cat >>confdefs.h
<<\_ACEOF
4724 #define _ALL_SOURCE 1
4728 { echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6; }
4735 cat >>confdefs.h
<<\_ACEOF
4736 #define _GNU_SOURCE 1
4741 ### Use -Wno-pointer-sign if the compiler supports it
4742 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4743 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4744 SAVE_CFLAGS
="$CFLAGS"
4745 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4746 cat >conftest.
$ac_ext <<_ACEOF
4749 cat confdefs.h
>>conftest.
$ac_ext
4750 cat >>conftest.
$ac_ext <<_ACEOF
4751 /* end confdefs.h. */
4761 rm -f conftest.
$ac_objext
4762 if { (ac_try
="$ac_compile"
4764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4765 *) ac_try_echo=$ac_try;;
4767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4768 (eval "$ac_compile") 2>conftest.er1
4770 grep -v '^ *+' conftest.er1 >conftest.err
4772 cat conftest.err >&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } && {
4775 test -z "$ac_c_werror_flag" ||
4776 test ! -s conftest.err
4777 } && test -s conftest.$ac_objext; then
4780 echo "$as_me: failed program was:" >&5
4781 sed 's/^/| /' conftest.$ac_ext >&5
4786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4787 if test $has_option = yes; then
4788 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4790 { echo "$as_me:$LINENO: result: $has_option" >&5
4791 echo "${ECHO_T}$has_option" >&6; }
4792 CFLAGS="$SAVE_CFLAGS"
4796 #### Some other nice autoconf tests.
4798 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4799 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4801 if test "$LN_S" = "ln -s"; then
4802 { echo "$as_me:$LINENO: result: yes" >&5
4803 echo "${ECHO_T}yes" >&6; }
4805 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4806 echo "${ECHO_T}no, using $LN_S" >&6; }
4810 ac_cpp='$CPP $CPPFLAGS'
4811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4814 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4815 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4816 # On Suns, sometimes $CPP names a directory.
4817 if test -n "$CPP" && test -d "$CPP"; then
4820 if test -z "$CPP"; then
4821 if test "${ac_cv_prog_CPP+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 # Double quotes because CPP needs to be expanded
4825 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4828 for ac_c_preproc_warn_flag in '' yes
4830 # Use a header file that comes with gcc, so configuring glibc
4831 # with a fresh cross-compiler works.
4832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4833 # <limits.h> exists even on freestanding compilers.
4834 # On the NeXT, cc -E runs the code through the compiler's parser,
4835 # not just through cpp. "Syntax error" is here to catch this case.
4836 cat >conftest.$ac_ext <<_ACEOF
4839 cat confdefs.h >>conftest.$ac_ext
4840 cat >>conftest.$ac_ext <<_ACEOF
4841 /* end confdefs.h. */
4843 # include <limits.h>
4845 # include <assert.h>
4849 if { (ac_try="$ac_cpp conftest.$ac_ext"
4851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4852 *) ac_try_echo
=$ac_try;;
4854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4855 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4857 grep -v '^ *+' conftest.er1
>conftest.err
4859 cat conftest.err
>&5
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); } >/dev
/null
&& {
4862 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4863 test ! -s conftest.err
4867 echo "$as_me: failed program was:" >&5
4868 sed 's/^/| /' conftest.
$ac_ext >&5
4870 # Broken: fails on valid input.
4874 rm -f conftest.err conftest.
$ac_ext
4876 # OK, works on sane cases. Now check whether nonexistent headers
4877 # can be detected and how.
4878 cat >conftest.
$ac_ext <<_ACEOF
4881 cat confdefs.h
>>conftest.
$ac_ext
4882 cat >>conftest.
$ac_ext <<_ACEOF
4883 /* end confdefs.h. */
4884 #include <ac_nonexistent.h>
4886 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4889 *) ac_try_echo=$ac_try;;
4891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4894 grep -v '^ *+' conftest.er1 >conftest.err
4896 cat conftest.err >&5
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } >/dev/null && {
4899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4900 test ! -s conftest.err
4902 # Broken: success on invalid input.
4905 echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4908 # Passes both tests.
4913 rm -f conftest.err conftest.$ac_ext
4916 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4917 rm -f conftest.err conftest.
$ac_ext
4918 if $ac_preproc_ok; then
4930 { echo "$as_me:$LINENO: result: $CPP" >&5
4931 echo "${ECHO_T}$CPP" >&6; }
4933 for ac_c_preproc_warn_flag
in '' yes
4935 # Use a header file that comes with gcc, so configuring glibc
4936 # with a fresh cross-compiler works.
4937 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4938 # <limits.h> exists even on freestanding compilers.
4939 # On the NeXT, cc -E runs the code through the compiler's parser,
4940 # not just through cpp. "Syntax error" is here to catch this case.
4941 cat >conftest.
$ac_ext <<_ACEOF
4944 cat confdefs.h
>>conftest.
$ac_ext
4945 cat >>conftest.
$ac_ext <<_ACEOF
4946 /* end confdefs.h. */
4948 # include <limits.h>
4950 # include <assert.h>
4954 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4956 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4957 *) ac_try_echo=$ac_try;;
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4962 grep -v '^ *+' conftest.er1 >conftest.err
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } >/dev/null && {
4967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4968 test ! -s conftest.err
4972 echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4975 # Broken: fails on valid input.
4979 rm -f conftest.err conftest.$ac_ext
4981 # OK, works on sane cases. Now check whether nonexistent headers
4982 # can be detected and how.
4983 cat >conftest.$ac_ext <<_ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h. */
4989 #include <ac_nonexistent.h>
4991 if { (ac_try="$ac_cpp conftest.$ac_ext"
4993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4994 *) ac_try_echo
=$ac_try;;
4996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4999 grep -v '^ *+' conftest.er1
>conftest.err
5001 cat conftest.err
>&5
5002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003 (exit $ac_status); } >/dev
/null
&& {
5004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5005 test ! -s conftest.err
5007 # Broken: success on invalid input.
5010 echo "$as_me: failed program was:" >&5
5011 sed 's/^/| /' conftest.
$ac_ext >&5
5013 # Passes both tests.
5018 rm -f conftest.err conftest.
$ac_ext
5021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5022 rm -f conftest.err conftest.
$ac_ext
5023 if $ac_preproc_ok; then
5026 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5027 See \`config.log' for more details." >&5
5028 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5029 See \`config.log' for more details." >&2;}
5030 { (exit 1); exit 1; }; }
5034 ac_cpp
='$CPP $CPPFLAGS'
5035 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5036 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5037 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5039 # Find a good install program. We prefer a C program (faster),
5040 # so one script is as good as another. But avoid the broken or
5041 # incompatible versions:
5042 # SysV /etc/install, /usr/sbin/install
5043 # SunOS /usr/etc/install
5044 # IRIX /sbin/install
5046 # AmigaOS /C/install, which installs bootblocks on floppy discs
5047 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5048 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5049 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5050 # OS/2's system install, which has a completely different semantic
5051 # ./install, which can be erroneously created by make from ./install.sh.
5052 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5053 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5054 if test -z "$INSTALL"; then
5055 if test "${ac_cv_path_install+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5062 test -z "$as_dir" && as_dir
=.
5063 # Account for people who put trailing slashes in PATH elements.
5065 .
/ | .
// |
/cC
/* | \
5066 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5067 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5070 # OSF1 and SCO ODT 3.0 have their own names for install.
5071 # Don't use installbsd from OSF since it installs stuff as root
5073 for ac_prog
in ginstall scoinst
install; do
5074 for ac_exec_ext
in '' $ac_executable_extensions; do
5075 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5076 if test $ac_prog = install &&
5077 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5078 # AIX install. It has an incompatible calling convention.
5080 elif test $ac_prog = install &&
5081 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5082 # program-specific install script used by HP pwplus--don't use.
5085 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5098 if test "${ac_cv_path_install+set}" = set; then
5099 INSTALL
=$ac_cv_path_install
5101 # As a last resort, use the slow shell script. Don't cache a
5102 # value for INSTALL within a source directory, because that will
5103 # break other packages using the cache if that directory is
5104 # removed, or if the value is a relative name.
5105 INSTALL
=$ac_install_sh
5108 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5109 echo "${ECHO_T}$INSTALL" >&6; }
5111 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5112 # It thinks the first close brace ends the variable substitution.
5113 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5115 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5117 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5119 if test "x$RANLIB" = x
; then
5120 if test -n "$ac_tool_prefix"; then
5121 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5122 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5125 if test "${ac_cv_prog_RANLIB+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 if test -n "$RANLIB"; then
5129 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5135 test -z "$as_dir" && as_dir
=.
5136 for ac_exec_ext
in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 RANLIB
=$ac_cv_prog_RANLIB
5149 if test -n "$RANLIB"; then
5150 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5151 echo "${ECHO_T}$RANLIB" >&6; }
5153 { echo "$as_me:$LINENO: result: no" >&5
5154 echo "${ECHO_T}no" >&6; }
5159 if test -z "$ac_cv_prog_RANLIB"; then
5160 ac_ct_RANLIB
=$RANLIB
5161 # Extract the first word of "ranlib", so it can be a program name with args.
5162 set dummy ranlib
; ac_word
=$2
5163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5165 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 if test -n "$ac_ct_RANLIB"; then
5169 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5171 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5175 test -z "$as_dir" && as_dir
=.
5176 for ac_exec_ext
in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5189 if test -n "$ac_ct_RANLIB"; then
5190 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5191 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5193 { echo "$as_me:$LINENO: result: no" >&5
5194 echo "${ECHO_T}no" >&6; }
5197 if test "x$ac_ct_RANLIB" = x
; then
5200 case $cross_compiling:$ac_tool_warned in
5202 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5203 whose name does not start with the host triplet. If you think this
5204 configuration is useful to you, please write to autoconf@gnu.org." >&5
5205 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5206 whose name does not start with the host triplet. If you think this
5207 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5208 ac_tool_warned
=yes ;;
5210 RANLIB
=$ac_ct_RANLIB
5213 RANLIB
="$ac_cv_prog_RANLIB"
5217 # Extract the first word of "install-info", so it can be a program name with args.
5218 set dummy install-info
; ac_word
=$2
5219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5221 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 case $INSTALL_INFO in
5226 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5233 test -z "$as_dir" && as_dir
=.
5234 for ac_exec_ext
in '' $ac_executable_extensions; do
5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5248 if test -n "$INSTALL_INFO"; then
5249 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5250 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5252 { echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6; }
5257 # Extract the first word of "install-info", so it can be a program name with args.
5258 set dummy install-info
; ac_word
=$2
5259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5261 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5262 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 case $INSTALL_INFO in
5266 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5269 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5270 for as_dir
in /usr
/sbin
5273 test -z "$as_dir" && as_dir
=.
5274 for ac_exec_ext
in '' $ac_executable_extensions; do
5275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5276 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5288 if test -n "$INSTALL_INFO"; then
5289 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5290 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5292 { echo "$as_me:$LINENO: result: no" >&5
5293 echo "${ECHO_T}no" >&6; }
5297 # Extract the first word of "install-info", so it can be a program name with args.
5298 set dummy install-info
; ac_word
=$2
5299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5301 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 case $INSTALL_INFO in
5306 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5313 test -z "$as_dir" && as_dir
=.
5314 for ac_exec_ext
in '' $ac_executable_extensions; do
5315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5316 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5328 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5329 if test -n "$INSTALL_INFO"; then
5330 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5331 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5333 { echo "$as_me:$LINENO: result: no" >&5
5334 echo "${ECHO_T}no" >&6; }
5338 # Extract the first word of "gzip", so it can be a program name with args.
5339 set dummy
gzip; ac_word
=$2
5340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5342 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5347 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5354 test -z "$as_dir" && as_dir
=.
5355 for ac_exec_ext
in '' $ac_executable_extensions; do
5356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5357 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5369 if test -n "$GZIP_PROG"; then
5370 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5371 echo "${ECHO_T}$GZIP_PROG" >&6; }
5373 { echo "$as_me:$LINENO: result: no" >&5
5374 echo "${ECHO_T}no" >&6; }
5380 ## Need makeinfo >= 4.6 (?) to build the manuals.
5381 # Extract the first word of "makeinfo", so it can be a program name with args.
5382 set dummy makeinfo
; ac_word
=$2
5383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5385 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5390 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5397 test -z "$as_dir" && as_dir
=.
5398 for ac_exec_ext
in '' $ac_executable_extensions; do
5399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5400 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5412 MAKEINFO
=$ac_cv_path_MAKEINFO
5413 if test -n "$MAKEINFO"; then
5414 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5415 echo "${ECHO_T}$MAKEINFO" >&6; }
5417 { echo "$as_me:$LINENO: result: no" >&5
5418 echo "${ECHO_T}no" >&6; }
5422 if test "$MAKEINFO" != "no" && \
5423 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
5427 if test "$MAKEINFO" = "no"; then
5428 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5429 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5430 { (exit 1); exit 1; }; }
5435 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5437 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5440 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5442 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5446 late_LDFLAGS
=$LDFLAGS
5447 if test "$GCC" = yes; then
5448 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5450 LDFLAGS
="$LDFLAGS -znocombreloc"
5453 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5454 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5455 cat >conftest.
$ac_ext <<_ACEOF
5458 rm -f conftest.
$ac_objext conftest
$ac_exeext
5459 if { (ac_try
="$ac_link"
5461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5462 *) ac_try_echo=$ac_try;;
5464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5465 (eval "$ac_link") 2>conftest.er1
5467 grep -v '^ *+' conftest.er1 >conftest.err
5469 cat conftest.err >&5
5470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471 (exit $ac_status); } && {
5472 test -z "$ac_c_werror_flag" ||
5473 test ! -s conftest.err
5474 } && test -s conftest$ac_exeext &&
5475 $as_test_x conftest$ac_exeext; then
5476 { echo "$as_me:$LINENO: result: yes" >&5
5477 echo "${ECHO_T}yes" >&6; }
5479 echo "$as_me: failed program was:" >&5
5480 sed 's/^/| /' conftest.$ac_ext >&5
5482 LDFLAGS=$late_LDFLAGS
5483 { echo "$as_me:$LINENO: result: no" >&5
5484 echo "${ECHO_T}no" >&6; }
5487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5488 conftest$ac_exeext conftest.$ac_ext
5490 #### Extract some information from the operating system and machine files.
5492 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5493 - which libraries the lib-src programs will want, and
5494 - whether the GNU malloc routines are usable..." >&5
5495 echo "$as_me: checking the machine- and system-dependent files to find out
5496 - which libraries the lib-src programs will want, and
5497 - whether the GNU malloc routines are usable..." >&6;}
5499 ### First figure out CFLAGS (which we use for running the compiler here)
5500 ### and REAL_CFLAGS (which we use for real compilation).
5501 ### The two are the same except on a few systems, where they are made
5502 ### different to work around various lossages. For example,
5503 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5504 ### as implying static linking.
5506 ### If the CFLAGS env var is specified, we use that value
5507 ### instead of the default.
5509 ### It's not important that this name contain the PID; you can't run
5510 ### two configures in the same directory and have anything work
5512 tempcname="conftest.c"
5515 #include "'${srcdir}'/src/'${opsysfile}'"
5516 #include "'${srcdir}'/src/'${machfile}'"
5517 #ifndef LIBS_MACHINE
5518 #define LIBS_MACHINE
5523 #ifndef C_SWITCH_SYSTEM
5524 #define C_SWITCH_SYSTEM
5526 #ifndef C_SWITCH_MACHINE
5527 #define C_SWITCH_MACHINE
5529 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5530 configure___ c_switch_system=C_SWITCH_SYSTEM
5531 configure___ c_switch_machine=C_SWITCH_MACHINE
5534 #define LIB_X11_LIB -lX11
5537 #ifndef LIBX11_MACHINE
5538 #define LIBX11_MACHINE
5541 #ifndef LIBX11_SYSTEM
5542 #define LIBX11_SYSTEM
5544 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5547 configure___ unexec=UNEXEC
5549 configure___ unexec=unexec.o
5552 #ifdef SYSTEM_MALLOC
5553 configure___ system_malloc=yes
5555 configure___ system_malloc=no
5558 #ifdef USE_MMAP_FOR_BUFFERS
5559 configure___ use_mmap_for_buffers=yes
5561 configure___ use_mmap_for_buffers=no
5564 #ifndef C_DEBUG_SWITCH
5565 #define C_DEBUG_SWITCH -g
5568 #ifndef C_OPTIMIZE_SWITCH
5570 #define C_OPTIMIZE_SWITCH -O2
5572 #define C_OPTIMIZE_SWITCH -O
5576 #ifndef C_WARNINGS_SWITCH
5577 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5580 #ifndef LD_SWITCH_MACHINE
5581 #define LD_SWITCH_MACHINE
5584 #ifndef LD_SWITCH_SYSTEM
5585 #define LD_SWITCH_SYSTEM
5588 #ifndef LD_SWITCH_X_SITE_AUX
5589 #define LD_SWITCH_X_SITE_AUX
5592 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5593 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5595 #ifdef THIS_IS_CONFIGURE
5597 /* Get the CFLAGS for tests in configure. */
5599 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5601 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5604 #else /* not THIS_IS_CONFIGURE */
5606 /* Get the CFLAGS for real compilation. */
5608 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5610 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5613 #endif /* not THIS_IS_CONFIGURE */
5616 # The value of CPP is a quoted variable reference, so we need to do this
5617 # to get its actual value...
5618 CPP=`eval "echo $CPP"`
5619 eval `${CPP} -Isrc ${tempcname} \
5620 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5621 if test "x$SPECIFIED_CFLAGS" = x; then
5622 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5623 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5625 REAL_CFLAGS="$CFLAGS"
5629 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5631 ### Make sure subsequent tests use flags consistent with the build flags.
5633 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5634 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5636 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5641 # Check whether --enable-largefile was given.
5642 if test "${enable_largefile+set}" = set; then
5643 enableval=$enable_largefile;
5646 if test "$enable_largefile" != no; then
5648 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5649 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5650 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5651 echo $ECHO_N "(cached) $ECHO_C" >&6
5653 ac_cv_sys_largefile_CC=no
5654 if test "$GCC" != yes; then
5657 # IRIX 6.2 and later do not support large files by default,
5658 # so use the C compiler's -n32 option if that helps.
5659 cat >conftest.$ac_ext <<_ACEOF
5662 cat confdefs.h >>conftest.$ac_ext
5663 cat >>conftest.$ac_ext <<_ACEOF
5664 /* end confdefs.h. */
5665 #include <sys/types.h>
5666 /* Check that off_t can represent 2**63 - 1 correctly.
5667 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5668 since some C++ compilers masquerading as C compilers
5669 incorrectly reject 9223372036854775807. */
5670 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5671 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5672 && LARGE_OFF_T % 2147483647 == 1)
5682 rm -f conftest.$ac_objext
5683 if { (ac_try="$ac_compile"
5685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5686 *) ac_try_echo
=$ac_try;;
5688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5689 (eval "$ac_compile") 2>conftest.er1
5691 grep -v '^ *+' conftest.er1
>conftest.err
5693 cat conftest.err
>&5
5694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695 (exit $ac_status); } && {
5696 test -z "$ac_c_werror_flag" ||
5697 test ! -s conftest.err
5698 } && test -s conftest.
$ac_objext; then
5701 echo "$as_me: failed program was:" >&5
5702 sed 's/^/| /' conftest.
$ac_ext >&5
5707 rm -f core conftest.err conftest.
$ac_objext
5709 rm -f conftest.
$ac_objext
5710 if { (ac_try
="$ac_compile"
5712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5716 (eval "$ac_compile") 2>conftest.er1
5718 grep -v '^ *+' conftest.er1 >conftest.err
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } && {
5723 test -z "$ac_c_werror_flag" ||
5724 test ! -s conftest.err
5725 } && test -s conftest.$ac_objext; then
5726 ac_cv_sys_largefile_CC=' -n32'; break
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5734 rm -f core conftest.err conftest.$ac_objext
5738 rm -f conftest.$ac_ext
5741 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5742 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5743 if test "$ac_cv_sys_largefile_CC" != no; then
5744 CC=$CC$ac_cv_sys_largefile_CC
5747 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5748 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5749 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5750 echo $ECHO_N "(cached) $ECHO_C" >&6
5753 cat >conftest.$ac_ext <<_ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 #include <sys/types.h>
5760 /* Check that off_t can represent 2**63 - 1 correctly.
5761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5762 since some C++ compilers masquerading as C compilers
5763 incorrectly reject 9223372036854775807. */
5764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5766 && LARGE_OFF_T % 2147483647 == 1)
5776 rm -f conftest.$ac_objext
5777 if { (ac_try="$ac_compile"
5779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5780 *) ac_try_echo
=$ac_try;;
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783 (eval "$ac_compile") 2>conftest.er1
5785 grep -v '^ *+' conftest.er1
>conftest.err
5787 cat conftest.err
>&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } && {
5790 test -z "$ac_c_werror_flag" ||
5791 test ! -s conftest.err
5792 } && test -s conftest.
$ac_objext; then
5793 ac_cv_sys_file_offset_bits
=no
; break
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.
$ac_ext >&5
5801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5802 cat >conftest.
$ac_ext <<_ACEOF
5805 cat confdefs.h
>>conftest.
$ac_ext
5806 cat >>conftest.
$ac_ext <<_ACEOF
5807 /* end confdefs.h. */
5808 #define _FILE_OFFSET_BITS 64
5809 #include <sys/types.h>
5810 /* Check that off_t can represent 2**63 - 1 correctly.
5811 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5812 since some C++ compilers masquerading as C compilers
5813 incorrectly reject 9223372036854775807. */
5814 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5815 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5816 && LARGE_OFF_T % 2147483647 == 1)
5826 rm -f conftest.
$ac_objext
5827 if { (ac_try
="$ac_compile"
5829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5830 *) ac_try_echo=$ac_try;;
5832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5833 (eval "$ac_compile") 2>conftest.er1
5835 grep -v '^ *+' conftest.er1 >conftest.err
5837 cat conftest.err >&5
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); } && {
5840 test -z "$ac_c_werror_flag" ||
5841 test ! -s conftest.err
5842 } && test -s conftest.$ac_objext; then
5843 ac_cv_sys_file_offset_bits=64; break
5845 echo "$as_me: failed program was:" >&5
5846 sed 's/^/| /' conftest.$ac_ext >&5
5851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5852 ac_cv_sys_file_offset_bits=unknown
5856 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5857 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5858 case $ac_cv_sys_file_offset_bits in #(
5861 cat >>confdefs.h <<_ACEOF
5862 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5867 if test $ac_cv_sys_file_offset_bits = unknown; then
5868 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5869 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5870 if test "${ac_cv_sys_large_files+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 cat >conftest.$ac_ext <<_ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5880 #include <sys/types.h>
5881 /* Check that off_t can represent 2**63 - 1 correctly.
5882 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5883 since some C++ compilers masquerading as C compilers
5884 incorrectly reject 9223372036854775807. */
5885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5886 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5887 && LARGE_OFF_T % 2147483647 == 1)
5897 rm -f conftest.$ac_objext
5898 if { (ac_try="$ac_compile"
5900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5901 *) ac_try_echo
=$ac_try;;
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_compile") 2>conftest.er1
5906 grep -v '^ *+' conftest.er1
>conftest.err
5908 cat conftest.err
>&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); } && {
5911 test -z "$ac_c_werror_flag" ||
5912 test ! -s conftest.err
5913 } && test -s conftest.
$ac_objext; then
5914 ac_cv_sys_large_files
=no
; break
5916 echo "$as_me: failed program was:" >&5
5917 sed 's/^/| /' conftest.
$ac_ext >&5
5922 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5923 cat >conftest.
$ac_ext <<_ACEOF
5926 cat confdefs.h
>>conftest.
$ac_ext
5927 cat >>conftest.
$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5929 #define _LARGE_FILES 1
5930 #include <sys/types.h>
5931 /* Check that off_t can represent 2**63 - 1 correctly.
5932 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5933 since some C++ compilers masquerading as C compilers
5934 incorrectly reject 9223372036854775807. */
5935 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5936 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5937 && LARGE_OFF_T % 2147483647 == 1)
5947 rm -f conftest.
$ac_objext
5948 if { (ac_try
="$ac_compile"
5950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_compile") 2>conftest.er1
5956 grep -v '^ *+' conftest.er1 >conftest.err
5958 cat conftest.err >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } && {
5961 test -z "$ac_c_werror_flag" ||
5962 test ! -s conftest.err
5963 } && test -s conftest.$ac_objext; then
5964 ac_cv_sys_large_files=1; break
5966 echo "$as_me: failed program was:" >&5
5967 sed 's/^/| /' conftest.$ac_ext >&5
5972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973 ac_cv_sys_large_files=unknown
5977 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5978 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5979 case $ac_cv_sys_large_files in #(
5982 cat >>confdefs.h <<_ACEOF
5983 #define _LARGE_FILES $ac_cv_sys_large_files
5993 ### The standard library on x86-64 GNU/Linux distributions can
5994 ### be located in either /usr/lib64 or /usr/lib.
5995 case "${canonical}" in
5996 x86_64-*-linux-gnu* )
5997 if test -d /usr/lib64; then
5999 cat >>confdefs.h <<\_ACEOF
6000 #define HAVE_X86_64_LIB64_DIR 1
6009 if test "${with_sound}" != "no"; then
6010 # Sound support for GNU/Linux and the free BSDs.
6011 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6012 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6013 if test "${ac_cv_header_stdc+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 cat >conftest.$ac_ext <<_ACEOF
6019 cat confdefs.h >>conftest.$ac_ext
6020 cat >>conftest.$ac_ext <<_ACEOF
6021 /* end confdefs.h. */
6035 rm -f conftest.$ac_objext
6036 if { (ac_try="$ac_compile"
6038 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6039 *) ac_try_echo
=$ac_try;;
6041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6042 (eval "$ac_compile") 2>conftest.er1
6044 grep -v '^ *+' conftest.er1
>conftest.err
6046 cat conftest.err
>&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } && {
6049 test -z "$ac_c_werror_flag" ||
6050 test ! -s conftest.err
6051 } && test -s conftest.
$ac_objext; then
6052 ac_cv_header_stdc
=yes
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.
$ac_ext >&5
6057 ac_cv_header_stdc
=no
6060 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6062 if test $ac_cv_header_stdc = yes; then
6063 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6064 cat >conftest.
$ac_ext <<_ACEOF
6067 cat confdefs.h
>>conftest.
$ac_ext
6068 cat >>conftest.
$ac_ext <<_ACEOF
6069 /* end confdefs.h. */
6073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6074 $EGREP "memchr" >/dev
/null
2>&1; then
6077 ac_cv_header_stdc
=no
6083 if test $ac_cv_header_stdc = yes; then
6084 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6085 cat >conftest.
$ac_ext <<_ACEOF
6088 cat confdefs.h
>>conftest.
$ac_ext
6089 cat >>conftest.
$ac_ext <<_ACEOF
6090 /* end confdefs.h. */
6094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6095 $EGREP "free" >/dev
/null
2>&1; then
6098 ac_cv_header_stdc
=no
6104 if test $ac_cv_header_stdc = yes; then
6105 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6106 if test "$cross_compiling" = yes; then
6109 cat >conftest.
$ac_ext <<_ACEOF
6112 cat confdefs.h
>>conftest.
$ac_ext
6113 cat >>conftest.
$ac_ext <<_ACEOF
6114 /* end confdefs.h. */
6117 #if ((' ' & 0x0FF) == 0x020)
6118 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6119 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6121 # define ISLOWER(c) \
6122 (('a' <= (c) && (c) <= 'i') \
6123 || ('j' <= (c) && (c) <= 'r') \
6124 || ('s' <= (c) && (c) <= 'z'))
6125 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6128 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6133 for (i = 0; i < 256; i++)
6134 if (XOR (islower (i), ISLOWER (i))
6135 || toupper (i) != TOUPPER (i))
6140 rm -f conftest
$ac_exeext
6141 if { (ac_try
="$ac_link"
6143 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6144 *) ac_try_echo=$ac_try;;
6146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147 (eval "$ac_link") 2>&5
6149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6150 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6151 { (case "(($ac_try" in
6152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6153 *) ac_try_echo
=$ac_try;;
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_try") 2>&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6162 echo "$as_me: program exited with status $ac_status" >&5
6163 echo "$as_me: failed program was:" >&5
6164 sed 's/^/| /' conftest.
$ac_ext >&5
6167 ac_cv_header_stdc
=no
6169 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6175 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6176 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6177 if test $ac_cv_header_stdc = yes; then
6179 cat >>confdefs.h
<<\_ACEOF
6180 #define STDC_HEADERS 1
6185 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6195 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6196 inttypes.h stdint.h unistd.h
6198 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6199 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6200 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6201 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6202 echo $ECHO_N "(cached) $ECHO_C" >&6
6204 cat >conftest.
$ac_ext <<_ACEOF
6207 cat confdefs.h
>>conftest.
$ac_ext
6208 cat >>conftest.
$ac_ext <<_ACEOF
6209 /* end confdefs.h. */
6210 $ac_includes_default
6212 #include <$ac_header>
6214 rm -f conftest.
$ac_objext
6215 if { (ac_try
="$ac_compile"
6217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6218 *) ac_try_echo=$ac_try;;
6220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6221 (eval "$ac_compile") 2>conftest.er1
6223 grep -v '^ *+' conftest.er1 >conftest.err
6225 cat conftest.err >&5
6226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6227 (exit $ac_status); } && {
6228 test -z "$ac_c_werror_flag" ||
6229 test ! -s conftest.err
6230 } && test -s conftest.$ac_objext; then
6231 eval "$as_ac_Header=yes"
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.$ac_ext >&5
6236 eval "$as_ac_Header=no"
6239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241 ac_res=`eval echo '${'$as_ac_Header'}'`
6242 { echo "$as_me:$LINENO: result: $ac_res" >&5
6243 echo "${ECHO_T}$ac_res" >&6; }
6244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6245 cat >>confdefs.h <<_ACEOF
6246 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6257 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6259 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 ac_res=`eval echo '${'$as_ac_Header'}'`
6267 { echo "$as_me:$LINENO: result: $ac_res" >&5
6268 echo "${ECHO_T}$ac_res" >&6; }
6270 # Is the header compilable?
6271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6273 cat >conftest.$ac_ext <<_ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6279 $ac_includes_default
6280 #include <$ac_header>
6282 rm -f conftest.$ac_objext
6283 if { (ac_try="$ac_compile"
6285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6286 *) ac_try_echo
=$ac_try;;
6288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_compile") 2>conftest.er1
6291 grep -v '^ *+' conftest.er1
>conftest.err
6293 cat conftest.err
>&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); } && {
6296 test -z "$ac_c_werror_flag" ||
6297 test ! -s conftest.err
6298 } && test -s conftest.
$ac_objext; then
6299 ac_header_compiler
=yes
6301 echo "$as_me: failed program was:" >&5
6302 sed 's/^/| /' conftest.
$ac_ext >&5
6304 ac_header_compiler
=no
6307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6309 echo "${ECHO_T}$ac_header_compiler" >&6; }
6311 # Is the header present?
6312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6314 cat >conftest.
$ac_ext <<_ACEOF
6317 cat confdefs.h
>>conftest.
$ac_ext
6318 cat >>conftest.
$ac_ext <<_ACEOF
6319 /* end confdefs.h. */
6320 #include <$ac_header>
6322 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6330 grep -v '^ *+' conftest.er1 >conftest.err
6332 cat conftest.err >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } >/dev/null && {
6335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6336 test ! -s conftest.err
6338 ac_header_preproc=yes
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6343 ac_header_preproc=no
6346 rm -f conftest.err conftest.$ac_ext
6347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6348 echo "${ECHO_T}$ac_header_preproc" >&6; }
6350 # So? What about this header?
6351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6357 ac_header_preproc=yes
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6380 eval "$as_ac_Header=\$ac_header_preproc"
6382 ac_res=`eval echo '${'$as_ac_Header'}'`
6383 { echo "$as_me:$LINENO: result: $ac_res" >&5
6384 echo "${ECHO_T}$ac_res" >&6; }
6387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6388 cat >>confdefs.h <<_ACEOF
6389 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6396 # Emulation library used on NetBSD.
6397 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6398 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6399 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 ac_check_lib_save_LIBS=$LIBS
6403 LIBS="-lossaudio $LIBS"
6404 cat >conftest.$ac_ext <<_ACEOF
6407 cat confdefs.h >>conftest.$ac_ext
6408 cat >>conftest.$ac_ext <<_ACEOF
6409 /* end confdefs.h. */
6411 /* Override any GCC internal prototype to avoid an error.
6412 Use char because int might match the return type of a GCC
6413 builtin and then its argument prototype would still apply. */
6421 return _oss_ioctl ();
6426 rm -f conftest.$ac_objext conftest$ac_exeext
6427 if { (ac_try="$ac_link"
6429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6430 *) ac_try_echo
=$ac_try;;
6432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433 (eval "$ac_link") 2>conftest.er1
6435 grep -v '^ *+' conftest.er1
>conftest.err
6437 cat conftest.err
>&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } && {
6440 test -z "$ac_c_werror_flag" ||
6441 test ! -s conftest.err
6442 } && test -s conftest
$ac_exeext &&
6443 $as_test_x conftest
$ac_exeext; then
6444 ac_cv_lib_ossaudio__oss_ioctl
=yes
6446 echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.
$ac_ext >&5
6449 ac_cv_lib_ossaudio__oss_ioctl
=no
6452 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6453 conftest
$ac_exeext conftest.
$ac_ext
6454 LIBS
=$ac_check_lib_save_LIBS
6456 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6457 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6458 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6467 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6468 if test "X${with_pkg_config_prog}" != X
; then
6469 PKG_CONFIG
="${with_pkg_config_prog}"
6474 if test -z "$PKG_CONFIG"; then
6475 # Extract the first word of "pkg-config", so it can be a program name with args.
6476 set dummy pkg-config
; ac_word
=$2
6477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6479 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6484 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6487 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6491 test -z "$as_dir" && as_dir
=.
6492 for ac_exec_ext
in '' $ac_executable_extensions; do
6493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6494 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6506 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6507 if test -n "$PKG_CONFIG"; then
6508 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6509 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6511 { echo "$as_me:$LINENO: result: no" >&5
6512 echo "${ECHO_T}no" >&6; }
6518 if test "$PKG_CONFIG" = "no" ; then
6521 PKG_CONFIG_MIN_VERSION
=0.9.0
6522 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6523 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6524 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6526 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6527 { echo "$as_me:$LINENO: result: yes" >&5
6528 echo "${ECHO_T}yes" >&6; }
6531 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6532 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6533 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6534 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6535 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6537 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6538 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6539 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6540 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6541 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6543 { echo "$as_me:$LINENO: result: no" >&5
6544 echo "${ECHO_T}no" >&6; }
6547 ## If we have a custom action on failure, don't print errors, but
6548 ## do set a variable so people can do so.
6549 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6556 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6557 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6561 if test $succeeded = yes; then
6567 if test $HAVE_ALSA = yes; then
6568 SAVE_CFLAGS
="$CFLAGS"
6569 SAVE_LDFLAGS
="$LDFLAGS"
6570 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6571 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6572 cat >conftest.
$ac_ext <<_ACEOF
6575 cat confdefs.h
>>conftest.
$ac_ext
6576 cat >>conftest.
$ac_ext <<_ACEOF
6577 /* end confdefs.h. */
6578 #include <asoundlib.h>
6582 snd_lib_error_set_handler (0);
6587 rm -f conftest.
$ac_objext
6588 if { (ac_try
="$ac_compile"
6590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6591 *) ac_try_echo=$ac_try;;
6593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6594 (eval "$ac_compile") 2>conftest.er1
6596 grep -v '^ *+' conftest.er1 >conftest.err
6598 cat conftest.err >&5
6599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6600 (exit $ac_status); } && {
6601 test -z "$ac_c_werror_flag" ||
6602 test ! -s conftest.err
6603 } && test -s conftest.$ac_objext; then
6604 emacs_alsa_normal=yes
6606 echo "$as_me: failed program was:" >&5
6607 sed 's/^/| /' conftest.$ac_ext >&5
6609 emacs_alsa_normal=no
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 if test "$emacs_alsa_normal" != yes; then
6614 cat >conftest.$ac_ext <<_ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6620 #include <alsa/asoundlib.h>
6624 snd_lib_error_set_handler (0);
6629 rm -f conftest.$ac_objext
6630 if { (ac_try="$ac_compile"
6632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6633 *) ac_try_echo
=$ac_try;;
6635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6636 (eval "$ac_compile") 2>conftest.er1
6638 grep -v '^ *+' conftest.er1
>conftest.err
6640 cat conftest.err
>&5
6641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6642 (exit $ac_status); } && {
6643 test -z "$ac_c_werror_flag" ||
6644 test ! -s conftest.err
6645 } && test -s conftest.
$ac_objext; then
6646 emacs_alsa_subdir
=yes
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.
$ac_ext >&5
6651 emacs_alsa_subdir
=no
6654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6655 if test "$emacs_alsa_subdir" != yes; then
6656 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6657 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6658 { (exit 1); exit 1; }; }
6660 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6663 CFLAGS
="$SAVE_CFLAGS"
6664 LDFLAGS
="$SAVE_LDFLAGS"
6665 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6666 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6668 cat >>confdefs.h
<<\_ACEOF
6701 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6702 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6703 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6704 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6707 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6708 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6711 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 ac_res
=`eval echo '${'$as_ac_Header'}'`
6715 { echo "$as_me:$LINENO: result: $ac_res" >&5
6716 echo "${ECHO_T}$ac_res" >&6; }
6718 # Is the header compilable?
6719 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6721 cat >conftest.
$ac_ext <<_ACEOF
6724 cat confdefs.h
>>conftest.
$ac_ext
6725 cat >>conftest.
$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6727 $ac_includes_default
6728 #include <$ac_header>
6730 rm -f conftest.
$ac_objext
6731 if { (ac_try
="$ac_compile"
6733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_compile") 2>conftest.er1
6739 grep -v '^ *+' conftest.er1 >conftest.err
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } && {
6744 test -z "$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6746 } && test -s conftest.$ac_objext; then
6747 ac_header_compiler=yes
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6752 ac_header_compiler=no
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6757 echo "${ECHO_T}$ac_header_compiler" >&6; }
6759 # Is the header present?
6760 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6762 cat >conftest.$ac_ext <<_ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6768 #include <$ac_header>
6770 if { (ac_try="$ac_cpp conftest.$ac_ext"
6772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6773 *) ac_try_echo
=$ac_try;;
6775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6778 grep -v '^ *+' conftest.er1
>conftest.err
6780 cat conftest.err
>&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } >/dev
/null
&& {
6783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6784 test ! -s conftest.err
6786 ac_header_preproc
=yes
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.
$ac_ext >&5
6791 ac_header_preproc
=no
6794 rm -f conftest.err conftest.
$ac_ext
6795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6796 echo "${ECHO_T}$ac_header_preproc" >&6; }
6798 # So? What about this header?
6799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6805 ac_header_preproc
=yes
6808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6815 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6825 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6826 echo $ECHO_N "(cached) $ECHO_C" >&6
6828 eval "$as_ac_Header=\$ac_header_preproc"
6830 ac_res
=`eval echo '${'$as_ac_Header'}'`
6831 { echo "$as_me:$LINENO: result: $ac_res" >&5
6832 echo "${ECHO_T}$ac_res" >&6; }
6835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6836 cat >>confdefs.h
<<_ACEOF
6837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6845 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6846 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6847 cat >conftest.
$ac_ext <<_ACEOF
6850 cat confdefs.h
>>conftest.
$ac_ext
6851 cat >>conftest.
$ac_ext <<_ACEOF
6852 /* end confdefs.h. */
6853 #include <sys/personality.h>
6857 personality (PER_LINUX32)
6862 rm -f conftest.
$ac_objext
6863 if { (ac_try
="$ac_compile"
6865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6866 *) ac_try_echo=$ac_try;;
6868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6869 (eval "$ac_compile") 2>conftest.er1
6871 grep -v '^ *+' conftest.er1 >conftest.err
6873 cat conftest.err >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); } && {
6876 test -z "$ac_c_werror_flag" ||
6877 test ! -s conftest.err
6878 } && test -s conftest.$ac_objext; then
6879 emacs_cv_personality_linux32=yes
6881 echo "$as_me: failed program was:" >&5
6882 sed 's/^/| /' conftest.$ac_ext >&5
6884 emacs_cv_personality_linux32=no
6887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6888 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6889 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6891 if test $emacs_cv_personality_linux32 = yes; then
6893 cat >>confdefs.h <<\_ACEOF
6894 #define HAVE_PERSONALITY_LINUX32 1
6900 for ac_header in term.h
6902 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6906 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 cat >conftest.$ac_ext <<_ACEOF
6911 cat confdefs.h >>conftest.$ac_ext
6912 cat >>conftest.$ac_ext <<_ACEOF
6913 /* end confdefs.h. */
6914 #include <$ac_header>
6916 if { (ac_try="$ac_cpp conftest.$ac_ext"
6918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6919 *) ac_try_echo
=$ac_try;;
6921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6924 grep -v '^ *+' conftest.er1
>conftest.err
6926 cat conftest.err
>&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } >/dev
/null
&& {
6929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6930 test ! -s conftest.err
6932 eval "$as_ac_Header=yes"
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.
$ac_ext >&5
6937 eval "$as_ac_Header=no"
6940 rm -f conftest.err conftest.
$ac_ext
6942 ac_res
=`eval echo '${'$as_ac_Header'}'`
6943 { echo "$as_me:$LINENO: result: $ac_res" >&5
6944 echo "${ECHO_T}$ac_res" >&6; }
6945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6946 cat >>confdefs.h
<<_ACEOF
6947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6954 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6955 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6956 if test "${ac_cv_header_stdc+set}" = set; then
6957 echo $ECHO_N "(cached) $ECHO_C" >&6
6959 cat >conftest.
$ac_ext <<_ACEOF
6962 cat confdefs.h
>>conftest.
$ac_ext
6963 cat >>conftest.
$ac_ext <<_ACEOF
6964 /* end confdefs.h. */
6978 rm -f conftest.
$ac_objext
6979 if { (ac_try
="$ac_compile"
6981 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6982 *) ac_try_echo=$ac_try;;
6984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6985 (eval "$ac_compile") 2>conftest.er1
6987 grep -v '^ *+' conftest.er1 >conftest.err
6989 cat conftest.err >&5
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } && {
6992 test -z "$ac_c_werror_flag" ||
6993 test ! -s conftest.err
6994 } && test -s conftest.$ac_objext; then
6995 ac_cv_header_stdc=yes
6997 echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.$ac_ext >&5
7000 ac_cv_header_stdc=no
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 if test $ac_cv_header_stdc = yes; then
7006 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7007 cat >conftest.$ac_ext <<_ACEOF
7010 cat confdefs.h >>conftest.$ac_ext
7011 cat >>conftest.$ac_ext <<_ACEOF
7012 /* end confdefs.h. */
7016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7017 $EGREP "memchr" >/dev/null 2>&1; then
7020 ac_cv_header_stdc=no
7026 if test $ac_cv_header_stdc = yes; then
7027 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7028 cat >conftest.$ac_ext <<_ACEOF
7031 cat confdefs.h >>conftest.$ac_ext
7032 cat >>conftest.$ac_ext <<_ACEOF
7033 /* end confdefs.h. */
7037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7038 $EGREP "free" >/dev/null 2>&1; then
7041 ac_cv_header_stdc=no
7047 if test $ac_cv_header_stdc = yes; then
7048 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7049 if test "$cross_compiling" = yes; then
7052 cat >conftest.$ac_ext <<_ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h. */
7060 #if ((' ' & 0x0FF) == 0x020)
7061 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7062 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7064 # define ISLOWER(c) \
7065 (('a' <= (c) && (c) <= 'i') \
7066 || ('j' <= (c) && (c) <= 'r') \
7067 || ('s' <= (c) && (c) <= 'z'))
7068 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7071 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7076 for (i = 0; i < 256; i++)
7077 if (XOR (islower (i), ISLOWER (i))
7078 || toupper (i) != TOUPPER (i))
7083 rm -f conftest$ac_exeext
7084 if { (ac_try="$ac_link"
7086 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7087 *) ac_try_echo
=$ac_try;;
7089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7090 (eval "$ac_link") 2>&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
7094 { (case "(($ac_try" in
7095 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7096 *) ac_try_echo=$ac_try;;
7098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099 (eval "$ac_try") 2>&5
7101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7102 (exit $ac_status); }; }; then
7105 echo "$as_me: program exited with status $ac_status" >&5
7106 echo "$as_me: failed program was:" >&5
7107 sed 's/^/| /' conftest.$ac_ext >&5
7110 ac_cv_header_stdc=no
7112 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7118 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7119 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7120 if test $ac_cv_header_stdc = yes; then
7122 cat >>confdefs.h <<\_ACEOF
7123 #define STDC_HEADERS 1
7128 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7129 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7130 if test "${ac_cv_header_time+set}" = set; then
7131 echo $ECHO_N "(cached) $ECHO_C" >&6
7133 cat >conftest.$ac_ext <<_ACEOF
7136 cat confdefs.h >>conftest.$ac_ext
7137 cat >>conftest.$ac_ext <<_ACEOF
7138 /* end confdefs.h. */
7139 #include <sys/types.h>
7140 #include <sys/time.h>
7146 if ((struct tm *) 0)
7152 rm -f conftest.$ac_objext
7153 if { (ac_try="$ac_compile"
7155 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7156 *) ac_try_echo
=$ac_try;;
7158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159 (eval "$ac_compile") 2>conftest.er1
7161 grep -v '^ *+' conftest.er1
>conftest.err
7163 cat conftest.err
>&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } && {
7166 test -z "$ac_c_werror_flag" ||
7167 test ! -s conftest.err
7168 } && test -s conftest.
$ac_objext; then
7169 ac_cv_header_time
=yes
7171 echo "$as_me: failed program was:" >&5
7172 sed 's/^/| /' conftest.
$ac_ext >&5
7174 ac_cv_header_time
=no
7177 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7179 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7180 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7181 if test $ac_cv_header_time = yes; then
7183 cat >>confdefs.h
<<\_ACEOF
7184 #define TIME_WITH_SYS_TIME 1
7189 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7190 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7191 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 cat >conftest.
$ac_ext <<_ACEOF
7197 cat confdefs.h
>>conftest.
$ac_ext
7198 cat >>conftest.
$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 $ac_includes_default
7212 rm -f conftest.
$ac_objext
7213 if { (ac_try
="$ac_compile"
7215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7216 *) ac_try_echo=$ac_try;;
7218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7219 (eval "$ac_compile") 2>conftest.er1
7221 grep -v '^ *+' conftest.er1 >conftest.err
7223 cat conftest.err >&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } && {
7226 test -z "$ac_c_werror_flag" ||
7227 test ! -s conftest.err
7228 } && test -s conftest.$ac_objext; then
7229 ac_cv_have_decl_sys_siglist=yes
7231 echo "$as_me: failed program was:" >&5
7232 sed 's/^/| /' conftest.$ac_ext >&5
7234 ac_cv_have_decl_sys_siglist=no
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7239 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7240 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7241 if test $ac_cv_have_decl_sys_siglist = yes; then
7243 cat >>confdefs.h <<_ACEOF
7244 #define HAVE_DECL_SYS_SIGLIST 1
7249 cat >>confdefs.h <<_ACEOF
7250 #define HAVE_DECL_SYS_SIGLIST 0
7257 if test $ac_cv_have_decl_sys_siglist != yes; then
7258 # For Tru64, at least:
7259 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7260 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7261 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 cat >conftest.$ac_ext <<_ACEOF
7267 cat confdefs.h >>conftest.$ac_ext
7268 cat >>conftest.$ac_ext <<_ACEOF
7269 /* end confdefs.h. */
7270 $ac_includes_default
7274 #ifndef __sys_siglist
7275 (void) __sys_siglist;
7282 rm -f conftest.$ac_objext
7283 if { (ac_try="$ac_compile"
7285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7286 *) ac_try_echo
=$ac_try;;
7288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7289 (eval "$ac_compile") 2>conftest.er1
7291 grep -v '^ *+' conftest.er1
>conftest.err
7293 cat conftest.err
>&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } && {
7296 test -z "$ac_c_werror_flag" ||
7297 test ! -s conftest.err
7298 } && test -s conftest.
$ac_objext; then
7299 ac_cv_have_decl___sys_siglist
=yes
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.
$ac_ext >&5
7304 ac_cv_have_decl___sys_siglist
=no
7307 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7309 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7310 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7311 if test $ac_cv_have_decl___sys_siglist = yes; then
7313 cat >>confdefs.h
<<_ACEOF
7314 #define HAVE_DECL___SYS_SIGLIST 1
7319 cat >>confdefs.h
<<_ACEOF
7320 #define HAVE_DECL___SYS_SIGLIST 0
7327 if test $ac_cv_have_decl___sys_siglist = yes; then
7329 cat >>confdefs.h
<<\_ACEOF
7330 #define sys_siglist __sys_siglist
7335 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7336 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7337 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7340 cat >conftest.
$ac_ext <<_ACEOF
7343 cat confdefs.h
>>conftest.
$ac_ext
7344 cat >>conftest.
$ac_ext <<_ACEOF
7345 /* end confdefs.h. */
7346 #include <sys/types.h>
7347 #include <sys/wait.h>
7349 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7352 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7360 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7365 rm -f conftest.
$ac_objext
7366 if { (ac_try
="$ac_compile"
7368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7369 *) ac_try_echo=$ac_try;;
7371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7372 (eval "$ac_compile") 2>conftest.er1
7374 grep -v '^ *+' conftest.er1 >conftest.err
7376 cat conftest.err >&5
7377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7378 (exit $ac_status); } && {
7379 test -z "$ac_c_werror_flag" ||
7380 test ! -s conftest.err
7381 } && test -s conftest.$ac_objext; then
7382 ac_cv_header_sys_wait_h=yes
7384 echo "$as_me: failed program was:" >&5
7385 sed 's/^/| /' conftest.$ac_ext >&5
7387 ac_cv_header_sys_wait_h=no
7390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7392 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7393 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7394 if test $ac_cv_header_sys_wait_h = yes; then
7396 cat >>confdefs.h <<\_ACEOF
7397 #define HAVE_SYS_WAIT_H 1
7403 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7404 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7405 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 cat >conftest.$ac_ext <<_ACEOF
7411 cat confdefs.h >>conftest.$ac_ext
7412 cat >>conftest.$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 #ifdef TIME_WITH_SYS_TIME
7415 #include <sys/time.h>
7418 #ifdef HAVE_SYS_TIME_H
7419 #include <sys/time.h>
7430 static struct utimbuf x; x.actime = x.modtime;
7435 rm -f conftest.$ac_objext
7436 if { (ac_try="$ac_compile"
7438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7439 *) ac_try_echo
=$ac_try;;
7441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442 (eval "$ac_compile") 2>conftest.er1
7444 grep -v '^ *+' conftest.er1
>conftest.err
7446 cat conftest.err
>&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } && {
7449 test -z "$ac_c_werror_flag" ||
7450 test ! -s conftest.err
7451 } && test -s conftest.
$ac_objext; then
7452 emacs_cv_struct_utimbuf
=yes
7454 echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.
$ac_ext >&5
7457 emacs_cv_struct_utimbuf
=no
7460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7462 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7463 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7464 if test $emacs_cv_struct_utimbuf = yes; then
7466 cat >>confdefs.h
<<\_ACEOF
7467 #define HAVE_STRUCT_UTIMBUF 1
7472 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7473 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7474 if test "${ac_cv_type_signal+set}" = set; then
7475 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 cat >conftest.
$ac_ext <<_ACEOF
7480 cat confdefs.h
>>conftest.
$ac_ext
7481 cat >>conftest.
$ac_ext <<_ACEOF
7482 /* end confdefs.h. */
7483 #include <sys/types.h>
7489 return *(signal (0, 0)) (0) == 1;
7494 rm -f conftest.
$ac_objext
7495 if { (ac_try
="$ac_compile"
7497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7498 *) ac_try_echo=$ac_try;;
7500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7501 (eval "$ac_compile") 2>conftest.er1
7503 grep -v '^ *+' conftest.er1 >conftest.err
7505 cat conftest.err >&5
7506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507 (exit $ac_status); } && {
7508 test -z "$ac_c_werror_flag" ||
7509 test ! -s conftest.err
7510 } && test -s conftest.$ac_objext; then
7511 ac_cv_type_signal=int
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7516 ac_cv_type_signal=void
7519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7521 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7522 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7524 cat >>confdefs.h <<_ACEOF
7525 #define RETSIGTYPE $ac_cv_type_signal
7530 { echo "$as_me:$LINENO: checking for speed_t" >&5
7531 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7532 if test "${emacs_cv_speed_t+set}" = set; then
7533 echo $ECHO_N "(cached) $ECHO_C" >&6
7535 cat >conftest.$ac_ext <<_ACEOF
7538 cat confdefs.h >>conftest.$ac_ext
7539 cat >>conftest.$ac_ext <<_ACEOF
7540 /* end confdefs.h. */
7541 #include <termios.h>
7550 rm -f conftest.$ac_objext
7551 if { (ac_try="$ac_compile"
7553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7554 *) ac_try_echo
=$ac_try;;
7556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557 (eval "$ac_compile") 2>conftest.er1
7559 grep -v '^ *+' conftest.er1
>conftest.err
7561 cat conftest.err
>&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } && {
7564 test -z "$ac_c_werror_flag" ||
7565 test ! -s conftest.err
7566 } && test -s conftest.
$ac_objext; then
7567 emacs_cv_speed_t
=yes
7569 echo "$as_me: failed program was:" >&5
7570 sed 's/^/| /' conftest.
$ac_ext >&5
7575 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7577 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7578 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7579 if test $emacs_cv_speed_t = yes; then
7581 cat >>confdefs.h
<<\_ACEOF
7582 #define HAVE_SPEED_T 1
7587 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7588 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7589 if test "${emacs_cv_struct_timeval+set}" = set; then
7590 echo $ECHO_N "(cached) $ECHO_C" >&6
7592 cat >conftest.
$ac_ext <<_ACEOF
7595 cat confdefs.h
>>conftest.
$ac_ext
7596 cat >>conftest.
$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7598 #ifdef TIME_WITH_SYS_TIME
7599 #include <sys/time.h>
7602 #ifdef HAVE_SYS_TIME_H
7603 #include <sys/time.h>
7611 static struct timeval x; x.tv_sec = x.tv_usec;
7616 rm -f conftest.
$ac_objext
7617 if { (ac_try
="$ac_compile"
7619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7620 *) ac_try_echo=$ac_try;;
7622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623 (eval "$ac_compile") 2>conftest.er1
7625 grep -v '^ *+' conftest.er1 >conftest.err
7627 cat conftest.err >&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } && {
7630 test -z "$ac_c_werror_flag" ||
7631 test ! -s conftest.err
7632 } && test -s conftest.$ac_objext; then
7633 emacs_cv_struct_timeval=yes
7635 echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7638 emacs_cv_struct_timeval=no
7641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7643 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7644 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7645 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7646 if test $emacs_cv_struct_timeval = yes; then
7648 cat >>confdefs.h <<\_ACEOF
7649 #define HAVE_TIMEVAL 1
7654 { echo "$as_me:$LINENO: checking for struct exception" >&5
7655 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7656 if test "${emacs_cv_struct_exception+set}" = set; then
7657 echo $ECHO_N "(cached) $ECHO_C" >&6
7659 cat >conftest.$ac_ext <<_ACEOF
7662 cat confdefs.h >>conftest.$ac_ext
7663 cat >>conftest.$ac_ext <<_ACEOF
7664 /* end confdefs.h. */
7669 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7674 rm -f conftest.$ac_objext
7675 if { (ac_try="$ac_compile"
7677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7678 *) ac_try_echo
=$ac_try;;
7680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7681 (eval "$ac_compile") 2>conftest.er1
7683 grep -v '^ *+' conftest.er1
>conftest.err
7685 cat conftest.err
>&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } && {
7688 test -z "$ac_c_werror_flag" ||
7689 test ! -s conftest.err
7690 } && test -s conftest.
$ac_objext; then
7691 emacs_cv_struct_exception
=yes
7693 echo "$as_me: failed program was:" >&5
7694 sed 's/^/| /' conftest.
$ac_ext >&5
7696 emacs_cv_struct_exception
=no
7699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7701 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7702 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7703 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7704 if test $emacs_cv_struct_exception != yes; then
7706 cat >>confdefs.h
<<\_ACEOF
7707 #define NO_MATHERR 1
7713 for ac_header
in sys
/socket.h
7715 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7716 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7717 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7718 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7719 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7720 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 ac_res
=`eval echo '${'$as_ac_Header'}'`
7723 { echo "$as_me:$LINENO: result: $ac_res" >&5
7724 echo "${ECHO_T}$ac_res" >&6; }
7726 # Is the header compilable?
7727 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7728 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7729 cat >conftest.
$ac_ext <<_ACEOF
7732 cat confdefs.h
>>conftest.
$ac_ext
7733 cat >>conftest.
$ac_ext <<_ACEOF
7734 /* end confdefs.h. */
7735 $ac_includes_default
7736 #include <$ac_header>
7738 rm -f conftest.
$ac_objext
7739 if { (ac_try
="$ac_compile"
7741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7742 *) ac_try_echo=$ac_try;;
7744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7745 (eval "$ac_compile") 2>conftest.er1
7747 grep -v '^ *+' conftest.er1 >conftest.err
7749 cat conftest.err >&5
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } && {
7752 test -z "$ac_c_werror_flag" ||
7753 test ! -s conftest.err
7754 } && test -s conftest.$ac_objext; then
7755 ac_header_compiler=yes
7757 echo "$as_me: failed program was:" >&5
7758 sed 's/^/| /' conftest.$ac_ext >&5
7760 ac_header_compiler=no
7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7764 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7765 echo "${ECHO_T}$ac_header_compiler" >&6; }
7767 # Is the header present?
7768 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7769 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7770 cat >conftest.$ac_ext <<_ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 #include <$ac_header>
7778 if { (ac_try="$ac_cpp conftest.$ac_ext"
7780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7781 *) ac_try_echo
=$ac_try;;
7783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7784 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7786 grep -v '^ *+' conftest.er1
>conftest.err
7788 cat conftest.err
>&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); } >/dev
/null
&& {
7791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7792 test ! -s conftest.err
7794 ac_header_preproc
=yes
7796 echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.
$ac_ext >&5
7799 ac_header_preproc
=no
7802 rm -f conftest.err conftest.
$ac_ext
7803 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7804 echo "${ECHO_T}$ac_header_preproc" >&6; }
7806 # So? What about this header?
7807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7809 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7810 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7813 ac_header_preproc
=yes
7816 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7817 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7818 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7819 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7820 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7821 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7822 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7823 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7826 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7827 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7833 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7836 eval "$as_ac_Header=\$ac_header_preproc"
7838 ac_res
=`eval echo '${'$as_ac_Header'}'`
7839 { echo "$as_me:$LINENO: result: $ac_res" >&5
7840 echo "${ECHO_T}$ac_res" >&6; }
7843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7844 cat >>confdefs.h
<<_ACEOF
7845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7853 for ac_header
in net
/if.h
7855 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7856 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7857 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7858 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7861 cat >conftest.
$ac_ext <<_ACEOF
7864 cat confdefs.h
>>conftest.
$ac_ext
7865 cat >>conftest.
$ac_ext <<_ACEOF
7866 /* end confdefs.h. */
7867 $ac_includes_default
7868 #if HAVE_SYS_SOCKET_H
7869 #include <sys/socket.h>
7872 #include <$ac_header>
7874 rm -f conftest.
$ac_objext
7875 if { (ac_try
="$ac_compile"
7877 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7878 *) ac_try_echo=$ac_try;;
7880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7881 (eval "$ac_compile") 2>conftest.er1
7883 grep -v '^ *+' conftest.er1 >conftest.err
7885 cat conftest.err >&5
7886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7887 (exit $ac_status); } && {
7888 test -z "$ac_c_werror_flag" ||
7889 test ! -s conftest.err
7890 } && test -s conftest.$ac_objext; then
7891 eval "$as_ac_Header=yes"
7893 echo "$as_me: failed program was:" >&5
7894 sed 's/^/| /' conftest.$ac_ext >&5
7896 eval "$as_ac_Header=no"
7899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7901 ac_res=`eval echo '${'$as_ac_Header'}'`
7902 { echo "$as_me:$LINENO: result: $ac_res" >&5
7903 echo "${ECHO_T}$ac_res" >&6; }
7904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7905 cat >>confdefs.h <<_ACEOF
7906 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7914 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7915 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7916 if test "${ac_cv_struct_tm+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 cat >conftest.$ac_ext <<_ACEOF
7922 cat confdefs.h >>conftest.$ac_ext
7923 cat >>conftest.$ac_ext <<_ACEOF
7924 /* end confdefs.h. */
7925 #include <sys/types.h>
7932 int *p = &tm.tm_sec;
7938 rm -f conftest.$ac_objext
7939 if { (ac_try="$ac_compile"
7941 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7942 *) ac_try_echo
=$ac_try;;
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_compile") 2>conftest.er1
7947 grep -v '^ *+' conftest.er1
>conftest.err
7949 cat conftest.err
>&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } && {
7952 test -z "$ac_c_werror_flag" ||
7953 test ! -s conftest.err
7954 } && test -s conftest.
$ac_objext; then
7955 ac_cv_struct_tm
=time.h
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.
$ac_ext >&5
7960 ac_cv_struct_tm
=sys
/time.h
7963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7965 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7966 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7967 if test $ac_cv_struct_tm = sys
/time.h
; then
7969 cat >>confdefs.h
<<\_ACEOF
7970 #define TM_IN_SYS_TIME 1
7975 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7976 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7977 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 cat >conftest.
$ac_ext <<_ACEOF
7983 cat confdefs.h
>>conftest.
$ac_ext
7984 cat >>conftest.
$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7986 #include <sys/types.h>
7987 #include <$ac_cv_struct_tm>
7993 static struct tm ac_aggr;
7994 if (ac_aggr.tm_zone)
8000 rm -f conftest.
$ac_objext
8001 if { (ac_try
="$ac_compile"
8003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_compile") 2>conftest.er1
8009 grep -v '^ *+' conftest.er1 >conftest.err
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest.$ac_objext; then
8017 ac_cv_member_struct_tm_tm_zone=yes
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8022 cat >conftest.$ac_ext <<_ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8028 #include <sys/types.h>
8029 #include <$ac_cv_struct_tm>
8035 static struct tm ac_aggr;
8036 if (sizeof ac_aggr.tm_zone)
8042 rm -f conftest.$ac_objext
8043 if { (ac_try="$ac_compile"
8045 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8046 *) ac_try_echo
=$ac_try;;
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049 (eval "$ac_compile") 2>conftest.er1
8051 grep -v '^ *+' conftest.er1
>conftest.err
8053 cat conftest.err
>&5
8054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } && {
8056 test -z "$ac_c_werror_flag" ||
8057 test ! -s conftest.err
8058 } && test -s conftest.
$ac_objext; then
8059 ac_cv_member_struct_tm_tm_zone
=yes
8061 echo "$as_me: failed program was:" >&5
8062 sed 's/^/| /' conftest.
$ac_ext >&5
8064 ac_cv_member_struct_tm_tm_zone
=no
8067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8072 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8073 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8074 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8076 cat >>confdefs.h
<<_ACEOF
8077 #define HAVE_STRUCT_TM_TM_ZONE 1
8083 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8085 cat >>confdefs.h
<<\_ACEOF
8086 #define HAVE_TM_ZONE 1
8090 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8091 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8092 if test "${ac_cv_have_decl_tzname+set}" = set; then
8093 echo $ECHO_N "(cached) $ECHO_C" >&6
8095 cat >conftest.
$ac_ext <<_ACEOF
8098 cat confdefs.h
>>conftest.
$ac_ext
8099 cat >>conftest.
$ac_ext <<_ACEOF
8100 /* end confdefs.h. */
8114 rm -f conftest.
$ac_objext
8115 if { (ac_try
="$ac_compile"
8117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121 (eval "$ac_compile") 2>conftest.er1
8123 grep -v '^ *+' conftest.er1 >conftest.err
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } && {
8128 test -z "$ac_c_werror_flag" ||
8129 test ! -s conftest.err
8130 } && test -s conftest.$ac_objext; then
8131 ac_cv_have_decl_tzname=yes
8133 echo "$as_me: failed program was:" >&5
8134 sed 's/^/| /' conftest.$ac_ext >&5
8136 ac_cv_have_decl_tzname=no
8139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8141 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8142 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8143 if test $ac_cv_have_decl_tzname = yes; then
8145 cat >>confdefs.h <<_ACEOF
8146 #define HAVE_DECL_TZNAME 1
8151 cat >>confdefs.h <<_ACEOF
8152 #define HAVE_DECL_TZNAME 0
8159 { echo "$as_me:$LINENO: checking for tzname" >&5
8160 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8161 if test "${ac_cv_var_tzname+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8164 cat >conftest.$ac_ext <<_ACEOF
8167 cat confdefs.h >>conftest.$ac_ext
8168 cat >>conftest.$ac_ext <<_ACEOF
8169 /* end confdefs.h. */
8171 #if !HAVE_DECL_TZNAME
8172 extern char *tzname[];
8178 return tzname[0][0];
8183 rm -f conftest.$ac_objext conftest$ac_exeext
8184 if { (ac_try="$ac_link"
8186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8187 *) ac_try_echo
=$ac_try;;
8189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8190 (eval "$ac_link") 2>conftest.er1
8192 grep -v '^ *+' conftest.er1
>conftest.err
8194 cat conftest.err
>&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } && {
8197 test -z "$ac_c_werror_flag" ||
8198 test ! -s conftest.err
8199 } && test -s conftest
$ac_exeext &&
8200 $as_test_x conftest
$ac_exeext; then
8201 ac_cv_var_tzname
=yes
8203 echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.
$ac_ext >&5
8209 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8210 conftest
$ac_exeext conftest.
$ac_ext
8212 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8213 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8214 if test $ac_cv_var_tzname = yes; then
8216 cat >>confdefs.h
<<\_ACEOF
8217 #define HAVE_TZNAME 1
8223 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8224 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8225 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8226 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 cat >conftest.
$ac_ext <<_ACEOF
8231 cat confdefs.h
>>conftest.
$ac_ext
8232 cat >>conftest.
$ac_ext <<_ACEOF
8233 /* end confdefs.h. */
8239 static struct tm ac_aggr;
8240 if (ac_aggr.tm_gmtoff)
8246 rm -f conftest.
$ac_objext
8247 if { (ac_try
="$ac_compile"
8249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8250 *) ac_try_echo=$ac_try;;
8252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8253 (eval "$ac_compile") 2>conftest.er1
8255 grep -v '^ *+' conftest.er1 >conftest.err
8257 cat conftest.err >&5
8258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8259 (exit $ac_status); } && {
8260 test -z "$ac_c_werror_flag" ||
8261 test ! -s conftest.err
8262 } && test -s conftest.$ac_objext; then
8263 ac_cv_member_struct_tm_tm_gmtoff=yes
8265 echo "$as_me: failed program was:" >&5
8266 sed 's/^/| /' conftest.$ac_ext >&5
8268 cat >conftest.$ac_ext <<_ACEOF
8271 cat confdefs.h >>conftest.$ac_ext
8272 cat >>conftest.$ac_ext <<_ACEOF
8273 /* end confdefs.h. */
8279 static struct tm ac_aggr;
8280 if (sizeof ac_aggr.tm_gmtoff)
8286 rm -f conftest.$ac_objext
8287 if { (ac_try="$ac_compile"
8289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8290 *) ac_try_echo
=$ac_try;;
8292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293 (eval "$ac_compile") 2>conftest.er1
8295 grep -v '^ *+' conftest.er1
>conftest.err
8297 cat conftest.err
>&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } && {
8300 test -z "$ac_c_werror_flag" ||
8301 test ! -s conftest.err
8302 } && test -s conftest.
$ac_objext; then
8303 ac_cv_member_struct_tm_tm_gmtoff
=yes
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.
$ac_ext >&5
8308 ac_cv_member_struct_tm_tm_gmtoff
=no
8311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8316 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8317 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8318 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8320 cat >>confdefs.h
<<\_ACEOF
8321 #define HAVE_TM_GMTOFF 1
8326 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8327 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8328 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 cat >conftest.
$ac_ext <<_ACEOF
8334 cat confdefs.h
>>conftest.
$ac_ext
8335 cat >>conftest.
$ac_ext <<_ACEOF
8336 /* end confdefs.h. */
8337 $ac_includes_default
8338 #if HAVE_SYS_SOCKET_H
8339 #include <sys/socket.h>
8348 static struct ifreq ac_aggr;
8349 if (ac_aggr.ifr_flags)
8355 rm -f conftest.
$ac_objext
8356 if { (ac_try
="$ac_compile"
8358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8359 *) ac_try_echo=$ac_try;;
8361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8362 (eval "$ac_compile") 2>conftest.er1
8364 grep -v '^ *+' conftest.er1 >conftest.err
8366 cat conftest.err >&5
8367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } && {
8369 test -z "$ac_c_werror_flag" ||
8370 test ! -s conftest.err
8371 } && test -s conftest.$ac_objext; then
8372 ac_cv_member_struct_ifreq_ifr_flags=yes
8374 echo "$as_me: failed program was:" >&5
8375 sed 's/^/| /' conftest.$ac_ext >&5
8377 cat >conftest.$ac_ext <<_ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8383 $ac_includes_default
8384 #if HAVE_SYS_SOCKET_H
8385 #include <sys/socket.h>
8394 static struct ifreq ac_aggr;
8395 if (sizeof ac_aggr.ifr_flags)
8401 rm -f conftest.$ac_objext
8402 if { (ac_try="$ac_compile"
8404 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8405 *) ac_try_echo
=$ac_try;;
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_compile") 2>conftest.er1
8410 grep -v '^ *+' conftest.er1
>conftest.err
8412 cat conftest.err
>&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } && {
8415 test -z "$ac_c_werror_flag" ||
8416 test ! -s conftest.err
8417 } && test -s conftest.
$ac_objext; then
8418 ac_cv_member_struct_ifreq_ifr_flags
=yes
8420 echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.
$ac_ext >&5
8423 ac_cv_member_struct_ifreq_ifr_flags
=no
8426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8431 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8432 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8433 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8435 cat >>confdefs.h
<<_ACEOF
8436 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8441 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8442 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8443 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8444 echo $ECHO_N "(cached) $ECHO_C" >&6
8446 cat >conftest.
$ac_ext <<_ACEOF
8449 cat confdefs.h
>>conftest.
$ac_ext
8450 cat >>conftest.
$ac_ext <<_ACEOF
8451 /* end confdefs.h. */
8452 $ac_includes_default
8453 #if HAVE_SYS_SOCKET_H
8454 #include <sys/socket.h>
8463 static struct ifreq ac_aggr;
8464 if (ac_aggr.ifr_hwaddr)
8470 rm -f conftest.
$ac_objext
8471 if { (ac_try
="$ac_compile"
8473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8474 *) ac_try_echo=$ac_try;;
8476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8477 (eval "$ac_compile") 2>conftest.er1
8479 grep -v '^ *+' conftest.er1 >conftest.err
8481 cat conftest.err >&5
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); } && {
8484 test -z "$ac_c_werror_flag" ||
8485 test ! -s conftest.err
8486 } && test -s conftest.$ac_objext; then
8487 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8489 echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.$ac_ext >&5
8492 cat >conftest.$ac_ext <<_ACEOF
8495 cat confdefs.h >>conftest.$ac_ext
8496 cat >>conftest.$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8498 $ac_includes_default
8499 #if HAVE_SYS_SOCKET_H
8500 #include <sys/socket.h>
8509 static struct ifreq ac_aggr;
8510 if (sizeof ac_aggr.ifr_hwaddr)
8516 rm -f conftest.$ac_objext
8517 if { (ac_try="$ac_compile"
8519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8520 *) ac_try_echo
=$ac_try;;
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523 (eval "$ac_compile") 2>conftest.er1
8525 grep -v '^ *+' conftest.er1
>conftest.err
8527 cat conftest.err
>&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } && {
8530 test -z "$ac_c_werror_flag" ||
8531 test ! -s conftest.err
8532 } && test -s conftest.
$ac_objext; then
8533 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.
$ac_ext >&5
8538 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8544 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8546 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8547 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8548 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8550 cat >>confdefs.h
<<_ACEOF
8551 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8556 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8557 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8558 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8559 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 cat >conftest.
$ac_ext <<_ACEOF
8564 cat confdefs.h
>>conftest.
$ac_ext
8565 cat >>conftest.
$ac_ext <<_ACEOF
8566 /* end confdefs.h. */
8567 $ac_includes_default
8568 #if HAVE_SYS_SOCKET_H
8569 #include <sys/socket.h>
8578 static struct ifreq ac_aggr;
8579 if (ac_aggr.ifr_netmask)
8585 rm -f conftest.
$ac_objext
8586 if { (ac_try
="$ac_compile"
8588 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8589 *) ac_try_echo=$ac_try;;
8591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8592 (eval "$ac_compile") 2>conftest.er1
8594 grep -v '^ *+' conftest.er1 >conftest.err
8596 cat conftest.err >&5
8597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8598 (exit $ac_status); } && {
8599 test -z "$ac_c_werror_flag" ||
8600 test ! -s conftest.err
8601 } && test -s conftest.$ac_objext; then
8602 ac_cv_member_struct_ifreq_ifr_netmask=yes
8604 echo "$as_me: failed program was:" >&5
8605 sed 's/^/| /' conftest.$ac_ext >&5
8607 cat >conftest.$ac_ext <<_ACEOF
8610 cat confdefs.h >>conftest.$ac_ext
8611 cat >>conftest.$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8613 $ac_includes_default
8614 #if HAVE_SYS_SOCKET_H
8615 #include <sys/socket.h>
8624 static struct ifreq ac_aggr;
8625 if (sizeof ac_aggr.ifr_netmask)
8631 rm -f conftest.$ac_objext
8632 if { (ac_try="$ac_compile"
8634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8635 *) ac_try_echo
=$ac_try;;
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_compile") 2>conftest.er1
8640 grep -v '^ *+' conftest.er1
>conftest.err
8642 cat conftest.err
>&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } && {
8645 test -z "$ac_c_werror_flag" ||
8646 test ! -s conftest.err
8647 } && test -s conftest.
$ac_objext; then
8648 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8650 echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.
$ac_ext >&5
8653 ac_cv_member_struct_ifreq_ifr_netmask
=no
8656 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8659 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8661 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8662 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8663 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8665 cat >>confdefs.h
<<_ACEOF
8666 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8671 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8672 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8673 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8676 cat >conftest.
$ac_ext <<_ACEOF
8679 cat confdefs.h
>>conftest.
$ac_ext
8680 cat >>conftest.
$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8682 $ac_includes_default
8683 #if HAVE_SYS_SOCKET_H
8684 #include <sys/socket.h>
8693 static struct ifreq ac_aggr;
8694 if (ac_aggr.ifr_broadaddr)
8700 rm -f conftest.
$ac_objext
8701 if { (ac_try
="$ac_compile"
8703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8704 *) ac_try_echo=$ac_try;;
8706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707 (eval "$ac_compile") 2>conftest.er1
8709 grep -v '^ *+' conftest.er1 >conftest.err
8711 cat conftest.err >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } && {
8714 test -z "$ac_c_werror_flag" ||
8715 test ! -s conftest.err
8716 } && test -s conftest.$ac_objext; then
8717 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.$ac_ext >&5
8722 cat >conftest.$ac_ext <<_ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8728 $ac_includes_default
8729 #if HAVE_SYS_SOCKET_H
8730 #include <sys/socket.h>
8739 static struct ifreq ac_aggr;
8740 if (sizeof ac_aggr.ifr_broadaddr)
8746 rm -f conftest.$ac_objext
8747 if { (ac_try="$ac_compile"
8749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8750 *) ac_try_echo
=$ac_try;;
8752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753 (eval "$ac_compile") 2>conftest.er1
8755 grep -v '^ *+' conftest.er1
>conftest.err
8757 cat conftest.err
>&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } && {
8760 test -z "$ac_c_werror_flag" ||
8761 test ! -s conftest.err
8762 } && test -s conftest.
$ac_objext; then
8763 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.
$ac_ext >&5
8768 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8774 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8776 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8777 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8778 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8780 cat >>confdefs.h
<<_ACEOF
8781 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8786 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8787 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8788 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8789 echo $ECHO_N "(cached) $ECHO_C" >&6
8791 cat >conftest.
$ac_ext <<_ACEOF
8794 cat confdefs.h
>>conftest.
$ac_ext
8795 cat >>conftest.
$ac_ext <<_ACEOF
8796 /* end confdefs.h. */
8797 $ac_includes_default
8798 #if HAVE_SYS_SOCKET_H
8799 #include <sys/socket.h>
8808 static struct ifreq ac_aggr;
8809 if (ac_aggr.ifr_addr)
8815 rm -f conftest.
$ac_objext
8816 if { (ac_try
="$ac_compile"
8818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8819 *) ac_try_echo=$ac_try;;
8821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8822 (eval "$ac_compile") 2>conftest.er1
8824 grep -v '^ *+' conftest.er1 >conftest.err
8826 cat conftest.err >&5
8827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828 (exit $ac_status); } && {
8829 test -z "$ac_c_werror_flag" ||
8830 test ! -s conftest.err
8831 } && test -s conftest.$ac_objext; then
8832 ac_cv_member_struct_ifreq_ifr_addr=yes
8834 echo "$as_me: failed program was:" >&5
8835 sed 's/^/| /' conftest.$ac_ext >&5
8837 cat >conftest.$ac_ext <<_ACEOF
8840 cat confdefs.h >>conftest.$ac_ext
8841 cat >>conftest.$ac_ext <<_ACEOF
8842 /* end confdefs.h. */
8843 $ac_includes_default
8844 #if HAVE_SYS_SOCKET_H
8845 #include <sys/socket.h>
8854 static struct ifreq ac_aggr;
8855 if (sizeof ac_aggr.ifr_addr)
8861 rm -f conftest.$ac_objext
8862 if { (ac_try="$ac_compile"
8864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8865 *) ac_try_echo
=$ac_try;;
8867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_compile") 2>conftest.er1
8870 grep -v '^ *+' conftest.er1
>conftest.err
8872 cat conftest.err
>&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8874 (exit $ac_status); } && {
8875 test -z "$ac_c_werror_flag" ||
8876 test ! -s conftest.err
8877 } && test -s conftest.
$ac_objext; then
8878 ac_cv_member_struct_ifreq_ifr_addr
=yes
8880 echo "$as_me: failed program was:" >&5
8881 sed 's/^/| /' conftest.
$ac_ext >&5
8883 ac_cv_member_struct_ifreq_ifr_addr
=no
8886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8891 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8892 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8893 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8895 cat >>confdefs.h
<<_ACEOF
8896 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8904 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8905 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8906 if test "$ac_cv_prog_cc_c89" != no
; then
8907 { echo "$as_me:$LINENO: result: yes" >&5
8908 echo "${ECHO_T}yes" >&6; }
8910 cat >>confdefs.h
<<\_ACEOF
8911 #define PROTOTYPES 1
8915 cat >>confdefs.h
<<\_ACEOF
8916 #define __PROTOTYPES 1
8920 { echo "$as_me:$LINENO: result: no" >&5
8921 echo "${ECHO_T}no" >&6; }
8924 { echo "$as_me:$LINENO: checking for working volatile" >&5
8925 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8926 if test "${ac_cv_c_volatile+set}" = set; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8929 cat >conftest.
$ac_ext <<_ACEOF
8932 cat confdefs.h
>>conftest.
$ac_ext
8933 cat >>conftest.
$ac_ext <<_ACEOF
8934 /* end confdefs.h. */
8941 int * volatile y = (int *) 0;
8947 rm -f conftest.
$ac_objext
8948 if { (ac_try
="$ac_compile"
8950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8951 *) ac_try_echo=$ac_try;;
8953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8954 (eval "$ac_compile") 2>conftest.er1
8956 grep -v '^ *+' conftest.er1 >conftest.err
8958 cat conftest.err >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 (exit $ac_status); } && {
8961 test -z "$ac_c_werror_flag" ||
8962 test ! -s conftest.err
8963 } && test -s conftest.$ac_objext; then
8964 ac_cv_c_volatile=yes
8966 echo "$as_me: failed program was:" >&5
8967 sed 's/^/| /' conftest.$ac_ext >&5
8972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8974 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8975 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8976 if test $ac_cv_c_volatile = no; then
8978 cat >>confdefs.h <<\_ACEOF
8984 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8985 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8986 if test "${ac_cv_c_const+set}" = set; then
8987 echo $ECHO_N "(cached) $ECHO_C" >&6
8989 cat >conftest.$ac_ext <<_ACEOF
8992 cat confdefs.h >>conftest.$ac_ext
8993 cat >>conftest.$ac_ext <<_ACEOF
8994 /* end confdefs.h. */
8999 /* FIXME: Include the comments suggested by Paul. */
9001 /* Ultrix mips cc rejects this. */
9002 typedef int charset[2];
9004 /* SunOS 4.1.1 cc rejects this. */
9005 char const *const *pcpcc;
9007 /* NEC SVR4.0.2 mips cc rejects this. */
9008 struct point {int x, y;};
9009 static struct point const zero = {0,0};
9010 /* AIX XL C 1.02.0.0 rejects this.
9011 It does not let you subtract one const X* pointer from another in
9012 an arm of an if-expression whose if-part is not a constant
9014 const char *g = "string";
9015 pcpcc = &g + (g ? g-g : 0);
9016 /* HPUX 7.0 cc rejects these. */
9018 ppc = (char**) pcpcc;
9019 pcpcc = (char const *const *) ppc;
9020 { /* SCO 3.2v4 cc rejects this. */
9022 char const *s = 0 ? (char *) 0 : (char const *) 0;
9027 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9029 const int *foo = &x[0];
9032 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9033 typedef const int *iptr;
9037 { /* AIX XL C 1.02.0.0 rejects this saying
9038 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9039 struct s { int j; const int *ap[3]; };
9040 struct s *b; b->j = 5;
9042 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9046 return !cs[0] && !zero.x;
9053 rm -f conftest.$ac_objext
9054 if { (ac_try="$ac_compile"
9056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9057 *) ac_try_echo
=$ac_try;;
9059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9060 (eval "$ac_compile") 2>conftest.er1
9062 grep -v '^ *+' conftest.er1
>conftest.err
9064 cat conftest.err
>&5
9065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066 (exit $ac_status); } && {
9067 test -z "$ac_c_werror_flag" ||
9068 test ! -s conftest.err
9069 } && test -s conftest.
$ac_objext; then
9072 echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.
$ac_ext >&5
9078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9080 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9081 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9082 if test $ac_cv_c_const = no
; then
9084 cat >>confdefs.h
<<\_ACEOF
9090 { echo "$as_me:$LINENO: checking for void * support" >&5
9091 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9092 if test "${emacs_cv_void_star+set}" = set; then
9093 echo $ECHO_N "(cached) $ECHO_C" >&6
9095 cat >conftest.
$ac_ext <<_ACEOF
9098 cat confdefs.h
>>conftest.
$ac_ext
9099 cat >>conftest.
$ac_ext <<_ACEOF
9100 /* end confdefs.h. */
9110 rm -f conftest.
$ac_objext
9111 if { (ac_try
="$ac_compile"
9113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117 (eval "$ac_compile") 2>conftest.er1
9119 grep -v '^ *+' conftest.er1 >conftest.err
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } && {
9124 test -z "$ac_c_werror_flag" ||
9125 test ! -s conftest.err
9126 } && test -s conftest.$ac_objext; then
9127 emacs_cv_void_star=yes
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9132 emacs_cv_void_star=no
9135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9137 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9138 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9139 if test $emacs_cv_void_star = yes; then
9140 cat >>confdefs.h <<\_ACEOF
9141 #define POINTER_TYPE void
9145 cat >>confdefs.h <<\_ACEOF
9146 #define POINTER_TYPE char
9155 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9156 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9157 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9158 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 cat >conftest.make <<\_ACEOF
9164 @echo '@@@%%%=$(MAKE)=@@@%%%'
9166 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9167 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9169 eval ac_cv_prog_make_${ac_make}_set=yes;;
9171 eval ac_cv_prog_make_${ac_make}_set=no;;
9175 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9176 { echo "$as_me:$LINENO: result: yes" >&5
9177 echo "${ECHO_T}yes" >&6; }
9180 { echo "$as_me:$LINENO: result: no" >&5
9181 echo "${ECHO_T}no" >&6; }
9182 SET_MAKE="MAKE=${MAKE-make}"
9186 { echo "$as_me:$LINENO: checking for long file names" >&5
9187 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9188 if test "${ac_cv_sys_long_file_names+set}" = set; then
9189 echo $ECHO_N "(cached) $ECHO_C" >&6
9191 ac_cv_sys_long_file_names=yes
9192 # Test for long file names in all the places we know might matter:
9193 # . the current directory, where building will happen
9194 # $prefix/lib where we will be installing things
9195 # $exec_prefix/lib likewise
9196 # $TMPDIR if set, where it might want to write temporary files
9197 # /tmp where it might want to write temporary files
9200 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9201 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9202 # in the usual case where exec_prefix is '${prefix}'.
9204 . | /* | ?:[\\/]*) ;; #(
9207 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9208 ac_xdir=$ac_dir/cf$$
9209 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9210 ac_tf1=$ac_xdir/conftest9012345
9211 ac_tf2=$ac_xdir/conftest9012346
9212 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9213 ac_cv_sys_long_file_names=no
9214 rm -f -r "$ac_xdir" 2>/dev/null
9215 test $ac_cv_sys_long_file_names = no && break
9218 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9219 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9220 if test $ac_cv_sys_long_file_names = yes; then
9222 cat >>confdefs.h <<\_ACEOF
9223 #define HAVE_LONG_FILE_NAMES 1
9229 #### Choose a window system.
9231 { echo "$as_me:$LINENO: checking for X" >&5
9232 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9235 # Check whether --with-x was given.
9236 if test "${with_x+set}" = set; then
9240 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9241 if test "x$with_x" = xno; then
9242 # The user explicitly disabled X.
9245 case $x_includes,$x_libraries in #(
9246 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9247 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9248 { (exit 1); exit 1; }; };; #(
9249 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 # One or both of the vars are not set, and there is no cached value.
9253 ac_x_includes=no ac_x_libraries=no
9254 rm -f -r conftest.dir
9255 if mkdir conftest.dir; then
9257 cat >Imakefile <<'_ACEOF'
9259 @echo incroot='${INCROOT}'
9261 @echo usrlibdir='${USRLIBDIR}'
9263 @echo libdir='${LIBDIR}'
9265 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9266 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9267 for ac_var in incroot usrlibdir libdir; do
9268 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9270 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9271 for ac_extension in a so sl; do
9272 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9273 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9274 ac_im_usrlibdir=$ac_im_libdir; break
9277 # Screen out bogus values from the imake configuration. They are
9278 # bogus both because they are the default anyway, and because
9279 # using them would break gcc on systems where it needs fixed includes.
9280 case $ac_im_incroot in
9281 /usr/include) ac_x_includes= ;;
9282 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9284 case $ac_im_usrlibdir in
9286 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9290 rm -f -r conftest.dir
9293 # Standard set of common directories for X headers.
9294 # Check X11 before X11Rn because it is often a symlink to the current release.
9306 /usr/local/X11/include
9307 /usr/local/X11R6/include
9308 /usr/local/X11R5/include
9309 /usr/local/X11R4/include
9311 /usr/local/include/X11
9312 /usr/local/include/X11R6
9313 /usr/local/include/X11R5
9314 /usr/local/include/X11R4
9318 /usr/XFree86/include/X11
9322 /usr/unsupported/include
9324 /usr/local/x11r5/include
9325 /usr/lpp/Xamples/include
9327 /usr/openwin/include
9328 /usr/openwin/share/include'
9330 if test "$ac_x_includes" = no; then
9331 # Guess where to find include files, by looking for Xlib.h.
9332 # First, try using that file with no special directory specified.
9333 cat >conftest.$ac_ext <<_ACEOF
9336 cat confdefs.h >>conftest.$ac_ext
9337 cat >>conftest.$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9339 #include <X11/Xlib.h>
9341 if { (ac_try="$ac_cpp conftest.$ac_ext"
9343 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9344 *) ac_try_echo
=$ac_try;;
9346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9347 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9349 grep -v '^ *+' conftest.er1
>conftest.err
9351 cat conftest.err
>&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); } >/dev
/null
&& {
9354 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9355 test ! -s conftest.err
9357 # We can compile using X headers with no special include directory.
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.
$ac_ext >&5
9363 for ac_dir
in $ac_x_header_dirs; do
9364 if test -r "$ac_dir/X11/Xlib.h"; then
9365 ac_x_includes
=$ac_dir
9371 rm -f conftest.err conftest.
$ac_ext
9372 fi # $ac_x_includes = no
9374 if test "$ac_x_libraries" = no
; then
9375 # Check for the libraries.
9376 # See if we find them without any special options.
9377 # Don't add to $LIBS permanently.
9380 cat >conftest.
$ac_ext <<_ACEOF
9383 cat confdefs.h
>>conftest.
$ac_ext
9384 cat >>conftest.
$ac_ext <<_ACEOF
9385 /* end confdefs.h. */
9386 #include <X11/Xlib.h>
9395 rm -f conftest.
$ac_objext conftest
$ac_exeext
9396 if { (ac_try
="$ac_link"
9398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9399 *) ac_try_echo=$ac_try;;
9401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9402 (eval "$ac_link") 2>conftest.er1
9404 grep -v '^ *+' conftest.er1 >conftest.err
9406 cat conftest.err >&5
9407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408 (exit $ac_status); } && {
9409 test -z "$ac_c_werror_flag" ||
9410 test ! -s conftest.err
9411 } && test -s conftest$ac_exeext &&
9412 $as_test_x conftest$ac_exeext; then
9414 # We can link X programs with no special library path.
9417 echo "$as_me: failed program was:" >&5
9418 sed 's/^/| /' conftest.$ac_ext >&5
9421 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9423 # Don't even attempt the hair of trying to link an X program!
9424 for ac_extension in a so sl; do
9425 if test -r "$ac_dir/libX11.$ac_extension"; then
9426 ac_x_libraries=$ac_dir
9433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9434 conftest$ac_exeext conftest.$ac_ext
9435 fi # $ac_x_libraries = no
9437 case $ac_x_includes,$ac_x_libraries in #(
9439 # Didn't find X, or a directory has "'" in its name.
9440 ac_cv_have_x="have_x=no";; #(
9442 # Record where we found X for the cache.
9443 ac_cv_have_x="have_x=yes\
9444 ac_x_includes='$ac_x_includes'\
9445 ac_x_libraries='$ac_x_libraries'"
9451 eval "$ac_cv_have_x"
9454 if test "$have_x" != yes; then
9455 { echo "$as_me:$LINENO: result: $have_x" >&5
9456 echo "${ECHO_T}$have_x" >&6; }
9459 # If each of the values was on the command line, it overrides each guess.
9460 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9461 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9462 # Update the cache value to reflect the command line values.
9463 ac_cv_have_x="have_x=yes\
9464 ac_x_includes='$x_includes'\
9465 ac_x_libraries='$x_libraries'"
9466 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9467 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9470 if test "$no_x" = yes; then
9476 if test "${x_libraries}" != NONE; then
9477 if test -n "${x_libraries}"; then
9478 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9479 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9481 x_default_search_path=""
9482 x_search_path=${x_libraries}
9483 if test -z "${x_search_path}"; then
9484 x_search_path=/usr/lib
9486 for x_library in `echo ${x_search_path}: | \
9487 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9489 ${x_library}/X11/%L/%T/%N%C%S:\
9490 ${x_library}/X11/%l/%T/%N%C%S:\
9491 ${x_library}/X11/%T/%N%C%S:\
9492 ${x_library}/X11/%L/%T/%N%S:\
9493 ${x_library}/X11/%l/%T/%N%S:\
9494 ${x_library}/X11/%T/%N%S"
9495 if test x"${x_default_search_path}" = x; then
9496 x_default_search_path=${x_search_path}
9498 x_default_search_path="${x_search_path}:${x_default_search_path}"
9502 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9503 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9506 if test x"${x_includes}" = x; then
9507 bitmapdir=/usr/include/X11/bitmaps
9509 # accumulate include directories that have X11 bitmap subdirectories
9511 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9512 if test -d "${bmd}/X11/bitmaps"; then
9513 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9515 if test -d "${bmd}/bitmaps"; then
9516 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9519 if test ${bmd_acc} != "dummyval"; then
9520 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9525 if test "${with_carbon}" != no; then
9526 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9527 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9528 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9529 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9530 echo $ECHO_N "(cached) $ECHO_C" >&6
9532 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9533 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9535 # Is the header compilable?
9536 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9537 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9538 cat >conftest.$ac_ext <<_ACEOF
9541 cat confdefs.h >>conftest.$ac_ext
9542 cat >>conftest.$ac_ext <<_ACEOF
9543 /* end confdefs.h. */
9544 $ac_includes_default
9545 #include <Carbon/Carbon.h>
9547 rm -f conftest.$ac_objext
9548 if { (ac_try="$ac_compile"
9550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9551 *) ac_try_echo
=$ac_try;;
9553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9554 (eval "$ac_compile") 2>conftest.er1
9556 grep -v '^ *+' conftest.er1
>conftest.err
9558 cat conftest.err
>&5
9559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9560 (exit $ac_status); } && {
9561 test -z "$ac_c_werror_flag" ||
9562 test ! -s conftest.err
9563 } && test -s conftest.
$ac_objext; then
9564 ac_header_compiler
=yes
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.
$ac_ext >&5
9569 ac_header_compiler
=no
9572 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9573 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9574 echo "${ECHO_T}$ac_header_compiler" >&6; }
9576 # Is the header present?
9577 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9578 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9579 cat >conftest.
$ac_ext <<_ACEOF
9582 cat confdefs.h
>>conftest.
$ac_ext
9583 cat >>conftest.
$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 #include <Carbon/Carbon.h>
9587 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9595 grep -v '^ *+' conftest.er1 >conftest.err
9597 cat conftest.err >&5
9598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599 (exit $ac_status); } >/dev/null && {
9600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9601 test ! -s conftest.err
9603 ac_header_preproc=yes
9605 echo "$as_me: failed program was:" >&5
9606 sed 's/^/| /' conftest.$ac_ext >&5
9608 ac_header_preproc=no
9611 rm -f conftest.err conftest.$ac_ext
9612 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9613 echo "${ECHO_T}$ac_header_preproc" >&6; }
9615 # So? What about this header?
9616 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9618 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9619 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9620 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9621 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9622 ac_header_preproc=yes
9625 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9626 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9627 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9628 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9629 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9630 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9631 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9632 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9633 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9634 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9635 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9636 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9640 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9641 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9642 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9645 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9647 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9648 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9651 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9657 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9658 if test "${with_carbon+set}" != set \
9659 && test "${carbon_appdir_x+set}" != set; then
9660 for var in with_x with_x_toolkit with_gtk with_xim \
9661 with_xpm with_jpeg with_tiff with_gif with_png; do
9662 if eval test \"\${$var+set}\" = set; then
9669 if test "${HAVE_CARBON}" = yes; then
9673 case "${window_system}" in
9677 case "${with_x_toolkit}" in
9678 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9679 motif ) USE_X_TOOLKIT=MOTIF ;;
9681 USE_X_TOOLKIT=none ;;
9682 no ) USE_X_TOOLKIT=none ;;
9684 if test x"$with_gtk" = xyes; then
9699 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9700 # Extract the first word of "X", so it can be a program name with args.
9701 set dummy X; ac_word=$2
9702 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9703 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9704 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9705 echo $ECHO_N "(cached) $ECHO_C" >&6
9707 if test -n "$HAVE_XSERVER"; then
9708 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9714 test -z "$as_dir" && as_dir=.
9715 for ac_exec_ext in '' $ac_executable_extensions; do
9716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9717 ac_cv_prog_HAVE_XSERVER="true"
9718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9725 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9728 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9729 if test -n "$HAVE_XSERVER"; then
9730 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9731 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9733 { echo "$as_me:$LINENO: result: no" >&5
9734 echo "${ECHO_T}no" >&6; }
9738 if test "$HAVE_XSERVER" = true ||
9739 test -n "$DISPLAY" ||
9740 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9741 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9742 were found. You should install the relevant development files for X
9743 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9744 sure you have development files for image handling, i.e.
9745 tiff, gif, jpeg, png and xpm.
9746 If you are sure you want Emacs compiled without X window support, pass
9749 echo "$as_me: error: You seem to be running X, but no X development libraries
9750 were found. You should install the relevant development files for X
9751 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9752 sure you have development files for image handling, i.e.
9753 tiff, gif, jpeg, png and xpm.
9754 If you are sure you want Emacs compiled without X window support, pass
9756 to configure." >&2;}
9757 { (exit 1); exit 1; }; }
9761 ### If we're using X11, we should use the X menu package.
9764 yes ) HAVE_MENUS=yes ;;
9767 if test "${opsys}" = "hpux9"; then
9768 case "${x_libraries}" in
9770 opsysfile="s/hpux9-x11r4.h"
9775 if test "${opsys}" = "hpux9shr"; then
9776 case "${x_libraries}" in
9778 opsysfile="s/hpux9shxr4.h"
9783 ### Compute the unexec source name from the object name.
9784 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9786 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9787 # Assume not, until told otherwise.
9790 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9791 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9792 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9795 cat >conftest.$ac_ext <<_ACEOF
9798 cat confdefs.h >>conftest.$ac_ext
9799 cat >>conftest.$ac_ext <<_ACEOF
9800 /* end confdefs.h. */
9801 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9802 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9803 #define malloc_get_state innocuous_malloc_get_state
9805 /* System header to define __stub macros and hopefully few prototypes,
9806 which can conflict with char malloc_get_state (); below.
9807 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9808 <limits.h> exists even on freestanding compilers. */
9811 # include <limits.h>
9813 # include <assert.h>
9816 #undef malloc_get_state
9818 /* Override any GCC internal prototype to avoid an error.
9819 Use char because int might match the return type of a GCC
9820 builtin and then its argument prototype would still apply. */
9824 char malloc_get_state ();
9825 /* The GNU C library defines this for functions which it implements
9826 to always fail with ENOSYS. Some functions are actually named
9827 something starting with __ and the normal name is an alias. */
9828 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9835 return malloc_get_state ();
9840 rm -f conftest.$ac_objext conftest$ac_exeext
9841 if { (ac_try="$ac_link"
9843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9844 *) ac_try_echo
=$ac_try;;
9846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9847 (eval "$ac_link") 2>conftest.er1
9849 grep -v '^ *+' conftest.er1
>conftest.err
9851 cat conftest.err
>&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } && {
9854 test -z "$ac_c_werror_flag" ||
9855 test ! -s conftest.err
9856 } && test -s conftest
$ac_exeext &&
9857 $as_test_x conftest
$ac_exeext; then
9858 ac_cv_func_malloc_get_state
=yes
9860 echo "$as_me: failed program was:" >&5
9861 sed 's/^/| /' conftest.
$ac_ext >&5
9863 ac_cv_func_malloc_get_state
=no
9866 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9867 conftest
$ac_exeext conftest.
$ac_ext
9869 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9870 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9871 if test $ac_cv_func_malloc_get_state = yes; then
9877 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9878 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9879 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 cat >conftest.
$ac_ext <<_ACEOF
9885 cat confdefs.h
>>conftest.
$ac_ext
9886 cat >>conftest.
$ac_ext <<_ACEOF
9887 /* end confdefs.h. */
9888 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9890 #define malloc_set_state innocuous_malloc_set_state
9892 /* System header to define __stub macros and hopefully few prototypes,
9893 which can conflict with char malloc_set_state (); below.
9894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9895 <limits.h> exists even on freestanding compilers. */
9898 # include <limits.h>
9900 # include <assert.h>
9903 #undef malloc_set_state
9905 /* Override any GCC internal prototype to avoid an error.
9906 Use char because int might match the return type of a GCC
9907 builtin and then its argument prototype would still apply. */
9911 char malloc_set_state ();
9912 /* The GNU C library defines this for functions which it implements
9913 to always fail with ENOSYS. Some functions are actually named
9914 something starting with __ and the normal name is an alias. */
9915 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9922 return malloc_set_state ();
9927 rm -f conftest.
$ac_objext conftest
$ac_exeext
9928 if { (ac_try
="$ac_link"
9930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_link") 2>conftest.er1
9936 grep -v '^ *+' conftest.er1 >conftest.err
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } && {
9941 test -z "$ac_c_werror_flag" ||
9942 test ! -s conftest.err
9943 } && test -s conftest$ac_exeext &&
9944 $as_test_x conftest$ac_exeext; then
9945 ac_cv_func_malloc_set_state=yes
9947 echo "$as_me: failed program was:" >&5
9948 sed 's/^/| /' conftest.$ac_ext >&5
9950 ac_cv_func_malloc_set_state=no
9953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9954 conftest$ac_exeext conftest.$ac_ext
9956 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9957 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9958 if test $ac_cv_func_malloc_set_state = yes; then
9964 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9965 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9966 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 cat >conftest.$ac_ext <<_ACEOF
9972 cat confdefs.h >>conftest.$ac_ext
9973 cat >>conftest.$ac_ext <<_ACEOF
9974 /* end confdefs.h. */
9975 extern void (* __after_morecore_hook)();
9979 __after_morecore_hook = 0
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (ac_try="$ac_link"
9987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9988 *) ac_try_echo
=$ac_try;;
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_link") 2>conftest.er1
9993 grep -v '^ *+' conftest.er1
>conftest.err
9995 cat conftest.err
>&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } && {
9998 test -z "$ac_c_werror_flag" ||
9999 test ! -s conftest.err
10000 } && test -s conftest
$ac_exeext &&
10001 $as_test_x conftest
$ac_exeext; then
10002 emacs_cv_var___after_morecore_hook
=yes
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.
$ac_ext >&5
10007 emacs_cv_var___after_morecore_hook
=no
10010 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10011 conftest
$ac_exeext conftest.
$ac_ext
10013 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10014 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
10015 if test $emacs_cv_var___after_morecore_hook = no
; then
10018 if test "${system_malloc}" = "yes"; then
10020 GNU_MALLOC_reason
="
10021 (The GNU allocators don't work with this system configuration.)"
10023 if test "$doug_lea_malloc" = "yes" ; then
10024 if test "$GNU_MALLOC" = yes ; then
10025 GNU_MALLOC_reason
="
10026 (Using Doug Lea's new malloc from the GNU C Library.)"
10029 cat >>confdefs.h
<<\_ACEOF
10030 #define DOUG_LEA_MALLOC 1
10035 if test x
"${REL_ALLOC}" = x
; then
10036 REL_ALLOC
=${GNU_MALLOC}
10042 for ac_header
in stdlib.h unistd.h
10044 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10045 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10048 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10051 ac_res
=`eval echo '${'$as_ac_Header'}'`
10052 { echo "$as_me:$LINENO: result: $ac_res" >&5
10053 echo "${ECHO_T}$ac_res" >&6; }
10055 # Is the header compilable?
10056 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10058 cat >conftest.
$ac_ext <<_ACEOF
10061 cat confdefs.h
>>conftest.
$ac_ext
10062 cat >>conftest.
$ac_ext <<_ACEOF
10063 /* end confdefs.h. */
10064 $ac_includes_default
10065 #include <$ac_header>
10067 rm -f conftest.
$ac_objext
10068 if { (ac_try
="$ac_compile"
10069 case "(($ac_try" in
10070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10071 *) ac_try_echo=$ac_try;;
10073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10074 (eval "$ac_compile") 2>conftest.er1
10076 grep -v '^ *+' conftest.er1 >conftest.err
10078 cat conftest.err >&5
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } && {
10081 test -z "$ac_c_werror_flag" ||
10082 test ! -s conftest.err
10083 } && test -s conftest.$ac_objext; then
10084 ac_header_compiler=yes
10086 echo "$as_me: failed program was:" >&5
10087 sed 's/^/| /' conftest.$ac_ext >&5
10089 ac_header_compiler=no
10092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10094 echo "${ECHO_T}$ac_header_compiler" >&6; }
10096 # Is the header present?
10097 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10099 cat >conftest.$ac_ext <<_ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h. */
10105 #include <$ac_header>
10107 if { (ac_try="$ac_cpp conftest.$ac_ext"
10108 case "(($ac_try" in
10109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10110 *) ac_try_echo
=$ac_try;;
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10115 grep -v '^ *+' conftest.er1
>conftest.err
10117 cat conftest.err
>&5
10118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10119 (exit $ac_status); } >/dev
/null
&& {
10120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10121 test ! -s conftest.err
10123 ac_header_preproc
=yes
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.
$ac_ext >&5
10128 ac_header_preproc
=no
10131 rm -f conftest.err conftest.
$ac_ext
10132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10133 echo "${ECHO_T}$ac_header_preproc" >&6; }
10135 # So? What about this header?
10136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10142 ac_header_preproc
=yes
10145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10162 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10163 echo $ECHO_N "(cached) $ECHO_C" >&6
10165 eval "$as_ac_Header=\$ac_header_preproc"
10167 ac_res
=`eval echo '${'$as_ac_Header'}'`
10168 { echo "$as_me:$LINENO: result: $ac_res" >&5
10169 echo "${ECHO_T}$ac_res" >&6; }
10172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10173 cat >>confdefs.h
<<_ACEOF
10174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10182 for ac_func
in getpagesize
10184 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10187 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10188 echo $ECHO_N "(cached) $ECHO_C" >&6
10190 cat >conftest.
$ac_ext <<_ACEOF
10193 cat confdefs.h
>>conftest.
$ac_ext
10194 cat >>conftest.
$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10198 #define $ac_func innocuous_$ac_func
10200 /* System header to define __stub macros and hopefully few prototypes,
10201 which can conflict with char $ac_func (); below.
10202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10203 <limits.h> exists even on freestanding compilers. */
10206 # include <limits.h>
10208 # include <assert.h>
10213 /* Override any GCC internal prototype to avoid an error.
10214 Use char because int might match the return type of a GCC
10215 builtin and then its argument prototype would still apply. */
10220 /* The GNU C library defines this for functions which it implements
10221 to always fail with ENOSYS. Some functions are actually named
10222 something starting with __ and the normal name is an alias. */
10223 #if defined __stub_$ac_func || defined __stub___$ac_func
10230 return $ac_func ();
10235 rm -f conftest.
$ac_objext conftest
$ac_exeext
10236 if { (ac_try
="$ac_link"
10237 case "(($ac_try" in
10238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10239 *) ac_try_echo=$ac_try;;
10241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10242 (eval "$ac_link") 2>conftest.er1
10244 grep -v '^ *+' conftest.er1 >conftest.err
10246 cat conftest.err >&5
10247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10248 (exit $ac_status); } && {
10249 test -z "$ac_c_werror_flag" ||
10250 test ! -s conftest.err
10251 } && test -s conftest$ac_exeext &&
10252 $as_test_x conftest$ac_exeext; then
10253 eval "$as_ac_var=yes"
10255 echo "$as_me: failed program was:" >&5
10256 sed 's/^/| /' conftest.$ac_ext >&5
10258 eval "$as_ac_var=no"
10261 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10262 conftest$ac_exeext conftest.$ac_ext
10264 ac_res=`eval echo '${'$as_ac_var'}'`
10265 { echo "$as_me:$LINENO: result: $ac_res" >&5
10266 echo "${ECHO_T}$ac_res" >&6; }
10267 if test `eval echo '${'$as_ac_var'}'` = yes; then
10268 cat >>confdefs.h <<_ACEOF
10269 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10275 { echo "$as_me:$LINENO: checking for working mmap" >&5
10276 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10277 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10278 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 if test "$cross_compiling" = yes; then
10281 ac_cv_func_mmap_fixed_mapped=no
10283 cat >conftest.$ac_ext <<_ACEOF
10286 cat confdefs.h >>conftest.$ac_ext
10287 cat >>conftest.$ac_ext <<_ACEOF
10288 /* end confdefs.h. */
10289 $ac_includes_default
10290 /* malloc might have been renamed as rpl_malloc. */
10293 /* Thanks to Mike Haertel and Jim Avera for this test.
10294 Here is a matrix of mmap possibilities:
10295 mmap private not fixed
10296 mmap private fixed at somewhere currently unmapped
10297 mmap private fixed at somewhere already mapped
10298 mmap shared not fixed
10299 mmap shared fixed at somewhere currently unmapped
10300 mmap shared fixed at somewhere already mapped
10301 For private mappings, we should verify that changes cannot be read()
10302 back from the file, nor mmap's back from the file at a different
10303 address. (There have been systems where private was not correctly
10304 implemented like the infamous i386 svr4.0, and systems where the
10305 VM page cache was not coherent with the file system buffer cache
10306 like early versions of FreeBSD and possibly contemporary NetBSD.)
10307 For shared mappings, we should conversely verify that changes get
10308 propagated back to all the places they're supposed to be.
10310 Grep wants private fixed already mapped.
10311 The main things grep needs to know about mmap are:
10312 * does it exist and is it safe to write into the mmap'd area
10313 * how to use it (BSD variants) */
10316 #include <sys/mman.h>
10318 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10322 /* This mess was copied from the GNU getpagesize.h. */
10323 #ifndef HAVE_GETPAGESIZE
10324 /* Assume that all systems that can run configure have sys/param.h. */
10325 # ifndef HAVE_SYS_PARAM_H
10326 # define HAVE_SYS_PARAM_H 1
10329 # ifdef _SC_PAGESIZE
10330 # define getpagesize() sysconf(_SC_PAGESIZE)
10331 # else /* no _SC_PAGESIZE */
10332 # ifdef HAVE_SYS_PARAM_H
10333 # include <sys/param.h>
10334 # ifdef EXEC_PAGESIZE
10335 # define getpagesize() EXEC_PAGESIZE
10336 # else /* no EXEC_PAGESIZE */
10338 # define getpagesize() NBPG * CLSIZE
10341 # endif /* no CLSIZE */
10342 # else /* no NBPG */
10344 # define getpagesize() NBPC
10345 # else /* no NBPC */
10347 # define getpagesize() PAGESIZE
10348 # endif /* PAGESIZE */
10349 # endif /* no NBPC */
10350 # endif /* no NBPG */
10351 # endif /* no EXEC_PAGESIZE */
10352 # else /* no HAVE_SYS_PARAM_H */
10353 # define getpagesize() 8192 /* punt totally */
10354 # endif /* no HAVE_SYS_PARAM_H */
10355 # endif /* no _SC_PAGESIZE */
10357 #endif /* no HAVE_GETPAGESIZE */
10362 char *data, *data2, *data3;
10366 pagesize = getpagesize ();
10368 /* First, make a file with some known garbage in it. */
10369 data = (char *) malloc (pagesize);
10372 for (i = 0; i < pagesize; ++i)
10373 *(data + i) = rand ();
10375 fd = creat ("conftest.mmap", 0600);
10378 if (write (fd, data, pagesize) != pagesize)
10382 /* Next, try to mmap the file at a fixed address which already has
10383 something else allocated at it. If we can, also make sure that
10384 we see the same garbage. */
10385 fd = open ("conftest.mmap", O_RDWR);
10388 data2 = (char *) malloc (2 * pagesize);
10391 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10392 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10393 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10395 for (i = 0; i < pagesize; ++i)
10396 if (*(data + i) != *(data2 + i))
10399 /* Finally, make sure that changes to the mapped area do not
10400 percolate back to the file as seen by read(). (This is a bug on
10401 some variants of i386 svr4.0.) */
10402 for (i = 0; i < pagesize; ++i)
10403 *(data2 + i) = *(data2 + i) + 1;
10404 data3 = (char *) malloc (pagesize);
10407 if (read (fd, data3, pagesize) != pagesize)
10409 for (i = 0; i < pagesize; ++i)
10410 if (*(data + i) != *(data3 + i))
10416 rm -f conftest$ac_exeext
10417 if { (ac_try="$ac_link"
10418 case "(($ac_try" in
10419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10420 *) ac_try_echo
=$ac_try;;
10422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10423 (eval "$ac_link") 2>&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10427 { (case "(($ac_try" in
10428 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10429 *) ac_try_echo=$ac_try;;
10431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10432 (eval "$ac_try") 2>&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); }; }; then
10436 ac_cv_func_mmap_fixed_mapped=yes
10438 echo "$as_me: program exited with status $ac_status" >&5
10439 echo "$as_me: failed program was:" >&5
10440 sed 's/^/| /' conftest.$ac_ext >&5
10442 ( exit $ac_status )
10443 ac_cv_func_mmap_fixed_mapped=no
10445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10450 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10451 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10452 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10454 cat >>confdefs.h <<\_ACEOF
10455 #define HAVE_MMAP 1
10459 rm -f conftest.mmap
10461 if test $use_mmap_for_buffers = yes; then
10465 LIBS="$libsrc_libs $LIBS"
10468 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10469 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10470 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10473 ac_check_lib_save_LIBS=$LIBS
10474 LIBS="-ldnet $LIBS"
10475 cat >conftest.$ac_ext <<_ACEOF
10478 cat confdefs.h >>conftest.$ac_ext
10479 cat >>conftest.$ac_ext <<_ACEOF
10480 /* end confdefs.h. */
10482 /* Override any GCC internal prototype to avoid an error.
10483 Use char because int might match the return type of a GCC
10484 builtin and then its argument prototype would still apply. */
10492 return dnet_ntoa ();
10497 rm -f conftest.$ac_objext conftest$ac_exeext
10498 if { (ac_try="$ac_link"
10499 case "(($ac_try" in
10500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10501 *) ac_try_echo
=$ac_try;;
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_link") 2>conftest.er1
10506 grep -v '^ *+' conftest.er1
>conftest.err
10508 cat conftest.err
>&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } && {
10511 test -z "$ac_c_werror_flag" ||
10512 test ! -s conftest.err
10513 } && test -s conftest
$ac_exeext &&
10514 $as_test_x conftest
$ac_exeext; then
10515 ac_cv_lib_dnet_dnet_ntoa
=yes
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.
$ac_ext >&5
10520 ac_cv_lib_dnet_dnet_ntoa
=no
10523 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10524 conftest
$ac_exeext conftest.
$ac_ext
10525 LIBS
=$ac_check_lib_save_LIBS
10527 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10528 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10529 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10530 cat >>confdefs.h
<<_ACEOF
10531 #define HAVE_LIBDNET 1
10534 LIBS
="-ldnet $LIBS"
10539 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10540 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10541 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10542 echo $ECHO_N "(cached) $ECHO_C" >&6
10544 ac_check_lib_save_LIBS
=$LIBS
10545 LIBS
="-lXbsd $LIBS"
10546 cat >conftest.
$ac_ext <<_ACEOF
10549 cat confdefs.h
>>conftest.
$ac_ext
10550 cat >>conftest.
$ac_ext <<_ACEOF
10551 /* end confdefs.h. */
10562 rm -f conftest.
$ac_objext conftest
$ac_exeext
10563 if { (ac_try
="$ac_link"
10564 case "(($ac_try" in
10565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10566 *) ac_try_echo=$ac_try;;
10568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10569 (eval "$ac_link") 2>conftest.er1
10571 grep -v '^ *+' conftest.er1 >conftest.err
10573 cat conftest.err >&5
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); } && {
10576 test -z "$ac_c_werror_flag" ||
10577 test ! -s conftest.err
10578 } && test -s conftest$ac_exeext &&
10579 $as_test_x conftest$ac_exeext; then
10580 ac_cv_lib_Xbsd_main=yes
10582 echo "$as_me: failed program was:" >&5
10583 sed 's/^/| /' conftest.$ac_ext >&5
10585 ac_cv_lib_Xbsd_main=no
10588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10589 conftest$ac_exeext conftest.$ac_ext
10590 LIBS=$ac_check_lib_save_LIBS
10592 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10593 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10594 if test $ac_cv_lib_Xbsd_main = yes; then
10595 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10600 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10601 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10602 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 ac_check_lib_save_LIBS=$LIBS
10606 LIBS="-lpthreads $LIBS"
10607 cat >conftest.$ac_ext <<_ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10614 /* Override any GCC internal prototype to avoid an error.
10615 Use char because int might match the return type of a GCC
10616 builtin and then its argument prototype would still apply. */
10624 return cma_open ();
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (ac_try="$ac_link"
10631 case "(($ac_try" in
10632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10633 *) ac_try_echo
=$ac_try;;
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_link") 2>conftest.er1
10638 grep -v '^ *+' conftest.er1
>conftest.err
10640 cat conftest.err
>&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } && {
10643 test -z "$ac_c_werror_flag" ||
10644 test ! -s conftest.err
10645 } && test -s conftest
$ac_exeext &&
10646 $as_test_x conftest
$ac_exeext; then
10647 ac_cv_lib_pthreads_cma_open
=yes
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.
$ac_ext >&5
10652 ac_cv_lib_pthreads_cma_open
=no
10655 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10656 conftest
$ac_exeext conftest.
$ac_ext
10657 LIBS
=$ac_check_lib_save_LIBS
10659 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10660 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10661 if test $ac_cv_lib_pthreads_cma_open = yes; then
10662 cat >>confdefs.h
<<_ACEOF
10663 #define HAVE_LIBPTHREADS 1
10666 LIBS
="-lpthreads $LIBS"
10671 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10672 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10673 if test -d /usr
/X386
/include
; then
10675 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10679 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10680 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10685 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10686 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10687 if test "${gdb_cv_bigtoc+set}" = set; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10693 *) gdb_cv_bigtoc
=-bbigtoc ;;
10696 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10697 cat >conftest.
$ac_ext <<_ACEOF
10700 cat confdefs.h
>>conftest.
$ac_ext
10701 cat >>conftest.
$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10712 rm -f conftest.
$ac_objext conftest
$ac_exeext
10713 if { (ac_try
="$ac_link"
10714 case "(($ac_try" in
10715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_link") 2>conftest.er1
10721 grep -v '^ *+' conftest.er1 >conftest.err
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } && {
10726 test -z "$ac_c_werror_flag" ||
10727 test ! -s conftest.err
10728 } && test -s conftest$ac_exeext &&
10729 $as_test_x conftest$ac_exeext; then
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10739 conftest$ac_exeext conftest.$ac_ext
10742 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10743 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10747 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10748 # used for the tests that follow. We set them back to REAL_CFLAGS and
10749 # REAL_CPPFLAGS later on.
10751 REAL_CPPFLAGS="$CPPFLAGS"
10753 if test "${HAVE_X11}" = "yes"; then
10754 DEFS="$C_SWITCH_X_SITE $DEFS"
10755 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10757 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10758 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10760 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10761 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10762 # but it's more convenient here to set LD_RUN_PATH
10763 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10764 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10765 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10769 if test "${opsys}" = "gnu-linux"; then
10770 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10771 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10772 cat >conftest.$ac_ext <<_ACEOF
10775 cat confdefs.h >>conftest.$ac_ext
10776 cat >>conftest.$ac_ext <<_ACEOF
10777 /* end confdefs.h. */
10782 XOpenDisplay ("foo");
10787 rm -f conftest.$ac_objext conftest$ac_exeext
10788 if { (ac_try="$ac_link"
10789 case "(($ac_try" in
10790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10791 *) ac_try_echo
=$ac_try;;
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_link") 2>conftest.er1
10796 grep -v '^ *+' conftest.er1
>conftest.err
10798 cat conftest.err
>&5
10799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } && {
10801 test -z "$ac_c_werror_flag" ||
10802 test ! -s conftest.err
10803 } && test -s conftest
$ac_exeext &&
10804 $as_test_x conftest
$ac_exeext; then
10805 xlinux_first_failure
=no
10807 echo "$as_me: failed program was:" >&5
10808 sed 's/^/| /' conftest.
$ac_ext >&5
10810 xlinux_first_failure
=yes
10813 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10814 conftest
$ac_exeext conftest.
$ac_ext
10815 if test "${xlinux_first_failure}" = "yes"; then
10816 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10817 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10818 OLD_CPPFLAGS
="$CPPFLAGS"
10820 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10821 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10822 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10823 LIBS
="$LIBS -b i486-linuxaout"
10824 cat >conftest.
$ac_ext <<_ACEOF
10827 cat confdefs.h
>>conftest.
$ac_ext
10828 cat >>conftest.
$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10834 XOpenDisplay ("foo");
10839 rm -f conftest.
$ac_objext conftest
$ac_exeext
10840 if { (ac_try
="$ac_link"
10841 case "(($ac_try" in
10842 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10843 *) ac_try_echo=$ac_try;;
10845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10846 (eval "$ac_link") 2>conftest.er1
10848 grep -v '^ *+' conftest.er1 >conftest.err
10850 cat conftest.err >&5
10851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } && {
10853 test -z "$ac_c_werror_flag" ||
10854 test ! -s conftest.err
10855 } && test -s conftest$ac_exeext &&
10856 $as_test_x conftest$ac_exeext; then
10857 xlinux_second_failure=no
10859 echo "$as_me: failed program was:" >&5
10860 sed 's/^/| /' conftest.$ac_ext >&5
10862 xlinux_second_failure=yes
10865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10866 conftest$ac_exeext conftest.$ac_ext
10867 if test "${xlinux_second_failure}" = "yes"; then
10868 # If we get the same failure with -b, there is no use adding -b.
10869 # So take it out. This plays safe.
10870 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10871 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10872 CPPFLAGS="$OLD_CPPFLAGS"
10874 { echo "$as_me:$LINENO: result: no" >&5
10875 echo "${ECHO_T}no" >&6; }
10877 { echo "$as_me:$LINENO: result: yes" >&5
10878 echo "${ECHO_T}yes" >&6; }
10881 { echo "$as_me:$LINENO: result: no" >&5
10882 echo "${ECHO_T}no" >&6; }
10886 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10887 # header files included from there.
10888 { echo "$as_me:$LINENO: checking for Xkb" >&5
10889 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10890 cat >conftest.$ac_ext <<_ACEOF
10893 cat confdefs.h >>conftest.$ac_ext
10894 cat >>conftest.$ac_ext <<_ACEOF
10895 /* end confdefs.h. */
10896 #include <X11/Xlib.h>
10897 #include <X11/XKBlib.h>
10901 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10906 rm -f conftest.$ac_objext conftest$ac_exeext
10907 if { (ac_try="$ac_link"
10908 case "(($ac_try" in
10909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10910 *) ac_try_echo
=$ac_try;;
10912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10913 (eval "$ac_link") 2>conftest.er1
10915 grep -v '^ *+' conftest.er1
>conftest.err
10917 cat conftest.err
>&5
10918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10919 (exit $ac_status); } && {
10920 test -z "$ac_c_werror_flag" ||
10921 test ! -s conftest.err
10922 } && test -s conftest
$ac_exeext &&
10923 $as_test_x conftest
$ac_exeext; then
10926 echo "$as_me: failed program was:" >&5
10927 sed 's/^/| /' conftest.
$ac_ext >&5
10932 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10933 conftest
$ac_exeext conftest.
$ac_ext
10934 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10935 echo "${ECHO_T}$emacs_xkb" >&6; }
10936 if test $emacs_xkb = yes; then
10938 cat >>confdefs.h
<<\_ACEOF
10939 #define HAVE_XKBGETKEYBOARD 1
10948 for ac_func
in XrmSetDatabase XScreenResourceString \
10949 XScreenNumberOfScreen XSetWMProtocols
10951 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10954 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10955 echo $ECHO_N "(cached) $ECHO_C" >&6
10957 cat >conftest.
$ac_ext <<_ACEOF
10960 cat confdefs.h
>>conftest.
$ac_ext
10961 cat >>conftest.
$ac_ext <<_ACEOF
10962 /* end confdefs.h. */
10963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10965 #define $ac_func innocuous_$ac_func
10967 /* System header to define __stub macros and hopefully few prototypes,
10968 which can conflict with char $ac_func (); below.
10969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10970 <limits.h> exists even on freestanding compilers. */
10973 # include <limits.h>
10975 # include <assert.h>
10980 /* Override any GCC internal prototype to avoid an error.
10981 Use char because int might match the return type of a GCC
10982 builtin and then its argument prototype would still apply. */
10987 /* The GNU C library defines this for functions which it implements
10988 to always fail with ENOSYS. Some functions are actually named
10989 something starting with __ and the normal name is an alias. */
10990 #if defined __stub_$ac_func || defined __stub___$ac_func
10997 return $ac_func ();
11002 rm -f conftest.
$ac_objext conftest
$ac_exeext
11003 if { (ac_try
="$ac_link"
11004 case "(($ac_try" in
11005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_link") 2>conftest.er1
11011 grep -v '^ *+' conftest.er1 >conftest.err
11013 cat conftest.err >&5
11014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11015 (exit $ac_status); } && {
11016 test -z "$ac_c_werror_flag" ||
11017 test ! -s conftest.err
11018 } && test -s conftest$ac_exeext &&
11019 $as_test_x conftest$ac_exeext; then
11020 eval "$as_ac_var=yes"
11022 echo "$as_me: failed program was:" >&5
11023 sed 's/^/| /' conftest.$ac_ext >&5
11025 eval "$as_ac_var=no"
11028 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11029 conftest$ac_exeext conftest.$ac_ext
11031 ac_res=`eval echo '${'$as_ac_var'}'`
11032 { echo "$as_me:$LINENO: result: $ac_res" >&5
11033 echo "${ECHO_T}$ac_res" >&6; }
11034 if test `eval echo '${'$as_ac_var'}'` = yes; then
11035 cat >>confdefs.h <<_ACEOF
11036 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11044 if test "${window_system}" = "x11"; then
11045 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11046 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11047 if test "${emacs_cv_x11_version_6+set}" = set; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11050 cat >conftest.$ac_ext <<_ACEOF
11053 cat confdefs.h >>conftest.$ac_ext
11054 cat >>conftest.$ac_ext <<_ACEOF
11055 /* end confdefs.h. */
11056 #include <X11/Xlib.h>
11060 #if XlibSpecificationRelease < 6
11068 rm -f conftest.$ac_objext conftest$ac_exeext
11069 if { (ac_try="$ac_link"
11070 case "(($ac_try" in
11071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11072 *) ac_try_echo
=$ac_try;;
11074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11075 (eval "$ac_link") 2>conftest.er1
11077 grep -v '^ *+' conftest.er1
>conftest.err
11079 cat conftest.err
>&5
11080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11081 (exit $ac_status); } && {
11082 test -z "$ac_c_werror_flag" ||
11083 test ! -s conftest.err
11084 } && test -s conftest
$ac_exeext &&
11085 $as_test_x conftest
$ac_exeext; then
11086 emacs_cv_x11_version_6
=yes
11088 echo "$as_me: failed program was:" >&5
11089 sed 's/^/| /' conftest.
$ac_ext >&5
11091 emacs_cv_x11_version_6
=no
11094 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11095 conftest
$ac_exeext conftest.
$ac_ext
11098 if test $emacs_cv_x11_version_6 = yes; then
11099 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11100 echo "${ECHO_T}6 or newer" >&6; }
11102 cat >>confdefs.h
<<\_ACEOF
11103 #define HAVE_X11R6 1
11107 { echo "$as_me:$LINENO: result: before 6" >&5
11108 echo "${ECHO_T}before 6" >&6; }
11112 if test "${window_system}" = "x11"; then
11113 { echo "$as_me:$LINENO: checking X11 version 5" >&5
11114 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
11115 if test "${emacs_cv_x11_version_5+set}" = set; then
11116 echo $ECHO_N "(cached) $ECHO_C" >&6
11118 cat >conftest.
$ac_ext <<_ACEOF
11121 cat confdefs.h
>>conftest.
$ac_ext
11122 cat >>conftest.
$ac_ext <<_ACEOF
11123 /* end confdefs.h. */
11124 #include <X11/Xlib.h>
11128 #if XlibSpecificationRelease < 5
11136 rm -f conftest.
$ac_objext conftest
$ac_exeext
11137 if { (ac_try
="$ac_link"
11138 case "(($ac_try" in
11139 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11140 *) ac_try_echo=$ac_try;;
11142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143 (eval "$ac_link") 2>conftest.er1
11145 grep -v '^ *+' conftest.er1 >conftest.err
11147 cat conftest.err >&5
11148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149 (exit $ac_status); } && {
11150 test -z "$ac_c_werror_flag" ||
11151 test ! -s conftest.err
11152 } && test -s conftest$ac_exeext &&
11153 $as_test_x conftest$ac_exeext; then
11154 emacs_cv_x11_version_5=yes
11156 echo "$as_me: failed program was:" >&5
11157 sed 's/^/| /' conftest.$ac_ext >&5
11159 emacs_cv_x11_version_5=no
11162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11163 conftest$ac_exeext conftest.$ac_ext
11166 if test $emacs_cv_x11_version_5 = yes; then
11167 { echo "$as_me:$LINENO: result: 5 or newer" >&5
11168 echo "${ECHO_T}5 or newer" >&6; }
11171 cat >>confdefs.h <<\_ACEOF
11172 #define HAVE_X11R5 1
11177 { echo "$as_me:$LINENO: result: before 5" >&5
11178 echo "${ECHO_T}before 5" >&6; }
11182 ### Use -lrsvg-2 if available, unless `--with-rsvg=no
' is specified.
11184 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
11185 if test "${with_rsvg}" != "no"; then
11186 if test "X${with_pkg_config_prog}" != X; then
11187 PKG_CONFIG="${with_pkg_config_prog}"
11190 RSVG_REQUIRED=2.0.0
11191 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11196 if test -z "$PKG_CONFIG"; then
11197 # Extract the first word of "pkg-config", so it can be a program name with args.
11198 set dummy pkg-config; ac_word=$2
11199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11201 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11202 echo $ECHO_N "(cached) $ECHO_C" >&6
11204 case $PKG_CONFIG in
11206 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11210 for as_dir in $PATH
11213 test -z "$as_dir" && as_dir=.
11214 for ac_exec_ext in '' $ac_executable_extensions; do
11215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11216 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11224 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11228 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11229 if test -n "$PKG_CONFIG"; then
11230 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11231 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11233 { echo "$as_me:$LINENO: result: no" >&5
11234 echo "${ECHO_T}no" >&6; }
11240 if test "$PKG_CONFIG" = "no" ; then
11243 PKG_CONFIG_MIN_VERSION=0.9.0
11244 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11245 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11246 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11248 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11249 { echo "$as_me:$LINENO: result: yes" >&5
11250 echo "${ECHO_T}yes" >&6; }
11253 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11254 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11255 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
11256 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11257 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11259 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11260 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11261 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
11262 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11263 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11265 { echo "$as_me:$LINENO: result: no" >&5
11266 echo "${ECHO_T}no" >&6; }
11269 ## If we have a custom action on failure, don't print errors
, but
11270 ## do set a variable so people can do so.
11271 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11278 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11279 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11283 if test $succeeded = yes; then
11292 if test ".${RSVG_CFLAGS}" != "."; then
11295 cat >>confdefs.h
<<\_ACEOF
11296 #define HAVE_RSVG 1
11299 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11300 LIBS
="$RSVG_LIBS $LIBS"
11307 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11310 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk" || \
11311 test "$USE_X_TOOLKIT" = "maybe"; then
11312 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11313 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11314 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11315 { (exit 1); exit 1; }; };
11319 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11321 if test "X${with_pkg_config_prog}" != X
; then
11322 PKG_CONFIG
="${with_pkg_config_prog}"
11327 if test -z "$PKG_CONFIG"; then
11328 # Extract the first word of "pkg-config", so it can be a program name with args.
11329 set dummy pkg-config
; ac_word
=$2
11330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11332 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11333 echo $ECHO_N "(cached) $ECHO_C" >&6
11335 case $PKG_CONFIG in
11337 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11341 for as_dir
in $PATH
11344 test -z "$as_dir" && as_dir
=.
11345 for ac_exec_ext
in '' $ac_executable_extensions; do
11346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11347 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11355 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11359 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11360 if test -n "$PKG_CONFIG"; then
11361 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11362 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11364 { echo "$as_me:$LINENO: result: no" >&5
11365 echo "${ECHO_T}no" >&6; }
11371 if test "$PKG_CONFIG" = "no" ; then
11374 PKG_CONFIG_MIN_VERSION
=0.9.0
11375 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11376 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11377 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11379 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11380 { echo "$as_me:$LINENO: result: yes" >&5
11381 echo "${ECHO_T}yes" >&6; }
11384 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11385 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11386 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11387 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11388 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11390 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11391 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11392 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11393 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11394 echo "${ECHO_T}$GTK_LIBS" >&6; }
11396 { echo "$as_me:$LINENO: result: no" >&5
11397 echo "${ECHO_T}no" >&6; }
11400 ## If we have a custom action on failure, don't print errors, but
11401 ## do set a variable so people can do so.
11402 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11409 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11410 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11414 if test $succeeded = yes; then
11420 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11421 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11422 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11423 { (exit 1); exit 1; }; }
11428 if test x
"$pkg_check_gtk" = xyes
; then
11432 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11433 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11434 LIBS
="$GTK_LIBS $LIBS"
11437 for ac_func
in gtk_main
11439 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11442 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11443 echo $ECHO_N "(cached) $ECHO_C" >&6
11445 cat >conftest.
$ac_ext <<_ACEOF
11448 cat confdefs.h
>>conftest.
$ac_ext
11449 cat >>conftest.
$ac_ext <<_ACEOF
11450 /* end confdefs.h. */
11451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11453 #define $ac_func innocuous_$ac_func
11455 /* System header to define __stub macros and hopefully few prototypes,
11456 which can conflict with char $ac_func (); below.
11457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11458 <limits.h> exists even on freestanding compilers. */
11461 # include <limits.h>
11463 # include <assert.h>
11468 /* Override any GCC internal prototype to avoid an error.
11469 Use char because int might match the return type of a GCC
11470 builtin and then its argument prototype would still apply. */
11475 /* The GNU C library defines this for functions which it implements
11476 to always fail with ENOSYS. Some functions are actually named
11477 something starting with __ and the normal name is an alias. */
11478 #if defined __stub_$ac_func || defined __stub___$ac_func
11485 return $ac_func ();
11490 rm -f conftest.
$ac_objext conftest
$ac_exeext
11491 if { (ac_try
="$ac_link"
11492 case "(($ac_try" in
11493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11494 *) ac_try_echo=$ac_try;;
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497 (eval "$ac_link") 2>conftest.er1
11499 grep -v '^ *+' conftest.er1 >conftest.err
11501 cat conftest.err >&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } && {
11504 test -z "$ac_c_werror_flag" ||
11505 test ! -s conftest.err
11506 } && test -s conftest$ac_exeext &&
11507 $as_test_x conftest$ac_exeext; then
11508 eval "$as_ac_var=yes"
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11513 eval "$as_ac_var=no"
11516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11517 conftest$ac_exeext conftest.$ac_ext
11519 ac_res=`eval echo '${'$as_ac_var'}'`
11520 { echo "$as_me:$LINENO: result: $ac_res" >&5
11521 echo "${ECHO_T}$ac_res" >&6; }
11522 if test `eval echo '${'$as_ac_var'}'` = yes; then
11523 cat >>confdefs.h <<_ACEOF
11524 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11530 if test "${GTK_COMPILES}" != "yes"; then
11531 if test "$USE_X_TOOLKIT" != "maybe"; then
11532 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11533 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11534 { (exit 1); exit 1; }; };
11539 cat >>confdefs.h <<\_ACEOF
11549 if test "${HAVE_GTK}" = "yes"; then
11551 if test "$with_toolkit_scroll_bars" != no; then
11552 with_toolkit_scroll_bars=yes
11555 HAVE_GTK_MULTIDISPLAY=no
11557 for ac_func in gdk_display_open
11559 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 cat >conftest.$ac_ext <<_ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11573 #define $ac_func innocuous_$ac_func
11575 /* System header to define __stub macros and hopefully few prototypes,
11576 which can conflict with char $ac_func (); below.
11577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11578 <limits.h> exists even on freestanding compilers. */
11581 # include <limits.h>
11583 # include <assert.h>
11588 /* Override any GCC internal prototype to avoid an error.
11589 Use char because int might match the return type of a GCC
11590 builtin and then its argument prototype would still apply. */
11595 /* The GNU C library defines this for functions which it implements
11596 to always fail with ENOSYS. Some functions are actually named
11597 something starting with __ and the normal name is an alias. */
11598 #if defined __stub_$ac_func || defined __stub___$ac_func
11605 return $ac_func ();
11610 rm -f conftest.$ac_objext conftest$ac_exeext
11611 if { (ac_try="$ac_link"
11612 case "(($ac_try" in
11613 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11614 *) ac_try_echo
=$ac_try;;
11616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_link") 2>conftest.er1
11619 grep -v '^ *+' conftest.er1
>conftest.err
11621 cat conftest.err
>&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } && {
11624 test -z "$ac_c_werror_flag" ||
11625 test ! -s conftest.err
11626 } && test -s conftest
$ac_exeext &&
11627 $as_test_x conftest
$ac_exeext; then
11628 eval "$as_ac_var=yes"
11630 echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.
$ac_ext >&5
11633 eval "$as_ac_var=no"
11636 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11637 conftest
$ac_exeext conftest.
$ac_ext
11639 ac_res
=`eval echo '${'$as_ac_var'}'`
11640 { echo "$as_me:$LINENO: result: $ac_res" >&5
11641 echo "${ECHO_T}$ac_res" >&6; }
11642 if test `eval echo '${'$as_ac_var'}'` = yes; then
11643 cat >>confdefs.h
<<_ACEOF
11644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11646 HAVE_GTK_MULTIDISPLAY
=yes
11650 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11652 cat >>confdefs.h
<<\_ACEOF
11653 #define HAVE_GTK_MULTIDISPLAY 1
11658 HAVE_GTK_FILE_SELECTION
=no
11660 for ac_func
in gtk_file_selection_new
11662 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11663 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11664 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11665 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 cat >conftest.
$ac_ext <<_ACEOF
11671 cat confdefs.h
>>conftest.
$ac_ext
11672 cat >>conftest.
$ac_ext <<_ACEOF
11673 /* end confdefs.h. */
11674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11676 #define $ac_func innocuous_$ac_func
11678 /* System header to define __stub macros and hopefully few prototypes,
11679 which can conflict with char $ac_func (); below.
11680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11681 <limits.h> exists even on freestanding compilers. */
11684 # include <limits.h>
11686 # include <assert.h>
11691 /* Override any GCC internal prototype to avoid an error.
11692 Use char because int might match the return type of a GCC
11693 builtin and then its argument prototype would still apply. */
11698 /* The GNU C library defines this for functions which it implements
11699 to always fail with ENOSYS. Some functions are actually named
11700 something starting with __ and the normal name is an alias. */
11701 #if defined __stub_$ac_func || defined __stub___$ac_func
11708 return $ac_func ();
11713 rm -f conftest.
$ac_objext conftest
$ac_exeext
11714 if { (ac_try
="$ac_link"
11715 case "(($ac_try" in
11716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11717 *) ac_try_echo=$ac_try;;
11719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720 (eval "$ac_link") 2>conftest.er1
11722 grep -v '^ *+' conftest.er1 >conftest.err
11724 cat conftest.err >&5
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); } && {
11727 test -z "$ac_c_werror_flag" ||
11728 test ! -s conftest.err
11729 } && test -s conftest$ac_exeext &&
11730 $as_test_x conftest$ac_exeext; then
11731 eval "$as_ac_var=yes"
11733 echo "$as_me: failed program was:" >&5
11734 sed 's/^/| /' conftest.$ac_ext >&5
11736 eval "$as_ac_var=no"
11739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11740 conftest$ac_exeext conftest.$ac_ext
11742 ac_res=`eval echo '${'$as_ac_var'}'`
11743 { echo "$as_me:$LINENO: result: $ac_res" >&5
11744 echo "${ECHO_T}$ac_res" >&6; }
11745 if test `eval echo '${'$as_ac_var'}'` = yes; then
11746 cat >>confdefs.h <<_ACEOF
11747 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11749 HAVE_GTK_FILE_SELECTION=yes
11754 HAVE_GTK_FILE_CHOOSER=no
11756 for ac_func in gtk_file_chooser_dialog_new
11758 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 cat >conftest.$ac_ext <<_ACEOF
11767 cat confdefs.h >>conftest.$ac_ext
11768 cat >>conftest.$ac_ext <<_ACEOF
11769 /* end confdefs.h. */
11770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11772 #define $ac_func innocuous_$ac_func
11774 /* System header to define __stub macros and hopefully few prototypes,
11775 which can conflict with char $ac_func (); below.
11776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11777 <limits.h> exists even on freestanding compilers. */
11780 # include <limits.h>
11782 # include <assert.h>
11787 /* Override any GCC internal prototype to avoid an error.
11788 Use char because int might match the return type of a GCC
11789 builtin and then its argument prototype would still apply. */
11794 /* The GNU C library defines this for functions which it implements
11795 to always fail with ENOSYS. Some functions are actually named
11796 something starting with __ and the normal name is an alias. */
11797 #if defined __stub_$ac_func || defined __stub___$ac_func
11804 return $ac_func ();
11809 rm -f conftest.$ac_objext conftest$ac_exeext
11810 if { (ac_try="$ac_link"
11811 case "(($ac_try" in
11812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11813 *) ac_try_echo
=$ac_try;;
11815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11816 (eval "$ac_link") 2>conftest.er1
11818 grep -v '^ *+' conftest.er1
>conftest.err
11820 cat conftest.err
>&5
11821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11822 (exit $ac_status); } && {
11823 test -z "$ac_c_werror_flag" ||
11824 test ! -s conftest.err
11825 } && test -s conftest
$ac_exeext &&
11826 $as_test_x conftest
$ac_exeext; then
11827 eval "$as_ac_var=yes"
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.
$ac_ext >&5
11832 eval "$as_ac_var=no"
11835 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11836 conftest
$ac_exeext conftest.
$ac_ext
11838 ac_res
=`eval echo '${'$as_ac_var'}'`
11839 { echo "$as_me:$LINENO: result: $ac_res" >&5
11840 echo "${ECHO_T}$ac_res" >&6; }
11841 if test `eval echo '${'$as_ac_var'}'` = yes; then
11842 cat >>confdefs.h
<<_ACEOF
11843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11845 HAVE_GTK_FILE_CHOOSER
=yes
11850 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11851 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11853 cat >>confdefs.h
<<\_ACEOF
11854 #define HAVE_GTK_FILE_BOTH 1
11859 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11860 HAVE_GTK_AND_PTHREAD
=no
11862 for ac_header
in pthread.h
11864 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11865 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11868 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 ac_res
=`eval echo '${'$as_ac_Header'}'`
11872 { echo "$as_me:$LINENO: result: $ac_res" >&5
11873 echo "${ECHO_T}$ac_res" >&6; }
11875 # Is the header compilable?
11876 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11877 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11878 cat >conftest.
$ac_ext <<_ACEOF
11881 cat confdefs.h
>>conftest.
$ac_ext
11882 cat >>conftest.
$ac_ext <<_ACEOF
11883 /* end confdefs.h. */
11884 $ac_includes_default
11885 #include <$ac_header>
11887 rm -f conftest.
$ac_objext
11888 if { (ac_try
="$ac_compile"
11889 case "(($ac_try" in
11890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11891 *) ac_try_echo=$ac_try;;
11893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11894 (eval "$ac_compile") 2>conftest.er1
11896 grep -v '^ *+' conftest.er1 >conftest.err
11898 cat conftest.err >&5
11899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11900 (exit $ac_status); } && {
11901 test -z "$ac_c_werror_flag" ||
11902 test ! -s conftest.err
11903 } && test -s conftest.$ac_objext; then
11904 ac_header_compiler=yes
11906 echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11909 ac_header_compiler=no
11912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11913 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11914 echo "${ECHO_T}$ac_header_compiler" >&6; }
11916 # Is the header present?
11917 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11918 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11919 cat >conftest.$ac_ext <<_ACEOF
11922 cat confdefs.h >>conftest.$ac_ext
11923 cat >>conftest.$ac_ext <<_ACEOF
11924 /* end confdefs.h. */
11925 #include <$ac_header>
11927 if { (ac_try="$ac_cpp conftest.$ac_ext"
11928 case "(($ac_try" in
11929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11930 *) ac_try_echo
=$ac_try;;
11932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11935 grep -v '^ *+' conftest.er1
>conftest.err
11937 cat conftest.err
>&5
11938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11939 (exit $ac_status); } >/dev
/null
&& {
11940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11941 test ! -s conftest.err
11943 ac_header_preproc
=yes
11945 echo "$as_me: failed program was:" >&5
11946 sed 's/^/| /' conftest.
$ac_ext >&5
11948 ac_header_preproc
=no
11951 rm -f conftest.err conftest.
$ac_ext
11952 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11953 echo "${ECHO_T}$ac_header_preproc" >&6; }
11955 # So? What about this header?
11956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11958 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11959 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11960 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11961 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11962 ac_header_preproc
=yes
11965 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11966 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11967 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11968 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11969 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11970 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11971 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11972 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11974 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11975 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11976 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11982 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11983 echo $ECHO_N "(cached) $ECHO_C" >&6
11985 eval "$as_ac_Header=\$ac_header_preproc"
11987 ac_res
=`eval echo '${'$as_ac_Header'}'`
11988 { echo "$as_me:$LINENO: result: $ac_res" >&5
11989 echo "${ECHO_T}$ac_res" >&6; }
11992 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11993 cat >>confdefs.h
<<_ACEOF
11994 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12001 if test "$ac_cv_header_pthread_h"; then
12002 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12003 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
12004 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12005 echo $ECHO_N "(cached) $ECHO_C" >&6
12007 ac_check_lib_save_LIBS
=$LIBS
12008 LIBS
="-lpthread $LIBS"
12009 cat >conftest.
$ac_ext <<_ACEOF
12012 cat confdefs.h
>>conftest.
$ac_ext
12013 cat >>conftest.
$ac_ext <<_ACEOF
12014 /* end confdefs.h. */
12016 /* Override any GCC internal prototype to avoid an error.
12017 Use char because int might match the return type of a GCC
12018 builtin and then its argument prototype would still apply. */
12022 char pthread_self ();
12026 return pthread_self ();
12031 rm -f conftest.
$ac_objext conftest
$ac_exeext
12032 if { (ac_try
="$ac_link"
12033 case "(($ac_try" in
12034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_link") 2>conftest.er1
12040 grep -v '^ *+' conftest.er1 >conftest.err
12042 cat conftest.err >&5
12043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12044 (exit $ac_status); } && {
12045 test -z "$ac_c_werror_flag" ||
12046 test ! -s conftest.err
12047 } && test -s conftest$ac_exeext &&
12048 $as_test_x conftest$ac_exeext; then
12049 ac_cv_lib_pthread_pthread_self=yes
12051 echo "$as_me: failed program was:" >&5
12052 sed 's/^/| /' conftest.$ac_ext >&5
12054 ac_cv_lib_pthread_pthread_self=no
12057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12058 conftest$ac_exeext conftest.$ac_ext
12059 LIBS=$ac_check_lib_save_LIBS
12061 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12062 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
12063 if test $ac_cv_lib_pthread_pthread_self = yes; then
12064 HAVE_GTK_AND_PTHREAD=yes
12068 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12069 case "${canonical}" in
12071 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12074 cat >>confdefs.h <<\_ACEOF
12075 #define HAVE_GTK_AND_PTHREAD 1
12083 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12084 if test x"${HAVE_X11R5}" != xyes; then
12087 if test "$with_xaw3d" != no; then
12088 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12089 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12090 if test "${emacs_cv_xaw3d+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 cat >conftest.$ac_ext <<_ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12100 #include <X11/Intrinsic.h>
12101 #include <X11/Xaw3d/Simple.h>
12110 rm -f conftest.$ac_objext conftest$ac_exeext
12111 if { (ac_try="$ac_link"
12112 case "(($ac_try" in
12113 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12114 *) ac_try_echo
=$ac_try;;
12116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12117 (eval "$ac_link") 2>conftest.er1
12119 grep -v '^ *+' conftest.er1
>conftest.err
12121 cat conftest.err
>&5
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } && {
12124 test -z "$ac_c_werror_flag" ||
12125 test ! -s conftest.err
12126 } && test -s conftest
$ac_exeext &&
12127 $as_test_x conftest
$ac_exeext; then
12130 echo "$as_me: failed program was:" >&5
12131 sed 's/^/| /' conftest.
$ac_ext >&5
12136 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12137 conftest
$ac_exeext conftest.
$ac_ext
12143 if test $emacs_cv_xaw3d = yes; then
12144 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12145 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12146 USE_X_TOOLKIT
=LUCID
12149 cat >>confdefs.h
<<\_ACEOF
12150 #define HAVE_XAW3D 1
12154 { echo "$as_me:$LINENO: result: no" >&5
12155 echo "${ECHO_T}no" >&6; }
12156 { echo "$as_me:$LINENO: checking for libXaw" >&5
12157 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12158 if test "${emacs_cv_xaw+set}" = set; then
12159 echo $ECHO_N "(cached) $ECHO_C" >&6
12161 cat >conftest.
$ac_ext <<_ACEOF
12164 cat confdefs.h
>>conftest.
$ac_ext
12165 cat >>conftest.
$ac_ext <<_ACEOF
12166 /* end confdefs.h. */
12168 #include <X11/Intrinsic.h>
12169 #include <X11/Xaw/Simple.h>
12178 rm -f conftest.
$ac_objext conftest
$ac_exeext
12179 if { (ac_try
="$ac_link"
12180 case "(($ac_try" in
12181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12182 *) ac_try_echo=$ac_try;;
12184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12185 (eval "$ac_link") 2>conftest.er1
12187 grep -v '^ *+' conftest.er1 >conftest.err
12189 cat conftest.err >&5
12190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12191 (exit $ac_status); } && {
12192 test -z "$ac_c_werror_flag" ||
12193 test ! -s conftest.err
12194 } && test -s conftest$ac_exeext &&
12195 $as_test_x conftest$ac_exeext; then
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.$ac_ext >&5
12204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12205 conftest$ac_exeext conftest.$ac_ext
12208 if test $emacs_cv_xaw = yes; then
12209 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12210 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12211 USE_X_TOOLKIT=LUCID
12212 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12213 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12214 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12215 { (exit 1); exit 1; }; }
12217 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12218 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12225 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12227 if test "${USE_X_TOOLKIT}" != "none"; then
12228 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12229 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12230 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12231 echo $ECHO_N "(cached) $ECHO_C" >&6
12233 cat >conftest.$ac_ext <<_ACEOF
12236 cat confdefs.h >>conftest.$ac_ext
12237 cat >>conftest.$ac_ext <<_ACEOF
12238 /* end confdefs.h. */
12239 #include <X11/Intrinsic.h>
12243 #if XtSpecificationRelease < 6
12251 rm -f conftest.$ac_objext conftest$ac_exeext
12252 if { (ac_try="$ac_link"
12253 case "(($ac_try" in
12254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12255 *) ac_try_echo
=$ac_try;;
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_link") 2>conftest.er1
12260 grep -v '^ *+' conftest.er1
>conftest.err
12262 cat conftest.err
>&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } && {
12265 test -z "$ac_c_werror_flag" ||
12266 test ! -s conftest.err
12267 } && test -s conftest
$ac_exeext &&
12268 $as_test_x conftest
$ac_exeext; then
12269 emacs_cv_x11_toolkit_version_6
=yes
12271 echo "$as_me: failed program was:" >&5
12272 sed 's/^/| /' conftest.
$ac_ext >&5
12274 emacs_cv_x11_toolkit_version_6
=no
12277 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12278 conftest
$ac_exeext conftest.
$ac_ext
12281 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12282 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12283 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12284 echo "${ECHO_T}6 or newer" >&6; }
12286 cat >>confdefs.h
<<\_ACEOF
12287 #define HAVE_X11XTR6 1
12291 { echo "$as_me:$LINENO: result: before 6" >&5
12292 echo "${ECHO_T}before 6" >&6; }
12296 if test x
$HAVE_X11XTR6 = xyes
; then
12297 LIBS
="-lXt -lSM -lICE $LIBS"
12302 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12303 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12304 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 ac_check_lib_save_LIBS
=$LIBS
12309 cat >conftest.
$ac_ext <<_ACEOF
12312 cat confdefs.h
>>conftest.
$ac_ext
12313 cat >>conftest.
$ac_ext <<_ACEOF
12314 /* end confdefs.h. */
12316 /* Override any GCC internal prototype to avoid an error.
12317 Use char because int might match the return type of a GCC
12318 builtin and then its argument prototype would still apply. */
12322 char XmuConvertStandardSelection ();
12326 return XmuConvertStandardSelection ();
12331 rm -f conftest.
$ac_objext conftest
$ac_exeext
12332 if { (ac_try
="$ac_link"
12333 case "(($ac_try" in
12334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12335 *) ac_try_echo=$ac_try;;
12337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12338 (eval "$ac_link") 2>conftest.er1
12340 grep -v '^ *+' conftest.er1 >conftest.err
12342 cat conftest.err >&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); } && {
12345 test -z "$ac_c_werror_flag" ||
12346 test ! -s conftest.err
12347 } && test -s conftest$ac_exeext &&
12348 $as_test_x conftest$ac_exeext; then
12349 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12351 echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.$ac_ext >&5
12354 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12358 conftest$ac_exeext conftest.$ac_ext
12359 LIBS=$ac_check_lib_save_LIBS
12361 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12362 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12363 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12364 cat >>confdefs.h <<_ACEOF
12365 #define HAVE_LIBXMU 1
12372 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12375 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12376 if test "${HAVE_X11}" = "yes"; then
12377 if test "${USE_X_TOOLKIT}" != "none"; then
12379 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12380 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12381 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12382 echo $ECHO_N "(cached) $ECHO_C" >&6
12384 ac_check_lib_save_LIBS=$LIBS
12385 LIBS="-lXext $LIBS"
12386 cat >conftest.$ac_ext <<_ACEOF
12389 cat confdefs.h >>conftest.$ac_ext
12390 cat >>conftest.$ac_ext <<_ACEOF
12391 /* end confdefs.h. */
12393 /* Override any GCC internal prototype to avoid an error.
12394 Use char because int might match the return type of a GCC
12395 builtin and then its argument prototype would still apply. */
12399 char XShapeQueryExtension ();
12403 return XShapeQueryExtension ();
12408 rm -f conftest.$ac_objext conftest$ac_exeext
12409 if { (ac_try="$ac_link"
12410 case "(($ac_try" in
12411 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12412 *) ac_try_echo
=$ac_try;;
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_link") 2>conftest.er1
12417 grep -v '^ *+' conftest.er1
>conftest.err
12419 cat conftest.err
>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } && {
12422 test -z "$ac_c_werror_flag" ||
12423 test ! -s conftest.err
12424 } && test -s conftest
$ac_exeext &&
12425 $as_test_x conftest
$ac_exeext; then
12426 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12428 echo "$as_me: failed program was:" >&5
12429 sed 's/^/| /' conftest.
$ac_ext >&5
12431 ac_cv_lib_Xext_XShapeQueryExtension
=no
12434 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12435 conftest
$ac_exeext conftest.
$ac_ext
12436 LIBS
=$ac_check_lib_save_LIBS
12438 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12439 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12440 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12441 cat >>confdefs.h
<<_ACEOF
12442 #define HAVE_LIBXEXT 1
12445 LIBS
="-lXext $LIBS"
12452 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12453 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12454 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12455 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 cat >conftest.
$ac_ext <<_ACEOF
12461 cat confdefs.h
>>conftest.
$ac_ext
12462 cat >>conftest.
$ac_ext <<_ACEOF
12463 /* end confdefs.h. */
12468 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12471 Motif version prior to 2.1.
12477 rm -f conftest.
$ac_objext
12478 if { (ac_try
="$ac_compile"
12479 case "(($ac_try" in
12480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12481 *) ac_try_echo=$ac_try;;
12483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12484 (eval "$ac_compile") 2>conftest.er1
12486 grep -v '^ *+' conftest.er1 >conftest.err
12488 cat conftest.err >&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } && {
12491 test -z "$ac_c_werror_flag" ||
12492 test ! -s conftest.err
12493 } && test -s conftest.$ac_objext; then
12494 emacs_cv_motif_version_2_1=yes
12496 echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12499 emacs_cv_motif_version_2_1=no
12502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12504 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12505 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12506 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12507 if test $emacs_cv_motif_version_2_1 = yes; then
12510 cat >>confdefs.h <<\_ACEOF
12511 #define HAVE_MOTIF_2_1 1
12514 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12515 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12516 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12517 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 ac_check_lib_save_LIBS=$LIBS
12521 cat >conftest.$ac_ext <<_ACEOF
12524 cat confdefs.h >>conftest.$ac_ext
12525 cat >>conftest.$ac_ext <<_ACEOF
12526 /* end confdefs.h. */
12528 /* Override any GCC internal prototype to avoid an error.
12529 Use char because int might match the return type of a GCC
12530 builtin and then its argument prototype would still apply. */
12534 char XpCreateContext ();
12538 return XpCreateContext ();
12543 rm -f conftest.$ac_objext conftest$ac_exeext
12544 if { (ac_try="$ac_link"
12545 case "(($ac_try" in
12546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12547 *) ac_try_echo
=$ac_try;;
12549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12550 (eval "$ac_link") 2>conftest.er1
12552 grep -v '^ *+' conftest.er1
>conftest.err
12554 cat conftest.err
>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); } && {
12557 test -z "$ac_c_werror_flag" ||
12558 test ! -s conftest.err
12559 } && test -s conftest
$ac_exeext &&
12560 $as_test_x conftest
$ac_exeext; then
12561 ac_cv_lib_Xp_XpCreateContext
=yes
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.
$ac_ext >&5
12566 ac_cv_lib_Xp_XpCreateContext
=no
12569 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12570 conftest
$ac_exeext conftest.
$ac_ext
12571 LIBS
=$ac_check_lib_save_LIBS
12573 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12574 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12575 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12579 if test ${HAVE_LIBXP} = yes; then
12581 cat >>confdefs.h
<<\_ACEOF
12582 #define HAVE_LIBXP 1
12587 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12588 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12589 if test "${emacs_cv_lesstif+set}" = set; then
12590 echo $ECHO_N "(cached) $ECHO_C" >&6
12592 # We put this in CFLAGS temporarily to precede other -I options
12593 # that might be in CFLAGS temporarily.
12594 # We put this in CPPFLAGS where it precedes the other -I options.
12595 OLD_CPPFLAGS
=$CPPFLAGS
12597 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12598 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12599 cat >conftest.
$ac_ext <<_ACEOF
12602 cat confdefs.h
>>conftest.
$ac_ext
12603 cat >>conftest.
$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12605 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12614 rm -f conftest.
$ac_objext
12615 if { (ac_try
="$ac_compile"
12616 case "(($ac_try" in
12617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12618 *) ac_try_echo=$ac_try;;
12620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12621 (eval "$ac_compile") 2>conftest.er1
12623 grep -v '^ *+' conftest.er1 >conftest.err
12625 cat conftest.err >&5
12626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12627 (exit $ac_status); } && {
12628 test -z "$ac_c_werror_flag" ||
12629 test ! -s conftest.err
12630 } && test -s conftest.$ac_objext; then
12631 emacs_cv_lesstif=yes
12633 echo "$as_me: failed program was:" >&5
12634 sed 's/^/| /' conftest.$ac_ext >&5
12636 emacs_cv_lesstif=no
12639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12641 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12642 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12643 if test $emacs_cv_lesstif = yes; then
12644 # Make sure this -I option remains in CPPFLAGS after it is set
12645 # back to REAL_CPPFLAGS.
12646 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12647 # have those other -I options anyway. Ultimately, having this
12648 # directory ultimately in CPPFLAGS will be enough.
12649 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12650 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12653 CPPFLAGS=$OLD_CPPFLAGS
12660 USE_TOOLKIT_SCROLL_BARS=no
12661 if test "${with_toolkit_scroll_bars}" != "no"; then
12662 if test "${USE_X_TOOLKIT}" != "none"; then
12663 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12664 cat >>confdefs.h <<\_ACEOF
12665 #define USE_TOOLKIT_SCROLL_BARS 1
12669 USE_TOOLKIT_SCROLL_BARS=yes
12670 elif test "${HAVE_XAW3D}" = "yes"; then
12671 cat >>confdefs.h <<\_ACEOF
12672 #define USE_TOOLKIT_SCROLL_BARS 1
12675 USE_TOOLKIT_SCROLL_BARS=yes
12677 elif test "${HAVE_GTK}" = "yes"; then
12678 cat >>confdefs.h <<\_ACEOF
12679 #define USE_TOOLKIT_SCROLL_BARS 1
12682 USE_TOOLKIT_SCROLL_BARS=yes
12683 elif test "${HAVE_CARBON}" = "yes"; then
12684 cat >>confdefs.h <<\_ACEOF
12685 #define USE_TOOLKIT_SCROLL_BARS 1
12688 USE_TOOLKIT_SCROLL_BARS=yes
12692 cat >conftest.$ac_ext <<_ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12699 #include <X11/Xlib.h>
12700 #include <X11/Xresource.h>
12709 rm -f conftest.$ac_objext
12710 if { (ac_try="$ac_compile"
12711 case "(($ac_try" in
12712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12713 *) ac_try_echo
=$ac_try;;
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_compile") 2>conftest.er1
12718 grep -v '^ *+' conftest.er1
>conftest.err
12720 cat conftest.err
>&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } && {
12723 test -z "$ac_c_werror_flag" ||
12724 test ! -s conftest.err
12725 } && test -s conftest.
$ac_objext; then
12728 cat >>confdefs.h
<<\_ACEOF
12733 echo "$as_me: failed program was:" >&5
12734 sed 's/^/| /' conftest.
$ac_ext >&5
12739 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12742 if test "${with_xim}" != "no"; then
12744 cat >>confdefs.h
<<\_ACEOF
12751 if test "${HAVE_XIM}" != "no"; then
12752 late_CFLAGS
=$CFLAGS
12753 if test "$GCC" = yes; then
12754 CFLAGS
="$CFLAGS --pedantic-errors"
12756 cat >conftest.
$ac_ext <<_ACEOF
12759 cat confdefs.h
>>conftest.
$ac_ext
12760 cat >>conftest.
$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12763 #include <X11/Xlib.h>
12764 #include <X11/Xresource.h>
12773 XPointer *client_data;
12775 /* If we're not using GCC, it's probably not XFree86, and this is
12776 probably right, but we can't use something like --pedantic-errors. */
12777 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12778 char*, XIMProc, XPointer*);
12780 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12786 rm -f conftest.
$ac_objext
12787 if { (ac_try
="$ac_compile"
12788 case "(($ac_try" in
12789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12790 *) ac_try_echo=$ac_try;;
12792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12793 (eval "$ac_compile") 2>conftest.er1
12795 grep -v '^ *+' conftest.er1 >conftest.err
12797 cat conftest.err >&5
12798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12799 (exit $ac_status); } && {
12800 test -z "$ac_c_werror_flag" ||
12801 test ! -s conftest.err
12802 } && test -s conftest.$ac_objext; then
12803 emacs_cv_arg6_star=yes
12805 echo "$as_me: failed program was:" >&5
12806 sed 's/^/| /' conftest.$ac_ext >&5
12811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12813 if test "$emacs_cv_arg6_star" = yes; then
12814 cat >>confdefs.h <<\_ACEOF
12815 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12819 cat >>confdefs.h <<\_ACEOF
12820 #define XRegisterIMInstantiateCallback_arg6 XPointer
12824 CFLAGS=$late_CFLAGS
12827 ### For font-backend
12828 if test "${USE_FONT_BACKEND}" = "yes"; then
12831 cat >>confdefs.h <<\_ACEOF
12832 #define USE_FONT_BACKEND 1
12836 ### Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12838 if test "${HAVE_X11}" = "yes"; then
12839 if test "x${with_freetype}" = "xno"; then
12842 if test "x${with_xft}" != "xno"; then
12844 if test "X${with_pkg_config_prog}" != X
; then
12845 PKG_CONFIG
="${with_pkg_config_prog}"
12851 if test -z "$PKG_CONFIG"; then
12852 # Extract the first word of "pkg-config", so it can be a program name with args.
12853 set dummy pkg-config
; ac_word
=$2
12854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12856 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12857 echo $ECHO_N "(cached) $ECHO_C" >&6
12859 case $PKG_CONFIG in
12861 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12864 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12865 for as_dir
in $PATH
12868 test -z "$as_dir" && as_dir
=.
12869 for ac_exec_ext
in '' $ac_executable_extensions; do
12870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12871 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12879 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12883 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12884 if test -n "$PKG_CONFIG"; then
12885 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12886 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12888 { echo "$as_me:$LINENO: result: no" >&5
12889 echo "${ECHO_T}no" >&6; }
12895 if test "$PKG_CONFIG" = "no" ; then
12898 PKG_CONFIG_MIN_VERSION
=0.9.0
12899 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12900 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12901 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12903 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12904 { echo "$as_me:$LINENO: result: yes" >&5
12905 echo "${ECHO_T}yes" >&6; }
12908 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12909 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12910 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12911 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12912 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12914 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12915 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12916 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12917 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12918 echo "${ECHO_T}$XFT_LIBS" >&6; }
12920 { echo "$as_me:$LINENO: result: no" >&5
12921 echo "${ECHO_T}no" >&6; }
12924 ## If we have a custom action on failure, don't print errors, but
12925 ## do set a variable so people can do so.
12926 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12933 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12934 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12938 if test $succeeded = yes; then
12944 if test "$HAVE_XFT" != no
; then
12945 OLD_CPPFLAGS
="$CPPFLAGS"
12946 OLD_CFLAGS
="$CFLAGS"
12948 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12949 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12950 LIBS
="$XFT_LIBS $LIBS"
12951 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12952 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12953 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12954 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12957 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12958 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12960 # Is the header compilable?
12961 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12962 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12963 cat >conftest.
$ac_ext <<_ACEOF
12966 cat confdefs.h
>>conftest.
$ac_ext
12967 cat >>conftest.
$ac_ext <<_ACEOF
12968 /* end confdefs.h. */
12969 $ac_includes_default
12970 #include <X11/Xft/Xft.h>
12972 rm -f conftest.
$ac_objext
12973 if { (ac_try
="$ac_compile"
12974 case "(($ac_try" in
12975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_compile") 2>conftest.er1
12981 grep -v '^ *+' conftest.er1 >conftest.err
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } && {
12986 test -z "$ac_c_werror_flag" ||
12987 test ! -s conftest.err
12988 } && test -s conftest.$ac_objext; then
12989 ac_header_compiler=yes
12991 echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.$ac_ext >&5
12994 ac_header_compiler=no
12997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12999 echo "${ECHO_T}$ac_header_compiler" >&6; }
13001 # Is the header present?
13002 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13003 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
13004 cat >conftest.$ac_ext <<_ACEOF
13007 cat confdefs.h >>conftest.$ac_ext
13008 cat >>conftest.$ac_ext <<_ACEOF
13009 /* end confdefs.h. */
13010 #include <X11/Xft/Xft.h>
13012 if { (ac_try="$ac_cpp conftest.$ac_ext"
13013 case "(($ac_try" in
13014 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13015 *) ac_try_echo
=$ac_try;;
13017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13020 grep -v '^ *+' conftest.er1
>conftest.err
13022 cat conftest.err
>&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } >/dev
/null
&& {
13025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13026 test ! -s conftest.err
13028 ac_header_preproc
=yes
13030 echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.
$ac_ext >&5
13033 ac_header_preproc
=no
13036 rm -f conftest.err conftest.
$ac_ext
13037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13038 echo "${ECHO_T}$ac_header_preproc" >&6; }
13040 # So? What about this header?
13041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13043 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13044 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13045 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13046 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13047 ac_header_preproc
=yes
13050 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13051 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13052 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13053 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13055 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13057 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13058 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13059 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13060 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13061 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13065 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13066 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
13067 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
13072 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13073 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
13076 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13077 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13078 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
13079 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13082 ac_check_lib_save_LIBS
=$LIBS
13083 LIBS
="-lXft $XFT_LIBS $LIBS"
13084 cat >conftest.
$ac_ext <<_ACEOF
13087 cat confdefs.h
>>conftest.
$ac_ext
13088 cat >>conftest.
$ac_ext <<_ACEOF
13089 /* end confdefs.h. */
13091 /* Override any GCC internal prototype to avoid an error.
13092 Use char because int might match the return type of a GCC
13093 builtin and then its argument prototype would still apply. */
13097 char XftFontOpen ();
13101 return XftFontOpen ();
13106 rm -f conftest.
$ac_objext conftest
$ac_exeext
13107 if { (ac_try
="$ac_link"
13108 case "(($ac_try" in
13109 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_link") 2>conftest.er1
13115 grep -v '^ *+' conftest.er1 >conftest.err
13117 cat conftest.err >&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } && {
13120 test -z "$ac_c_werror_flag" ||
13121 test ! -s conftest.err
13122 } && test -s conftest$ac_exeext &&
13123 $as_test_x conftest$ac_exeext; then
13124 ac_cv_lib_Xft_XftFontOpen=yes
13126 echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13129 ac_cv_lib_Xft_XftFontOpen=no
13132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13133 conftest$ac_exeext conftest.$ac_ext
13134 LIBS=$ac_check_lib_save_LIBS
13136 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
13137 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
13138 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
13146 if test "${HAVE_XFT}" = "yes"; then
13148 cat >>confdefs.h <<\_ACEOF
13153 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
13155 CFLAGS="$OLD_CPPFLAGS"
13156 CFLAGS="$OLD_CFLAGS"
13164 ### Use -lfreetype if available, unless `--with-freetype=no
'.
13165 if test "${HAVE_XFT}" = "yes"; then
13167 elif test "x${with_freetype}" != "xno"; then
13168 if test "X${with_pkg_config_prog}" != X; then
13169 PKG_CONFIG="${with_pkg_config_prog}"
13175 if test -z "$PKG_CONFIG"; then
13176 # Extract the first word of "pkg-config", so it can be a program name with args.
13177 set dummy pkg-config; ac_word=$2
13178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13180 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 case $PKG_CONFIG in
13185 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13189 for as_dir in $PATH
13192 test -z "$as_dir" && as_dir=.
13193 for ac_exec_ext in '' $ac_executable_extensions; do
13194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13195 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13203 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13207 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13208 if test -n "$PKG_CONFIG"; then
13209 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13210 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13212 { echo "$as_me:$LINENO: result: no" >&5
13213 echo "${ECHO_T}no" >&6; }
13219 if test "$PKG_CONFIG" = "no" ; then
13222 PKG_CONFIG_MIN_VERSION=0.9.0
13223 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13224 { echo "$as_me:$LINENO: checking for freetype2" >&5
13225 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13227 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13228 { echo "$as_me:$LINENO: result: yes" >&5
13229 echo "${ECHO_T}yes" >&6; }
13232 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13233 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13234 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
13235 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13236 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13238 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13239 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13240 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
13241 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13242 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13244 { echo "$as_me:$LINENO: result: no" >&5
13245 echo "${ECHO_T}no" >&6; }
13248 ## If we have a custom action on failure, don't print errors
, but
13249 ## do set a variable so people can do so.
13250 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13257 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13258 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13262 if test $succeeded = yes; then
13268 if test "${HAVE_FREETYPE}" = "yes"; then
13272 if test -z "$PKG_CONFIG"; then
13273 # Extract the first word of "pkg-config", so it can be a program name with args.
13274 set dummy pkg-config
; ac_word
=$2
13275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13277 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13280 case $PKG_CONFIG in
13282 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13286 for as_dir
in $PATH
13289 test -z "$as_dir" && as_dir
=.
13290 for ac_exec_ext
in '' $ac_executable_extensions; do
13291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13292 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13300 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13304 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13305 if test -n "$PKG_CONFIG"; then
13306 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13307 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13309 { echo "$as_me:$LINENO: result: no" >&5
13310 echo "${ECHO_T}no" >&6; }
13316 if test "$PKG_CONFIG" = "no" ; then
13319 PKG_CONFIG_MIN_VERSION
=0.9.0
13320 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13321 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13322 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13324 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13325 { echo "$as_me:$LINENO: result: yes" >&5
13326 echo "${ECHO_T}yes" >&6; }
13329 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13330 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13331 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13332 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13333 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13335 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13336 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13337 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13338 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13339 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13341 { echo "$as_me:$LINENO: result: no" >&5
13342 echo "${ECHO_T}no" >&6; }
13343 FONTCONFIG_CFLAGS
=""
13345 ## If we have a custom action on failure, don't print errors, but
13346 ## do set a variable so people can do so.
13347 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13354 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13355 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13359 if test $succeeded = yes; then
13365 if test "${HAVE_FC}" = "no"; then
13370 if test "${HAVE_FREETYPE}" = "yes"; then
13372 cat >>confdefs.h
<<\_ACEOF
13373 #define HAVE_FREETYPE 1
13376 # Extract the first word of "libotf-config", so it can be a program name with args.
13377 set dummy libotf-config
; ac_word
=$2
13378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13380 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13383 if test -n "$HAVE_LIBOTF"; then
13384 ac_cv_prog_HAVE_LIBOTF
="$HAVE_LIBOTF" # Let the user override the test.
13386 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13387 for as_dir
in $PATH
13390 test -z "$as_dir" && as_dir
=.
13391 for ac_exec_ext
in '' $ac_executable_extensions; do
13392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13393 ac_cv_prog_HAVE_LIBOTF
="yes"
13394 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13401 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF
="no"
13404 HAVE_LIBOTF
=$ac_cv_prog_HAVE_LIBOTF
13405 if test -n "$HAVE_LIBOTF"; then
13406 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13407 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13409 { echo "$as_me:$LINENO: result: no" >&5
13410 echo "${ECHO_T}no" >&6; }
13414 if test "${HAVE_LIBOTF}" = "yes"; then
13416 { echo "$as_me:$LINENO: checking for OTF_get_features in -lotf" >&5
13417 echo $ECHO_N "checking for OTF_get_features in -lotf... $ECHO_C" >&6; }
13418 if test "${ac_cv_lib_otf_OTF_get_features+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13421 ac_check_lib_save_LIBS
=$LIBS
13423 cat >conftest.
$ac_ext <<_ACEOF
13426 cat confdefs.h
>>conftest.
$ac_ext
13427 cat >>conftest.
$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13430 /* Override any GCC internal prototype to avoid an error.
13431 Use char because int might match the return type of a GCC
13432 builtin and then its argument prototype would still apply. */
13436 char OTF_get_features ();
13440 return OTF_get_features ();
13445 rm -f conftest.
$ac_objext conftest
$ac_exeext
13446 if { (ac_try
="$ac_link"
13447 case "(($ac_try" in
13448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13449 *) ac_try_echo=$ac_try;;
13451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13452 (eval "$ac_link") 2>conftest.er1
13454 grep -v '^ *+' conftest.er1 >conftest.err
13456 cat conftest.err >&5
13457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13458 (exit $ac_status); } && {
13459 test -z "$ac_c_werror_flag" ||
13460 test ! -s conftest.err
13461 } && test -s conftest$ac_exeext &&
13462 $as_test_x conftest$ac_exeext; then
13463 ac_cv_lib_otf_OTF_get_features=yes
13465 echo "$as_me: failed program was:" >&5
13466 sed 's/^/| /' conftest.$ac_ext >&5
13468 ac_cv_lib_otf_OTF_get_features=no
13471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13472 conftest$ac_exeext conftest.$ac_ext
13473 LIBS=$ac_check_lib_save_LIBS
13475 { echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_features" >&5
13476 echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_features" >&6; }
13477 if test $ac_cv_lib_otf_OTF_get_features = yes; then
13478 cat >>confdefs.h <<_ACEOF
13479 #define HAVE_LIBOTF 1
13488 if test "${HAVE_LIBOTF}" = "yes"; then
13490 cat >>confdefs.h <<\_ACEOF
13491 #define HAVE_LIBOTF 1
13494 LIBOTF_CFLAGS=`libotf-config
--cflags`
13495 LIBOTF_LIBS=`libotf-config
--libs`
13508 ### Use -lXpm if available, unless `--with-xpm=no
'.
13510 if test "${HAVE_X11}" = "yes"; then
13511 if test "${with_xpm}" != "no"; then
13512 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13513 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13514 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13515 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13516 echo $ECHO_N "(cached) $ECHO_C" >&6
13518 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13519 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13521 # Is the header compilable?
13522 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13523 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13524 cat >conftest.$ac_ext <<_ACEOF
13527 cat confdefs.h >>conftest.$ac_ext
13528 cat >>conftest.$ac_ext <<_ACEOF
13529 /* end confdefs.h. */
13530 $ac_includes_default
13531 #include <X11/xpm.h>
13533 rm -f conftest.$ac_objext
13534 if { (ac_try="$ac_compile"
13535 case "(($ac_try" in
13536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13537 *) ac_try_echo=$ac_try;;
13539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13540 (eval "$ac_compile") 2>conftest.er1
13542 grep -v '^
*+' conftest.er1 >conftest.err
13544 cat conftest.err >&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } && {
13547 test -z "$ac_c_werror_flag" ||
13548 test ! -s conftest.err
13549 } && test -s conftest.$ac_objext; then
13550 ac_header_compiler=yes
13552 echo "$as_me: failed program was:" >&5
13553 sed 's
/^
/|
/' conftest.$ac_ext >&5
13555 ac_header_compiler=no
13558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13560 echo "${ECHO_T}$ac_header_compiler" >&6; }
13562 # Is the header present?
13563 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13564 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13565 cat >conftest.$ac_ext <<_ACEOF
13568 cat confdefs.h >>conftest.$ac_ext
13569 cat >>conftest.$ac_ext <<_ACEOF
13570 /* end confdefs.h. */
13571 #include <X11/xpm.h>
13573 if { (ac_try="$ac_cpp conftest.$ac_ext"
13574 case "(($ac_try" in
13575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576 *) ac_try_echo=$ac_try;;
13578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13581 grep -v '^
*+' conftest.er1 >conftest.err
13583 cat conftest.err >&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); } >/dev/null && {
13586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13587 test ! -s conftest.err
13589 ac_header_preproc=yes
13591 echo "$as_me: failed program was:" >&5
13592 sed 's
/^
/|
/' conftest.$ac_ext >&5
13594 ac_header_preproc=no
13597 rm -f conftest.err conftest.$ac_ext
13598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13599 echo "${ECHO_T}$ac_header_preproc" >&6; }
13601 # So? What about this header?
13602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13604 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13605 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13606 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
13607 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
13608 ac_header_preproc=yes
13611 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13612 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13614 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13615 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13616 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13618 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13619 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
13620 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
13621 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13622 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13626 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13627 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13628 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13629 echo $ECHO_N "(cached) $ECHO_C" >&6
13631 ac_cv_header_X11_xpm_h=$ac_header_preproc
13633 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13634 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13637 if test $ac_cv_header_X11_xpm_h = yes; then
13638 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13639 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13640 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13641 echo $ECHO_N "(cached) $ECHO_C" >&6
13643 ac_check_lib_save_LIBS=$LIBS
13644 LIBS="-lXpm -lX11 $LIBS"
13645 cat >conftest.$ac_ext <<_ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13652 /* Override any GCC internal prototype to avoid an error.
13653 Use char because int might match the return type of a GCC
13654 builtin and then its argument prototype would still apply. */
13658 char XpmReadFileToPixmap ();
13662 return XpmReadFileToPixmap ();
13667 rm -f conftest.$ac_objext conftest$ac_exeext
13668 if { (ac_try="$ac_link"
13669 case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_link") 2>conftest.er1
13676 grep -v '^
*+' conftest.er1 >conftest.err
13678 cat conftest.err >&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } && {
13681 test -z "$ac_c_werror_flag" ||
13682 test ! -s conftest.err
13683 } && test -s conftest$ac_exeext &&
13684 $as_test_x conftest$ac_exeext; then
13685 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13687 echo "$as_me: failed program was:" >&5
13688 sed 's
/^
/|
/' conftest.$ac_ext >&5
13690 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13694 conftest$ac_exeext conftest.$ac_ext
13695 LIBS=$ac_check_lib_save_LIBS
13697 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13698 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13699 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13706 if test "${HAVE_XPM}" = "yes"; then
13707 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13708 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13709 cat >conftest.$ac_ext <<_ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h. */
13715 #include "X11/xpm.h"
13716 #ifndef XpmReturnAllocPixels
13717 no_return_alloc_pixels
13721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13722 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13730 if test "${HAVE_XPM}" = "yes"; then
13731 { echo "$as_me:$LINENO: result: yes" >&5
13732 echo "${ECHO_T}yes" >&6; }
13734 { echo "$as_me:$LINENO: result: no" >&5
13735 echo "${ECHO_T}no" >&6; }
13740 if test "${HAVE_XPM}" = "yes"; then
13742 cat >>confdefs.h <<\_ACEOF
13749 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13751 if test "${HAVE_X11}" = "yes"; then
13752 if test "${with_jpeg}" != "no"; then
13753 if test "${ac_cv_header_jerror_h+set}" = set; then
13754 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13755 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13756 if test "${ac_cv_header_jerror_h+set}" = set; then
13757 echo $ECHO_N "(cached) $ECHO_C" >&6
13759 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13760 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13762 # Is the header compilable?
13763 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13764 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13765 cat >conftest.
$ac_ext <<_ACEOF
13768 cat confdefs.h
>>conftest.
$ac_ext
13769 cat >>conftest.
$ac_ext <<_ACEOF
13770 /* end confdefs.h. */
13771 $ac_includes_default
13772 #include <jerror.h>
13774 rm -f conftest.
$ac_objext
13775 if { (ac_try
="$ac_compile"
13776 case "(($ac_try" in
13777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13778 *) ac_try_echo=$ac_try;;
13780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13781 (eval "$ac_compile") 2>conftest.er1
13783 grep -v '^ *+' conftest.er1 >conftest.err
13785 cat conftest.err >&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); } && {
13788 test -z "$ac_c_werror_flag" ||
13789 test ! -s conftest.err
13790 } && test -s conftest.$ac_objext; then
13791 ac_header_compiler=yes
13793 echo "$as_me: failed program was:" >&5
13794 sed 's/^/| /' conftest.$ac_ext >&5
13796 ac_header_compiler=no
13799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13800 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13801 echo "${ECHO_T}$ac_header_compiler" >&6; }
13803 # Is the header present?
13804 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13805 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13806 cat >conftest.$ac_ext <<_ACEOF
13809 cat confdefs.h >>conftest.$ac_ext
13810 cat >>conftest.$ac_ext <<_ACEOF
13811 /* end confdefs.h. */
13812 #include <jerror.h>
13814 if { (ac_try="$ac_cpp conftest.$ac_ext"
13815 case "(($ac_try" in
13816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13817 *) ac_try_echo
=$ac_try;;
13819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13822 grep -v '^ *+' conftest.er1
>conftest.err
13824 cat conftest.err
>&5
13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13826 (exit $ac_status); } >/dev
/null
&& {
13827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13828 test ! -s conftest.err
13830 ac_header_preproc
=yes
13832 echo "$as_me: failed program was:" >&5
13833 sed 's/^/| /' conftest.
$ac_ext >&5
13835 ac_header_preproc
=no
13838 rm -f conftest.err conftest.
$ac_ext
13839 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13840 echo "${ECHO_T}$ac_header_preproc" >&6; }
13842 # So? What about this header?
13843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13845 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13846 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13848 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13849 ac_header_preproc
=yes
13852 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13853 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13854 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13855 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13856 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13857 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13858 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13859 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13860 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13861 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13862 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13863 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13867 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13868 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13869 if test "${ac_cv_header_jerror_h+set}" = set; then
13870 echo $ECHO_N "(cached) $ECHO_C" >&6
13872 ac_cv_header_jerror_h
=$ac_header_preproc
13874 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13875 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13878 if test $ac_cv_header_jerror_h = yes; then
13879 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13880 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13881 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13882 echo $ECHO_N "(cached) $ECHO_C" >&6
13884 ac_check_lib_save_LIBS
=$LIBS
13885 LIBS
="-ljpeg $LIBS"
13886 cat >conftest.
$ac_ext <<_ACEOF
13889 cat confdefs.h
>>conftest.
$ac_ext
13890 cat >>conftest.
$ac_ext <<_ACEOF
13891 /* end confdefs.h. */
13893 /* Override any GCC internal prototype to avoid an error.
13894 Use char because int might match the return type of a GCC
13895 builtin and then its argument prototype would still apply. */
13899 char jpeg_destroy_compress ();
13903 return jpeg_destroy_compress ();
13908 rm -f conftest.
$ac_objext conftest
$ac_exeext
13909 if { (ac_try
="$ac_link"
13910 case "(($ac_try" in
13911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13912 *) ac_try_echo=$ac_try;;
13914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13915 (eval "$ac_link") 2>conftest.er1
13917 grep -v '^ *+' conftest.er1 >conftest.err
13919 cat conftest.err >&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); } && {
13922 test -z "$ac_c_werror_flag" ||
13923 test ! -s conftest.err
13924 } && test -s conftest$ac_exeext &&
13925 $as_test_x conftest$ac_exeext; then
13926 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13928 echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.$ac_ext >&5
13931 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13935 conftest$ac_exeext conftest.$ac_ext
13936 LIBS=$ac_check_lib_save_LIBS
13938 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13939 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13940 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13950 if test "${HAVE_JPEG}" = "yes"; then
13951 cat >>confdefs.h <<\_ACEOF
13952 #define HAVE_JPEG 1
13955 cat >conftest.$ac_ext <<_ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13961 #include <jpeglib.h>
13962 version=JPEG_LIB_VERSION
13965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13966 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13967 cat >>confdefs.h <<\_ACEOF
13968 #define HAVE_JPEG 1
13972 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13973 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13981 ### Use -lpng if available, unless `--with-png=no
'.
13983 if test "${HAVE_X11}" = "yes"; then
13984 if test "${with_png}" != "no"; then
13985 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13986 # in /usr/include/libpng.
13989 for ac_header in png.h libpng/png.h
13991 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13998 ac_res=`eval echo '${'$as_ac_Header'}'`
13999 { echo "$as_me:$LINENO: result: $ac_res" >&5
14000 echo "${ECHO_T}$ac_res" >&6; }
14002 # Is the header compilable?
14003 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14004 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14005 cat >conftest.$ac_ext <<_ACEOF
14008 cat confdefs.h >>conftest.$ac_ext
14009 cat >>conftest.$ac_ext <<_ACEOF
14010 /* end confdefs.h. */
14011 $ac_includes_default
14012 #include <$ac_header>
14014 rm -f conftest.$ac_objext
14015 if { (ac_try="$ac_compile"
14016 case "(($ac_try" in
14017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14018 *) ac_try_echo=$ac_try;;
14020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021 (eval "$ac_compile") 2>conftest.er1
14023 grep -v '^
*+' conftest.er1 >conftest.err
14025 cat conftest.err >&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } && {
14028 test -z "$ac_c_werror_flag" ||
14029 test ! -s conftest.err
14030 } && test -s conftest.$ac_objext; then
14031 ac_header_compiler=yes
14033 echo "$as_me: failed program was:" >&5
14034 sed 's
/^
/|
/' conftest.$ac_ext >&5
14036 ac_header_compiler=no
14039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14041 echo "${ECHO_T}$ac_header_compiler" >&6; }
14043 # Is the header present?
14044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14046 cat >conftest.$ac_ext <<_ACEOF
14049 cat confdefs.h >>conftest.$ac_ext
14050 cat >>conftest.$ac_ext <<_ACEOF
14051 /* end confdefs.h. */
14052 #include <$ac_header>
14054 if { (ac_try="$ac_cpp conftest.$ac_ext"
14055 case "(($ac_try" in
14056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14057 *) ac_try_echo=$ac_try;;
14059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14062 grep -v '^
*+' conftest.er1 >conftest.err
14064 cat conftest.err >&5
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); } >/dev/null && {
14067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14068 test ! -s conftest.err
14070 ac_header_preproc=yes
14072 echo "$as_me: failed program was:" >&5
14073 sed 's
/^
/|
/' conftest.$ac_ext >&5
14075 ac_header_preproc=no
14078 rm -f conftest.err conftest.$ac_ext
14079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14080 echo "${ECHO_T}$ac_header_preproc" >&6; }
14082 # So? What about this header?
14083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
14088 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
14089 ac_header_preproc=yes
14092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
14101 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14110 echo $ECHO_N "(cached) $ECHO_C" >&6
14112 eval "$as_ac_Header=\$ac_header_preproc"
14114 ac_res=`eval echo '${'$as_ac_Header'}'`
14115 { echo "$as_me:$LINENO: result: $ac_res" >&5
14116 echo "${ECHO_T}$ac_res" >&6; }
14119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14120 cat >>confdefs.h <<_ACEOF
14121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14128 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14129 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14130 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14131 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14132 echo $ECHO_N "(cached) $ECHO_C" >&6
14134 ac_check_lib_save_LIBS=$LIBS
14135 LIBS="-lpng -lz -lm $LIBS"
14136 cat >conftest.$ac_ext <<_ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14143 /* Override any GCC internal prototype to avoid an error.
14144 Use char because int might match the return type of a GCC
14145 builtin and then its argument prototype would still apply. */
14149 char png_get_channels ();
14153 return png_get_channels ();
14158 rm -f conftest.$ac_objext conftest$ac_exeext
14159 if { (ac_try="$ac_link"
14160 case "(($ac_try" in
14161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14162 *) ac_try_echo=$ac_try;;
14164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14165 (eval "$ac_link") 2>conftest.er1
14167 grep -v '^
*+' conftest.er1 >conftest.err
14169 cat conftest.err >&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); } && {
14172 test -z "$ac_c_werror_flag" ||
14173 test ! -s conftest.err
14174 } && test -s conftest$ac_exeext &&
14175 $as_test_x conftest$ac_exeext; then
14176 ac_cv_lib_png_png_get_channels=yes
14178 echo "$as_me: failed program was:" >&5
14179 sed 's
/^
/|
/' conftest.$ac_ext >&5
14181 ac_cv_lib_png_png_get_channels=no
14184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14185 conftest$ac_exeext conftest.$ac_ext
14186 LIBS=$ac_check_lib_save_LIBS
14188 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14189 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14190 if test $ac_cv_lib_png_png_get_channels = yes; then
14197 if test "${HAVE_PNG}" = "yes"; then
14199 cat >>confdefs.h <<\_ACEOF
14206 ### Use -ltiff if available, unless `--with-tiff=no'.
14208 if test "${HAVE_X11}" = "yes"; then
14209 if test "${with_tiff}" != "no"; then
14210 if test "${ac_cv_header_tiffio_h+set}" = set; then
14211 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14212 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14213 if test "${ac_cv_header_tiffio_h+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14217 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14219 # Is the header compilable?
14220 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14221 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14222 cat >conftest.
$ac_ext <<_ACEOF
14225 cat confdefs.h
>>conftest.
$ac_ext
14226 cat >>conftest.
$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14228 $ac_includes_default
14229 #include <tiffio.h>
14231 rm -f conftest.
$ac_objext
14232 if { (ac_try
="$ac_compile"
14233 case "(($ac_try" in
14234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14235 *) ac_try_echo=$ac_try;;
14237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14238 (eval "$ac_compile") 2>conftest.er1
14240 grep -v '^ *+' conftest.er1 >conftest.err
14242 cat conftest.err >&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); } && {
14245 test -z "$ac_c_werror_flag" ||
14246 test ! -s conftest.err
14247 } && test -s conftest.$ac_objext; then
14248 ac_header_compiler=yes
14250 echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14253 ac_header_compiler=no
14256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14258 echo "${ECHO_T}$ac_header_compiler" >&6; }
14260 # Is the header present?
14261 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14262 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14263 cat >conftest.$ac_ext <<_ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h. */
14269 #include <tiffio.h>
14271 if { (ac_try="$ac_cpp conftest.$ac_ext"
14272 case "(($ac_try" in
14273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14274 *) ac_try_echo
=$ac_try;;
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14279 grep -v '^ *+' conftest.er1
>conftest.err
14281 cat conftest.err
>&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } >/dev
/null
&& {
14284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14285 test ! -s conftest.err
14287 ac_header_preproc
=yes
14289 echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.
$ac_ext >&5
14292 ac_header_preproc
=no
14295 rm -f conftest.err conftest.
$ac_ext
14296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14297 echo "${ECHO_T}$ac_header_preproc" >&6; }
14299 # So? What about this header?
14300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14302 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14303 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14304 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14305 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14306 ac_header_preproc
=yes
14309 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14310 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14311 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14312 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14314 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14316 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14318 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14319 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14320 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14324 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14325 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14326 if test "${ac_cv_header_tiffio_h+set}" = set; then
14327 echo $ECHO_N "(cached) $ECHO_C" >&6
14329 ac_cv_header_tiffio_h
=$ac_header_preproc
14331 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14332 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14335 if test $ac_cv_header_tiffio_h = yes; then
14337 # At least one tiff package requires the jpeg library.
14338 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
14339 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14340 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14341 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14342 echo $ECHO_N "(cached) $ECHO_C" >&6
14344 ac_check_lib_save_LIBS
=$LIBS
14345 LIBS
="-ltiff $tifflibs $LIBS"
14346 cat >conftest.
$ac_ext <<_ACEOF
14349 cat confdefs.h
>>conftest.
$ac_ext
14350 cat >>conftest.
$ac_ext <<_ACEOF
14351 /* end confdefs.h. */
14353 /* Override any GCC internal prototype to avoid an error.
14354 Use char because int might match the return type of a GCC
14355 builtin and then its argument prototype would still apply. */
14359 char TIFFGetVersion ();
14363 return TIFFGetVersion ();
14368 rm -f conftest.
$ac_objext conftest
$ac_exeext
14369 if { (ac_try
="$ac_link"
14370 case "(($ac_try" in
14371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14372 *) ac_try_echo=$ac_try;;
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375 (eval "$ac_link") 2>conftest.er1
14377 grep -v '^ *+' conftest.er1 >conftest.err
14379 cat conftest.err >&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); } && {
14382 test -z "$ac_c_werror_flag" ||
14383 test ! -s conftest.err
14384 } && test -s conftest$ac_exeext &&
14385 $as_test_x conftest$ac_exeext; then
14386 ac_cv_lib_tiff_TIFFGetVersion=yes
14388 echo "$as_me: failed program was:" >&5
14389 sed 's/^/| /' conftest.$ac_ext >&5
14391 ac_cv_lib_tiff_TIFFGetVersion=no
14394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14395 conftest$ac_exeext conftest.$ac_ext
14396 LIBS=$ac_check_lib_save_LIBS
14398 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14399 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14400 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14409 if test "${HAVE_TIFF}" = "yes"; then
14411 cat >>confdefs.h <<\_ACEOF
14412 #define HAVE_TIFF 1
14418 ### Use -lgif or -lungif if available, unless `--with-gif=no
'.
14420 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14421 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14422 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14423 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14424 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14427 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14428 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14430 # Is the header compilable?
14431 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14432 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14433 cat >conftest.$ac_ext <<_ACEOF
14436 cat confdefs.h >>conftest.$ac_ext
14437 cat >>conftest.$ac_ext <<_ACEOF
14438 /* end confdefs.h. */
14439 $ac_includes_default
14440 #include <gif_lib.h>
14442 rm -f conftest.$ac_objext
14443 if { (ac_try="$ac_compile"
14444 case "(($ac_try" in
14445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14446 *) ac_try_echo=$ac_try;;
14448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449 (eval "$ac_compile") 2>conftest.er1
14451 grep -v '^
*+' conftest.er1 >conftest.err
14453 cat conftest.err >&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } && {
14456 test -z "$ac_c_werror_flag" ||
14457 test ! -s conftest.err
14458 } && test -s conftest.$ac_objext; then
14459 ac_header_compiler=yes
14461 echo "$as_me: failed program was:" >&5
14462 sed 's
/^
/|
/' conftest.$ac_ext >&5
14464 ac_header_compiler=no
14467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14469 echo "${ECHO_T}$ac_header_compiler" >&6; }
14471 # Is the header present?
14472 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14473 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14474 cat >conftest.$ac_ext <<_ACEOF
14477 cat confdefs.h >>conftest.$ac_ext
14478 cat >>conftest.$ac_ext <<_ACEOF
14479 /* end confdefs.h. */
14480 #include <gif_lib.h>
14482 if { (ac_try="$ac_cpp conftest.$ac_ext"
14483 case "(($ac_try" in
14484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14490 grep -v '^
*+' conftest.er1 >conftest.err
14492 cat conftest.err >&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } >/dev/null && {
14495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14496 test ! -s conftest.err
14498 ac_header_preproc=yes
14500 echo "$as_me: failed program was:" >&5
14501 sed 's
/^
/|
/' conftest.$ac_ext >&5
14503 ac_header_preproc=no
14506 rm -f conftest.err conftest.$ac_ext
14507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14508 echo "${ECHO_T}$ac_header_preproc" >&6; }
14510 # So? What about this header?
14511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14513 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14514 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14515 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
14516 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
14517 ac_header_preproc=yes
14520 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14521 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14522 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14523 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14524 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14525 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14526 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14527 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14528 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
14529 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
14530 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14531 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14535 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14536 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14537 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 ac_cv_header_gif_lib_h=$ac_header_preproc
14542 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14543 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14546 if test $ac_cv_header_gif_lib_h = yes; then
14547 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14548 # Earlier versions can crash Emacs.
14549 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14550 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14551 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14554 ac_check_lib_save_LIBS=$LIBS
14556 cat >conftest.$ac_ext <<_ACEOF
14559 cat confdefs.h >>conftest.$ac_ext
14560 cat >>conftest.$ac_ext <<_ACEOF
14561 /* end confdefs.h. */
14563 /* Override any GCC internal prototype to avoid an error.
14564 Use char because int might match the return type of a GCC
14565 builtin and then its argument prototype would still apply. */
14569 char EGifPutExtensionLast ();
14573 return EGifPutExtensionLast ();
14578 rm -f conftest.$ac_objext conftest$ac_exeext
14579 if { (ac_try="$ac_link"
14580 case "(($ac_try" in
14581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14582 *) ac_try_echo=$ac_try;;
14584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14585 (eval "$ac_link") 2>conftest.er1
14587 grep -v '^
*+' conftest.er1 >conftest.err
14589 cat conftest.err >&5
14590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14591 (exit $ac_status); } && {
14592 test -z "$ac_c_werror_flag" ||
14593 test ! -s conftest.err
14594 } && test -s conftest$ac_exeext &&
14595 $as_test_x conftest$ac_exeext; then
14596 ac_cv_lib_gif_EGifPutExtensionLast=yes
14598 echo "$as_me: failed program was:" >&5
14599 sed 's
/^
/|
/' conftest.$ac_ext >&5
14601 ac_cv_lib_gif_EGifPutExtensionLast=no
14604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14605 conftest$ac_exeext conftest.$ac_ext
14606 LIBS=$ac_check_lib_save_LIBS
14608 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14609 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14610 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14620 if test "$HAVE_GIF" = yes; then
14621 ac_gif_lib_name="-lgif"
14624 # If gif_lib.h but no libgif, try libungif.
14625 if test x"$try_libungif" = xyes; then
14626 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14627 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14628 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14629 echo $ECHO_N "(cached) $ECHO_C" >&6
14631 ac_check_lib_save_LIBS=$LIBS
14632 LIBS="-lungif $LIBS"
14633 cat >conftest.$ac_ext <<_ACEOF
14636 cat confdefs.h >>conftest.$ac_ext
14637 cat >>conftest.$ac_ext <<_ACEOF
14638 /* end confdefs.h. */
14640 /* Override any GCC internal prototype to avoid an error.
14641 Use char because int might match the return type of a GCC
14642 builtin and then its argument prototype would still apply. */
14646 char EGifPutExtensionLast ();
14650 return EGifPutExtensionLast ();
14655 rm -f conftest.$ac_objext conftest$ac_exeext
14656 if { (ac_try="$ac_link"
14657 case "(($ac_try" in
14658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14659 *) ac_try_echo=$ac_try;;
14661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14662 (eval "$ac_link") 2>conftest.er1
14664 grep -v '^
*+' conftest.er1 >conftest.err
14666 cat conftest.err >&5
14667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14668 (exit $ac_status); } && {
14669 test -z "$ac_c_werror_flag" ||
14670 test ! -s conftest.err
14671 } && test -s conftest$ac_exeext &&
14672 $as_test_x conftest$ac_exeext; then
14673 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14675 echo "$as_me: failed program was:" >&5
14676 sed 's
/^
/|
/' conftest.$ac_ext >&5
14678 ac_cv_lib_ungif_EGifPutExtensionLast=no
14681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14682 conftest$ac_exeext conftest.$ac_ext
14683 LIBS=$ac_check_lib_save_LIBS
14685 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14686 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14687 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14692 if test "$HAVE_GIF" = yes; then
14694 cat >>confdefs.h <<\_ACEOF
14695 #define LIBGIF -lungif
14698 ac_gif_lib_name="-lungif"
14702 if test "${HAVE_GIF}" = "yes"; then
14704 cat >>confdefs.h <<\_ACEOF
14711 if test "${HAVE_X11}" = "yes"; then
14714 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14715 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14716 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14717 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14718 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14719 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14720 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14721 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14722 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14723 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14725 if test "X${MISSING}" != X; then
14726 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14728 Maybe some development libraries/packages are missing?
14729 If you don't want to link with them give
14731 as options to configure
" >&5
14732 echo "$as_me: error
: The following required libraries were not found
:
14734 Maybe some development libraries
/packages are missing?
14735 If you don
't want to link with them give
14737 as options to configure" >&2;}
14738 { (exit 1); exit 1; }; }
14742 ### Use -lgpm if available, unless `--with-gpm=no'.
14744 if test "${with_gpm}" != "no"; then
14745 if test "${ac_cv_header_gpm_h+set}" = set; then
14746 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14747 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14748 if test "${ac_cv_header_gpm_h+set}" = set; then
14749 echo $ECHO_N "(cached) $ECHO_C" >&6
14751 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14752 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14754 # Is the header compilable?
14755 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14756 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14757 cat >conftest.
$ac_ext <<_ACEOF
14760 cat confdefs.h
>>conftest.
$ac_ext
14761 cat >>conftest.
$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763 $ac_includes_default
14766 rm -f conftest.
$ac_objext
14767 if { (ac_try
="$ac_compile"
14768 case "(($ac_try" in
14769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14770 *) ac_try_echo=$ac_try;;
14772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14773 (eval "$ac_compile") 2>conftest.er1
14775 grep -v '^ *+' conftest.er1 >conftest.err
14777 cat conftest.err >&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } && {
14780 test -z "$ac_c_werror_flag" ||
14781 test ! -s conftest.err
14782 } && test -s conftest.$ac_objext; then
14783 ac_header_compiler=yes
14785 echo "$as_me: failed program was:" >&5
14786 sed 's/^/| /' conftest.$ac_ext >&5
14788 ac_header_compiler=no
14791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14793 echo "${ECHO_T}$ac_header_compiler" >&6; }
14795 # Is the header present?
14796 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14797 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14798 cat >conftest.$ac_ext <<_ACEOF
14801 cat confdefs.h >>conftest.$ac_ext
14802 cat >>conftest.$ac_ext <<_ACEOF
14803 /* end confdefs.h. */
14806 if { (ac_try="$ac_cpp conftest.$ac_ext"
14807 case "(($ac_try" in
14808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14809 *) ac_try_echo
=$ac_try;;
14811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14814 grep -v '^ *+' conftest.er1
>conftest.err
14816 cat conftest.err
>&5
14817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14818 (exit $ac_status); } >/dev
/null
&& {
14819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14820 test ! -s conftest.err
14822 ac_header_preproc
=yes
14824 echo "$as_me: failed program was:" >&5
14825 sed 's/^/| /' conftest.
$ac_ext >&5
14827 ac_header_preproc
=no
14830 rm -f conftest.err conftest.
$ac_ext
14831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14832 echo "${ECHO_T}$ac_header_preproc" >&6; }
14834 # So? What about this header?
14835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14837 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14838 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14840 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14841 ac_header_preproc
=yes
14844 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14845 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14846 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14847 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14848 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14849 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14850 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14851 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14852 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14853 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14854 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14855 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14859 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14860 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14861 if test "${ac_cv_header_gpm_h+set}" = set; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14864 ac_cv_header_gpm_h
=$ac_header_preproc
14866 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14867 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14870 if test $ac_cv_header_gpm_h = yes; then
14871 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14872 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14873 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14876 ac_check_lib_save_LIBS
=$LIBS
14878 cat >conftest.
$ac_ext <<_ACEOF
14881 cat confdefs.h
>>conftest.
$ac_ext
14882 cat >>conftest.
$ac_ext <<_ACEOF
14883 /* end confdefs.h. */
14885 /* Override any GCC internal prototype to avoid an error.
14886 Use char because int might match the return type of a GCC
14887 builtin and then its argument prototype would still apply. */
14895 return Gpm_Open ();
14900 rm -f conftest.
$ac_objext conftest
$ac_exeext
14901 if { (ac_try
="$ac_link"
14902 case "(($ac_try" in
14903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14904 *) ac_try_echo=$ac_try;;
14906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14907 (eval "$ac_link") 2>conftest.er1
14909 grep -v '^ *+' conftest.er1 >conftest.err
14911 cat conftest.err >&5
14912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14913 (exit $ac_status); } && {
14914 test -z "$ac_c_werror_flag" ||
14915 test ! -s conftest.err
14916 } && test -s conftest$ac_exeext &&
14917 $as_test_x conftest$ac_exeext; then
14918 ac_cv_lib_gpm_Gpm_Open=yes
14920 echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.$ac_ext >&5
14923 ac_cv_lib_gpm_Gpm_Open=no
14926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14927 conftest$ac_exeext conftest.$ac_ext
14928 LIBS=$ac_check_lib_save_LIBS
14930 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14931 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14932 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14941 if test "${HAVE_GPM}" = "yes"; then
14943 cat >>confdefs.h <<\_ACEOF
14949 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14950 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14951 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14952 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14953 echo $ECHO_N "(cached) $ECHO_C" >&6
14955 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14956 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14958 # Is the header compilable?
14959 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14960 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14961 cat >conftest.$ac_ext <<_ACEOF
14964 cat confdefs.h >>conftest.$ac_ext
14965 cat >>conftest.$ac_ext <<_ACEOF
14966 /* end confdefs.h. */
14967 $ac_includes_default
14968 #include <malloc/malloc.h>
14970 rm -f conftest.$ac_objext
14971 if { (ac_try="$ac_compile"
14972 case "(($ac_try" in
14973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14974 *) ac_try_echo
=$ac_try;;
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_compile") 2>conftest.er1
14979 grep -v '^ *+' conftest.er1
>conftest.err
14981 cat conftest.err
>&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } && {
14984 test -z "$ac_c_werror_flag" ||
14985 test ! -s conftest.err
14986 } && test -s conftest.
$ac_objext; then
14987 ac_header_compiler
=yes
14989 echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.
$ac_ext >&5
14992 ac_header_compiler
=no
14995 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14996 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14997 echo "${ECHO_T}$ac_header_compiler" >&6; }
14999 # Is the header present?
15000 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15001 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
15002 cat >conftest.
$ac_ext <<_ACEOF
15005 cat confdefs.h
>>conftest.
$ac_ext
15006 cat >>conftest.
$ac_ext <<_ACEOF
15007 /* end confdefs.h. */
15008 #include <malloc/malloc.h>
15010 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15011 case "(($ac_try" in
15012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15013 *) ac_try_echo=$ac_try;;
15015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15016 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15018 grep -v '^ *+' conftest.er1 >conftest.err
15020 cat conftest.err >&5
15021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15022 (exit $ac_status); } >/dev/null && {
15023 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15024 test ! -s conftest.err
15026 ac_header_preproc=yes
15028 echo "$as_me: failed program was:" >&5
15029 sed 's/^/| /' conftest.$ac_ext >&5
15031 ac_header_preproc=no
15034 rm -f conftest.err conftest.$ac_ext
15035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15036 echo "${ECHO_T}$ac_header_preproc" >&6; }
15038 # So? What about this header?
15039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15041 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15042 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15043 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15044 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15045 ac_header_preproc=yes
15048 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15049 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15050 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15051 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15052 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15053 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15054 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15055 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15056 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15057 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15058 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15059 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15063 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15064 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
15065 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15066 echo $ECHO_N "(cached) $ECHO_C" >&6
15068 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15070 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15071 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15074 if test $ac_cv_header_malloc_malloc_h = yes; then
15076 cat >>confdefs.h <<\_ACEOF
15077 #define HAVE_MALLOC_MALLOC_H 1
15084 ### Use Mac OS X Carbon API to implement GUI.
15085 if test "${HAVE_CARBON}" = "yes"; then
15087 cat >>confdefs.h <<\_ACEOF
15088 #define HAVE_CARBON 1
15091 ## Specify the install directory
15093 if test "${carbon_appdir_x}" != ""; then
15094 case ${carbon_appdir_x} in
15095 y | ye | yes) carbon_appdir=/Applications ;;
15096 * ) carbon_appdir=${carbon_appdir_x} ;;
15099 # We also have mouse menus.
15103 ### Use session management (-lSM -lICE) if available
15105 if test "${HAVE_X11}" = "yes"; then
15106 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15107 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15108 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15109 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15110 echo $ECHO_N "(cached) $ECHO_C" >&6
15112 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15113 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15115 # Is the header compilable?
15116 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15117 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15118 cat >conftest.$ac_ext <<_ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h. */
15124 $ac_includes_default
15125 #include <X11/SM/SMlib.h>
15127 rm -f conftest.$ac_objext
15128 if { (ac_try="$ac_compile"
15129 case "(($ac_try" in
15130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15131 *) ac_try_echo
=$ac_try;;
15133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15134 (eval "$ac_compile") 2>conftest.er1
15136 grep -v '^ *+' conftest.er1
>conftest.err
15138 cat conftest.err
>&5
15139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140 (exit $ac_status); } && {
15141 test -z "$ac_c_werror_flag" ||
15142 test ! -s conftest.err
15143 } && test -s conftest.
$ac_objext; then
15144 ac_header_compiler
=yes
15146 echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.
$ac_ext >&5
15149 ac_header_compiler
=no
15152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15153 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15154 echo "${ECHO_T}$ac_header_compiler" >&6; }
15156 # Is the header present?
15157 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15158 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15159 cat >conftest.
$ac_ext <<_ACEOF
15162 cat confdefs.h
>>conftest.
$ac_ext
15163 cat >>conftest.
$ac_ext <<_ACEOF
15164 /* end confdefs.h. */
15165 #include <X11/SM/SMlib.h>
15167 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15168 case "(($ac_try" in
15169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15170 *) ac_try_echo=$ac_try;;
15172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15175 grep -v '^ *+' conftest.er1 >conftest.err
15177 cat conftest.err >&5
15178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); } >/dev/null && {
15180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15181 test ! -s conftest.err
15183 ac_header_preproc=yes
15185 echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.$ac_ext >&5
15188 ac_header_preproc=no
15191 rm -f conftest.err conftest.$ac_ext
15192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15193 echo "${ECHO_T}$ac_header_preproc" >&6; }
15195 # So? What about this header?
15196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15198 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15199 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15200 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15201 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15202 ac_header_preproc=yes
15205 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15206 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15207 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15208 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15209 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15210 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15211 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15212 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15213 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15214 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15215 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15216 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15220 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15221 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15222 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15223 echo $ECHO_N "(cached) $ECHO_C" >&6
15225 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15227 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15228 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15231 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15232 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15233 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15234 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15235 echo $ECHO_N "(cached) $ECHO_C" >&6
15237 ac_check_lib_save_LIBS=$LIBS
15238 LIBS="-lSM -lICE $LIBS"
15239 cat >conftest.$ac_ext <<_ACEOF
15242 cat confdefs.h >>conftest.$ac_ext
15243 cat >>conftest.$ac_ext <<_ACEOF
15244 /* end confdefs.h. */
15246 /* Override any GCC internal prototype to avoid an error.
15247 Use char because int might match the return type of a GCC
15248 builtin and then its argument prototype would still apply. */
15252 char SmcOpenConnection ();
15256 return SmcOpenConnection ();
15261 rm -f conftest.$ac_objext conftest$ac_exeext
15262 if { (ac_try="$ac_link"
15263 case "(($ac_try" in
15264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15265 *) ac_try_echo
=$ac_try;;
15267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15268 (eval "$ac_link") 2>conftest.er1
15270 grep -v '^ *+' conftest.er1
>conftest.err
15272 cat conftest.err
>&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); } && {
15275 test -z "$ac_c_werror_flag" ||
15276 test ! -s conftest.err
15277 } && test -s conftest
$ac_exeext &&
15278 $as_test_x conftest
$ac_exeext; then
15279 ac_cv_lib_SM_SmcOpenConnection
=yes
15281 echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.
$ac_ext >&5
15284 ac_cv_lib_SM_SmcOpenConnection
=no
15287 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15288 conftest
$ac_exeext conftest.
$ac_ext
15289 LIBS
=$ac_check_lib_save_LIBS
15291 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15292 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15293 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15301 if test "${HAVE_X_SM}" = "yes"; then
15303 cat >>confdefs.h
<<\_ACEOF
15304 #define HAVE_X_SM 1
15309 *) LIBS
="-lSM -lICE $LIBS" ;;
15314 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15315 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15316 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15317 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15318 echo $ECHO_N "(cached) $ECHO_C" >&6
15320 cat >conftest.
$ac_ext <<_ACEOF
15323 cat confdefs.h
>>conftest.
$ac_ext
15324 cat >>conftest.
$ac_ext <<_ACEOF
15325 /* end confdefs.h. */
15335 rm -f conftest.
$ac_objext conftest
$ac_exeext
15336 if { (ac_try
="$ac_link"
15337 case "(($ac_try" in
15338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15339 *) ac_try_echo=$ac_try;;
15341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15342 (eval "$ac_link") 2>conftest.er1
15344 grep -v '^ *+' conftest.er1 >conftest.err
15346 cat conftest.err >&5
15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348 (exit $ac_status); } && {
15349 test -z "$ac_c_werror_flag" ||
15350 test ! -s conftest.err
15351 } && test -s conftest$ac_exeext &&
15352 $as_test_x conftest$ac_exeext; then
15353 emacs_cv_netdb_declares_h_errno=yes
15355 echo "$as_me: failed program was:" >&5
15356 sed 's/^/| /' conftest.$ac_ext >&5
15358 emacs_cv_netdb_declares_h_errno=no
15361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15362 conftest$ac_exeext conftest.$ac_ext
15364 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15365 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15366 if test $emacs_cv_netdb_declares_h_errno = yes; then
15368 cat >>confdefs.h <<\_ACEOF
15369 #define HAVE_H_ERRNO 1
15374 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15375 # for constant arguments. Useless!
15376 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15377 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15378 if test "${ac_cv_working_alloca_h+set}" = set; then
15379 echo $ECHO_N "(cached) $ECHO_C" >&6
15381 cat >conftest.$ac_ext <<_ACEOF
15384 cat confdefs.h >>conftest.$ac_ext
15385 cat >>conftest.$ac_ext <<_ACEOF
15386 /* end confdefs.h. */
15387 #include <alloca.h>
15391 char *p = (char *) alloca (2 * sizeof (int));
15397 rm -f conftest.$ac_objext conftest$ac_exeext
15398 if { (ac_try="$ac_link"
15399 case "(($ac_try" in
15400 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15401 *) ac_try_echo
=$ac_try;;
15403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15404 (eval "$ac_link") 2>conftest.er1
15406 grep -v '^ *+' conftest.er1
>conftest.err
15408 cat conftest.err
>&5
15409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15410 (exit $ac_status); } && {
15411 test -z "$ac_c_werror_flag" ||
15412 test ! -s conftest.err
15413 } && test -s conftest
$ac_exeext &&
15414 $as_test_x conftest
$ac_exeext; then
15415 ac_cv_working_alloca_h
=yes
15417 echo "$as_me: failed program was:" >&5
15418 sed 's/^/| /' conftest.
$ac_ext >&5
15420 ac_cv_working_alloca_h
=no
15423 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15424 conftest
$ac_exeext conftest.
$ac_ext
15426 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15427 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15428 if test $ac_cv_working_alloca_h = yes; then
15430 cat >>confdefs.h
<<\_ACEOF
15431 #define HAVE_ALLOCA_H 1
15436 { echo "$as_me:$LINENO: checking for alloca" >&5
15437 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15438 if test "${ac_cv_func_alloca_works+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15441 cat >conftest.
$ac_ext <<_ACEOF
15444 cat confdefs.h
>>conftest.
$ac_ext
15445 cat >>conftest.
$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15448 # define alloca __builtin_alloca
15451 # include <malloc.h>
15452 # define alloca _alloca
15454 # ifdef HAVE_ALLOCA_H
15455 # include <alloca.h>
15460 # ifndef alloca /* predefined by HP cc +Olibcalls */
15471 char *p = (char *) alloca (1);
15477 rm -f conftest.
$ac_objext conftest
$ac_exeext
15478 if { (ac_try
="$ac_link"
15479 case "(($ac_try" in
15480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15481 *) ac_try_echo=$ac_try;;
15483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15484 (eval "$ac_link") 2>conftest.er1
15486 grep -v '^ *+' conftest.er1 >conftest.err
15488 cat conftest.err >&5
15489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15490 (exit $ac_status); } && {
15491 test -z "$ac_c_werror_flag" ||
15492 test ! -s conftest.err
15493 } && test -s conftest$ac_exeext &&
15494 $as_test_x conftest$ac_exeext; then
15495 ac_cv_func_alloca_works=yes
15497 echo "$as_me: failed program was:" >&5
15498 sed 's/^/| /' conftest.$ac_ext >&5
15500 ac_cv_func_alloca_works=no
15503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15504 conftest$ac_exeext conftest.$ac_ext
15506 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15507 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15509 if test $ac_cv_func_alloca_works = yes; then
15511 cat >>confdefs.h <<\_ACEOF
15512 #define HAVE_ALLOCA 1
15516 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15517 # that cause trouble. Some versions do not even contain alloca or
15518 # contain a buggy version. If you still want to use their alloca,
15519 # use ar to extract alloca.o from them instead of compiling alloca.c.
15521 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15523 cat >>confdefs.h <<\_ACEOF
15528 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15529 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15530 if test "${ac_cv_os_cray+set}" = set; then
15531 echo $ECHO_N "(cached
) $ECHO_C" >&6
15533 cat >conftest.$ac_ext <<_ACEOF
15536 cat confdefs.h >>conftest.$ac_ext
15537 cat >>conftest.$ac_ext <<_ACEOF
15538 /* end confdefs.h. */
15539 #if defined CRAY && ! defined CRAY2
15546 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15547 $EGREP "webecray
" >/dev/null 2>&1; then
15555 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15556 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15557 if test $ac_cv_os_cray = yes; then
15558 for ac_func in _getb67 GETB67 getb67; do
15559 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15560 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15561 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15562 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15563 echo $ECHO_N "(cached
) $ECHO_C" >&6
15565 cat >conftest.$ac_ext <<_ACEOF
15568 cat confdefs.h >>conftest.$ac_ext
15569 cat >>conftest.$ac_ext <<_ACEOF
15570 /* end confdefs.h. */
15571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15573 #define $ac_func innocuous_$ac_func
15575 /* System header to define __stub macros and hopefully few prototypes,
15576 which can conflict with char $ac_func (); below.
15577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15578 <limits.h> exists even on freestanding compilers. */
15581 # include <limits.h>
15583 # include <assert.h>
15588 /* Override any GCC internal prototype to avoid an error.
15589 Use char because int might match the return type of a GCC
15590 builtin and then its argument prototype would still apply. */
15595 /* The GNU C library defines this for functions which it implements
15596 to always fail with ENOSYS. Some functions are actually named
15597 something starting with __ and the normal name is an alias. */
15598 #if defined __stub_$ac_func || defined __stub___$ac_func
15605 return $ac_func ();
15610 rm -f conftest.$ac_objext conftest$ac_exeext
15611 if { (ac_try="$ac_link"
15612 case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15616 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_link") 2>conftest.er1
15619 grep -v '^ *+' conftest.er1 >conftest.err
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15623 (exit $ac_status); } && {
15624 test -z "$ac_c_werror_flag" ||
15625 test ! -s conftest.err
15626 } && test -s conftest$ac_exeext &&
15627 $as_test_x conftest$ac_exeext; then
15628 eval "$as_ac_var=yes"
15630 echo "$as_me: failed program was
:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15633 eval "$as_ac_var=no
"
15636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15637 conftest$ac_exeext conftest.$ac_ext
15639 ac_res=`eval echo '${'$as_ac_var'}'`
15640 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15641 echo "${ECHO_T}$ac_res" >&6; }
15642 if test `eval echo '${'$as_ac_var'}'` = yes; then
15644 cat >>confdefs.h <<_ACEOF
15645 #define CRAY_STACKSEG_END $ac_func
15654 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15655 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15656 if test "${ac_cv_c_stack_direction+set}" = set; then
15657 echo $ECHO_N "(cached
) $ECHO_C" >&6
15659 if test "$cross_compiling" = yes; then
15660 ac_cv_c_stack_direction=0
15662 cat >conftest.$ac_ext <<_ACEOF
15665 cat confdefs.h >>conftest.$ac_ext
15666 cat >>conftest.$ac_ext <<_ACEOF
15667 /* end confdefs.h. */
15668 $ac_includes_default
15670 find_stack_direction ()
15672 static char *addr = 0;
15677 return find_stack_direction ();
15680 return (&dummy > addr) ? 1 : -1;
15686 return find_stack_direction () < 0;
15689 rm -f conftest$ac_exeext
15690 if { (ac_try="$ac_link"
15691 case "(($ac_try" in
15692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15693 *) ac_try_echo=$ac_try;;
15695 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15696 (eval "$ac_link") 2>&5
15698 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15699 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15700 { (case "(($ac_try" in
15701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702 *) ac_try_echo=$ac_try;;
15704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15705 (eval "$ac_try") 2>&5
15707 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15708 (exit $ac_status); }; }; then
15709 ac_cv_c_stack_direction=1
15711 echo "$as_me: program exited with status
$ac_status" >&5
15712 echo "$as_me: failed program was
:" >&5
15713 sed 's/^/| /' conftest.$ac_ext >&5
15715 ( exit $ac_status )
15716 ac_cv_c_stack_direction=-1
15718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15723 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15724 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15726 cat >>confdefs.h <<_ACEOF
15727 #define STACK_DIRECTION $ac_cv_c_stack_direction
15734 if test x"$ac_cv_func_alloca_works" != xyes; then
15735 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15736 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15737 { (exit 1); exit 1; }; }
15740 # fmod, logb, and frexp are found in -lm on most systems.
15741 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15743 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15744 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15745 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15746 echo $ECHO_N "(cached
) $ECHO_C" >&6
15748 ac_check_lib_save_LIBS=$LIBS
15750 cat >conftest.$ac_ext <<_ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15757 /* Override any GCC internal prototype to avoid an error.
15758 Use char because int might match the return type of a GCC
15759 builtin and then its argument prototype would still apply. */
15772 rm -f conftest.$ac_objext conftest$ac_exeext
15773 if { (ac_try="$ac_link"
15774 case "(($ac_try" in
15775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15776 *) ac_try_echo=$ac_try;;
15778 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15779 (eval "$ac_link") 2>conftest.er1
15781 grep -v '^ *+' conftest.er1 >conftest.err
15783 cat conftest.err >&5
15784 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15785 (exit $ac_status); } && {
15786 test -z "$ac_c_werror_flag" ||
15787 test ! -s conftest.err
15788 } && test -s conftest$ac_exeext &&
15789 $as_test_x conftest$ac_exeext; then
15790 ac_cv_lib_m_sqrt=yes
15792 echo "$as_me: failed program was
:" >&5
15793 sed 's/^/| /' conftest.$ac_ext >&5
15795 ac_cv_lib_m_sqrt=no
15798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15799 conftest$ac_exeext conftest.$ac_ext
15800 LIBS=$ac_check_lib_save_LIBS
15802 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15803 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15804 if test $ac_cv_lib_m_sqrt = yes; then
15805 cat >>confdefs.h <<_ACEOF
15806 #define HAVE_LIBM 1
15814 # Check for mail-locking functions in a "mail" library. Probably this should
15815 # have the same check as for liblockfile below.
15817 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15818 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15819 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15820 echo $ECHO_N "(cached
) $ECHO_C" >&6
15822 ac_check_lib_save_LIBS=$LIBS
15823 LIBS="-lmail $LIBS"
15824 cat >conftest.$ac_ext <<_ACEOF
15827 cat confdefs.h >>conftest.$ac_ext
15828 cat >>conftest.$ac_ext <<_ACEOF
15829 /* end confdefs.h. */
15831 /* Override any GCC internal prototype to avoid an error.
15832 Use char because int might match the return type of a GCC
15833 builtin and then its argument prototype would still apply. */
15841 return maillock ();
15846 rm -f conftest.$ac_objext conftest$ac_exeext
15847 if { (ac_try="$ac_link"
15848 case "(($ac_try" in
15849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15850 *) ac_try_echo=$ac_try;;
15852 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15853 (eval "$ac_link") 2>conftest.er1
15855 grep -v '^ *+' conftest.er1 >conftest.err
15857 cat conftest.err >&5
15858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15859 (exit $ac_status); } && {
15860 test -z "$ac_c_werror_flag" ||
15861 test ! -s conftest.err
15862 } && test -s conftest$ac_exeext &&
15863 $as_test_x conftest$ac_exeext; then
15864 ac_cv_lib_mail_maillock=yes
15866 echo "$as_me: failed program was
:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15869 ac_cv_lib_mail_maillock=no
15872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15873 conftest$ac_exeext conftest.$ac_ext
15874 LIBS=$ac_check_lib_save_LIBS
15876 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15877 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15878 if test $ac_cv_lib_mail_maillock = yes; then
15879 cat >>confdefs.h <<_ACEOF
15880 #define HAVE_LIBMAIL 1
15883 LIBS="-lmail $LIBS"
15888 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15889 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15890 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15891 echo $ECHO_N "(cached
) $ECHO_C" >&6
15893 ac_check_lib_save_LIBS=$LIBS
15894 LIBS="-llockfile $LIBS"
15895 cat >conftest.$ac_ext <<_ACEOF
15898 cat confdefs.h >>conftest.$ac_ext
15899 cat >>conftest.$ac_ext <<_ACEOF
15900 /* end confdefs.h. */
15902 /* Override any GCC internal prototype to avoid an error.
15903 Use char because int might match the return type of a GCC
15904 builtin and then its argument prototype would still apply. */
15912 return maillock ();
15917 rm -f conftest.$ac_objext conftest$ac_exeext
15918 if { (ac_try="$ac_link"
15919 case "(($ac_try" in
15920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921 *) ac_try_echo=$ac_try;;
15923 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15924 (eval "$ac_link") 2>conftest.er1
15926 grep -v '^ *+' conftest.er1 >conftest.err
15928 cat conftest.err >&5
15929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15930 (exit $ac_status); } && {
15931 test -z "$ac_c_werror_flag" ||
15932 test ! -s conftest.err
15933 } && test -s conftest$ac_exeext &&
15934 $as_test_x conftest$ac_exeext; then
15935 ac_cv_lib_lockfile_maillock=yes
15937 echo "$as_me: failed program was
:" >&5
15938 sed 's/^/| /' conftest.$ac_ext >&5
15940 ac_cv_lib_lockfile_maillock=no
15943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15944 conftest$ac_exeext conftest.$ac_ext
15945 LIBS=$ac_check_lib_save_LIBS
15947 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15948 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15949 if test $ac_cv_lib_lockfile_maillock = yes; then
15950 cat >>confdefs.h <<_ACEOF
15951 #define HAVE_LIBLOCKFILE 1
15954 LIBS="-llockfile $LIBS"
15958 # If we have the shared liblockfile, assume we must use it for mail
15959 # locking (e.g. Debian). If we couldn't link against liblockfile
15960 # (no liblockfile.a installed), ensure that we don't need to.
15961 if test "$ac_cv_lib_lockfile_maillock" = no; then
15962 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15963 set dummy liblockfile.so; ac_word=$2
15964 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15965 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15966 if test "${ac_cv_prog_liblockfile+set}" = set; then
15967 echo $ECHO_N "(cached
) $ECHO_C" >&6
15969 if test -n "$liblockfile"; then
15970 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15973 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15974 for as_dir in $as_dummy
15977 test -z "$as_dir" && as_dir=.
15978 for ac_exec_ext in '' $ac_executable_extensions; do
15979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15980 ac_cv_prog_liblockfile="yes"
15981 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15988 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15991 liblockfile=$ac_cv_prog_liblockfile
15992 if test -n "$liblockfile"; then
15993 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15994 echo "${ECHO_T}$liblockfile" >&6; }
15996 { echo "$as_me:$LINENO: result
: no
" >&5
15997 echo "${ECHO_T}no
" >&6; }
16001 if test $ac_cv_prog_liblockfile = yes; then
16002 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
16003 This probably means that movemail could lose mail.
16004 There may be a \`development' package to
install containing liblockfile.
" >&5
16005 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
16006 This probably means that movemail could lose mail.
16007 There may be a \`development' package to
install containing liblockfile.
" >&2;}
16008 { (exit 1); exit 1; }; }
16013 for ac_func in touchlock
16015 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16016 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16017 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16018 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16019 echo $ECHO_N "(cached
) $ECHO_C" >&6
16021 cat >conftest.$ac_ext <<_ACEOF
16024 cat confdefs.h >>conftest.$ac_ext
16025 cat >>conftest.$ac_ext <<_ACEOF
16026 /* end confdefs.h. */
16027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16029 #define $ac_func innocuous_$ac_func
16031 /* System header to define __stub macros and hopefully few prototypes,
16032 which can conflict with char $ac_func (); below.
16033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16034 <limits.h> exists even on freestanding compilers. */
16037 # include <limits.h>
16039 # include <assert.h>
16044 /* Override any GCC internal prototype to avoid an error.
16045 Use char because int might match the return type of a GCC
16046 builtin and then its argument prototype would still apply. */
16051 /* The GNU C library defines this for functions which it implements
16052 to always fail with ENOSYS. Some functions are actually named
16053 something starting with __ and the normal name is an alias. */
16054 #if defined __stub_$ac_func || defined __stub___$ac_func
16061 return $ac_func ();
16066 rm -f conftest.$ac_objext conftest$ac_exeext
16067 if { (ac_try="$ac_link"
16068 case "(($ac_try" in
16069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16070 *) ac_try_echo=$ac_try;;
16072 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16073 (eval "$ac_link") 2>conftest.er1
16075 grep -v '^ *+' conftest.er1 >conftest.err
16077 cat conftest.err >&5
16078 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16079 (exit $ac_status); } && {
16080 test -z "$ac_c_werror_flag" ||
16081 test ! -s conftest.err
16082 } && test -s conftest$ac_exeext &&
16083 $as_test_x conftest$ac_exeext; then
16084 eval "$as_ac_var=yes"
16086 echo "$as_me: failed program was
:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16089 eval "$as_ac_var=no
"
16092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16093 conftest$ac_exeext conftest.$ac_ext
16095 ac_res=`eval echo '${'$as_ac_var'}'`
16096 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16097 echo "${ECHO_T}$ac_res" >&6; }
16098 if test `eval echo '${'$as_ac_var'}'` = yes; then
16099 cat >>confdefs.h <<_ACEOF
16100 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16107 for ac_header in maillock.h
16109 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16110 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16111 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16112 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16113 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16114 echo $ECHO_N "(cached
) $ECHO_C" >&6
16116 ac_res=`eval echo '${'$as_ac_Header'}'`
16117 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16118 echo "${ECHO_T}$ac_res" >&6; }
16120 # Is the header compilable?
16121 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16122 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16123 cat >conftest.$ac_ext <<_ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 $ac_includes_default
16130 #include <$ac_header>
16132 rm -f conftest.$ac_objext
16133 if { (ac_try="$ac_compile"
16134 case "(($ac_try" in
16135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16136 *) ac_try_echo=$ac_try;;
16138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16139 (eval "$ac_compile") 2>conftest.er1
16141 grep -v '^ *+' conftest.er1 >conftest.err
16143 cat conftest.err >&5
16144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16145 (exit $ac_status); } && {
16146 test -z "$ac_c_werror_flag" ||
16147 test ! -s conftest.err
16148 } && test -s conftest.$ac_objext; then
16149 ac_header_compiler=yes
16151 echo "$as_me: failed program was
:" >&5
16152 sed 's/^/| /' conftest.$ac_ext >&5
16154 ac_header_compiler=no
16157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16158 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16159 echo "${ECHO_T}$ac_header_compiler" >&6; }
16161 # Is the header present?
16162 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16163 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16164 cat >conftest.$ac_ext <<_ACEOF
16167 cat confdefs.h >>conftest.$ac_ext
16168 cat >>conftest.$ac_ext <<_ACEOF
16169 /* end confdefs.h. */
16170 #include <$ac_header>
16172 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16173 case "(($ac_try" in
16174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16175 *) ac_try_echo=$ac_try;;
16177 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16178 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16180 grep -v '^ *+' conftest.er1 >conftest.err
16182 cat conftest.err >&5
16183 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16184 (exit $ac_status); } >/dev/null && {
16185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16186 test ! -s conftest.err
16188 ac_header_preproc=yes
16190 echo "$as_me: failed program was
:" >&5
16191 sed 's/^/| /' conftest.$ac_ext >&5
16193 ac_header_preproc=no
16196 rm -f conftest.err conftest.$ac_ext
16197 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16198 echo "${ECHO_T}$ac_header_preproc" >&6; }
16200 # So? What about this header?
16201 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16203 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16204 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16205 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16206 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16207 ac_header_preproc=yes
16210 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16211 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16212 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16213 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16214 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16215 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16216 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16217 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16218 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16219 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16220 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16221 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16225 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16226 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16227 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16228 echo $ECHO_N "(cached
) $ECHO_C" >&6
16230 eval "$as_ac_Header=\
$ac_header_preproc"
16232 ac_res=`eval echo '${'$as_ac_Header'}'`
16233 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16234 echo "${ECHO_T}$ac_res" >&6; }
16237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16238 cat >>confdefs.h <<_ACEOF
16239 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16316 for ac_func in gethostname getdomainname dup2 \
16317 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16318 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
16319 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16320 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16321 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16322 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16323 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16324 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16326 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16327 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16328 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16329 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16330 echo $ECHO_N "(cached
) $ECHO_C" >&6
16332 cat >conftest.$ac_ext <<_ACEOF
16335 cat confdefs.h >>conftest.$ac_ext
16336 cat >>conftest.$ac_ext <<_ACEOF
16337 /* end confdefs.h. */
16338 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16340 #define $ac_func innocuous_$ac_func
16342 /* System header to define __stub macros and hopefully few prototypes,
16343 which can conflict with char $ac_func (); below.
16344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16345 <limits.h> exists even on freestanding compilers. */
16348 # include <limits.h>
16350 # include <assert.h>
16355 /* Override any GCC internal prototype to avoid an error.
16356 Use char because int might match the return type of a GCC
16357 builtin and then its argument prototype would still apply. */
16362 /* The GNU C library defines this for functions which it implements
16363 to always fail with ENOSYS. Some functions are actually named
16364 something starting with __ and the normal name is an alias. */
16365 #if defined __stub_$ac_func || defined __stub___$ac_func
16372 return $ac_func ();
16377 rm -f conftest.$ac_objext conftest$ac_exeext
16378 if { (ac_try="$ac_link"
16379 case "(($ac_try" in
16380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16381 *) ac_try_echo=$ac_try;;
16383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16384 (eval "$ac_link") 2>conftest.er1
16386 grep -v '^ *+' conftest.er1 >conftest.err
16388 cat conftest.err >&5
16389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16390 (exit $ac_status); } && {
16391 test -z "$ac_c_werror_flag" ||
16392 test ! -s conftest.err
16393 } && test -s conftest$ac_exeext &&
16394 $as_test_x conftest$ac_exeext; then
16395 eval "$as_ac_var=yes"
16397 echo "$as_me: failed program was
:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16400 eval "$as_ac_var=no
"
16403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16404 conftest$ac_exeext conftest.$ac_ext
16406 ac_res=`eval echo '${'$as_ac_var'}'`
16407 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16408 echo "${ECHO_T}$ac_res" >&6; }
16409 if test `eval echo '${'$as_ac_var'}'` = yes; then
16410 cat >>confdefs.h <<_ACEOF
16411 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16419 for ac_header in sys/un.h
16421 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16422 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16423 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16424 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16425 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16426 echo $ECHO_N "(cached
) $ECHO_C" >&6
16428 ac_res=`eval echo '${'$as_ac_Header'}'`
16429 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16430 echo "${ECHO_T}$ac_res" >&6; }
16432 # Is the header compilable?
16433 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16434 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16435 cat >conftest.$ac_ext <<_ACEOF
16438 cat confdefs.h >>conftest.$ac_ext
16439 cat >>conftest.$ac_ext <<_ACEOF
16440 /* end confdefs.h. */
16441 $ac_includes_default
16442 #include <$ac_header>
16444 rm -f conftest.$ac_objext
16445 if { (ac_try="$ac_compile"
16446 case "(($ac_try" in
16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448 *) ac_try_echo=$ac_try;;
16450 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16451 (eval "$ac_compile") 2>conftest.er1
16453 grep -v '^ *+' conftest.er1 >conftest.err
16455 cat conftest.err >&5
16456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16457 (exit $ac_status); } && {
16458 test -z "$ac_c_werror_flag" ||
16459 test ! -s conftest.err
16460 } && test -s conftest.$ac_objext; then
16461 ac_header_compiler=yes
16463 echo "$as_me: failed program was
:" >&5
16464 sed 's/^/| /' conftest.$ac_ext >&5
16466 ac_header_compiler=no
16469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16470 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16471 echo "${ECHO_T}$ac_header_compiler" >&6; }
16473 # Is the header present?
16474 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16475 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16476 cat >conftest.$ac_ext <<_ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16482 #include <$ac_header>
16484 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16485 case "(($ac_try" in
16486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487 *) ac_try_echo=$ac_try;;
16489 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16490 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16492 grep -v '^ *+' conftest.er1 >conftest.err
16494 cat conftest.err >&5
16495 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16496 (exit $ac_status); } >/dev/null && {
16497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16498 test ! -s conftest.err
16500 ac_header_preproc=yes
16502 echo "$as_me: failed program was
:" >&5
16503 sed 's/^/| /' conftest.$ac_ext >&5
16505 ac_header_preproc=no
16508 rm -f conftest.err conftest.$ac_ext
16509 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16510 echo "${ECHO_T}$ac_header_preproc" >&6; }
16512 # So? What about this header?
16513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16515 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16516 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16517 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16518 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16519 ac_header_preproc=yes
16522 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16523 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16524 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16525 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16526 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16527 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16528 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16529 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16530 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16531 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16532 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16533 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16537 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16538 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16539 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16540 echo $ECHO_N "(cached
) $ECHO_C" >&6
16542 eval "$as_ac_Header=\
$ac_header_preproc"
16544 ac_res=`eval echo '${'$as_ac_Header'}'`
16545 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16546 echo "${ECHO_T}$ac_res" >&6; }
16549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16550 cat >>confdefs.h <<_ACEOF
16551 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16563 for ac_header in $ac_header_list
16565 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16566 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16567 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16568 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16569 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16570 echo $ECHO_N "(cached
) $ECHO_C" >&6
16572 ac_res=`eval echo '${'$as_ac_Header'}'`
16573 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16574 echo "${ECHO_T}$ac_res" >&6; }
16576 # Is the header compilable?
16577 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16578 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16579 cat >conftest.$ac_ext <<_ACEOF
16582 cat confdefs.h >>conftest.$ac_ext
16583 cat >>conftest.$ac_ext <<_ACEOF
16584 /* end confdefs.h. */
16585 $ac_includes_default
16586 #include <$ac_header>
16588 rm -f conftest.$ac_objext
16589 if { (ac_try="$ac_compile"
16590 case "(($ac_try" in
16591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16592 *) ac_try_echo=$ac_try;;
16594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16595 (eval "$ac_compile") 2>conftest.er1
16597 grep -v '^ *+' conftest.er1 >conftest.err
16599 cat conftest.err >&5
16600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16601 (exit $ac_status); } && {
16602 test -z "$ac_c_werror_flag" ||
16603 test ! -s conftest.err
16604 } && test -s conftest.$ac_objext; then
16605 ac_header_compiler=yes
16607 echo "$as_me: failed program was
:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16610 ac_header_compiler=no
16613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16615 echo "${ECHO_T}$ac_header_compiler" >&6; }
16617 # Is the header present?
16618 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16619 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16620 cat >conftest.$ac_ext <<_ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h. */
16626 #include <$ac_header>
16628 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16629 case "(($ac_try" in
16630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631 *) ac_try_echo=$ac_try;;
16633 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16634 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16636 grep -v '^ *+' conftest.er1 >conftest.err
16638 cat conftest.err >&5
16639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16640 (exit $ac_status); } >/dev/null && {
16641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16642 test ! -s conftest.err
16644 ac_header_preproc=yes
16646 echo "$as_me: failed program was
:" >&5
16647 sed 's/^/| /' conftest.$ac_ext >&5
16649 ac_header_preproc=no
16652 rm -f conftest.err conftest.$ac_ext
16653 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16654 echo "${ECHO_T}$ac_header_preproc" >&6; }
16656 # So? What about this header?
16657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16659 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16660 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16661 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16663 ac_header_preproc=yes
16666 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16667 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16668 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16669 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16670 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16671 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16672 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16673 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16674 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16676 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16677 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16681 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16682 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16683 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16684 echo $ECHO_N "(cached
) $ECHO_C" >&6
16686 eval "$as_ac_Header=\
$ac_header_preproc"
16688 ac_res=`eval echo '${'$as_ac_Header'}'`
16689 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16690 echo "${ECHO_T}$ac_res" >&6; }
16693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16694 cat >>confdefs.h <<_ACEOF
16695 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16710 for ac_func in $ac_func_list
16712 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16713 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16714 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16715 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16716 echo $ECHO_N "(cached
) $ECHO_C" >&6
16718 cat >conftest.$ac_ext <<_ACEOF
16721 cat confdefs.h >>conftest.$ac_ext
16722 cat >>conftest.$ac_ext <<_ACEOF
16723 /* end confdefs.h. */
16724 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16725 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16726 #define $ac_func innocuous_$ac_func
16728 /* System header to define __stub macros and hopefully few prototypes,
16729 which can conflict with char $ac_func (); below.
16730 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16731 <limits.h> exists even on freestanding compilers. */
16734 # include <limits.h>
16736 # include <assert.h>
16741 /* Override any GCC internal prototype to avoid an error.
16742 Use char because int might match the return type of a GCC
16743 builtin and then its argument prototype would still apply. */
16748 /* The GNU C library defines this for functions which it implements
16749 to always fail with ENOSYS. Some functions are actually named
16750 something starting with __ and the normal name is an alias. */
16751 #if defined __stub_$ac_func || defined __stub___$ac_func
16758 return $ac_func ();
16763 rm -f conftest.$ac_objext conftest$ac_exeext
16764 if { (ac_try="$ac_link"
16765 case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16769 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_link") 2>conftest.er1
16772 grep -v '^ *+' conftest.er1 >conftest.err
16774 cat conftest.err >&5
16775 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16776 (exit $ac_status); } && {
16777 test -z "$ac_c_werror_flag" ||
16778 test ! -s conftest.err
16779 } && test -s conftest$ac_exeext &&
16780 $as_test_x conftest$ac_exeext; then
16781 eval "$as_ac_var=yes"
16783 echo "$as_me: failed program was
:" >&5
16784 sed 's/^/| /' conftest.$ac_ext >&5
16786 eval "$as_ac_var=no
"
16789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16790 conftest$ac_exeext conftest.$ac_ext
16792 ac_res=`eval echo '${'$as_ac_var'}'`
16793 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16794 echo "${ECHO_T}$ac_res" >&6; }
16795 if test `eval echo '${'$as_ac_var'}'` = yes; then
16796 cat >>confdefs.h <<_ACEOF
16797 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16819 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16820 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16821 if test "${ac_cv_func_working_mktime+set}" = set; then
16822 echo $ECHO_N "(cached
) $ECHO_C" >&6
16824 if test "$cross_compiling" = yes; then
16825 ac_cv_func_working_mktime=no
16827 cat >conftest.$ac_ext <<_ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833 /* Test program from Paul Eggert and Tony Leneis. */
16834 #ifdef TIME_WITH_SYS_TIME
16835 # include <sys/time.h>
16838 # ifdef HAVE_SYS_TIME_H
16839 # include <sys/time.h>
16845 #include <stdlib.h>
16847 #ifdef HAVE_UNISTD_H
16848 # include <unistd.h>
16852 # define alarm(X) /* empty */
16855 /* Work around redefinition to rpl_putenv by other config tests. */
16858 static time_t time_t_max;
16859 static time_t time_t_min;
16861 /* Values we'll use to set the TZ environment variable. */
16862 static char *tz_strings[] = {
16863 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16864 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16866 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16868 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16869 Based on a problem report from Andreas Jaeger. */
16871 spring_forward_gap ()
16873 /* glibc (up to about 1998-10-07) failed this test. */
16876 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16877 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16878 on systems that don't support the Olson extension, or don't have the
16879 full zoneinfo tables installed. */
16880 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16889 return mktime (&tm) != (time_t) -1;
16897 return ! (lt = localtime (&now)) || mktime (lt) == now;
16904 return (mktime_test1 (now)
16905 && mktime_test1 ((time_t) (time_t_max - now))
16906 && mktime_test1 ((time_t) (time_t_min + now)));
16912 /* Based on code from Ariel Faigon. */
16922 return tm.tm_mon == 2 && tm.tm_mday == 31;
16931 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16932 now = mktime (&tm);
16933 if (now != (time_t) -1)
16935 struct tm *lt = localtime (&now);
16937 && lt->tm_year == tm.tm_year
16938 && lt->tm_mon == tm.tm_mon
16939 && lt->tm_mday == tm.tm_mday
16940 && lt->tm_hour == tm.tm_hour
16941 && lt->tm_min == tm.tm_min
16942 && lt->tm_sec == tm.tm_sec
16943 && lt->tm_yday == tm.tm_yday
16944 && lt->tm_wday == tm.tm_wday
16945 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16946 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16955 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16956 ignoring leap seconds. */
16957 unsigned long int answer = 2527315200UL;
16961 tm.tm_year = 2050 - 1900;
16964 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16967 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16968 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16969 on systems that don't support the Olson extension, or don't have the
16970 full zoneinfo tables installed. */
16971 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16975 /* Check that the result is either a failure, or close enough
16976 to the correct answer that we can assume the discrepancy is
16977 due to leap seconds. */
16978 return (t == (time_t) -1
16979 || (0 < t && answer - 120 <= t && t <= answer + 120));
16988 /* This test makes some buggy mktime implementations loop.
16989 Give up after 60 seconds; a mktime slower than that
16990 isn't worth using anyway. */
16993 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16996 if ((time_t) -1 < 0)
16997 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16999 delta = time_t_max / 997; /* a suitable prime number */
17000 for (i = 0; i < N_STRINGS; i++)
17003 putenv (tz_strings[i]);
17005 for (t = 0; t <= time_t_max - delta; t += delta)
17006 if (! mktime_test (t))
17008 if (! (mktime_test ((time_t) 1)
17009 && mktime_test ((time_t) (60 * 60))
17010 && mktime_test ((time_t) (60 * 60 * 24))))
17013 for (j = 1; 0 < j; j *= 2)
17014 if (! bigtime_test (j))
17016 if (! bigtime_test (j - 1))
17019 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17022 rm -f conftest$ac_exeext
17023 if { (ac_try="$ac_link"
17024 case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17029 (eval "$ac_link") 2>&5
17031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17033 { (case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_try") 2>&5
17040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17041 (exit $ac_status); }; }; then
17042 ac_cv_func_working_mktime=yes
17044 echo "$as_me: program exited with status
$ac_status" >&5
17045 echo "$as_me: failed program was
:" >&5
17046 sed 's/^/| /' conftest.$ac_ext >&5
17048 ( exit $ac_status )
17049 ac_cv_func_working_mktime=no
17051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17056 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
17057 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17058 if test $ac_cv_func_working_mktime = no; then
17059 case " $LIBOBJS " in
17060 *" mktime.
$ac_objext "* ) ;;
17061 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
17067 if test "$ac_cv_func_working_mktime" = no; then
17069 cat >>confdefs.h <<\_ACEOF
17070 #define BROKEN_MKTIME 1
17075 ac_have_func=no # yes means we've found a way to get the load average.
17077 # Make sure getloadavg.c is where it belongs, at configure-time.
17078 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
17079 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
17080 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
17081 { (exit 1); exit 1; }; }
17085 # Check for getloadavg, but be sure not to touch the cache variable.
17086 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
17087 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
17088 if test "${ac_cv_func_getloadavg+set}" = set; then
17089 echo $ECHO_N "(cached
) $ECHO_C" >&6
17091 cat >conftest.$ac_ext <<_ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h. */
17097 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17099 #define getloadavg innocuous_getloadavg
17101 /* System header to define __stub macros and hopefully few prototypes,
17102 which can conflict with char getloadavg (); below.
17103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17104 <limits.h> exists even on freestanding compilers. */
17107 # include <limits.h>
17109 # include <assert.h>
17114 /* Override any GCC internal prototype to avoid an error.
17115 Use char because int might match the return type of a GCC
17116 builtin and then its argument prototype would still apply. */
17120 char getloadavg ();
17121 /* The GNU C library defines this for functions which it implements
17122 to always fail with ENOSYS. Some functions are actually named
17123 something starting with __ and the normal name is an alias. */
17124 #if defined __stub_getloadavg || defined __stub___getloadavg
17131 return getloadavg ();
17136 rm -f conftest.$ac_objext conftest$ac_exeext
17137 if { (ac_try="$ac_link"
17138 case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17143 (eval "$ac_link") 2>conftest.er1
17145 grep -v '^ *+' conftest.er1 >conftest.err
17147 cat conftest.err >&5
17148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17149 (exit $ac_status); } && {
17150 test -z "$ac_c_werror_flag" ||
17151 test ! -s conftest.err
17152 } && test -s conftest$ac_exeext &&
17153 $as_test_x conftest$ac_exeext; then
17154 ac_cv_func_getloadavg=yes
17156 echo "$as_me: failed program was
:" >&5
17157 sed 's/^/| /' conftest.$ac_ext >&5
17159 ac_cv_func_getloadavg=no
17162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17163 conftest$ac_exeext conftest.$ac_ext
17165 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
17166 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17167 if test $ac_cv_func_getloadavg = yes; then
17172 ) && ac_have_func=yes
17174 # On HPUX9, an unprivileged user can get load averages through this function.
17176 for ac_func in pstat_getdynamic
17178 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17179 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17180 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17181 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17182 echo $ECHO_N "(cached
) $ECHO_C" >&6
17184 cat >conftest.$ac_ext <<_ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17192 #define $ac_func innocuous_$ac_func
17194 /* System header to define __stub macros and hopefully few prototypes,
17195 which can conflict with char $ac_func (); below.
17196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17197 <limits.h> exists even on freestanding compilers. */
17200 # include <limits.h>
17202 # include <assert.h>
17207 /* Override any GCC internal prototype to avoid an error.
17208 Use char because int might match the return type of a GCC
17209 builtin and then its argument prototype would still apply. */
17214 /* The GNU C library defines this for functions which it implements
17215 to always fail with ENOSYS. Some functions are actually named
17216 something starting with __ and the normal name is an alias. */
17217 #if defined __stub_$ac_func || defined __stub___$ac_func
17224 return $ac_func ();
17229 rm -f conftest.$ac_objext conftest$ac_exeext
17230 if { (ac_try="$ac_link"
17231 case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17235 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17236 (eval "$ac_link") 2>conftest.er1
17238 grep -v '^ *+' conftest.er1 >conftest.err
17240 cat conftest.err >&5
17241 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17242 (exit $ac_status); } && {
17243 test -z "$ac_c_werror_flag" ||
17244 test ! -s conftest.err
17245 } && test -s conftest$ac_exeext &&
17246 $as_test_x conftest$ac_exeext; then
17247 eval "$as_ac_var=yes"
17249 echo "$as_me: failed program was
:" >&5
17250 sed 's/^/| /' conftest.$ac_ext >&5
17252 eval "$as_ac_var=no
"
17255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17256 conftest$ac_exeext conftest.$ac_ext
17258 ac_res=`eval echo '${'$as_ac_var'}'`
17259 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17260 echo "${ECHO_T}$ac_res" >&6; }
17261 if test `eval echo '${'$as_ac_var'}'` = yes; then
17262 cat >>confdefs.h <<_ACEOF
17263 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17270 # Solaris has libkstat which does not require root.
17272 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17273 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17274 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17275 echo $ECHO_N "(cached
) $ECHO_C" >&6
17277 ac_check_lib_save_LIBS=$LIBS
17278 LIBS="-lkstat $LIBS"
17279 cat >conftest.$ac_ext <<_ACEOF
17282 cat confdefs.h >>conftest.$ac_ext
17283 cat >>conftest.$ac_ext <<_ACEOF
17284 /* end confdefs.h. */
17286 /* Override any GCC internal prototype to avoid an error.
17287 Use char because int might match the return type of a GCC
17288 builtin and then its argument prototype would still apply. */
17292 char kstat_open ();
17296 return kstat_open ();
17301 rm -f conftest.$ac_objext conftest$ac_exeext
17302 if { (ac_try="$ac_link"
17303 case "(($ac_try" in
17304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17305 *) ac_try_echo=$ac_try;;
17307 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17308 (eval "$ac_link") 2>conftest.er1
17310 grep -v '^ *+' conftest.er1 >conftest.err
17312 cat conftest.err >&5
17313 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17314 (exit $ac_status); } && {
17315 test -z "$ac_c_werror_flag" ||
17316 test ! -s conftest.err
17317 } && test -s conftest$ac_exeext &&
17318 $as_test_x conftest$ac_exeext; then
17319 ac_cv_lib_kstat_kstat_open=yes
17321 echo "$as_me: failed program was
:" >&5
17322 sed 's/^/| /' conftest.$ac_ext >&5
17324 ac_cv_lib_kstat_kstat_open=no
17327 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17328 conftest$ac_exeext conftest.$ac_ext
17329 LIBS=$ac_check_lib_save_LIBS
17331 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17332 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17333 if test $ac_cv_lib_kstat_kstat_open = yes; then
17334 cat >>confdefs.h <<_ACEOF
17335 #define HAVE_LIBKSTAT 1
17338 LIBS="-lkstat $LIBS"
17342 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17344 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17345 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17346 # to get the right answer into the cache.
17347 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17348 if test $ac_have_func = no; then
17349 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17350 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17351 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17352 echo $ECHO_N "(cached
) $ECHO_C" >&6
17354 ac_check_lib_save_LIBS=$LIBS
17356 cat >conftest.$ac_ext <<_ACEOF
17359 cat confdefs.h >>conftest.$ac_ext
17360 cat >>conftest.$ac_ext <<_ACEOF
17361 /* end confdefs.h. */
17363 /* Override any GCC internal prototype to avoid an error.
17364 Use char because int might match the return type of a GCC
17365 builtin and then its argument prototype would still apply. */
17373 return elf_begin ();
17378 rm -f conftest.$ac_objext conftest$ac_exeext
17379 if { (ac_try="$ac_link"
17380 case "(($ac_try" in
17381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382 *) ac_try_echo=$ac_try;;
17384 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17385 (eval "$ac_link") 2>conftest.er1
17387 grep -v '^ *+' conftest.er1 >conftest.err
17389 cat conftest.err >&5
17390 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17391 (exit $ac_status); } && {
17392 test -z "$ac_c_werror_flag" ||
17393 test ! -s conftest.err
17394 } && test -s conftest$ac_exeext &&
17395 $as_test_x conftest$ac_exeext; then
17396 ac_cv_lib_elf_elf_begin=yes
17398 echo "$as_me: failed program was
:" >&5
17399 sed 's/^/| /' conftest.$ac_ext >&5
17401 ac_cv_lib_elf_elf_begin=no
17404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17405 conftest$ac_exeext conftest.$ac_ext
17406 LIBS=$ac_check_lib_save_LIBS
17408 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17409 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17410 if test $ac_cv_lib_elf_elf_begin = yes; then
17415 if test $ac_have_func = no; then
17416 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17417 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17418 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17419 echo $ECHO_N "(cached
) $ECHO_C" >&6
17421 ac_check_lib_save_LIBS=$LIBS
17423 cat >conftest.$ac_ext <<_ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h. */
17430 /* Override any GCC internal prototype to avoid an error.
17431 Use char because int might match the return type of a GCC
17432 builtin and then its argument prototype would still apply. */
17440 return kvm_open ();
17445 rm -f conftest.$ac_objext conftest$ac_exeext
17446 if { (ac_try="$ac_link"
17447 case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17451 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17452 (eval "$ac_link") 2>conftest.er1
17454 grep -v '^ *+' conftest.er1 >conftest.err
17456 cat conftest.err >&5
17457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17458 (exit $ac_status); } && {
17459 test -z "$ac_c_werror_flag" ||
17460 test ! -s conftest.err
17461 } && test -s conftest$ac_exeext &&
17462 $as_test_x conftest$ac_exeext; then
17463 ac_cv_lib_kvm_kvm_open=yes
17465 echo "$as_me: failed program was
:" >&5
17466 sed 's/^/| /' conftest.$ac_ext >&5
17468 ac_cv_lib_kvm_kvm_open=no
17471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17472 conftest$ac_exeext conftest.$ac_ext
17473 LIBS=$ac_check_lib_save_LIBS
17475 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17476 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17477 if test $ac_cv_lib_kvm_kvm_open = yes; then
17481 # Check for the 4.4BSD definition of getloadavg.
17482 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17483 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17484 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17485 echo $ECHO_N "(cached
) $ECHO_C" >&6
17487 ac_check_lib_save_LIBS=$LIBS
17488 LIBS="-lutil $LIBS"
17489 cat >conftest.$ac_ext <<_ACEOF
17492 cat confdefs.h >>conftest.$ac_ext
17493 cat >>conftest.$ac_ext <<_ACEOF
17494 /* end confdefs.h. */
17496 /* Override any GCC internal prototype to avoid an error.
17497 Use char because int might match the return type of a GCC
17498 builtin and then its argument prototype would still apply. */
17502 char getloadavg ();
17506 return getloadavg ();
17511 rm -f conftest.$ac_objext conftest$ac_exeext
17512 if { (ac_try="$ac_link"
17513 case "(($ac_try" in
17514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17515 *) ac_try_echo=$ac_try;;
17517 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17518 (eval "$ac_link") 2>conftest.er1
17520 grep -v '^ *+' conftest.er1 >conftest.err
17522 cat conftest.err >&5
17523 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17524 (exit $ac_status); } && {
17525 test -z "$ac_c_werror_flag" ||
17526 test ! -s conftest.err
17527 } && test -s conftest$ac_exeext &&
17528 $as_test_x conftest$ac_exeext; then
17529 ac_cv_lib_util_getloadavg=yes
17531 echo "$as_me: failed program was
:" >&5
17532 sed 's/^/| /' conftest.$ac_ext >&5
17534 ac_cv_lib_util_getloadavg=no
17537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17538 conftest$ac_exeext conftest.$ac_ext
17539 LIBS=$ac_check_lib_save_LIBS
17541 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17542 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17543 if test $ac_cv_lib_util_getloadavg = yes; then
17544 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17549 if test $ac_have_func = no; then
17550 # There is a commonly available library for RS/6000 AIX.
17551 # Since it is not a standard part of AIX, it might be installed locally.
17552 ac_getloadavg_LIBS=$LIBS
17553 LIBS="-L/usr
/local
/lib
$LIBS"
17554 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17555 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17556 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17557 echo $ECHO_N "(cached
) $ECHO_C" >&6
17559 ac_check_lib_save_LIBS=$LIBS
17560 LIBS="-lgetloadavg $LIBS"
17561 cat >conftest.$ac_ext <<_ACEOF
17564 cat confdefs.h >>conftest.$ac_ext
17565 cat >>conftest.$ac_ext <<_ACEOF
17566 /* end confdefs.h. */
17568 /* Override any GCC internal prototype to avoid an error.
17569 Use char because int might match the return type of a GCC
17570 builtin and then its argument prototype would still apply. */
17574 char getloadavg ();
17578 return getloadavg ();
17583 rm -f conftest.$ac_objext conftest$ac_exeext
17584 if { (ac_try="$ac_link"
17585 case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17590 (eval "$ac_link") 2>conftest.er1
17592 grep -v '^ *+' conftest.er1 >conftest.err
17594 cat conftest.err >&5
17595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17596 (exit $ac_status); } && {
17597 test -z "$ac_c_werror_flag" ||
17598 test ! -s conftest.err
17599 } && test -s conftest$ac_exeext &&
17600 $as_test_x conftest$ac_exeext; then
17601 ac_cv_lib_getloadavg_getloadavg=yes
17603 echo "$as_me: failed program was
:" >&5
17604 sed 's/^/| /' conftest.$ac_ext >&5
17606 ac_cv_lib_getloadavg_getloadavg=no
17609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17610 conftest$ac_exeext conftest.$ac_ext
17611 LIBS=$ac_check_lib_save_LIBS
17613 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17614 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17615 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17616 LIBS="-lgetloadavg $LIBS"
17618 LIBS=$ac_getloadavg_LIBS
17623 # Make sure it is really in the library, if we think we found it,
17624 # otherwise set up the replacement function.
17626 for ac_func in getloadavg
17628 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17629 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17630 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17631 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17632 echo $ECHO_N "(cached
) $ECHO_C" >&6
17634 cat >conftest.$ac_ext <<_ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17642 #define $ac_func innocuous_$ac_func
17644 /* System header to define __stub macros and hopefully few prototypes,
17645 which can conflict with char $ac_func (); below.
17646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17647 <limits.h> exists even on freestanding compilers. */
17650 # include <limits.h>
17652 # include <assert.h>
17657 /* Override any GCC internal prototype to avoid an error.
17658 Use char because int might match the return type of a GCC
17659 builtin and then its argument prototype would still apply. */
17664 /* The GNU C library defines this for functions which it implements
17665 to always fail with ENOSYS. Some functions are actually named
17666 something starting with __ and the normal name is an alias. */
17667 #if defined __stub_$ac_func || defined __stub___$ac_func
17674 return $ac_func ();
17679 rm -f conftest.$ac_objext conftest$ac_exeext
17680 if { (ac_try="$ac_link"
17681 case "(($ac_try" in
17682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17683 *) ac_try_echo=$ac_try;;
17685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17686 (eval "$ac_link") 2>conftest.er1
17688 grep -v '^ *+' conftest.er1 >conftest.err
17690 cat conftest.err >&5
17691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17692 (exit $ac_status); } && {
17693 test -z "$ac_c_werror_flag" ||
17694 test ! -s conftest.err
17695 } && test -s conftest$ac_exeext &&
17696 $as_test_x conftest$ac_exeext; then
17697 eval "$as_ac_var=yes"
17699 echo "$as_me: failed program was
:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17702 eval "$as_ac_var=no
"
17705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17706 conftest$ac_exeext conftest.$ac_ext
17708 ac_res=`eval echo '${'$as_ac_var'}'`
17709 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17710 echo "${ECHO_T}$ac_res" >&6; }
17711 if test `eval echo '${'$as_ac_var'}'` = yes; then
17712 cat >>confdefs.h <<_ACEOF
17713 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17717 case " $LIBOBJS " in
17718 *" getloadavg.
$ac_objext "* ) ;;
17719 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17724 cat >>confdefs.h <<\_ACEOF
17725 #define C_GETLOADAVG 1
17728 # Figure out what our getloadavg.c needs.
17730 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17731 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17732 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17733 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17734 echo $ECHO_N "(cached
) $ECHO_C" >&6
17736 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17737 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17739 # Is the header compilable?
17740 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17741 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17742 cat >conftest.$ac_ext <<_ACEOF
17745 cat confdefs.h >>conftest.$ac_ext
17746 cat >>conftest.$ac_ext <<_ACEOF
17747 /* end confdefs.h. */
17748 $ac_includes_default
17749 #include <sys/dg_sys_info.h>
17751 rm -f conftest.$ac_objext
17752 if { (ac_try="$ac_compile"
17753 case "(($ac_try" in
17754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17755 *) ac_try_echo=$ac_try;;
17757 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17758 (eval "$ac_compile") 2>conftest.er1
17760 grep -v '^ *+' conftest.er1 >conftest.err
17762 cat conftest.err >&5
17763 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17764 (exit $ac_status); } && {
17765 test -z "$ac_c_werror_flag" ||
17766 test ! -s conftest.err
17767 } && test -s conftest.$ac_objext; then
17768 ac_header_compiler=yes
17770 echo "$as_me: failed program was
:" >&5
17771 sed 's/^/| /' conftest.$ac_ext >&5
17773 ac_header_compiler=no
17776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17777 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17778 echo "${ECHO_T}$ac_header_compiler" >&6; }
17780 # Is the header present?
17781 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17782 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17783 cat >conftest.$ac_ext <<_ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17789 #include <sys/dg_sys_info.h>
17791 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17792 case "(($ac_try" in
17793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17796 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17797 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17799 grep -v '^ *+' conftest.er1 >conftest.err
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17803 (exit $ac_status); } >/dev/null && {
17804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17805 test ! -s conftest.err
17807 ac_header_preproc=yes
17809 echo "$as_me: failed program was
:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17812 ac_header_preproc=no
17815 rm -f conftest.err conftest.$ac_ext
17816 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17817 echo "${ECHO_T}$ac_header_preproc" >&6; }
17819 # So? What about this header?
17820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17822 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17823 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17824 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17825 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17826 ac_header_preproc=yes
17829 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17830 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17831 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17832 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17833 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17834 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17835 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17836 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17837 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17838 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17839 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17840 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17844 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17845 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17846 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17847 echo $ECHO_N "(cached
) $ECHO_C" >&6
17849 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17851 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17852 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17855 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17858 cat >>confdefs.h <<\_ACEOF
17863 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17864 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17865 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17866 echo $ECHO_N "(cached
) $ECHO_C" >&6
17868 ac_check_lib_save_LIBS=$LIBS
17870 cat >conftest.$ac_ext <<_ACEOF
17873 cat confdefs.h >>conftest.$ac_ext
17874 cat >>conftest.$ac_ext <<_ACEOF
17875 /* end confdefs.h. */
17877 /* Override any GCC internal prototype to avoid an error.
17878 Use char because int might match the return type of a GCC
17879 builtin and then its argument prototype would still apply. */
17883 char dg_sys_info ();
17887 return dg_sys_info ();
17892 rm -f conftest.$ac_objext conftest$ac_exeext
17893 if { (ac_try="$ac_link"
17894 case "(($ac_try" in
17895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17898 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_link") 2>conftest.er1
17901 grep -v '^ *+' conftest.er1 >conftest.err
17903 cat conftest.err >&5
17904 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17905 (exit $ac_status); } && {
17906 test -z "$ac_c_werror_flag" ||
17907 test ! -s conftest.err
17908 } && test -s conftest$ac_exeext &&
17909 $as_test_x conftest$ac_exeext; then
17910 ac_cv_lib_dgc_dg_sys_info=yes
17912 echo "$as_me: failed program was
:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17915 ac_cv_lib_dgc_dg_sys_info=no
17918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17919 conftest$ac_exeext conftest.$ac_ext
17920 LIBS=$ac_check_lib_save_LIBS
17922 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17923 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17924 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17925 cat >>confdefs.h <<_ACEOF
17926 #define HAVE_LIBDGC 1
17937 if test "${ac_cv_header_locale_h+set}" = set; then
17938 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17939 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17940 if test "${ac_cv_header_locale_h+set}" = set; then
17941 echo $ECHO_N "(cached
) $ECHO_C" >&6
17943 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17944 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17946 # Is the header compilable?
17947 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17948 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17949 cat >conftest.$ac_ext <<_ACEOF
17952 cat confdefs.h >>conftest.$ac_ext
17953 cat >>conftest.$ac_ext <<_ACEOF
17954 /* end confdefs.h. */
17955 $ac_includes_default
17956 #include <locale.h>
17958 rm -f conftest.$ac_objext
17959 if { (ac_try="$ac_compile"
17960 case "(($ac_try" in
17961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17962 *) ac_try_echo=$ac_try;;
17964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17965 (eval "$ac_compile") 2>conftest.er1
17967 grep -v '^ *+' conftest.er1 >conftest.err
17969 cat conftest.err >&5
17970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17971 (exit $ac_status); } && {
17972 test -z "$ac_c_werror_flag" ||
17973 test ! -s conftest.err
17974 } && test -s conftest.$ac_objext; then
17975 ac_header_compiler=yes
17977 echo "$as_me: failed program was
:" >&5
17978 sed 's/^/| /' conftest.$ac_ext >&5
17980 ac_header_compiler=no
17983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17984 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17985 echo "${ECHO_T}$ac_header_compiler" >&6; }
17987 # Is the header present?
17988 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17989 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17990 cat >conftest.$ac_ext <<_ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h. */
17996 #include <locale.h>
17998 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17999 case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18004 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18006 grep -v '^ *+' conftest.er1 >conftest.err
18008 cat conftest.err >&5
18009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18010 (exit $ac_status); } >/dev/null && {
18011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18012 test ! -s conftest.err
18014 ac_header_preproc=yes
18016 echo "$as_me: failed program was
:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18019 ac_header_preproc=no
18022 rm -f conftest.err conftest.$ac_ext
18023 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18024 echo "${ECHO_T}$ac_header_preproc" >&6; }
18026 # So? What about this header?
18027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18029 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18030 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18031 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
18032 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
18033 ac_header_preproc=yes
18036 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
18037 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
18038 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
18039 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
18040 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
18041 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
18042 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18043 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18044 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
18045 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
18046 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
18047 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
18051 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
18052 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
18053 if test "${ac_cv_header_locale_h+set}" = set; then
18054 echo $ECHO_N "(cached
) $ECHO_C" >&6
18056 ac_cv_header_locale_h=$ac_header_preproc
18058 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18059 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18065 for ac_func in setlocale
18067 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18068 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18069 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18070 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18071 echo $ECHO_N "(cached
) $ECHO_C" >&6
18073 cat >conftest.$ac_ext <<_ACEOF
18076 cat confdefs.h >>conftest.$ac_ext
18077 cat >>conftest.$ac_ext <<_ACEOF
18078 /* end confdefs.h. */
18079 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18081 #define $ac_func innocuous_$ac_func
18083 /* System header to define __stub macros and hopefully few prototypes,
18084 which can conflict with char $ac_func (); below.
18085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18086 <limits.h> exists even on freestanding compilers. */
18089 # include <limits.h>
18091 # include <assert.h>
18096 /* Override any GCC internal prototype to avoid an error.
18097 Use char because int might match the return type of a GCC
18098 builtin and then its argument prototype would still apply. */
18103 /* The GNU C library defines this for functions which it implements
18104 to always fail with ENOSYS. Some functions are actually named
18105 something starting with __ and the normal name is an alias. */
18106 #if defined __stub_$ac_func || defined __stub___$ac_func
18113 return $ac_func ();
18118 rm -f conftest.$ac_objext conftest$ac_exeext
18119 if { (ac_try="$ac_link"
18120 case "(($ac_try" in
18121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18122 *) ac_try_echo=$ac_try;;
18124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18125 (eval "$ac_link") 2>conftest.er1
18127 grep -v '^ *+' conftest.er1 >conftest.err
18129 cat conftest.err >&5
18130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18131 (exit $ac_status); } && {
18132 test -z "$ac_c_werror_flag" ||
18133 test ! -s conftest.err
18134 } && test -s conftest$ac_exeext &&
18135 $as_test_x conftest$ac_exeext; then
18136 eval "$as_ac_var=yes"
18138 echo "$as_me: failed program was
:" >&5
18139 sed 's/^/| /' conftest.$ac_ext >&5
18141 eval "$as_ac_var=no
"
18144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18145 conftest$ac_exeext conftest.$ac_ext
18147 ac_res=`eval echo '${'$as_ac_var'}'`
18148 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18149 echo "${ECHO_T}$ac_res" >&6; }
18150 if test `eval echo '${'$as_ac_var'}'` = yes; then
18151 cat >>confdefs.h <<_ACEOF
18152 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18159 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18160 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18161 # Irix 4.0.5F has the header but not the library.
18162 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18165 cat >>confdefs.h <<\_ACEOF
18171 if test $ac_have_func = no; then
18172 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18173 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18174 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18175 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18176 echo $ECHO_N "(cached
) $ECHO_C" >&6
18178 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18179 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18181 # Is the header compilable?
18182 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
18183 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
18184 cat >conftest.$ac_ext <<_ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 $ac_includes_default
18191 #include <inq_stats/cpustats.h>
18193 rm -f conftest.$ac_objext
18194 if { (ac_try="$ac_compile"
18195 case "(($ac_try" in
18196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197 *) ac_try_echo=$ac_try;;
18199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18200 (eval "$ac_compile") 2>conftest.er1
18202 grep -v '^ *+' conftest.er1 >conftest.err
18204 cat conftest.err >&5
18205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18206 (exit $ac_status); } && {
18207 test -z "$ac_c_werror_flag" ||
18208 test ! -s conftest.err
18209 } && test -s conftest.$ac_objext; then
18210 ac_header_compiler=yes
18212 echo "$as_me: failed program was
:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18215 ac_header_compiler=no
18218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18219 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18220 echo "${ECHO_T}$ac_header_compiler" >&6; }
18222 # Is the header present?
18223 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
18224 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
18225 cat >conftest.$ac_ext <<_ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18231 #include <inq_stats/cpustats.h>
18233 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18234 case "(($ac_try" in
18235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18236 *) ac_try_echo=$ac_try;;
18238 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18239 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18241 grep -v '^ *+' conftest.er1 >conftest.err
18243 cat conftest.err >&5
18244 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18245 (exit $ac_status); } >/dev/null && {
18246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18247 test ! -s conftest.err
18249 ac_header_preproc=yes
18251 echo "$as_me: failed program was
:" >&5
18252 sed 's/^/| /' conftest.$ac_ext >&5
18254 ac_header_preproc=no
18257 rm -f conftest.err conftest.$ac_ext
18258 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18259 echo "${ECHO_T}$ac_header_preproc" >&6; }
18261 # So? What about this header?
18262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18264 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18265 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18266 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
18267 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
18268 ac_header_preproc=yes
18271 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
18272 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
18273 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18274 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18275 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18276 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18277 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18278 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18279 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18280 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18281 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18282 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18286 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18287 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18288 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18289 echo $ECHO_N "(cached
) $ECHO_C" >&6
18291 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18293 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18294 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18297 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18300 cat >>confdefs.h <<\_ACEOF
18305 cat >>confdefs.h <<\_ACEOF
18314 if test $ac_have_func = no; then
18315 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18316 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18317 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18318 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18319 echo $ECHO_N "(cached
) $ECHO_C" >&6
18321 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18322 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18324 # Is the header compilable?
18325 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18326 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18327 cat >conftest.$ac_ext <<_ACEOF
18330 cat confdefs.h >>conftest.$ac_ext
18331 cat >>conftest.$ac_ext <<_ACEOF
18332 /* end confdefs.h. */
18333 $ac_includes_default
18334 #include <sys/cpustats.h>
18336 rm -f conftest.$ac_objext
18337 if { (ac_try="$ac_compile"
18338 case "(($ac_try" in
18339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340 *) ac_try_echo=$ac_try;;
18342 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18343 (eval "$ac_compile") 2>conftest.er1
18345 grep -v '^ *+' conftest.er1 >conftest.err
18347 cat conftest.err >&5
18348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18349 (exit $ac_status); } && {
18350 test -z "$ac_c_werror_flag" ||
18351 test ! -s conftest.err
18352 } && test -s conftest.$ac_objext; then
18353 ac_header_compiler=yes
18355 echo "$as_me: failed program was
:" >&5
18356 sed 's/^/| /' conftest.$ac_ext >&5
18358 ac_header_compiler=no
18361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18362 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18363 echo "${ECHO_T}$ac_header_compiler" >&6; }
18365 # Is the header present?
18366 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18367 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18368 cat >conftest.$ac_ext <<_ACEOF
18371 cat confdefs.h >>conftest.$ac_ext
18372 cat >>conftest.$ac_ext <<_ACEOF
18373 /* end confdefs.h. */
18374 #include <sys/cpustats.h>
18376 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18377 case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18384 grep -v '^ *+' conftest.er1 >conftest.err
18386 cat conftest.err >&5
18387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18388 (exit $ac_status); } >/dev/null && {
18389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18390 test ! -s conftest.err
18392 ac_header_preproc=yes
18394 echo "$as_me: failed program was
:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18397 ac_header_preproc=no
18400 rm -f conftest.err conftest.$ac_ext
18401 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18402 echo "${ECHO_T}$ac_header_preproc" >&6; }
18404 # So? What about this header?
18405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18407 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18408 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18409 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18410 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18411 ac_header_preproc=yes
18414 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18415 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18416 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18417 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18418 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18419 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18420 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18421 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18422 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18423 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18424 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18425 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18429 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18430 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18431 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18432 echo $ECHO_N "(cached
) $ECHO_C" >&6
18434 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18436 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18437 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18440 if test $ac_cv_header_sys_cpustats_h = yes; then
18441 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18450 if test $ac_have_func = no; then
18452 for ac_header in mach/mach.h
18454 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18455 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18456 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18457 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18458 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18459 echo $ECHO_N "(cached
) $ECHO_C" >&6
18461 ac_res=`eval echo '${'$as_ac_Header'}'`
18462 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18463 echo "${ECHO_T}$ac_res" >&6; }
18465 # Is the header compilable?
18466 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18467 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18468 cat >conftest.$ac_ext <<_ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h. */
18474 $ac_includes_default
18475 #include <$ac_header>
18477 rm -f conftest.$ac_objext
18478 if { (ac_try="$ac_compile"
18479 case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18483 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18484 (eval "$ac_compile") 2>conftest.er1
18486 grep -v '^ *+' conftest.er1 >conftest.err
18488 cat conftest.err >&5
18489 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18490 (exit $ac_status); } && {
18491 test -z "$ac_c_werror_flag" ||
18492 test ! -s conftest.err
18493 } && test -s conftest.$ac_objext; then
18494 ac_header_compiler=yes
18496 echo "$as_me: failed program was
:" >&5
18497 sed 's/^/| /' conftest.$ac_ext >&5
18499 ac_header_compiler=no
18502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18503 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18504 echo "${ECHO_T}$ac_header_compiler" >&6; }
18506 # Is the header present?
18507 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18508 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18509 cat >conftest.$ac_ext <<_ACEOF
18512 cat confdefs.h >>conftest.$ac_ext
18513 cat >>conftest.$ac_ext <<_ACEOF
18514 /* end confdefs.h. */
18515 #include <$ac_header>
18517 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18518 case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18522 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18525 grep -v '^ *+' conftest.er1 >conftest.err
18527 cat conftest.err >&5
18528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18529 (exit $ac_status); } >/dev/null && {
18530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18531 test ! -s conftest.err
18533 ac_header_preproc=yes
18535 echo "$as_me: failed program was
:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18538 ac_header_preproc=no
18541 rm -f conftest.err conftest.$ac_ext
18542 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18543 echo "${ECHO_T}$ac_header_preproc" >&6; }
18545 # So? What about this header?
18546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18548 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18549 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18550 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18552 ac_header_preproc=yes
18555 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18556 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18557 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18558 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18559 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18560 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18561 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18562 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18563 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18565 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18566 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18570 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18571 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18572 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18573 echo $ECHO_N "(cached
) $ECHO_C" >&6
18575 eval "$as_ac_Header=\
$ac_header_preproc"
18577 ac_res=`eval echo '${'$as_ac_Header'}'`
18578 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18579 echo "${ECHO_T}$ac_res" >&6; }
18582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18583 cat >>confdefs.h <<_ACEOF
18584 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18594 for ac_header in nlist.h
18596 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18597 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18598 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18599 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18600 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18601 echo $ECHO_N "(cached
) $ECHO_C" >&6
18603 ac_res=`eval echo '${'$as_ac_Header'}'`
18604 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18605 echo "${ECHO_T}$ac_res" >&6; }
18607 # Is the header compilable?
18608 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18609 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18610 cat >conftest.$ac_ext <<_ACEOF
18613 cat confdefs.h >>conftest.$ac_ext
18614 cat >>conftest.$ac_ext <<_ACEOF
18615 /* end confdefs.h. */
18616 $ac_includes_default
18617 #include <$ac_header>
18619 rm -f conftest.$ac_objext
18620 if { (ac_try="$ac_compile"
18621 case "(($ac_try" in
18622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623 *) ac_try_echo=$ac_try;;
18625 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18626 (eval "$ac_compile") 2>conftest.er1
18628 grep -v '^ *+' conftest.er1 >conftest.err
18630 cat conftest.err >&5
18631 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18632 (exit $ac_status); } && {
18633 test -z "$ac_c_werror_flag" ||
18634 test ! -s conftest.err
18635 } && test -s conftest.$ac_objext; then
18636 ac_header_compiler=yes
18638 echo "$as_me: failed program was
:" >&5
18639 sed 's/^/| /' conftest.$ac_ext >&5
18641 ac_header_compiler=no
18644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18645 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18646 echo "${ECHO_T}$ac_header_compiler" >&6; }
18648 # Is the header present?
18649 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18650 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18651 cat >conftest.$ac_ext <<_ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18657 #include <$ac_header>
18659 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18660 case "(($ac_try" in
18661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18662 *) ac_try_echo=$ac_try;;
18664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18665 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18667 grep -v '^ *+' conftest.er1 >conftest.err
18669 cat conftest.err >&5
18670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18671 (exit $ac_status); } >/dev/null && {
18672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18673 test ! -s conftest.err
18675 ac_header_preproc=yes
18677 echo "$as_me: failed program was
:" >&5
18678 sed 's/^/| /' conftest.$ac_ext >&5
18680 ac_header_preproc=no
18683 rm -f conftest.err conftest.$ac_ext
18684 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18685 echo "${ECHO_T}$ac_header_preproc" >&6; }
18687 # So? What about this header?
18688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18690 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18691 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18692 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18694 ac_header_preproc=yes
18697 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18698 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18699 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18700 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18701 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18702 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18703 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18704 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18705 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18707 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18708 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18712 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18713 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18714 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18715 echo $ECHO_N "(cached
) $ECHO_C" >&6
18717 eval "$as_ac_Header=\
$ac_header_preproc"
18719 ac_res=`eval echo '${'$as_ac_Header'}'`
18720 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18721 echo "${ECHO_T}$ac_res" >&6; }
18724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18725 cat >>confdefs.h <<_ACEOF
18726 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18728 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18729 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18730 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18731 echo $ECHO_N "(cached
) $ECHO_C" >&6
18733 cat >conftest.$ac_ext <<_ACEOF
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h. */
18744 static struct nlist ac_aggr;
18745 if (ac_aggr.n_un.n_name)
18751 rm -f conftest.$ac_objext
18752 if { (ac_try="$ac_compile"
18753 case "(($ac_try" in
18754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755 *) ac_try_echo=$ac_try;;
18757 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18758 (eval "$ac_compile") 2>conftest.er1
18760 grep -v '^ *+' conftest.er1 >conftest.err
18762 cat conftest.err >&5
18763 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18764 (exit $ac_status); } && {
18765 test -z "$ac_c_werror_flag" ||
18766 test ! -s conftest.err
18767 } && test -s conftest.$ac_objext; then
18768 ac_cv_member_struct_nlist_n_un_n_name=yes
18770 echo "$as_me: failed program was
:" >&5
18771 sed 's/^/| /' conftest.$ac_ext >&5
18773 cat >conftest.$ac_ext <<_ACEOF
18776 cat confdefs.h >>conftest.$ac_ext
18777 cat >>conftest.$ac_ext <<_ACEOF
18778 /* end confdefs.h. */
18784 static struct nlist ac_aggr;
18785 if (sizeof ac_aggr.n_un.n_name)
18791 rm -f conftest.$ac_objext
18792 if { (ac_try="$ac_compile"
18793 case "(($ac_try" in
18794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795 *) ac_try_echo=$ac_try;;
18797 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18798 (eval "$ac_compile") 2>conftest.er1
18800 grep -v '^ *+' conftest.er1 >conftest.err
18802 cat conftest.err >&5
18803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18804 (exit $ac_status); } && {
18805 test -z "$ac_c_werror_flag" ||
18806 test ! -s conftest.err
18807 } && test -s conftest.$ac_objext; then
18808 ac_cv_member_struct_nlist_n_un_n_name=yes
18810 echo "$as_me: failed program was
:" >&5
18811 sed 's/^/| /' conftest.$ac_ext >&5
18813 ac_cv_member_struct_nlist_n_un_n_name=no
18816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18821 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18822 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18823 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18825 cat >>confdefs.h <<_ACEOF
18826 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18830 cat >>confdefs.h <<\_ACEOF
18831 #define NLIST_NAME_UNION 1
18845 # Some definitions of getloadavg require that the program be installed setgid.
18846 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18847 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18848 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18849 echo $ECHO_N "(cached
) $ECHO_C" >&6
18851 cat >conftest.$ac_ext <<_ACEOF
18854 cat confdefs.h >>conftest.$ac_ext
18855 cat >>conftest.$ac_ext <<_ACEOF
18856 /* end confdefs.h. */
18857 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18858 #ifdef LDAV_PRIVILEGED
18859 Yowza Am I SETGID yet
18862 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18863 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18864 ac_cv_func_getloadavg_setgid=yes
18866 ac_cv_func_getloadavg_setgid=no
18871 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18872 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18873 if test $ac_cv_func_getloadavg_setgid = yes; then
18876 cat >>confdefs.h <<\_ACEOF
18877 #define GETLOADAVG_PRIVILEGED 1
18884 if test $ac_cv_func_getloadavg_setgid = yes; then
18885 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18886 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18887 if test "${ac_cv_group_kmem+set}" = set; then
18888 echo $ECHO_N "(cached
) $ECHO_C" >&6
18890 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18891 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18892 # If we got an error (system does not support symlinks), try without -L.
18893 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18894 ac_cv_group_kmem=`echo $ac_ls_output \
18895 | sed -ne 's/[ ][ ]*/ /g;
18896 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18900 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18901 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18902 KMEM_GROUP=$ac_cv_group_kmem
18904 if test "x
$ac_save_LIBS" = x; then
18905 GETLOADAVG_LIBS=$LIBS
18907 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18913 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18914 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18915 if test "${ac_cv_sys_largefile_source+set}" = set; then
18916 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 <sys/types.h> /* for off_t */
18930 int (*fp) (FILE *, off_t, int) = fseeko;
18931 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18936 rm -f conftest.$ac_objext conftest$ac_exeext
18937 if { (ac_try="$ac_link"
18938 case "(($ac_try" in
18939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18940 *) ac_try_echo=$ac_try;;
18942 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18943 (eval "$ac_link") 2>conftest.er1
18945 grep -v '^ *+' conftest.er1 >conftest.err
18947 cat conftest.err >&5
18948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18949 (exit $ac_status); } && {
18950 test -z "$ac_c_werror_flag" ||
18951 test ! -s conftest.err
18952 } && test -s conftest$ac_exeext &&
18953 $as_test_x conftest$ac_exeext; then
18954 ac_cv_sys_largefile_source=no; break
18956 echo "$as_me: failed program was
:" >&5
18957 sed 's/^/| /' conftest.$ac_ext >&5
18962 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18963 conftest$ac_exeext conftest.$ac_ext
18964 cat >conftest.$ac_ext <<_ACEOF
18967 cat confdefs.h >>conftest.$ac_ext
18968 cat >>conftest.$ac_ext <<_ACEOF
18969 /* end confdefs.h. */
18970 #define _LARGEFILE_SOURCE 1
18971 #include <sys/types.h> /* for off_t */
18976 int (*fp) (FILE *, off_t, int) = fseeko;
18977 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18982 rm -f conftest.$ac_objext conftest$ac_exeext
18983 if { (ac_try="$ac_link"
18984 case "(($ac_try" in
18985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986 *) ac_try_echo=$ac_try;;
18988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18989 (eval "$ac_link") 2>conftest.er1
18991 grep -v '^ *+' conftest.er1 >conftest.err
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18995 (exit $ac_status); } && {
18996 test -z "$ac_c_werror_flag" ||
18997 test ! -s conftest.err
18998 } && test -s conftest$ac_exeext &&
18999 $as_test_x conftest$ac_exeext; then
19000 ac_cv_sys_largefile_source=1; break
19002 echo "$as_me: failed program was
:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19009 conftest$ac_exeext conftest.$ac_ext
19010 ac_cv_sys_largefile_source=unknown
19014 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
19015 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19016 case $ac_cv_sys_largefile_source in #(
19019 cat >>confdefs.h <<_ACEOF
19020 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19026 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19027 # in glibc 2.1.3, but that breaks too many other things.
19028 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19029 if test $ac_cv_sys_largefile_source != unknown; then
19031 cat >>confdefs.h <<\_ACEOF
19032 #define HAVE_FSEEKO 1
19038 # Configure getopt.
19039 # getopt.m4 serial 10
19041 # The getopt module assume you want GNU getopt, with getopt_long etc,
19042 # rather than vanilla POSIX getopt. This means your your code should
19043 # always include <getopt.h> for the getopt prototypes.
19055 # Prerequisites of lib/getopt*.
19062 for ac_header in getopt.h
19064 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19065 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19066 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19067 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19068 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19069 echo $ECHO_N "(cached
) $ECHO_C" >&6
19071 ac_res=`eval echo '${'$as_ac_Header'}'`
19072 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19073 echo "${ECHO_T}$ac_res" >&6; }
19075 # Is the header compilable?
19076 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19077 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19078 cat >conftest.$ac_ext <<_ACEOF
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h. */
19084 $ac_includes_default
19085 #include <$ac_header>
19087 rm -f conftest.$ac_objext
19088 if { (ac_try="$ac_compile"
19089 case "(($ac_try" in
19090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19091 *) ac_try_echo=$ac_try;;
19093 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19094 (eval "$ac_compile") 2>conftest.er1
19096 grep -v '^ *+' conftest.er1 >conftest.err
19098 cat conftest.err >&5
19099 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19100 (exit $ac_status); } && {
19101 test -z "$ac_c_werror_flag" ||
19102 test ! -s conftest.err
19103 } && test -s conftest.$ac_objext; then
19104 ac_header_compiler=yes
19106 echo "$as_me: failed program was
:" >&5
19107 sed 's/^/| /' conftest.$ac_ext >&5
19109 ac_header_compiler=no
19112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19113 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19114 echo "${ECHO_T}$ac_header_compiler" >&6; }
19116 # Is the header present?
19117 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19118 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19119 cat >conftest.$ac_ext <<_ACEOF
19122 cat confdefs.h >>conftest.$ac_ext
19123 cat >>conftest.$ac_ext <<_ACEOF
19124 /* end confdefs.h. */
19125 #include <$ac_header>
19127 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19128 case "(($ac_try" in
19129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19130 *) ac_try_echo=$ac_try;;
19132 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19133 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19135 grep -v '^ *+' conftest.er1 >conftest.err
19137 cat conftest.err >&5
19138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19139 (exit $ac_status); } >/dev/null && {
19140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19141 test ! -s conftest.err
19143 ac_header_preproc=yes
19145 echo "$as_me: failed program was
:" >&5
19146 sed 's/^/| /' conftest.$ac_ext >&5
19148 ac_header_preproc=no
19151 rm -f conftest.err conftest.$ac_ext
19152 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19153 echo "${ECHO_T}$ac_header_preproc" >&6; }
19155 # So? What about this header?
19156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19158 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19159 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19160 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19161 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19162 ac_header_preproc=yes
19165 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19166 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19167 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19168 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19169 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19170 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19171 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19172 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19173 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19174 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19175 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19176 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19180 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19181 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19182 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19183 echo $ECHO_N "(cached
) $ECHO_C" >&6
19185 eval "$as_ac_Header=\
$ac_header_preproc"
19187 ac_res=`eval echo '${'$as_ac_Header'}'`
19188 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19189 echo "${ECHO_T}$ac_res" >&6; }
19192 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19193 cat >>confdefs.h <<_ACEOF
19194 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19203 if test -z "$GETOPT_H"; then
19205 for ac_func in getopt_long_only
19207 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19208 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19209 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19210 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19211 echo $ECHO_N "(cached
) $ECHO_C" >&6
19213 cat >conftest.$ac_ext <<_ACEOF
19216 cat confdefs.h >>conftest.$ac_ext
19217 cat >>conftest.$ac_ext <<_ACEOF
19218 /* end confdefs.h. */
19219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19221 #define $ac_func innocuous_$ac_func
19223 /* System header to define __stub macros and hopefully few prototypes,
19224 which can conflict with char $ac_func (); below.
19225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19226 <limits.h> exists even on freestanding compilers. */
19229 # include <limits.h>
19231 # include <assert.h>
19236 /* Override any GCC internal prototype to avoid an error.
19237 Use char because int might match the return type of a GCC
19238 builtin and then its argument prototype would still apply. */
19243 /* The GNU C library defines this for functions which it implements
19244 to always fail with ENOSYS. Some functions are actually named
19245 something starting with __ and the normal name is an alias. */
19246 #if defined __stub_$ac_func || defined __stub___$ac_func
19253 return $ac_func ();
19258 rm -f conftest.$ac_objext conftest$ac_exeext
19259 if { (ac_try="$ac_link"
19260 case "(($ac_try" in
19261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19262 *) ac_try_echo=$ac_try;;
19264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19265 (eval "$ac_link") 2>conftest.er1
19267 grep -v '^ *+' conftest.er1 >conftest.err
19269 cat conftest.err >&5
19270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19271 (exit $ac_status); } && {
19272 test -z "$ac_c_werror_flag" ||
19273 test ! -s conftest.err
19274 } && test -s conftest$ac_exeext &&
19275 $as_test_x conftest$ac_exeext; then
19276 eval "$as_ac_var=yes"
19278 echo "$as_me: failed program was
:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19281 eval "$as_ac_var=no
"
19284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19285 conftest$ac_exeext conftest.$ac_ext
19287 ac_res=`eval echo '${'$as_ac_var'}'`
19288 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19289 echo "${ECHO_T}$ac_res" >&6; }
19290 if test `eval echo '${'$as_ac_var'}'` = yes; then
19291 cat >>confdefs.h <<_ACEOF
19292 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19302 if test -z "$GETOPT_H"; then
19303 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19304 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19305 if test "${ac_cv_have_decl_optreset+set}" = set; then
19306 echo $ECHO_N "(cached
) $ECHO_C" >&6
19308 cat >conftest.$ac_ext <<_ACEOF
19311 cat confdefs.h >>conftest.$ac_ext
19312 cat >>conftest.$ac_ext <<_ACEOF
19313 /* end confdefs.h. */
19314 #include <getopt.h>
19327 rm -f conftest.$ac_objext
19328 if { (ac_try="$ac_compile"
19329 case "(($ac_try" in
19330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331 *) ac_try_echo=$ac_try;;
19333 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19334 (eval "$ac_compile") 2>conftest.er1
19336 grep -v '^ *+' conftest.er1 >conftest.err
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19340 (exit $ac_status); } && {
19341 test -z "$ac_c_werror_flag" ||
19342 test ! -s conftest.err
19343 } && test -s conftest.$ac_objext; then
19344 ac_cv_have_decl_optreset=yes
19346 echo "$as_me: failed program was
:" >&5
19347 sed 's/^/| /' conftest.$ac_ext >&5
19349 ac_cv_have_decl_optreset=no
19352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19354 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19355 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19356 if test $ac_cv_have_decl_optreset = yes; then
19362 if test -z "$GETOPT_H"; then
19363 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19364 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19365 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19366 echo $ECHO_N "(cached
) $ECHO_C" >&6
19368 if test "$cross_compiling" = yes; then
19369 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19370 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19371 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19372 echo $ECHO_N "(cached
) $ECHO_C" >&6
19374 cat >conftest.$ac_ext <<_ACEOF
19377 cat confdefs.h >>conftest.$ac_ext
19378 cat >>conftest.$ac_ext <<_ACEOF
19379 /* end confdefs.h. */
19380 #include <getopt.h>
19385 #ifndef getopt_clip
19386 (void) getopt_clip;
19393 rm -f conftest.$ac_objext
19394 if { (ac_try="$ac_compile"
19395 case "(($ac_try" in
19396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19397 *) ac_try_echo=$ac_try;;
19399 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19400 (eval "$ac_compile") 2>conftest.er1
19402 grep -v '^ *+' conftest.er1 >conftest.err
19404 cat conftest.err >&5
19405 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19406 (exit $ac_status); } && {
19407 test -z "$ac_c_werror_flag" ||
19408 test ! -s conftest.err
19409 } && test -s conftest.$ac_objext; then
19410 ac_cv_have_decl_getopt_clip=yes
19412 echo "$as_me: failed program was
:" >&5
19413 sed 's/^/| /' conftest.$ac_ext >&5
19415 ac_cv_have_decl_getopt_clip=no
19418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19420 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19421 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19422 if test $ac_cv_have_decl_getopt_clip = yes; then
19423 gl_cv_func_gnu_getopt=no
19425 gl_cv_func_gnu_getopt=yes
19429 cat >conftest.$ac_ext <<_ACEOF
19432 cat confdefs.h >>conftest.$ac_ext
19433 cat >>conftest.$ac_ext <<_ACEOF
19434 /* end confdefs.h. */
19435 #include <getopt.h>
19441 myargv[0] = "conftest
";
19444 return getopt (2, myargv, "+a
") != '?';
19450 rm -f conftest$ac_exeext
19451 if { (ac_try="$ac_link"
19452 case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19457 (eval "$ac_link") 2>&5
19459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19460 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19461 { (case "(($ac_try" in
19462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19463 *) ac_try_echo=$ac_try;;
19465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19466 (eval "$ac_try") 2>&5
19468 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19469 (exit $ac_status); }; }; then
19470 gl_cv_func_gnu_getopt=yes
19472 echo "$as_me: program exited with status
$ac_status" >&5
19473 echo "$as_me: failed program was
:" >&5
19474 sed 's/^/| /' conftest.$ac_ext >&5
19476 ( exit $ac_status )
19477 gl_cv_func_gnu_getopt=no
19479 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19484 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19485 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19486 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19493 if test -n "$GETOPT_H"; then
19498 cat >>confdefs.h <<\_ACEOF
19499 #define __GETOPT_PREFIX rpl_
19505 GETOPTOBJS='getopt.o getopt1.o'
19512 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19513 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19514 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19515 echo $ECHO_N "(cached
) $ECHO_C" >&6
19517 # Use it with a single arg.
19518 cat >conftest.$ac_ext <<_ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h. */
19524 $ac_includes_default
19533 rm -f conftest.$ac_objext
19534 if { (ac_try="$ac_compile"
19535 case "(($ac_try" in
19536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19537 *) ac_try_echo=$ac_try;;
19539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19540 (eval "$ac_compile") 2>conftest.er1
19542 grep -v '^ *+' conftest.er1 >conftest.err
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19546 (exit $ac_status); } && {
19547 test -z "$ac_c_werror_flag" ||
19548 test ! -s conftest.err
19549 } && test -s conftest.$ac_objext; then
19550 ac_cv_func_getpgrp_void=no
19552 echo "$as_me: failed program was
:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19555 ac_cv_func_getpgrp_void=yes
19558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19561 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19562 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19563 if test $ac_cv_func_getpgrp_void = yes; then
19565 cat >>confdefs.h <<\_ACEOF
19566 #define GETPGRP_VOID 1
19573 for ac_func in strftime
19575 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19576 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19577 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19578 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19579 echo $ECHO_N "(cached
) $ECHO_C" >&6
19581 cat >conftest.$ac_ext <<_ACEOF
19584 cat confdefs.h >>conftest.$ac_ext
19585 cat >>conftest.$ac_ext <<_ACEOF
19586 /* end confdefs.h. */
19587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19589 #define $ac_func innocuous_$ac_func
19591 /* System header to define __stub macros and hopefully few prototypes,
19592 which can conflict with char $ac_func (); below.
19593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19594 <limits.h> exists even on freestanding compilers. */
19597 # include <limits.h>
19599 # include <assert.h>
19604 /* Override any GCC internal prototype to avoid an error.
19605 Use char because int might match the return type of a GCC
19606 builtin and then its argument prototype would still apply. */
19611 /* The GNU C library defines this for functions which it implements
19612 to always fail with ENOSYS. Some functions are actually named
19613 something starting with __ and the normal name is an alias. */
19614 #if defined __stub_$ac_func || defined __stub___$ac_func
19621 return $ac_func ();
19626 rm -f conftest.$ac_objext conftest$ac_exeext
19627 if { (ac_try="$ac_link"
19628 case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19632 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_link") 2>conftest.er1
19635 grep -v '^ *+' conftest.er1 >conftest.err
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19639 (exit $ac_status); } && {
19640 test -z "$ac_c_werror_flag" ||
19641 test ! -s conftest.err
19642 } && test -s conftest$ac_exeext &&
19643 $as_test_x conftest$ac_exeext; then
19644 eval "$as_ac_var=yes"
19646 echo "$as_me: failed program was
:" >&5
19647 sed 's/^/| /' conftest.$ac_ext >&5
19649 eval "$as_ac_var=no
"
19652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19653 conftest$ac_exeext conftest.$ac_ext
19655 ac_res=`eval echo '${'$as_ac_var'}'`
19656 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19657 echo "${ECHO_T}$ac_res" >&6; }
19658 if test `eval echo '${'$as_ac_var'}'` = yes; then
19659 cat >>confdefs.h <<_ACEOF
19660 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19664 # strftime is in -lintl on SCO UNIX.
19665 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19666 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19667 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19668 echo $ECHO_N "(cached
) $ECHO_C" >&6
19670 ac_check_lib_save_LIBS=$LIBS
19671 LIBS="-lintl $LIBS"
19672 cat >conftest.$ac_ext <<_ACEOF
19675 cat confdefs.h >>conftest.$ac_ext
19676 cat >>conftest.$ac_ext <<_ACEOF
19677 /* end confdefs.h. */
19679 /* Override any GCC internal prototype to avoid an error.
19680 Use char because int might match the return type of a GCC
19681 builtin and then its argument prototype would still apply. */
19689 return strftime ();
19694 rm -f conftest.$ac_objext conftest$ac_exeext
19695 if { (ac_try="$ac_link"
19696 case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19700 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_link") 2>conftest.er1
19703 grep -v '^ *+' conftest.er1 >conftest.err
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19707 (exit $ac_status); } && {
19708 test -z "$ac_c_werror_flag" ||
19709 test ! -s conftest.err
19710 } && test -s conftest$ac_exeext &&
19711 $as_test_x conftest$ac_exeext; then
19712 ac_cv_lib_intl_strftime=yes
19714 echo "$as_me: failed program was
:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19717 ac_cv_lib_intl_strftime=no
19720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19721 conftest$ac_exeext conftest.$ac_ext
19722 LIBS=$ac_check_lib_save_LIBS
19724 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19725 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19726 if test $ac_cv_lib_intl_strftime = yes; then
19727 cat >>confdefs.h <<\_ACEOF
19728 #define HAVE_STRFTIME 1
19731 LIBS="-lintl $LIBS"
19740 for ac_func in grantpt
19742 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19743 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19744 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19745 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19746 echo $ECHO_N "(cached
) $ECHO_C" >&6
19748 cat >conftest.$ac_ext <<_ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19756 #define $ac_func innocuous_$ac_func
19758 /* System header to define __stub macros and hopefully few prototypes,
19759 which can conflict with char $ac_func (); below.
19760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19761 <limits.h> exists even on freestanding compilers. */
19764 # include <limits.h>
19766 # include <assert.h>
19771 /* Override any GCC internal prototype to avoid an error.
19772 Use char because int might match the return type of a GCC
19773 builtin and then its argument prototype would still apply. */
19778 /* The GNU C library defines this for functions which it implements
19779 to always fail with ENOSYS. Some functions are actually named
19780 something starting with __ and the normal name is an alias. */
19781 #if defined __stub_$ac_func || defined __stub___$ac_func
19788 return $ac_func ();
19793 rm -f conftest.$ac_objext conftest$ac_exeext
19794 if { (ac_try="$ac_link"
19795 case "(($ac_try" in
19796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19797 *) ac_try_echo=$ac_try;;
19799 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19800 (eval "$ac_link") 2>conftest.er1
19802 grep -v '^ *+' conftest.er1 >conftest.err
19804 cat conftest.err >&5
19805 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19806 (exit $ac_status); } && {
19807 test -z "$ac_c_werror_flag" ||
19808 test ! -s conftest.err
19809 } && test -s conftest$ac_exeext &&
19810 $as_test_x conftest$ac_exeext; then
19811 eval "$as_ac_var=yes"
19813 echo "$as_me: failed program was
:" >&5
19814 sed 's/^/| /' conftest.$ac_ext >&5
19816 eval "$as_ac_var=no
"
19819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19820 conftest$ac_exeext conftest.$ac_ext
19822 ac_res=`eval echo '${'$as_ac_var'}'`
19823 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19824 echo "${ECHO_T}$ac_res" >&6; }
19825 if test `eval echo '${'$as_ac_var'}'` = yes; then
19826 cat >>confdefs.h <<_ACEOF
19827 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19834 # PTY-related GNU extensions.
19836 for ac_func in getpt
19838 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19839 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19840 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19841 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19842 echo $ECHO_N "(cached
) $ECHO_C" >&6
19844 cat >conftest.$ac_ext <<_ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h. */
19850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19851 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19852 #define $ac_func innocuous_$ac_func
19854 /* System header to define __stub macros and hopefully few prototypes,
19855 which can conflict with char $ac_func (); below.
19856 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19857 <limits.h> exists even on freestanding compilers. */
19860 # include <limits.h>
19862 # include <assert.h>
19867 /* Override any GCC internal prototype to avoid an error.
19868 Use char because int might match the return type of a GCC
19869 builtin and then its argument prototype would still apply. */
19874 /* The GNU C library defines this for functions which it implements
19875 to always fail with ENOSYS. Some functions are actually named
19876 something starting with __ and the normal name is an alias. */
19877 #if defined __stub_$ac_func || defined __stub___$ac_func
19884 return $ac_func ();
19889 rm -f conftest.$ac_objext conftest$ac_exeext
19890 if { (ac_try="$ac_link"
19891 case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19896 (eval "$ac_link") 2>conftest.er1
19898 grep -v '^ *+' conftest.er1 >conftest.err
19900 cat conftest.err >&5
19901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19902 (exit $ac_status); } && {
19903 test -z "$ac_c_werror_flag" ||
19904 test ! -s conftest.err
19905 } && test -s conftest$ac_exeext &&
19906 $as_test_x conftest$ac_exeext; then
19907 eval "$as_ac_var=yes"
19909 echo "$as_me: failed program was
:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19912 eval "$as_ac_var=no
"
19915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19916 conftest$ac_exeext conftest.$ac_ext
19918 ac_res=`eval echo '${'$as_ac_var'}'`
19919 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19920 echo "${ECHO_T}$ac_res" >&6; }
19921 if test `eval echo '${'$as_ac_var'}'` = yes; then
19922 cat >>confdefs.h <<_ACEOF
19923 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19930 # Check this now, so that we will NOT find the above functions in ncurses.
19931 # That is because we have not set up to link ncurses in lib-src.
19932 # It's better to believe a function is not available
19933 # than to expect to find it in ncurses.
19935 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19936 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19937 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19938 echo $ECHO_N "(cached
) $ECHO_C" >&6
19940 ac_check_lib_save_LIBS=$LIBS
19941 LIBS="-lncurses $LIBS"
19942 cat >conftest.$ac_ext <<_ACEOF
19945 cat confdefs.h >>conftest.$ac_ext
19946 cat >>conftest.$ac_ext <<_ACEOF
19947 /* end confdefs.h. */
19949 /* Override any GCC internal prototype to avoid an error.
19950 Use char because int might match the return type of a GCC
19951 builtin and then its argument prototype would still apply. */
19964 rm -f conftest.$ac_objext conftest$ac_exeext
19965 if { (ac_try="$ac_link"
19966 case "(($ac_try" in
19967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968 *) ac_try_echo=$ac_try;;
19970 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19971 (eval "$ac_link") 2>conftest.er1
19973 grep -v '^ *+' conftest.er1 >conftest.err
19975 cat conftest.err >&5
19976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19977 (exit $ac_status); } && {
19978 test -z "$ac_c_werror_flag" ||
19979 test ! -s conftest.err
19980 } && test -s conftest$ac_exeext &&
19981 $as_test_x conftest$ac_exeext; then
19982 ac_cv_lib_ncurses_tparm=yes
19984 echo "$as_me: failed program was
:" >&5
19985 sed 's/^/| /' conftest.$ac_ext >&5
19987 ac_cv_lib_ncurses_tparm=no
19990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19991 conftest$ac_exeext conftest.$ac_ext
19992 LIBS=$ac_check_lib_save_LIBS
19994 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19995 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19996 if test $ac_cv_lib_ncurses_tparm = yes; then
19997 cat >>confdefs.h <<_ACEOF
19998 #define HAVE_LIBNCURSES 1
20001 LIBS="-lncurses $LIBS"
20006 # Do we need the Hesiod library to provide the support routines?
20007 if test "$with_hesiod" = yes ; then
20008 # Don't set $LIBS here -- see comments above.
20010 { echo "$as_me:$LINENO: checking
for res_send
" >&5
20011 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
20012 if test "${ac_cv_func_res_send+set}" = set; then
20013 echo $ECHO_N "(cached
) $ECHO_C" >&6
20015 cat >conftest.$ac_ext <<_ACEOF
20018 cat confdefs.h >>conftest.$ac_ext
20019 cat >>conftest.$ac_ext <<_ACEOF
20020 /* end confdefs.h. */
20021 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20023 #define res_send innocuous_res_send
20025 /* System header to define __stub macros and hopefully few prototypes,
20026 which can conflict with char res_send (); below.
20027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20028 <limits.h> exists even on freestanding compilers. */
20031 # include <limits.h>
20033 # include <assert.h>
20038 /* Override any GCC internal prototype to avoid an error.
20039 Use char because int might match the return type of a GCC
20040 builtin and then its argument prototype would still apply. */
20045 /* The GNU C library defines this for functions which it implements
20046 to always fail with ENOSYS. Some functions are actually named
20047 something starting with __ and the normal name is an alias. */
20048 #if defined __stub_res_send || defined __stub___res_send
20055 return res_send ();
20060 rm -f conftest.$ac_objext conftest$ac_exeext
20061 if { (ac_try="$ac_link"
20062 case "(($ac_try" in
20063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20064 *) ac_try_echo=$ac_try;;
20066 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20067 (eval "$ac_link") 2>conftest.er1
20069 grep -v '^ *+' conftest.er1 >conftest.err
20071 cat conftest.err >&5
20072 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20073 (exit $ac_status); } && {
20074 test -z "$ac_c_werror_flag" ||
20075 test ! -s conftest.err
20076 } && test -s conftest$ac_exeext &&
20077 $as_test_x conftest$ac_exeext; then
20078 ac_cv_func_res_send=yes
20080 echo "$as_me: failed program was
:" >&5
20081 sed 's/^/| /' conftest.$ac_ext >&5
20083 ac_cv_func_res_send=no
20086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20087 conftest$ac_exeext conftest.$ac_ext
20089 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
20090 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20091 if test $ac_cv_func_res_send = yes; then
20094 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
20095 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
20096 if test "${ac_cv_func___res_send+set}" = set; then
20097 echo $ECHO_N "(cached
) $ECHO_C" >&6
20099 cat >conftest.$ac_ext <<_ACEOF
20102 cat confdefs.h >>conftest.$ac_ext
20103 cat >>conftest.$ac_ext <<_ACEOF
20104 /* end confdefs.h. */
20105 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20107 #define __res_send innocuous___res_send
20109 /* System header to define __stub macros and hopefully few prototypes,
20110 which can conflict with char __res_send (); below.
20111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20112 <limits.h> exists even on freestanding compilers. */
20115 # include <limits.h>
20117 # include <assert.h>
20122 /* Override any GCC internal prototype to avoid an error.
20123 Use char because int might match the return type of a GCC
20124 builtin and then its argument prototype would still apply. */
20128 char __res_send ();
20129 /* The GNU C library defines this for functions which it implements
20130 to always fail with ENOSYS. Some functions are actually named
20131 something starting with __ and the normal name is an alias. */
20132 #if defined __stub___res_send || defined __stub_____res_send
20139 return __res_send ();
20144 rm -f conftest.$ac_objext conftest$ac_exeext
20145 if { (ac_try="$ac_link"
20146 case "(($ac_try" in
20147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20148 *) ac_try_echo=$ac_try;;
20150 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20151 (eval "$ac_link") 2>conftest.er1
20153 grep -v '^ *+' conftest.er1 >conftest.err
20155 cat conftest.err >&5
20156 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20157 (exit $ac_status); } && {
20158 test -z "$ac_c_werror_flag" ||
20159 test ! -s conftest.err
20160 } && test -s conftest$ac_exeext &&
20161 $as_test_x conftest$ac_exeext; then
20162 ac_cv_func___res_send=yes
20164 echo "$as_me: failed program was
:" >&5
20165 sed 's/^/| /' conftest.$ac_ext >&5
20167 ac_cv_func___res_send=no
20170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20171 conftest$ac_exeext conftest.$ac_ext
20173 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
20174 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20175 if test $ac_cv_func___res_send = yes; then
20178 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20179 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20180 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20181 echo $ECHO_N "(cached
) $ECHO_C" >&6
20183 ac_check_lib_save_LIBS=$LIBS
20184 LIBS="-lresolv $LIBS"
20185 cat >conftest.$ac_ext <<_ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h. */
20192 /* Override any GCC internal prototype to avoid an error.
20193 Use char because int might match the return type of a GCC
20194 builtin and then its argument prototype would still apply. */
20202 return res_send ();
20207 rm -f conftest.$ac_objext conftest$ac_exeext
20208 if { (ac_try="$ac_link"
20209 case "(($ac_try" in
20210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20211 *) ac_try_echo=$ac_try;;
20213 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20214 (eval "$ac_link") 2>conftest.er1
20216 grep -v '^ *+' conftest.er1 >conftest.err
20218 cat conftest.err >&5
20219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20220 (exit $ac_status); } && {
20221 test -z "$ac_c_werror_flag" ||
20222 test ! -s conftest.err
20223 } && test -s conftest$ac_exeext &&
20224 $as_test_x conftest$ac_exeext; then
20225 ac_cv_lib_resolv_res_send=yes
20227 echo "$as_me: failed program was
:" >&5
20228 sed 's/^/| /' conftest.$ac_ext >&5
20230 ac_cv_lib_resolv_res_send=no
20233 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20234 conftest$ac_exeext conftest.$ac_ext
20235 LIBS=$ac_check_lib_save_LIBS
20237 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20238 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20239 if test $ac_cv_lib_resolv_res_send = yes; then
20242 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20243 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20244 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20245 echo $ECHO_N "(cached
) $ECHO_C" >&6
20247 ac_check_lib_save_LIBS=$LIBS
20248 LIBS="-lresolv $LIBS"
20249 cat >conftest.$ac_ext <<_ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20256 /* Override any GCC internal prototype to avoid an error.
20257 Use char because int might match the return type of a GCC
20258 builtin and then its argument prototype would still apply. */
20262 char __res_send ();
20266 return __res_send ();
20271 rm -f conftest.$ac_objext conftest$ac_exeext
20272 if { (ac_try="$ac_link"
20273 case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_link") 2>conftest.er1
20280 grep -v '^ *+' conftest.er1 >conftest.err
20282 cat conftest.err >&5
20283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20284 (exit $ac_status); } && {
20285 test -z "$ac_c_werror_flag" ||
20286 test ! -s conftest.err
20287 } && test -s conftest$ac_exeext &&
20288 $as_test_x conftest$ac_exeext; then
20289 ac_cv_lib_resolv___res_send=yes
20291 echo "$as_me: failed program was
:" >&5
20292 sed 's/^/| /' conftest.$ac_ext >&5
20294 ac_cv_lib_resolv___res_send=no
20297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20298 conftest$ac_exeext conftest.$ac_ext
20299 LIBS=$ac_check_lib_save_LIBS
20301 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20302 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20303 if test $ac_cv_lib_resolv___res_send = yes; then
20313 if test "$resolv" = yes ; then
20316 cat >>confdefs.h <<\_ACEOF
20317 #define HAVE_LIBRESOLV 1
20323 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20324 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20325 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20326 echo $ECHO_N "(cached
) $ECHO_C" >&6
20328 cat >conftest.$ac_ext <<_ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20334 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20336 #define hes_getmailhost innocuous_hes_getmailhost
20338 /* System header to define __stub macros and hopefully few prototypes,
20339 which can conflict with char hes_getmailhost (); below.
20340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20341 <limits.h> exists even on freestanding compilers. */
20344 # include <limits.h>
20346 # include <assert.h>
20349 #undef hes_getmailhost
20351 /* Override any GCC internal prototype to avoid an error.
20352 Use char because int might match the return type of a GCC
20353 builtin and then its argument prototype would still apply. */
20357 char hes_getmailhost ();
20358 /* The GNU C library defines this for functions which it implements
20359 to always fail with ENOSYS. Some functions are actually named
20360 something starting with __ and the normal name is an alias. */
20361 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20368 return hes_getmailhost ();
20373 rm -f conftest.$ac_objext conftest$ac_exeext
20374 if { (ac_try="$ac_link"
20375 case "(($ac_try" in
20376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377 *) ac_try_echo=$ac_try;;
20379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20380 (eval "$ac_link") 2>conftest.er1
20382 grep -v '^ *+' conftest.er1 >conftest.err
20384 cat conftest.err >&5
20385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20386 (exit $ac_status); } && {
20387 test -z "$ac_c_werror_flag" ||
20388 test ! -s conftest.err
20389 } && test -s conftest$ac_exeext &&
20390 $as_test_x conftest$ac_exeext; then
20391 ac_cv_func_hes_getmailhost=yes
20393 echo "$as_me: failed program was
:" >&5
20394 sed 's/^/| /' conftest.$ac_ext >&5
20396 ac_cv_func_hes_getmailhost=no
20399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20400 conftest$ac_exeext conftest.$ac_ext
20402 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20403 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20404 if test $ac_cv_func_hes_getmailhost = yes; then
20407 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20408 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20409 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20410 echo $ECHO_N "(cached
) $ECHO_C" >&6
20412 ac_check_lib_save_LIBS=$LIBS
20413 LIBS="-lhesiod $RESOLVLIB $LIBS"
20414 cat >conftest.$ac_ext <<_ACEOF
20417 cat confdefs.h >>conftest.$ac_ext
20418 cat >>conftest.$ac_ext <<_ACEOF
20419 /* end confdefs.h. */
20421 /* Override any GCC internal prototype to avoid an error.
20422 Use char because int might match the return type of a GCC
20423 builtin and then its argument prototype would still apply. */
20427 char hes_getmailhost ();
20431 return hes_getmailhost ();
20436 rm -f conftest.$ac_objext conftest$ac_exeext
20437 if { (ac_try="$ac_link"
20438 case "(($ac_try" in
20439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440 *) ac_try_echo=$ac_try;;
20442 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20443 (eval "$ac_link") 2>conftest.er1
20445 grep -v '^ *+' conftest.er1 >conftest.err
20447 cat conftest.err >&5
20448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20449 (exit $ac_status); } && {
20450 test -z "$ac_c_werror_flag" ||
20451 test ! -s conftest.err
20452 } && test -s conftest$ac_exeext &&
20453 $as_test_x conftest$ac_exeext; then
20454 ac_cv_lib_hesiod_hes_getmailhost=yes
20456 echo "$as_me: failed program was
:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20459 ac_cv_lib_hesiod_hes_getmailhost=no
20462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20463 conftest$ac_exeext conftest.$ac_ext
20464 LIBS=$ac_check_lib_save_LIBS
20466 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20467 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20468 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20470 cat >>confdefs.h <<\_ACEOF
20471 #define HAVE_LIBHESIOD 1
20482 # These tell us which Kerberos-related libraries to use.
20483 if test "${with_kerberos+set}" = set; then
20485 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20486 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20487 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20488 echo $ECHO_N "(cached
) $ECHO_C" >&6
20490 ac_check_lib_save_LIBS=$LIBS
20491 LIBS="-lcom_err $LIBS"
20492 cat >conftest.$ac_ext <<_ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20499 /* Override any GCC internal prototype to avoid an error.
20500 Use char because int might match the return type of a GCC
20501 builtin and then its argument prototype would still apply. */
20514 rm -f conftest.$ac_objext conftest$ac_exeext
20515 if { (ac_try="$ac_link"
20516 case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20521 (eval "$ac_link") 2>conftest.er1
20523 grep -v '^ *+' conftest.er1 >conftest.err
20525 cat conftest.err >&5
20526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20527 (exit $ac_status); } && {
20528 test -z "$ac_c_werror_flag" ||
20529 test ! -s conftest.err
20530 } && test -s conftest$ac_exeext &&
20531 $as_test_x conftest$ac_exeext; then
20532 ac_cv_lib_com_err_com_err=yes
20534 echo "$as_me: failed program was
:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20537 ac_cv_lib_com_err_com_err=no
20540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20541 conftest$ac_exeext conftest.$ac_ext
20542 LIBS=$ac_check_lib_save_LIBS
20544 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20545 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20546 if test $ac_cv_lib_com_err_com_err = yes; then
20547 cat >>confdefs.h <<_ACEOF
20548 #define HAVE_LIBCOM_ERR 1
20551 LIBS="-lcom_err $LIBS"
20556 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20557 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20558 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20559 echo $ECHO_N "(cached
) $ECHO_C" >&6
20561 ac_check_lib_save_LIBS=$LIBS
20562 LIBS="-lk5crypto $LIBS"
20563 cat >conftest.$ac_ext <<_ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20570 /* Override any GCC internal prototype to avoid an error.
20571 Use char because int might match the return type of a GCC
20572 builtin and then its argument prototype would still apply. */
20576 char mit_des_cbc_encrypt ();
20580 return mit_des_cbc_encrypt ();
20585 rm -f conftest.$ac_objext conftest$ac_exeext
20586 if { (ac_try="$ac_link"
20587 case "(($ac_try" in
20588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589 *) ac_try_echo=$ac_try;;
20591 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20592 (eval "$ac_link") 2>conftest.er1
20594 grep -v '^ *+' conftest.er1 >conftest.err
20596 cat conftest.err >&5
20597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20598 (exit $ac_status); } && {
20599 test -z "$ac_c_werror_flag" ||
20600 test ! -s conftest.err
20601 } && test -s conftest$ac_exeext &&
20602 $as_test_x conftest$ac_exeext; then
20603 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20605 echo "$as_me: failed program was
:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20608 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20612 conftest$ac_exeext conftest.$ac_ext
20613 LIBS=$ac_check_lib_save_LIBS
20615 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20616 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20617 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20618 cat >>confdefs.h <<_ACEOF
20619 #define HAVE_LIBK5CRYPTO 1
20622 LIBS="-lk5crypto $LIBS"
20627 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20628 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20629 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20630 echo $ECHO_N "(cached
) $ECHO_C" >&6
20632 ac_check_lib_save_LIBS=$LIBS
20633 LIBS="-lcrypto $LIBS"
20634 cat >conftest.$ac_ext <<_ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20641 /* Override any GCC internal prototype to avoid an error.
20642 Use char because int might match the return type of a GCC
20643 builtin and then its argument prototype would still apply. */
20647 char mit_des_cbc_encrypt ();
20651 return mit_des_cbc_encrypt ();
20656 rm -f conftest.$ac_objext conftest$ac_exeext
20657 if { (ac_try="$ac_link"
20658 case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_link") 2>conftest.er1
20665 grep -v '^ *+' conftest.er1 >conftest.err
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20669 (exit $ac_status); } && {
20670 test -z "$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20672 } && test -s conftest$ac_exeext &&
20673 $as_test_x conftest$ac_exeext; then
20674 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20676 echo "$as_me: failed program was
:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20679 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20683 conftest$ac_exeext conftest.$ac_ext
20684 LIBS=$ac_check_lib_save_LIBS
20686 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20687 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20688 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20689 cat >>confdefs.h <<_ACEOF
20690 #define HAVE_LIBCRYPTO 1
20693 LIBS="-lcrypto $LIBS"
20698 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20699 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20700 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20701 echo $ECHO_N "(cached
) $ECHO_C" >&6
20703 ac_check_lib_save_LIBS=$LIBS
20704 LIBS="-lkrb5 $LIBS"
20705 cat >conftest.$ac_ext <<_ACEOF
20708 cat confdefs.h >>conftest.$ac_ext
20709 cat >>conftest.$ac_ext <<_ACEOF
20710 /* end confdefs.h. */
20712 /* Override any GCC internal prototype to avoid an error.
20713 Use char because int might match the return type of a GCC
20714 builtin and then its argument prototype would still apply. */
20718 char krb5_init_context ();
20722 return krb5_init_context ();
20727 rm -f conftest.$ac_objext conftest$ac_exeext
20728 if { (ac_try="$ac_link"
20729 case "(($ac_try" in
20730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20731 *) ac_try_echo=$ac_try;;
20733 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20734 (eval "$ac_link") 2>conftest.er1
20736 grep -v '^ *+' conftest.er1 >conftest.err
20738 cat conftest.err >&5
20739 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20740 (exit $ac_status); } && {
20741 test -z "$ac_c_werror_flag" ||
20742 test ! -s conftest.err
20743 } && test -s conftest$ac_exeext &&
20744 $as_test_x conftest$ac_exeext; then
20745 ac_cv_lib_krb5_krb5_init_context=yes
20747 echo "$as_me: failed program was
:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20750 ac_cv_lib_krb5_krb5_init_context=no
20753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20754 conftest$ac_exeext conftest.$ac_ext
20755 LIBS=$ac_check_lib_save_LIBS
20757 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20758 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20759 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20760 cat >>confdefs.h <<_ACEOF
20761 #define HAVE_LIBKRB5 1
20764 LIBS="-lkrb5 $LIBS"
20768 if test "${with_kerberos5+set}" != set; then
20770 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20771 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20772 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20773 echo $ECHO_N "(cached
) $ECHO_C" >&6
20775 ac_check_lib_save_LIBS=$LIBS
20776 LIBS="-ldes425 $LIBS"
20777 cat >conftest.$ac_ext <<_ACEOF
20780 cat confdefs.h >>conftest.$ac_ext
20781 cat >>conftest.$ac_ext <<_ACEOF
20782 /* end confdefs.h. */
20784 /* Override any GCC internal prototype to avoid an error.
20785 Use char because int might match the return type of a GCC
20786 builtin and then its argument prototype would still apply. */
20790 char des_cbc_encrypt ();
20794 return des_cbc_encrypt ();
20799 rm -f conftest.$ac_objext conftest$ac_exeext
20800 if { (ac_try="$ac_link"
20801 case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20805 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_link") 2>conftest.er1
20808 grep -v '^ *+' conftest.er1 >conftest.err
20810 cat conftest.err >&5
20811 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20812 (exit $ac_status); } && {
20813 test -z "$ac_c_werror_flag" ||
20814 test ! -s conftest.err
20815 } && test -s conftest$ac_exeext &&
20816 $as_test_x conftest$ac_exeext; then
20817 ac_cv_lib_des425_des_cbc_encrypt=yes
20819 echo "$as_me: failed program was
:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20822 ac_cv_lib_des425_des_cbc_encrypt=no
20825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20826 conftest$ac_exeext conftest.$ac_ext
20827 LIBS=$ac_check_lib_save_LIBS
20829 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20830 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20831 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20832 cat >>confdefs.h <<_ACEOF
20833 #define HAVE_LIBDES425 1
20836 LIBS="-ldes425 $LIBS"
20840 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20841 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20842 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20843 echo $ECHO_N "(cached
) $ECHO_C" >&6
20845 ac_check_lib_save_LIBS=$LIBS
20847 cat >conftest.$ac_ext <<_ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20854 /* Override any GCC internal prototype to avoid an error.
20855 Use char because int might match the return type of a GCC
20856 builtin and then its argument prototype would still apply. */
20860 char des_cbc_encrypt ();
20864 return des_cbc_encrypt ();
20869 rm -f conftest.$ac_objext conftest$ac_exeext
20870 if { (ac_try="$ac_link"
20871 case "(($ac_try" in
20872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873 *) ac_try_echo=$ac_try;;
20875 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20876 (eval "$ac_link") 2>conftest.er1
20878 grep -v '^ *+' conftest.er1 >conftest.err
20880 cat conftest.err >&5
20881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20882 (exit $ac_status); } && {
20883 test -z "$ac_c_werror_flag" ||
20884 test ! -s conftest.err
20885 } && test -s conftest$ac_exeext &&
20886 $as_test_x conftest$ac_exeext; then
20887 ac_cv_lib_des_des_cbc_encrypt=yes
20889 echo "$as_me: failed program was
:" >&5
20890 sed 's/^/| /' conftest.$ac_ext >&5
20892 ac_cv_lib_des_des_cbc_encrypt=no
20895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20896 conftest$ac_exeext conftest.$ac_ext
20897 LIBS=$ac_check_lib_save_LIBS
20899 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20900 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20901 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20902 cat >>confdefs.h <<_ACEOF
20903 #define HAVE_LIBDES 1
20913 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20914 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20915 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20916 echo $ECHO_N "(cached
) $ECHO_C" >&6
20918 ac_check_lib_save_LIBS=$LIBS
20919 LIBS="-lkrb4 $LIBS"
20920 cat >conftest.$ac_ext <<_ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h. */
20927 /* Override any GCC internal prototype to avoid an error.
20928 Use char because int might match the return type of a GCC
20929 builtin and then its argument prototype would still apply. */
20933 char krb_get_cred ();
20937 return krb_get_cred ();
20942 rm -f conftest.$ac_objext conftest$ac_exeext
20943 if { (ac_try="$ac_link"
20944 case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20949 (eval "$ac_link") 2>conftest.er1
20951 grep -v '^ *+' conftest.er1 >conftest.err
20953 cat conftest.err >&5
20954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20955 (exit $ac_status); } && {
20956 test -z "$ac_c_werror_flag" ||
20957 test ! -s conftest.err
20958 } && test -s conftest$ac_exeext &&
20959 $as_test_x conftest$ac_exeext; then
20960 ac_cv_lib_krb4_krb_get_cred=yes
20962 echo "$as_me: failed program was
:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20965 ac_cv_lib_krb4_krb_get_cred=no
20968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20969 conftest$ac_exeext conftest.$ac_ext
20970 LIBS=$ac_check_lib_save_LIBS
20972 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20973 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20974 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20975 cat >>confdefs.h <<_ACEOF
20976 #define HAVE_LIBKRB4 1
20979 LIBS="-lkrb4 $LIBS"
20983 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20984 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20985 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20986 echo $ECHO_N "(cached
) $ECHO_C" >&6
20988 ac_check_lib_save_LIBS=$LIBS
20990 cat >conftest.$ac_ext <<_ACEOF
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h. */
20997 /* Override any GCC internal prototype to avoid an error.
20998 Use char because int might match the return type of a GCC
20999 builtin and then its argument prototype would still apply. */
21003 char krb_get_cred ();
21007 return krb_get_cred ();
21012 rm -f conftest.$ac_objext conftest$ac_exeext
21013 if { (ac_try="$ac_link"
21014 case "(($ac_try" in
21015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21016 *) ac_try_echo=$ac_try;;
21018 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21019 (eval "$ac_link") 2>conftest.er1
21021 grep -v '^ *+' conftest.er1 >conftest.err
21023 cat conftest.err >&5
21024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21025 (exit $ac_status); } && {
21026 test -z "$ac_c_werror_flag" ||
21027 test ! -s conftest.err
21028 } && test -s conftest$ac_exeext &&
21029 $as_test_x conftest$ac_exeext; then
21030 ac_cv_lib_krb_krb_get_cred=yes
21032 echo "$as_me: failed program was
:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21035 ac_cv_lib_krb_krb_get_cred=no
21038 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21039 conftest$ac_exeext conftest.$ac_ext
21040 LIBS=$ac_check_lib_save_LIBS
21042 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
21043 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21044 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21045 cat >>confdefs.h <<_ACEOF
21046 #define HAVE_LIBKRB 1
21057 if test "${with_kerberos5+set}" = set; then
21059 for ac_header in krb5.h
21061 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21062 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21063 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21064 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21065 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21066 echo $ECHO_N "(cached
) $ECHO_C" >&6
21068 ac_res=`eval echo '${'$as_ac_Header'}'`
21069 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21070 echo "${ECHO_T}$ac_res" >&6; }
21072 # Is the header compilable?
21073 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21074 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21075 cat >conftest.$ac_ext <<_ACEOF
21078 cat confdefs.h >>conftest.$ac_ext
21079 cat >>conftest.$ac_ext <<_ACEOF
21080 /* end confdefs.h. */
21081 $ac_includes_default
21082 #include <$ac_header>
21084 rm -f conftest.$ac_objext
21085 if { (ac_try="$ac_compile"
21086 case "(($ac_try" in
21087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21088 *) ac_try_echo=$ac_try;;
21090 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21091 (eval "$ac_compile") 2>conftest.er1
21093 grep -v '^ *+' conftest.er1 >conftest.err
21095 cat conftest.err >&5
21096 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21097 (exit $ac_status); } && {
21098 test -z "$ac_c_werror_flag" ||
21099 test ! -s conftest.err
21100 } && test -s conftest.$ac_objext; then
21101 ac_header_compiler=yes
21103 echo "$as_me: failed program was
:" >&5
21104 sed 's/^/| /' conftest.$ac_ext >&5
21106 ac_header_compiler=no
21109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21110 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21111 echo "${ECHO_T}$ac_header_compiler" >&6; }
21113 # Is the header present?
21114 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21115 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21116 cat >conftest.$ac_ext <<_ACEOF
21119 cat confdefs.h >>conftest.$ac_ext
21120 cat >>conftest.$ac_ext <<_ACEOF
21121 /* end confdefs.h. */
21122 #include <$ac_header>
21124 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21125 case "(($ac_try" in
21126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127 *) ac_try_echo=$ac_try;;
21129 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21130 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21132 grep -v '^ *+' conftest.er1 >conftest.err
21134 cat conftest.err >&5
21135 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21136 (exit $ac_status); } >/dev/null && {
21137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21138 test ! -s conftest.err
21140 ac_header_preproc=yes
21142 echo "$as_me: failed program was
:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21145 ac_header_preproc=no
21148 rm -f conftest.err conftest.$ac_ext
21149 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21150 echo "${ECHO_T}$ac_header_preproc" >&6; }
21152 # So? What about this header?
21153 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21155 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21156 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21157 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21158 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21159 ac_header_preproc=yes
21162 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21163 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21164 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21165 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21166 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21167 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21168 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21169 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21170 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21171 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21172 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21173 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21177 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21178 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21179 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21180 echo $ECHO_N "(cached
) $ECHO_C" >&6
21182 eval "$as_ac_Header=\
$ac_header_preproc"
21184 ac_res=`eval echo '${'$as_ac_Header'}'`
21185 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21186 echo "${ECHO_T}$ac_res" >&6; }
21189 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21190 cat >>confdefs.h <<_ACEOF
21191 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21200 for ac_header in des.h
21202 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21203 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21204 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21205 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21206 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21207 echo $ECHO_N "(cached
) $ECHO_C" >&6
21209 ac_res=`eval echo '${'$as_ac_Header'}'`
21210 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21211 echo "${ECHO_T}$ac_res" >&6; }
21213 # Is the header compilable?
21214 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21215 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21216 cat >conftest.$ac_ext <<_ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h. */
21222 $ac_includes_default
21223 #include <$ac_header>
21225 rm -f conftest.$ac_objext
21226 if { (ac_try="$ac_compile"
21227 case "(($ac_try" in
21228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229 *) ac_try_echo=$ac_try;;
21231 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21232 (eval "$ac_compile") 2>conftest.er1
21234 grep -v '^ *+' conftest.er1 >conftest.err
21236 cat conftest.err >&5
21237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21238 (exit $ac_status); } && {
21239 test -z "$ac_c_werror_flag" ||
21240 test ! -s conftest.err
21241 } && test -s conftest.$ac_objext; then
21242 ac_header_compiler=yes
21244 echo "$as_me: failed program was
:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21247 ac_header_compiler=no
21250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21251 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21252 echo "${ECHO_T}$ac_header_compiler" >&6; }
21254 # Is the header present?
21255 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21256 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21257 cat >conftest.$ac_ext <<_ACEOF
21260 cat confdefs.h >>conftest.$ac_ext
21261 cat >>conftest.$ac_ext <<_ACEOF
21262 /* end confdefs.h. */
21263 #include <$ac_header>
21265 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21266 case "(($ac_try" in
21267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21268 *) ac_try_echo=$ac_try;;
21270 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21271 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21273 grep -v '^ *+' conftest.er1 >conftest.err
21275 cat conftest.err >&5
21276 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21277 (exit $ac_status); } >/dev/null && {
21278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21279 test ! -s conftest.err
21281 ac_header_preproc=yes
21283 echo "$as_me: failed program was
:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21286 ac_header_preproc=no
21289 rm -f conftest.err conftest.$ac_ext
21290 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21291 echo "${ECHO_T}$ac_header_preproc" >&6; }
21293 # So? What about this header?
21294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21296 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21297 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21298 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21300 ac_header_preproc=yes
21303 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21304 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21305 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21306 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21307 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21308 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21309 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21310 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21311 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21313 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21314 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21318 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21319 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21320 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21321 echo $ECHO_N "(cached
) $ECHO_C" >&6
21323 eval "$as_ac_Header=\
$ac_header_preproc"
21325 ac_res=`eval echo '${'$as_ac_Header'}'`
21326 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21327 echo "${ECHO_T}$ac_res" >&6; }
21330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21331 cat >>confdefs.h <<_ACEOF
21332 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21337 for ac_header in kerberosIV/des.h
21339 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21340 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21341 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21342 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21343 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21344 echo $ECHO_N "(cached
) $ECHO_C" >&6
21346 ac_res=`eval echo '${'$as_ac_Header'}'`
21347 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21348 echo "${ECHO_T}$ac_res" >&6; }
21350 # Is the header compilable?
21351 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21352 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21353 cat >conftest.$ac_ext <<_ACEOF
21356 cat confdefs.h >>conftest.$ac_ext
21357 cat >>conftest.$ac_ext <<_ACEOF
21358 /* end confdefs.h. */
21359 $ac_includes_default
21360 #include <$ac_header>
21362 rm -f conftest.$ac_objext
21363 if { (ac_try="$ac_compile"
21364 case "(($ac_try" in
21365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21366 *) ac_try_echo=$ac_try;;
21368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21369 (eval "$ac_compile") 2>conftest.er1
21371 grep -v '^ *+' conftest.er1 >conftest.err
21373 cat conftest.err >&5
21374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21375 (exit $ac_status); } && {
21376 test -z "$ac_c_werror_flag" ||
21377 test ! -s conftest.err
21378 } && test -s conftest.$ac_objext; then
21379 ac_header_compiler=yes
21381 echo "$as_me: failed program was
:" >&5
21382 sed 's/^/| /' conftest.$ac_ext >&5
21384 ac_header_compiler=no
21387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21388 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21389 echo "${ECHO_T}$ac_header_compiler" >&6; }
21391 # Is the header present?
21392 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21393 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21394 cat >conftest.$ac_ext <<_ACEOF
21397 cat confdefs.h >>conftest.$ac_ext
21398 cat >>conftest.$ac_ext <<_ACEOF
21399 /* end confdefs.h. */
21400 #include <$ac_header>
21402 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21403 case "(($ac_try" in
21404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405 *) ac_try_echo=$ac_try;;
21407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21408 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21410 grep -v '^ *+' conftest.er1 >conftest.err
21412 cat conftest.err >&5
21413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21414 (exit $ac_status); } >/dev/null && {
21415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21416 test ! -s conftest.err
21418 ac_header_preproc=yes
21420 echo "$as_me: failed program was
:" >&5
21421 sed 's/^/| /' conftest.$ac_ext >&5
21423 ac_header_preproc=no
21426 rm -f conftest.err conftest.$ac_ext
21427 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21428 echo "${ECHO_T}$ac_header_preproc" >&6; }
21430 # So? What about this header?
21431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21433 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21434 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21435 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21437 ac_header_preproc=yes
21440 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21441 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21442 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21443 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21444 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21445 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21446 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21447 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21448 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21450 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21451 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21455 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21456 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21457 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21458 echo $ECHO_N "(cached
) $ECHO_C" >&6
21460 eval "$as_ac_Header=\
$ac_header_preproc"
21462 ac_res=`eval echo '${'$as_ac_Header'}'`
21463 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21464 echo "${ECHO_T}$ac_res" >&6; }
21467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21468 cat >>confdefs.h <<_ACEOF
21469 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21474 for ac_header in kerberos/des.h
21476 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21477 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21478 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21479 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21480 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21481 echo $ECHO_N "(cached
) $ECHO_C" >&6
21483 ac_res=`eval echo '${'$as_ac_Header'}'`
21484 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21485 echo "${ECHO_T}$ac_res" >&6; }
21487 # Is the header compilable?
21488 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21489 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21490 cat >conftest.$ac_ext <<_ACEOF
21493 cat confdefs.h >>conftest.$ac_ext
21494 cat >>conftest.$ac_ext <<_ACEOF
21495 /* end confdefs.h. */
21496 $ac_includes_default
21497 #include <$ac_header>
21499 rm -f conftest.$ac_objext
21500 if { (ac_try="$ac_compile"
21501 case "(($ac_try" in
21502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21503 *) ac_try_echo=$ac_try;;
21505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21506 (eval "$ac_compile") 2>conftest.er1
21508 grep -v '^ *+' conftest.er1 >conftest.err
21510 cat conftest.err >&5
21511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21512 (exit $ac_status); } && {
21513 test -z "$ac_c_werror_flag" ||
21514 test ! -s conftest.err
21515 } && test -s conftest.$ac_objext; then
21516 ac_header_compiler=yes
21518 echo "$as_me: failed program was
:" >&5
21519 sed 's/^/| /' conftest.$ac_ext >&5
21521 ac_header_compiler=no
21524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21525 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21526 echo "${ECHO_T}$ac_header_compiler" >&6; }
21528 # Is the header present?
21529 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21530 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21531 cat >conftest.$ac_ext <<_ACEOF
21534 cat confdefs.h >>conftest.$ac_ext
21535 cat >>conftest.$ac_ext <<_ACEOF
21536 /* end confdefs.h. */
21537 #include <$ac_header>
21539 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21540 case "(($ac_try" in
21541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21542 *) ac_try_echo=$ac_try;;
21544 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21545 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21547 grep -v '^ *+' conftest.er1 >conftest.err
21549 cat conftest.err >&5
21550 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21551 (exit $ac_status); } >/dev/null && {
21552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21553 test ! -s conftest.err
21555 ac_header_preproc=yes
21557 echo "$as_me: failed program was
:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21560 ac_header_preproc=no
21563 rm -f conftest.err conftest.$ac_ext
21564 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21565 echo "${ECHO_T}$ac_header_preproc" >&6; }
21567 # So? What about this header?
21568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21570 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21571 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21572 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21574 ac_header_preproc=yes
21577 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21578 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21579 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21580 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21581 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21582 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21583 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21584 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21585 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21587 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21588 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21592 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21593 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21594 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21595 echo $ECHO_N "(cached
) $ECHO_C" >&6
21597 eval "$as_ac_Header=\
$ac_header_preproc"
21599 ac_res=`eval echo '${'$as_ac_Header'}'`
21600 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21601 echo "${ECHO_T}$ac_res" >&6; }
21604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21605 cat >>confdefs.h <<_ACEOF
21606 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21622 for ac_header in krb.h
21624 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21625 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21626 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21627 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21628 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21629 echo $ECHO_N "(cached
) $ECHO_C" >&6
21631 ac_res=`eval echo '${'$as_ac_Header'}'`
21632 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21633 echo "${ECHO_T}$ac_res" >&6; }
21635 # Is the header compilable?
21636 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21637 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21638 cat >conftest.$ac_ext <<_ACEOF
21641 cat confdefs.h >>conftest.$ac_ext
21642 cat >>conftest.$ac_ext <<_ACEOF
21643 /* end confdefs.h. */
21644 $ac_includes_default
21645 #include <$ac_header>
21647 rm -f conftest.$ac_objext
21648 if { (ac_try="$ac_compile"
21649 case "(($ac_try" in
21650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21651 *) ac_try_echo=$ac_try;;
21653 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21654 (eval "$ac_compile") 2>conftest.er1
21656 grep -v '^ *+' conftest.er1 >conftest.err
21658 cat conftest.err >&5
21659 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21660 (exit $ac_status); } && {
21661 test -z "$ac_c_werror_flag" ||
21662 test ! -s conftest.err
21663 } && test -s conftest.$ac_objext; then
21664 ac_header_compiler=yes
21666 echo "$as_me: failed program was
:" >&5
21667 sed 's/^/| /' conftest.$ac_ext >&5
21669 ac_header_compiler=no
21672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21673 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21674 echo "${ECHO_T}$ac_header_compiler" >&6; }
21676 # Is the header present?
21677 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21678 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21679 cat >conftest.$ac_ext <<_ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h. */
21685 #include <$ac_header>
21687 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21688 case "(($ac_try" in
21689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690 *) ac_try_echo=$ac_try;;
21692 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21693 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21695 grep -v '^ *+' conftest.er1 >conftest.err
21697 cat conftest.err >&5
21698 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21699 (exit $ac_status); } >/dev/null && {
21700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21701 test ! -s conftest.err
21703 ac_header_preproc=yes
21705 echo "$as_me: failed program was
:" >&5
21706 sed 's/^/| /' conftest.$ac_ext >&5
21708 ac_header_preproc=no
21711 rm -f conftest.err conftest.$ac_ext
21712 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21713 echo "${ECHO_T}$ac_header_preproc" >&6; }
21715 # So? What about this header?
21716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21718 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21719 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21720 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21721 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21722 ac_header_preproc=yes
21725 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21726 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21727 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21728 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21729 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21730 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21731 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21732 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21733 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21734 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21735 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21736 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21740 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21741 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21742 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21743 echo $ECHO_N "(cached
) $ECHO_C" >&6
21745 eval "$as_ac_Header=\
$ac_header_preproc"
21747 ac_res=`eval echo '${'$as_ac_Header'}'`
21748 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21749 echo "${ECHO_T}$ac_res" >&6; }
21752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21753 cat >>confdefs.h <<_ACEOF
21754 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21759 for ac_header in kerberosIV/krb.h
21761 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21762 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21763 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21764 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21765 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21766 echo $ECHO_N "(cached
) $ECHO_C" >&6
21768 ac_res=`eval echo '${'$as_ac_Header'}'`
21769 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21770 echo "${ECHO_T}$ac_res" >&6; }
21772 # Is the header compilable?
21773 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21774 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21775 cat >conftest.$ac_ext <<_ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h. */
21781 $ac_includes_default
21782 #include <$ac_header>
21784 rm -f conftest.$ac_objext
21785 if { (ac_try="$ac_compile"
21786 case "(($ac_try" in
21787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21788 *) ac_try_echo=$ac_try;;
21790 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21791 (eval "$ac_compile") 2>conftest.er1
21793 grep -v '^ *+' conftest.er1 >conftest.err
21795 cat conftest.err >&5
21796 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21797 (exit $ac_status); } && {
21798 test -z "$ac_c_werror_flag" ||
21799 test ! -s conftest.err
21800 } && test -s conftest.$ac_objext; then
21801 ac_header_compiler=yes
21803 echo "$as_me: failed program was
:" >&5
21804 sed 's/^/| /' conftest.$ac_ext >&5
21806 ac_header_compiler=no
21809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21810 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21811 echo "${ECHO_T}$ac_header_compiler" >&6; }
21813 # Is the header present?
21814 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21815 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21816 cat >conftest.$ac_ext <<_ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h. */
21822 #include <$ac_header>
21824 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21825 case "(($ac_try" in
21826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21827 *) ac_try_echo=$ac_try;;
21829 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21830 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21832 grep -v '^ *+' conftest.er1 >conftest.err
21834 cat conftest.err >&5
21835 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21836 (exit $ac_status); } >/dev/null && {
21837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21838 test ! -s conftest.err
21840 ac_header_preproc=yes
21842 echo "$as_me: failed program was
:" >&5
21843 sed 's/^/| /' conftest.$ac_ext >&5
21845 ac_header_preproc=no
21848 rm -f conftest.err conftest.$ac_ext
21849 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21850 echo "${ECHO_T}$ac_header_preproc" >&6; }
21852 # So? What about this header?
21853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21855 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21856 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21857 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21859 ac_header_preproc=yes
21862 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21863 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21864 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21865 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21866 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21867 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21868 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21869 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21870 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21872 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21873 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21877 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21878 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21879 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21880 echo $ECHO_N "(cached
) $ECHO_C" >&6
21882 eval "$as_ac_Header=\
$ac_header_preproc"
21884 ac_res=`eval echo '${'$as_ac_Header'}'`
21885 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21886 echo "${ECHO_T}$ac_res" >&6; }
21889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21890 cat >>confdefs.h <<_ACEOF
21891 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21896 for ac_header in kerberos/krb.h
21898 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21899 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21900 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21901 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21902 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21903 echo $ECHO_N "(cached
) $ECHO_C" >&6
21905 ac_res=`eval echo '${'$as_ac_Header'}'`
21906 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21907 echo "${ECHO_T}$ac_res" >&6; }
21909 # Is the header compilable?
21910 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21911 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21912 cat >conftest.$ac_ext <<_ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h. */
21918 $ac_includes_default
21919 #include <$ac_header>
21921 rm -f conftest.$ac_objext
21922 if { (ac_try="$ac_compile"
21923 case "(($ac_try" in
21924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21925 *) ac_try_echo=$ac_try;;
21927 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21928 (eval "$ac_compile") 2>conftest.er1
21930 grep -v '^ *+' conftest.er1 >conftest.err
21932 cat conftest.err >&5
21933 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21934 (exit $ac_status); } && {
21935 test -z "$ac_c_werror_flag" ||
21936 test ! -s conftest.err
21937 } && test -s conftest.$ac_objext; then
21938 ac_header_compiler=yes
21940 echo "$as_me: failed program was
:" >&5
21941 sed 's/^/| /' conftest.$ac_ext >&5
21943 ac_header_compiler=no
21946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21947 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21948 echo "${ECHO_T}$ac_header_compiler" >&6; }
21950 # Is the header present?
21951 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21952 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21953 cat >conftest.$ac_ext <<_ACEOF
21956 cat confdefs.h >>conftest.$ac_ext
21957 cat >>conftest.$ac_ext <<_ACEOF
21958 /* end confdefs.h. */
21959 #include <$ac_header>
21961 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21962 case "(($ac_try" in
21963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21964 *) ac_try_echo=$ac_try;;
21966 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21967 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21969 grep -v '^ *+' conftest.er1 >conftest.err
21971 cat conftest.err >&5
21972 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21973 (exit $ac_status); } >/dev/null && {
21974 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21975 test ! -s conftest.err
21977 ac_header_preproc=yes
21979 echo "$as_me: failed program was
:" >&5
21980 sed 's/^/| /' conftest.$ac_ext >&5
21982 ac_header_preproc=no
21985 rm -f conftest.err conftest.$ac_ext
21986 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21987 echo "${ECHO_T}$ac_header_preproc" >&6; }
21989 # So? What about this header?
21990 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21992 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21993 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21994 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21995 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21996 ac_header_preproc=yes
21999 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22000 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22001 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22002 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22003 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22004 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22005 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22006 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22007 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22008 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22009 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22010 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22014 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22015 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22016 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22017 echo $ECHO_N "(cached
) $ECHO_C" >&6
22019 eval "$as_ac_Header=\
$ac_header_preproc"
22021 ac_res=`eval echo '${'$as_ac_Header'}'`
22022 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22023 echo "${ECHO_T}$ac_res" >&6; }
22026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22027 cat >>confdefs.h <<_ACEOF
22028 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22045 for ac_header in com_err.h
22047 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22048 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22049 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22050 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22051 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22052 echo $ECHO_N "(cached
) $ECHO_C" >&6
22054 ac_res=`eval echo '${'$as_ac_Header'}'`
22055 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22056 echo "${ECHO_T}$ac_res" >&6; }
22058 # Is the header compilable?
22059 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22060 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22061 cat >conftest.$ac_ext <<_ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h. */
22067 $ac_includes_default
22068 #include <$ac_header>
22070 rm -f conftest.$ac_objext
22071 if { (ac_try="$ac_compile"
22072 case "(($ac_try" in
22073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22074 *) ac_try_echo=$ac_try;;
22076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22077 (eval "$ac_compile") 2>conftest.er1
22079 grep -v '^ *+' conftest.er1 >conftest.err
22081 cat conftest.err >&5
22082 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22083 (exit $ac_status); } && {
22084 test -z "$ac_c_werror_flag" ||
22085 test ! -s conftest.err
22086 } && test -s conftest.$ac_objext; then
22087 ac_header_compiler=yes
22089 echo "$as_me: failed program was
:" >&5
22090 sed 's/^/| /' conftest.$ac_ext >&5
22092 ac_header_compiler=no
22095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22096 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22097 echo "${ECHO_T}$ac_header_compiler" >&6; }
22099 # Is the header present?
22100 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22101 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22102 cat >conftest.$ac_ext <<_ACEOF
22105 cat confdefs.h >>conftest.$ac_ext
22106 cat >>conftest.$ac_ext <<_ACEOF
22107 /* end confdefs.h. */
22108 #include <$ac_header>
22110 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22111 case "(($ac_try" in
22112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22113 *) ac_try_echo=$ac_try;;
22115 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22116 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22118 grep -v '^ *+' conftest.er1 >conftest.err
22120 cat conftest.err >&5
22121 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22122 (exit $ac_status); } >/dev/null && {
22123 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22124 test ! -s conftest.err
22126 ac_header_preproc=yes
22128 echo "$as_me: failed program was
:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22131 ac_header_preproc=no
22134 rm -f conftest.err conftest.$ac_ext
22135 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22136 echo "${ECHO_T}$ac_header_preproc" >&6; }
22138 # So? What about this header?
22139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22141 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22142 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22143 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22145 ac_header_preproc=yes
22148 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22149 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22150 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22151 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22152 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22153 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22154 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22155 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22156 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22158 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22159 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22163 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22164 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22165 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22166 echo $ECHO_N "(cached
) $ECHO_C" >&6
22168 eval "$as_ac_Header=\
$ac_header_preproc"
22170 ac_res=`eval echo '${'$as_ac_Header'}'`
22171 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22172 echo "${ECHO_T}$ac_res" >&6; }
22175 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22176 cat >>confdefs.h <<_ACEOF
22177 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22186 # Solaris requires -lintl if you want strerror (which calls dgettext)
22187 # to return localized messages.
22189 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22190 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22191 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22192 echo $ECHO_N "(cached
) $ECHO_C" >&6
22194 ac_check_lib_save_LIBS=$LIBS
22195 LIBS="-lintl $LIBS"
22196 cat >conftest.$ac_ext <<_ACEOF
22199 cat confdefs.h >>conftest.$ac_ext
22200 cat >>conftest.$ac_ext <<_ACEOF
22201 /* end confdefs.h. */
22203 /* Override any GCC internal prototype to avoid an error.
22204 Use char because int might match the return type of a GCC
22205 builtin and then its argument prototype would still apply. */
22213 return dgettext ();
22218 rm -f conftest.$ac_objext conftest$ac_exeext
22219 if { (ac_try="$ac_link"
22220 case "(($ac_try" in
22221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22222 *) ac_try_echo=$ac_try;;
22224 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22225 (eval "$ac_link") 2>conftest.er1
22227 grep -v '^ *+' conftest.er1 >conftest.err
22229 cat conftest.err >&5
22230 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22231 (exit $ac_status); } && {
22232 test -z "$ac_c_werror_flag" ||
22233 test ! -s conftest.err
22234 } && test -s conftest$ac_exeext &&
22235 $as_test_x conftest$ac_exeext; then
22236 ac_cv_lib_intl_dgettext=yes
22238 echo "$as_me: failed program was
:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22241 ac_cv_lib_intl_dgettext=no
22244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22245 conftest$ac_exeext conftest.$ac_ext
22246 LIBS=$ac_check_lib_save_LIBS
22248 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22249 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22250 if test $ac_cv_lib_intl_dgettext = yes; then
22251 cat >>confdefs.h <<_ACEOF
22252 #define HAVE_LIBINTL 1
22255 LIBS="-lintl $LIBS"
22260 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22261 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22262 if test "${emacs_cv_localtime_cache+set}" = set; then
22263 echo $ECHO_N "(cached
) $ECHO_C" >&6
22265 if test x$ac_cv_func_tzset = xyes; then
22266 if test "$cross_compiling" = yes; then
22267 # If we have tzset, assume the worst when cross-compiling.
22268 emacs_cv_localtime_cache=yes
22270 cat >conftest.$ac_ext <<_ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h. */
22277 extern char **environ;
22281 for (to = from = environ; (*to = *from); from++)
22282 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22285 char TZ_GMT0[] = "TZ
=GMT0
";
22286 char TZ_PST8[] = "TZ
=PST8
";
22289 time_t now = time ((time_t *) 0);
22290 int hour_GMT0, hour_unset;
22291 if (putenv (TZ_GMT0) != 0)
22293 hour_GMT0 = localtime (&now)->tm_hour;
22295 hour_unset = localtime (&now)->tm_hour;
22296 if (putenv (TZ_PST8) != 0)
22298 if (localtime (&now)->tm_hour == hour_GMT0)
22301 if (localtime (&now)->tm_hour != hour_unset)
22306 rm -f conftest$ac_exeext
22307 if { (ac_try="$ac_link"
22308 case "(($ac_try" in
22309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22310 *) ac_try_echo=$ac_try;;
22312 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22313 (eval "$ac_link") 2>&5
22315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22317 { (case "(($ac_try" in
22318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22319 *) ac_try_echo=$ac_try;;
22321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22322 (eval "$ac_try") 2>&5
22324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22325 (exit $ac_status); }; }; then
22326 emacs_cv_localtime_cache=no
22328 echo "$as_me: program exited with status
$ac_status" >&5
22329 echo "$as_me: failed program was
:" >&5
22330 sed 's/^/| /' conftest.$ac_ext >&5
22332 ( exit $ac_status )
22333 emacs_cv_localtime_cache=yes
22335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22340 # If we lack tzset, report that localtime does not cache TZ,
22341 # since we can't invalidate the cache if we don't have tzset.
22342 emacs_cv_localtime_cache=no
22345 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22346 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22347 if test $emacs_cv_localtime_cache = yes; then
22349 cat >>confdefs.h <<\_ACEOF
22350 #define LOCALTIME_CACHE 1
22355 if test "x
$HAVE_TIMEVAL" = xyes; then
22357 for ac_func in gettimeofday
22359 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22360 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22361 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22362 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22363 echo $ECHO_N "(cached
) $ECHO_C" >&6
22365 cat >conftest.$ac_ext <<_ACEOF
22368 cat confdefs.h >>conftest.$ac_ext
22369 cat >>conftest.$ac_ext <<_ACEOF
22370 /* end confdefs.h. */
22371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22373 #define $ac_func innocuous_$ac_func
22375 /* System header to define __stub macros and hopefully few prototypes,
22376 which can conflict with char $ac_func (); below.
22377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22378 <limits.h> exists even on freestanding compilers. */
22381 # include <limits.h>
22383 # include <assert.h>
22388 /* Override any GCC internal prototype to avoid an error.
22389 Use char because int might match the return type of a GCC
22390 builtin and then its argument prototype would still apply. */
22395 /* The GNU C library defines this for functions which it implements
22396 to always fail with ENOSYS. Some functions are actually named
22397 something starting with __ and the normal name is an alias. */
22398 #if defined __stub_$ac_func || defined __stub___$ac_func
22405 return $ac_func ();
22410 rm -f conftest.$ac_objext conftest$ac_exeext
22411 if { (ac_try="$ac_link"
22412 case "(($ac_try" in
22413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22414 *) ac_try_echo=$ac_try;;
22416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22417 (eval "$ac_link") 2>conftest.er1
22419 grep -v '^ *+' conftest.er1 >conftest.err
22421 cat conftest.err >&5
22422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22423 (exit $ac_status); } && {
22424 test -z "$ac_c_werror_flag" ||
22425 test ! -s conftest.err
22426 } && test -s conftest$ac_exeext &&
22427 $as_test_x conftest$ac_exeext; then
22428 eval "$as_ac_var=yes"
22430 echo "$as_me: failed program was
:" >&5
22431 sed 's/^/| /' conftest.$ac_ext >&5
22433 eval "$as_ac_var=no
"
22436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22437 conftest$ac_exeext conftest.$ac_ext
22439 ac_res=`eval echo '${'$as_ac_var'}'`
22440 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22441 echo "${ECHO_T}$ac_res" >&6; }
22442 if test `eval echo '${'$as_ac_var'}'` = yes; then
22443 cat >>confdefs.h <<_ACEOF
22444 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22450 if test $ac_cv_func_gettimeofday = yes; then
22451 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22452 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22453 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22454 echo $ECHO_N "(cached
) $ECHO_C" >&6
22456 cat >conftest.$ac_ext <<_ACEOF
22459 cat confdefs.h >>conftest.$ac_ext
22460 cat >>conftest.$ac_ext <<_ACEOF
22461 /* end confdefs.h. */
22463 #ifdef TIME_WITH_SYS_TIME
22464 #include <sys/time.h>
22467 #ifdef HAVE_SYS_TIME_H
22468 #include <sys/time.h>
22476 struct timeval time;
22477 gettimeofday (&time, 0);
22482 rm -f conftest.$ac_objext
22483 if { (ac_try="$ac_compile"
22484 case "(($ac_try" in
22485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22486 *) ac_try_echo=$ac_try;;
22488 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22489 (eval "$ac_compile") 2>conftest.er1
22491 grep -v '^ *+' conftest.er1 >conftest.err
22493 cat conftest.err >&5
22494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22495 (exit $ac_status); } && {
22496 test -z "$ac_c_werror_flag" ||
22497 test ! -s conftest.err
22498 } && test -s conftest.$ac_objext; then
22499 emacs_cv_gettimeofday_two_arguments=yes
22501 echo "$as_me: failed program was
:" >&5
22502 sed 's/^/| /' conftest.$ac_ext >&5
22504 emacs_cv_gettimeofday_two_arguments=no
22507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22509 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22510 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22511 if test $emacs_cv_gettimeofday_two_arguments = no; then
22513 cat >>confdefs.h <<\_ACEOF
22514 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22522 { echo "$as_me:$LINENO: checking
for socket
" >&5
22523 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22524 if test "${ac_cv_func_socket+set}" = set; then
22525 echo $ECHO_N "(cached
) $ECHO_C" >&6
22527 cat >conftest.$ac_ext <<_ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h. */
22533 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22535 #define socket innocuous_socket
22537 /* System header to define __stub macros and hopefully few prototypes,
22538 which can conflict with char socket (); below.
22539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22540 <limits.h> exists even on freestanding compilers. */
22543 # include <limits.h>
22545 # include <assert.h>
22550 /* Override any GCC internal prototype to avoid an error.
22551 Use char because int might match the return type of a GCC
22552 builtin and then its argument prototype would still apply. */
22557 /* The GNU C library defines this for functions which it implements
22558 to always fail with ENOSYS. Some functions are actually named
22559 something starting with __ and the normal name is an alias. */
22560 #if defined __stub_socket || defined __stub___socket
22572 rm -f conftest.$ac_objext conftest$ac_exeext
22573 if { (ac_try="$ac_link"
22574 case "(($ac_try" in
22575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22576 *) ac_try_echo=$ac_try;;
22578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22579 (eval "$ac_link") 2>conftest.er1
22581 grep -v '^ *+' conftest.er1 >conftest.err
22583 cat conftest.err >&5
22584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22585 (exit $ac_status); } && {
22586 test -z "$ac_c_werror_flag" ||
22587 test ! -s conftest.err
22588 } && test -s conftest$ac_exeext &&
22589 $as_test_x conftest$ac_exeext; then
22590 ac_cv_func_socket=yes
22592 echo "$as_me: failed program was
:" >&5
22593 sed 's/^/| /' conftest.$ac_ext >&5
22595 ac_cv_func_socket=no
22598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22599 conftest$ac_exeext conftest.$ac_ext
22601 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22602 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22603 if test $ac_cv_func_socket = yes; then
22609 if test $ok_so_far = yes; then
22610 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22611 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22612 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22613 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22614 echo $ECHO_N "(cached
) $ECHO_C" >&6
22616 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22617 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22619 # Is the header compilable?
22620 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22621 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22622 cat >conftest.$ac_ext <<_ACEOF
22625 cat confdefs.h >>conftest.$ac_ext
22626 cat >>conftest.$ac_ext <<_ACEOF
22627 /* end confdefs.h. */
22628 $ac_includes_default
22629 #include <netinet/in.h>
22631 rm -f conftest.$ac_objext
22632 if { (ac_try="$ac_compile"
22633 case "(($ac_try" in
22634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22635 *) ac_try_echo=$ac_try;;
22637 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22638 (eval "$ac_compile") 2>conftest.er1
22640 grep -v '^ *+' conftest.er1 >conftest.err
22642 cat conftest.err >&5
22643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22644 (exit $ac_status); } && {
22645 test -z "$ac_c_werror_flag" ||
22646 test ! -s conftest.err
22647 } && test -s conftest.$ac_objext; then
22648 ac_header_compiler=yes
22650 echo "$as_me: failed program was
:" >&5
22651 sed 's/^/| /' conftest.$ac_ext >&5
22653 ac_header_compiler=no
22656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22657 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22658 echo "${ECHO_T}$ac_header_compiler" >&6; }
22660 # Is the header present?
22661 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22662 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22663 cat >conftest.$ac_ext <<_ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h. */
22669 #include <netinet/in.h>
22671 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22672 case "(($ac_try" in
22673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22674 *) ac_try_echo=$ac_try;;
22676 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22677 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22679 grep -v '^ *+' conftest.er1 >conftest.err
22681 cat conftest.err >&5
22682 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22683 (exit $ac_status); } >/dev/null && {
22684 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22685 test ! -s conftest.err
22687 ac_header_preproc=yes
22689 echo "$as_me: failed program was
:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22692 ac_header_preproc=no
22695 rm -f conftest.err conftest.$ac_ext
22696 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22697 echo "${ECHO_T}$ac_header_preproc" >&6; }
22699 # So? What about this header?
22700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22702 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22703 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22704 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22705 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22706 ac_header_preproc=yes
22709 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22710 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22711 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22712 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22713 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22714 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22715 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22716 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22717 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22718 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22719 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22720 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22724 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22725 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22726 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22727 echo $ECHO_N "(cached
) $ECHO_C" >&6
22729 ac_cv_header_netinet_in_h=$ac_header_preproc
22731 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22732 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22735 if test $ac_cv_header_netinet_in_h = yes; then
22743 if test $ok_so_far = yes; then
22744 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22745 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22746 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22747 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22748 echo $ECHO_N "(cached
) $ECHO_C" >&6
22750 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22751 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22753 # Is the header compilable?
22754 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22755 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22756 cat >conftest.$ac_ext <<_ACEOF
22759 cat confdefs.h >>conftest.$ac_ext
22760 cat >>conftest.$ac_ext <<_ACEOF
22761 /* end confdefs.h. */
22762 $ac_includes_default
22763 #include <arpa/inet.h>
22765 rm -f conftest.$ac_objext
22766 if { (ac_try="$ac_compile"
22767 case "(($ac_try" in
22768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22769 *) ac_try_echo=$ac_try;;
22771 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22772 (eval "$ac_compile") 2>conftest.er1
22774 grep -v '^ *+' conftest.er1 >conftest.err
22776 cat conftest.err >&5
22777 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22778 (exit $ac_status); } && {
22779 test -z "$ac_c_werror_flag" ||
22780 test ! -s conftest.err
22781 } && test -s conftest.$ac_objext; then
22782 ac_header_compiler=yes
22784 echo "$as_me: failed program was
:" >&5
22785 sed 's/^/| /' conftest.$ac_ext >&5
22787 ac_header_compiler=no
22790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22791 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22792 echo "${ECHO_T}$ac_header_compiler" >&6; }
22794 # Is the header present?
22795 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22796 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22797 cat >conftest.$ac_ext <<_ACEOF
22800 cat confdefs.h >>conftest.$ac_ext
22801 cat >>conftest.$ac_ext <<_ACEOF
22802 /* end confdefs.h. */
22803 #include <arpa/inet.h>
22805 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22806 case "(($ac_try" in
22807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22808 *) ac_try_echo=$ac_try;;
22810 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22811 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22813 grep -v '^ *+' conftest.er1 >conftest.err
22815 cat conftest.err >&5
22816 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22817 (exit $ac_status); } >/dev/null && {
22818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22819 test ! -s conftest.err
22821 ac_header_preproc=yes
22823 echo "$as_me: failed program was
:" >&5
22824 sed 's/^/| /' conftest.$ac_ext >&5
22826 ac_header_preproc=no
22829 rm -f conftest.err conftest.$ac_ext
22830 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22831 echo "${ECHO_T}$ac_header_preproc" >&6; }
22833 # So? What about this header?
22834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22836 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22837 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22838 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22839 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22840 ac_header_preproc=yes
22843 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22844 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22845 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22846 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22847 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22848 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22849 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22850 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22851 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22852 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22853 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22854 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22858 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22859 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22860 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22861 echo $ECHO_N "(cached
) $ECHO_C" >&6
22863 ac_cv_header_arpa_inet_h=$ac_header_preproc
22865 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22866 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22869 if test $ac_cv_header_arpa_inet_h = yes; then
22877 if test $ok_so_far = yes; then
22879 cat >>confdefs.h <<\_ACEOF
22880 #define HAVE_INET_SOCKETS 1
22886 for ac_header in sys/ioctl.h
22888 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22889 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22890 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22891 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22892 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22893 echo $ECHO_N "(cached
) $ECHO_C" >&6
22895 ac_res=`eval echo '${'$as_ac_Header'}'`
22896 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22897 echo "${ECHO_T}$ac_res" >&6; }
22899 # Is the header compilable?
22900 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22901 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22902 cat >conftest.$ac_ext <<_ACEOF
22905 cat confdefs.h >>conftest.$ac_ext
22906 cat >>conftest.$ac_ext <<_ACEOF
22907 /* end confdefs.h. */
22908 $ac_includes_default
22909 #include <$ac_header>
22911 rm -f conftest.$ac_objext
22912 if { (ac_try="$ac_compile"
22913 case "(($ac_try" in
22914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22915 *) ac_try_echo=$ac_try;;
22917 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22918 (eval "$ac_compile") 2>conftest.er1
22920 grep -v '^ *+' conftest.er1 >conftest.err
22922 cat conftest.err >&5
22923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22924 (exit $ac_status); } && {
22925 test -z "$ac_c_werror_flag" ||
22926 test ! -s conftest.err
22927 } && test -s conftest.$ac_objext; then
22928 ac_header_compiler=yes
22930 echo "$as_me: failed program was
:" >&5
22931 sed 's/^/| /' conftest.$ac_ext >&5
22933 ac_header_compiler=no
22936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22937 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22938 echo "${ECHO_T}$ac_header_compiler" >&6; }
22940 # Is the header present?
22941 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22942 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22943 cat >conftest.$ac_ext <<_ACEOF
22946 cat confdefs.h >>conftest.$ac_ext
22947 cat >>conftest.$ac_ext <<_ACEOF
22948 /* end confdefs.h. */
22949 #include <$ac_header>
22951 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22952 case "(($ac_try" in
22953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954 *) ac_try_echo=$ac_try;;
22956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22957 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22959 grep -v '^ *+' conftest.er1 >conftest.err
22961 cat conftest.err >&5
22962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22963 (exit $ac_status); } >/dev/null && {
22964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22965 test ! -s conftest.err
22967 ac_header_preproc=yes
22969 echo "$as_me: failed program was
:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22972 ac_header_preproc=no
22975 rm -f conftest.err conftest.$ac_ext
22976 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22977 echo "${ECHO_T}$ac_header_preproc" >&6; }
22979 # So? What about this header?
22980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22982 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22983 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22984 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22986 ac_header_preproc=yes
22989 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22990 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22991 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22992 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22993 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22994 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22995 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22996 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22997 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22999 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23000 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23004 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23005 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23006 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23007 echo $ECHO_N "(cached
) $ECHO_C" >&6
23009 eval "$as_ac_Header=\
$ac_header_preproc"
23011 ac_res=`eval echo '${'$as_ac_Header'}'`
23012 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23013 echo "${ECHO_T}$ac_res" >&6; }
23016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23017 cat >>confdefs.h <<_ACEOF
23018 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23026 if test -f /usr/lpp/X11/bin/smt.exp; then
23028 cat >>confdefs.h <<\_ACEOF
23029 #define HAVE_AIX_SMT_EXP 1
23034 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
23035 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
23036 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23037 { echo "$as_me:$LINENO: result
: yes" >&5
23038 echo "${ECHO_T}yes" >&6; }
23040 cat >>confdefs.h <<\_ACEOF
23041 #define HAVE_DEV_PTMX 1
23045 { echo "$as_me:$LINENO: result
: no
" >&5
23046 echo "${ECHO_T}no
" >&6; }
23049 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
23050 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
23051 if test "${ac_cv_type_pid_t+set}" = set; then
23052 echo $ECHO_N "(cached
) $ECHO_C" >&6
23054 cat >conftest.$ac_ext <<_ACEOF
23057 cat confdefs.h >>conftest.$ac_ext
23058 cat >>conftest.$ac_ext <<_ACEOF
23059 /* end confdefs.h. */
23060 $ac_includes_default
23061 typedef pid_t ac__type_new_;
23065 if ((ac__type_new_ *) 0)
23067 if (sizeof (ac__type_new_))
23073 rm -f conftest.$ac_objext
23074 if { (ac_try="$ac_compile"
23075 case "(($ac_try" in
23076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23077 *) ac_try_echo=$ac_try;;
23079 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23080 (eval "$ac_compile") 2>conftest.er1
23082 grep -v '^ *+' conftest.er1 >conftest.err
23084 cat conftest.err >&5
23085 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23086 (exit $ac_status); } && {
23087 test -z "$ac_c_werror_flag" ||
23088 test ! -s conftest.err
23089 } && test -s conftest.$ac_objext; then
23090 ac_cv_type_pid_t=yes
23092 echo "$as_me: failed program was
:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23095 ac_cv_type_pid_t=no
23098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23100 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
23101 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23102 if test $ac_cv_type_pid_t = yes; then
23106 cat >>confdefs.h <<_ACEOF
23113 for ac_header in vfork.h
23115 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23116 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23117 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23118 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23119 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23120 echo $ECHO_N "(cached
) $ECHO_C" >&6
23122 ac_res=`eval echo '${'$as_ac_Header'}'`
23123 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23124 echo "${ECHO_T}$ac_res" >&6; }
23126 # Is the header compilable?
23127 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23128 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23129 cat >conftest.$ac_ext <<_ACEOF
23132 cat confdefs.h >>conftest.$ac_ext
23133 cat >>conftest.$ac_ext <<_ACEOF
23134 /* end confdefs.h. */
23135 $ac_includes_default
23136 #include <$ac_header>
23138 rm -f conftest.$ac_objext
23139 if { (ac_try="$ac_compile"
23140 case "(($ac_try" in
23141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23142 *) ac_try_echo=$ac_try;;
23144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23145 (eval "$ac_compile") 2>conftest.er1
23147 grep -v '^ *+' conftest.er1 >conftest.err
23149 cat conftest.err >&5
23150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23151 (exit $ac_status); } && {
23152 test -z "$ac_c_werror_flag" ||
23153 test ! -s conftest.err
23154 } && test -s conftest.$ac_objext; then
23155 ac_header_compiler=yes
23157 echo "$as_me: failed program was
:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23160 ac_header_compiler=no
23163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23164 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23165 echo "${ECHO_T}$ac_header_compiler" >&6; }
23167 # Is the header present?
23168 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23169 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23170 cat >conftest.$ac_ext <<_ACEOF
23173 cat confdefs.h >>conftest.$ac_ext
23174 cat >>conftest.$ac_ext <<_ACEOF
23175 /* end confdefs.h. */
23176 #include <$ac_header>
23178 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23179 case "(($ac_try" in
23180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23181 *) ac_try_echo=$ac_try;;
23183 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23184 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23186 grep -v '^ *+' conftest.er1 >conftest.err
23188 cat conftest.err >&5
23189 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23190 (exit $ac_status); } >/dev/null && {
23191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23192 test ! -s conftest.err
23194 ac_header_preproc=yes
23196 echo "$as_me: failed program was
:" >&5
23197 sed 's/^/| /' conftest.$ac_ext >&5
23199 ac_header_preproc=no
23202 rm -f conftest.err conftest.$ac_ext
23203 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23204 echo "${ECHO_T}$ac_header_preproc" >&6; }
23206 # So? What about this header?
23207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23209 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23210 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23211 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23213 ac_header_preproc=yes
23216 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23217 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23218 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23219 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23220 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23221 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23222 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23223 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23224 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23226 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23227 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23231 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23232 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23233 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23234 echo $ECHO_N "(cached
) $ECHO_C" >&6
23236 eval "$as_ac_Header=\
$ac_header_preproc"
23238 ac_res=`eval echo '${'$as_ac_Header'}'`
23239 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23240 echo "${ECHO_T}$ac_res" >&6; }
23243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23244 cat >>confdefs.h <<_ACEOF
23245 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23254 for ac_func in fork vfork
23256 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23257 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23258 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23259 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23260 echo $ECHO_N "(cached
) $ECHO_C" >&6
23262 cat >conftest.$ac_ext <<_ACEOF
23265 cat confdefs.h >>conftest.$ac_ext
23266 cat >>conftest.$ac_ext <<_ACEOF
23267 /* end confdefs.h. */
23268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23270 #define $ac_func innocuous_$ac_func
23272 /* System header to define __stub macros and hopefully few prototypes,
23273 which can conflict with char $ac_func (); below.
23274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23275 <limits.h> exists even on freestanding compilers. */
23278 # include <limits.h>
23280 # include <assert.h>
23285 /* Override any GCC internal prototype to avoid an error.
23286 Use char because int might match the return type of a GCC
23287 builtin and then its argument prototype would still apply. */
23292 /* The GNU C library defines this for functions which it implements
23293 to always fail with ENOSYS. Some functions are actually named
23294 something starting with __ and the normal name is an alias. */
23295 #if defined __stub_$ac_func || defined __stub___$ac_func
23302 return $ac_func ();
23307 rm -f conftest.$ac_objext conftest$ac_exeext
23308 if { (ac_try="$ac_link"
23309 case "(($ac_try" in
23310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23311 *) ac_try_echo=$ac_try;;
23313 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23314 (eval "$ac_link") 2>conftest.er1
23316 grep -v '^ *+' conftest.er1 >conftest.err
23318 cat conftest.err >&5
23319 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23320 (exit $ac_status); } && {
23321 test -z "$ac_c_werror_flag" ||
23322 test ! -s conftest.err
23323 } && test -s conftest$ac_exeext &&
23324 $as_test_x conftest$ac_exeext; then
23325 eval "$as_ac_var=yes"
23327 echo "$as_me: failed program was
:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23330 eval "$as_ac_var=no
"
23333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23334 conftest$ac_exeext conftest.$ac_ext
23336 ac_res=`eval echo '${'$as_ac_var'}'`
23337 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23338 echo "${ECHO_T}$ac_res" >&6; }
23339 if test `eval echo '${'$as_ac_var'}'` = yes; then
23340 cat >>confdefs.h <<_ACEOF
23341 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23347 if test "x
$ac_cv_func_fork" = xyes; then
23348 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23349 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23350 if test "${ac_cv_func_fork_works+set}" = set; then
23351 echo $ECHO_N "(cached
) $ECHO_C" >&6
23353 if test "$cross_compiling" = yes; then
23354 ac_cv_func_fork_works=cross
23356 cat >conftest.$ac_ext <<_ACEOF
23359 cat confdefs.h >>conftest.$ac_ext
23360 cat >>conftest.$ac_ext <<_ACEOF
23361 /* end confdefs.h. */
23362 $ac_includes_default
23367 /* By Ruediger Kuhlmann. */
23368 return fork () < 0;
23374 rm -f conftest$ac_exeext
23375 if { (ac_try="$ac_link"
23376 case "(($ac_try" in
23377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23378 *) ac_try_echo=$ac_try;;
23380 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23381 (eval "$ac_link") 2>&5
23383 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23384 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23385 { (case "(($ac_try" in
23386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23387 *) ac_try_echo=$ac_try;;
23389 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23390 (eval "$ac_try") 2>&5
23392 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23393 (exit $ac_status); }; }; then
23394 ac_cv_func_fork_works=yes
23396 echo "$as_me: program exited with status
$ac_status" >&5
23397 echo "$as_me: failed program was
:" >&5
23398 sed 's/^/| /' conftest.$ac_ext >&5
23400 ( exit $ac_status )
23401 ac_cv_func_fork_works=no
23403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23408 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23409 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23412 ac_cv_func_fork_works=$ac_cv_func_fork
23414 if test "x
$ac_cv_func_fork_works" = xcross; then
23416 *-*-amigaos* | *-*-msdosdjgpp*)
23417 # Override, as these systems have only a dummy fork() stub
23418 ac_cv_func_fork_works=no
23421 ac_cv_func_fork_works=yes
23424 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23425 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23427 ac_cv_func_vfork_works=$ac_cv_func_vfork
23428 if test "x
$ac_cv_func_vfork" = xyes; then
23429 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23430 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23431 if test "${ac_cv_func_vfork_works+set}" = set; then
23432 echo $ECHO_N "(cached
) $ECHO_C" >&6
23434 if test "$cross_compiling" = yes; then
23435 ac_cv_func_vfork_works=cross
23437 cat >conftest.$ac_ext <<_ACEOF
23440 cat confdefs.h >>conftest.$ac_ext
23441 cat >>conftest.$ac_ext <<_ACEOF
23442 /* end confdefs.h. */
23443 /* Thanks to Paul Eggert for this test. */
23444 $ac_includes_default
23445 #include <sys/wait.h>
23446 #ifdef HAVE_VFORK_H
23447 # include <vfork.h>
23449 /* On some sparc systems, changes by the child to local and incoming
23450 argument registers are propagated back to the parent. The compiler
23451 is told about this with #include <vfork.h>, but some compilers
23452 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23453 static variable whose address is put into a register that is
23454 clobbered by the vfork. */
23457 sparc_address_test (int arg)
23459 sparc_address_test (arg) int arg;
23462 static pid_t child;
23480 pid_t parent = getpid ();
23483 sparc_address_test (0);
23488 /* Here is another test for sparc vfork register problems. This
23489 test uses lots of local variables, at least as many local
23490 variables as main has allocated so far including compiler
23491 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23492 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23493 reuse the register of parent for one of the local variables,
23494 since it will think that parent can't possibly be used any more
23495 in this routine. Assigning to the local variable will thus
23496 munge parent in the parent process. */
23498 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23499 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23500 /* Convince the compiler that p..p7 are live; otherwise, it might
23501 use the same hardware register for all 8 local variables. */
23502 if (p != p1 || p != p2 || p != p3 || p != p4
23503 || p != p5 || p != p6 || p != p7)
23506 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23507 from child file descriptors. If the child closes a descriptor
23508 before it execs or exits, this munges the parent's descriptor
23509 as well. Test for this by closing stdout in the child. */
23510 _exit(close(fileno(stdout)) != 0);
23515 while (wait(&status) != child)
23518 /* Was there some problem with vforking? */
23521 /* Did the child fail? (This shouldn't happen.) */
23524 /* Did the vfork/compiler bug occur? */
23525 || parent != getpid()
23527 /* Did the file descriptor bug occur? */
23528 || fstat(fileno(stdout), &st) != 0
23533 rm -f conftest$ac_exeext
23534 if { (ac_try="$ac_link"
23535 case "(($ac_try" in
23536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23537 *) ac_try_echo=$ac_try;;
23539 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23540 (eval "$ac_link") 2>&5
23542 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23544 { (case "(($ac_try" in
23545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23546 *) ac_try_echo=$ac_try;;
23548 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23549 (eval "$ac_try") 2>&5
23551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23552 (exit $ac_status); }; }; then
23553 ac_cv_func_vfork_works=yes
23555 echo "$as_me: program exited with status
$ac_status" >&5
23556 echo "$as_me: failed program was
:" >&5
23557 sed 's/^/| /' conftest.$ac_ext >&5
23559 ( exit $ac_status )
23560 ac_cv_func_vfork_works=no
23562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23567 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23568 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23571 if test "x
$ac_cv_func_fork_works" = xcross; then
23572 ac_cv_func_vfork_works=$ac_cv_func_vfork
23573 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23574 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23577 if test "x
$ac_cv_func_vfork_works" = xyes; then
23579 cat >>confdefs.h <<\_ACEOF
23580 #define HAVE_WORKING_VFORK 1
23585 cat >>confdefs.h <<\_ACEOF
23590 if test "x
$ac_cv_func_fork_works" = xyes; then
23592 cat >>confdefs.h <<\_ACEOF
23593 #define HAVE_WORKING_FORK 1
23599 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23600 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23601 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23602 echo $ECHO_N "(cached
) $ECHO_C" >&6
23604 cat >conftest.$ac_ext <<_ACEOF
23607 cat confdefs.h >>conftest.$ac_ext
23608 cat >>conftest.$ac_ext <<_ACEOF
23609 /* end confdefs.h. */
23610 #include <langinfo.h>
23614 char* cs = nl_langinfo(CODESET);
23619 rm -f conftest.$ac_objext conftest$ac_exeext
23620 if { (ac_try="$ac_link"
23621 case "(($ac_try" in
23622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23623 *) ac_try_echo=$ac_try;;
23625 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23626 (eval "$ac_link") 2>conftest.er1
23628 grep -v '^ *+' conftest.er1 >conftest.err
23630 cat conftest.err >&5
23631 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23632 (exit $ac_status); } && {
23633 test -z "$ac_c_werror_flag" ||
23634 test ! -s conftest.err
23635 } && test -s conftest$ac_exeext &&
23636 $as_test_x conftest$ac_exeext; then
23637 emacs_cv_langinfo_codeset=yes
23639 echo "$as_me: failed program was
:" >&5
23640 sed 's/^/| /' conftest.$ac_ext >&5
23642 emacs_cv_langinfo_codeset=no
23645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23646 conftest$ac_exeext conftest.$ac_ext
23649 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23650 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23651 if test $emacs_cv_langinfo_codeset = yes; then
23653 cat >>confdefs.h <<\_ACEOF
23654 #define HAVE_LANGINFO_CODESET 1
23659 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23660 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23661 if test "${ac_cv_type_size_t+set}" = set; then
23662 echo $ECHO_N "(cached
) $ECHO_C" >&6
23664 cat >conftest.$ac_ext <<_ACEOF
23667 cat confdefs.h >>conftest.$ac_ext
23668 cat >>conftest.$ac_ext <<_ACEOF
23669 /* end confdefs.h. */
23670 $ac_includes_default
23671 typedef size_t ac__type_new_;
23675 if ((ac__type_new_ *) 0)
23677 if (sizeof (ac__type_new_))
23683 rm -f conftest.$ac_objext
23684 if { (ac_try="$ac_compile"
23685 case "(($ac_try" in
23686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23687 *) ac_try_echo=$ac_try;;
23689 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23690 (eval "$ac_compile") 2>conftest.er1
23692 grep -v '^ *+' conftest.er1 >conftest.err
23694 cat conftest.err >&5
23695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23696 (exit $ac_status); } && {
23697 test -z "$ac_c_werror_flag" ||
23698 test ! -s conftest.err
23699 } && test -s conftest.$ac_objext; then
23700 ac_cv_type_size_t=yes
23702 echo "$as_me: failed program was
:" >&5
23703 sed 's/^/| /' conftest.$ac_ext >&5
23705 ac_cv_type_size_t=no
23708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23710 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23711 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23712 if test $ac_cv_type_size_t = yes; then
23714 cat >>confdefs.h <<_ACEOF
23715 #define HAVE_SIZE_T 1
23722 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23723 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23724 if test "${ac_cv_type_mbstate_t+set}" = set; then
23725 echo $ECHO_N "(cached
) $ECHO_C" >&6
23727 cat >conftest.$ac_ext <<_ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h. */
23733 $ac_includes_default
23734 # include <wchar.h>
23738 mbstate_t x; return sizeof x;
23743 rm -f conftest.$ac_objext
23744 if { (ac_try="$ac_compile"
23745 case "(($ac_try" in
23746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23747 *) ac_try_echo=$ac_try;;
23749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23750 (eval "$ac_compile") 2>conftest.er1
23752 grep -v '^ *+' conftest.er1 >conftest.err
23754 cat conftest.err >&5
23755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23756 (exit $ac_status); } && {
23757 test -z "$ac_c_werror_flag" ||
23758 test ! -s conftest.err
23759 } && test -s conftest.$ac_objext; then
23760 ac_cv_type_mbstate_t=yes
23762 echo "$as_me: failed program was
:" >&5
23763 sed 's/^/| /' conftest.$ac_ext >&5
23765 ac_cv_type_mbstate_t=no
23768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23770 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23771 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23772 if test $ac_cv_type_mbstate_t = yes; then
23774 cat >>confdefs.h <<\_ACEOF
23775 #define HAVE_MBSTATE_T 1
23780 cat >>confdefs.h <<\_ACEOF
23781 #define mbstate_t int
23786 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23787 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23788 if test "${emacs_cv_c_restrict+set}" = set; then
23789 echo $ECHO_N "(cached
) $ECHO_C" >&6
23791 cat >conftest.$ac_ext <<_ACEOF
23794 cat confdefs.h >>conftest.$ac_ext
23795 cat >>conftest.$ac_ext <<_ACEOF
23796 /* end confdefs.h. */
23797 void fred (int *restrict x);
23806 rm -f conftest.$ac_objext
23807 if { (ac_try="$ac_compile"
23808 case "(($ac_try" in
23809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23810 *) ac_try_echo=$ac_try;;
23812 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23813 (eval "$ac_compile") 2>conftest.er1
23815 grep -v '^ *+' conftest.er1 >conftest.err
23817 cat conftest.err >&5
23818 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23819 (exit $ac_status); } && {
23820 test -z "$ac_c_werror_flag" ||
23821 test ! -s conftest.err
23822 } && test -s conftest.$ac_objext; then
23823 emacs_cv_c_restrict=yes
23825 echo "$as_me: failed program was
:" >&5
23826 sed 's/^/| /' conftest.$ac_ext >&5
23828 cat >conftest.$ac_ext <<_ACEOF
23831 cat confdefs.h >>conftest.$ac_ext
23832 cat >>conftest.$ac_ext <<_ACEOF
23833 /* end confdefs.h. */
23834 void fred (int *__restrict x);
23843 rm -f conftest.$ac_objext
23844 if { (ac_try="$ac_compile"
23845 case "(($ac_try" in
23846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23847 *) ac_try_echo=$ac_try;;
23849 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23850 (eval "$ac_compile") 2>conftest.er1
23852 grep -v '^ *+' conftest.er1 >conftest.err
23854 cat conftest.err >&5
23855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23856 (exit $ac_status); } && {
23857 test -z "$ac_c_werror_flag" ||
23858 test ! -s conftest.err
23859 } && test -s conftest.$ac_objext; then
23860 emacs_cv_c_restrict=__restrict
23862 echo "$as_me: failed program was
:" >&5
23863 sed 's/^/| /' conftest.$ac_ext >&5
23865 emacs_cv_c_restrict=no
23868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23873 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23874 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23875 case "$emacs_cv_c_restrict" in
23876 yes) emacs_restrict=restrict;;
23877 no) emacs_restrict="";;
23878 *) emacs_restrict="$emacs_cv_c_restrict";;
23880 if test "$emacs_restrict" != __restrict; then
23882 cat >>confdefs.h <<_ACEOF
23883 #define __restrict $emacs_restrict
23888 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23889 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23890 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23891 echo $ECHO_N "(cached
) $ECHO_C" >&6
23893 cat >conftest.$ac_ext <<_ACEOF
23896 cat confdefs.h >>conftest.$ac_ext
23897 cat >>conftest.$ac_ext <<_ACEOF
23898 /* end confdefs.h. */
23899 void fred (int x[__restrict]);
23908 rm -f conftest.$ac_objext
23909 if { (ac_try="$ac_compile"
23910 case "(($ac_try" in
23911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23912 *) ac_try_echo=$ac_try;;
23914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23915 (eval "$ac_compile") 2>conftest.er1
23917 grep -v '^ *+' conftest.er1 >conftest.err
23919 cat conftest.err >&5
23920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23921 (exit $ac_status); } && {
23922 test -z "$ac_c_werror_flag" ||
23923 test ! -s conftest.err
23924 } && test -s conftest.$ac_objext; then
23925 emacs_cv_c_restrict_arr=yes
23927 echo "$as_me: failed program was
:" >&5
23928 sed 's/^/| /' conftest.$ac_ext >&5
23930 emacs_cv_c_restrict_arr=no
23933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23935 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23936 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23937 if test "$emacs_cv_c_restrict_arr" = yes; then
23939 cat >>confdefs.h <<\_ACEOF
23940 #define __restrict_arr __restrict
23947 # Set up the CFLAGS for real compilation, so we can substitute it.
23948 CFLAGS="$REAL_CFLAGS"
23949 CPPFLAGS="$REAL_CPPFLAGS"
23951 #### Find out which version of Emacs this is.
23952 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23953 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23954 if test x"${version}" = x; then
23955 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23956 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23957 { (exit 1); exit 1; }; }
23960 ### Specify what sort of things we'll be editing into Makefile and config.h.
23961 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23997 cat >>confdefs.h <<_ACEOF
23998 #define EMACS_CONFIGURATION "${canonical}"
24002 cat >>confdefs.h <<_ACEOF
24003 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24007 cat >>confdefs.h <<_ACEOF
24008 #define config_machfile "${machfile}"
24012 cat >>confdefs.h <<_ACEOF
24013 #define config_opsysfile "${opsysfile}"
24017 cat >>confdefs.h <<_ACEOF
24018 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24022 cat >>confdefs.h <<_ACEOF
24023 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24027 cat >>confdefs.h <<_ACEOF
24028 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24032 cat >>confdefs.h <<_ACEOF
24033 #define UNEXEC_SRC ${UNEXEC_SRC}
24037 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24039 cat >>confdefs.h <<\_ACEOF
24040 #define HAVE_X_WINDOWS 1
24044 if test "${USE_X_TOOLKIT}" != "none
" ; then
24046 cat >>confdefs.h <<\_ACEOF
24047 #define USE_X_TOOLKIT 1
24051 if test "${HAVE_X11}" = "yes" ; then
24053 cat >>confdefs.h <<\_ACEOF
24058 if test "${HAVE_XFREE386}" = "yes" ; then
24060 cat >>confdefs.h <<\_ACEOF
24061 #define HAVE_XFREE386 1
24065 if test "${HAVE_MENUS}" = "yes" ; then
24067 cat >>confdefs.h <<\_ACEOF
24068 #define HAVE_MENUS 1
24072 if test "${GNU_MALLOC}" = "yes" ; then
24074 cat >>confdefs.h <<\_ACEOF
24075 #define GNU_MALLOC 1
24079 if test "${REL_ALLOC}" = "yes" ; then
24081 cat >>confdefs.h <<\_ACEOF
24082 #define REL_ALLOC 1
24092 #### Report on what we decided to do.
24093 #### Report GTK as a toolkit, even if it doesn't use Xt.
24094 #### It makes printing result more understandable as using GTK sets
24095 #### toolkit_scroll_bars to yes by default.
24096 if test "${HAVE_GTK}" = "yes"; then
24101 Configured
for \
`${canonical}'.
24103 Where should the build process find the source code? ${srcdir}
24104 What operating system and machine description files should Emacs use?
24105 \`${opsysfile}' and \`${machfile}'
24106 What compiler should emacs be built with?
${CC} ${CFLAGS}
24107 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
24108 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
24109 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
24110 What window system should Emacs use?
${window_system}
24111 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
24113 if test -n "${x_includes}"; then
24114 echo " Where
do we
find X Windows header files?
${x_includes}"
24116 echo " Where
do we
find X Windows header files? Standard
dirs"
24118 if test -n "${x_libraries}"; then
24119 echo " Where
do we
find X Windows libraries?
${x_libraries}"
24121 echo " Where
do we
find X Windows libraries? Standard
dirs"
24124 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
24125 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
24126 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
24127 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
24128 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
24129 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
24130 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
24131 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
24132 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
24135 if test $USE_XASSERTS = yes; then
24136 echo " Compiling with asserts turned on.
"
24137 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24141 if test "$USE_X_TOOLKIT" = GTK; then
24142 case "$canonical" in
24144 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
24145 will probably get a crash on startup. If this happens
, please use another
24146 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
24153 # Remove any trailing slashes in these variables.
24154 test "${prefix}" != NONE &&
24155 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24156 test "${exec_prefix}" != NONE &&
24157 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24159 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24160 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24161 ## from Makefile.c can correctly provide the arg `-traditional' to the
24164 cat >conftest.$ac_ext <<_ACEOF
24167 cat confdefs.h >>conftest.$ac_ext
24168 cat >>conftest.$ac_ext <<_ACEOF
24169 /* end confdefs.h. */
24172 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24173 $EGREP "yes..
yes" >/dev/null 2>&1; then
24174 CPP_NEED_TRADITIONAL=no
24176 CPP_NEED_TRADITIONAL=yes
24181 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
"
24183 ac_config_commands="$ac_config_commands default
"
24185 cat >confcache <<\_ACEOF
24186 # This file is a shell script that caches the results of configure
24187 # tests run on this system so they can be shared between configure
24188 # scripts and configure runs, see configure's option --config-cache.
24189 # It is not useful on other systems. If it contains results you don't
24190 # want to keep, you may remove or edit it.
24192 # config.status only pays attention to the cache file if you give it
24193 # the --recheck option to rerun configure.
24195 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24196 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24197 # following values.
24201 # The following way of writing the cache mishandles newlines in values,
24202 # but we know of no workaround that is simple, portable, and efficient.
24203 # So, we kill variables containing newlines.
24204 # Ultrix sh set writes to stderr and can't be redirected directly,
24205 # and sets the high bit in the cache file unless we assign to the vars.
24207 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24208 eval ac_val=\$$ac_var
24212 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24213 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24216 _ | IFS | as_nl) ;; #(
24217 *) $as_unset $ac_var ;;
24223 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24224 *${as_nl}ac_space=\ *)
24225 # `set' does not quote correctly, so add quotes (double-quote
24226 # substitution turns \\\\ into \\, and sed turns \\ into \).
24229 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24232 # `set' quotes correctly as required by POSIX, so do not add quotes.
24233 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24242 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24244 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24246 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24247 if test -w "$cache_file"; then
24248 test "x
$cache_file" != "x
/dev
/null
" &&
24249 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24250 echo "$as_me: updating cache
$cache_file" >&6;}
24251 cat confcache >$cache_file
24253 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24254 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24259 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24260 # Let make expand exec_prefix.
24261 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24263 DEFS=-DHAVE_CONFIG_H
24267 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24268 # 1. Remove the extension, and $U if already installed.
24269 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24270 ac_i=`echo "$ac_i" | sed "$ac_script"`
24271 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24272 # will be set to the directory where LIBOBJS objects are built.
24273 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24274 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24276 LIBOBJS=$ac_libobjs
24278 LTLIBOBJS=$ac_ltlibobjs
24282 : ${CONFIG_STATUS=./config.status}
24283 ac_clean_files_save=$ac_clean_files
24284 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24285 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24286 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24287 cat >$CONFIG_STATUS <<_ACEOF
24289 # Generated by $as_me.
24290 # Run this file to recreate the current configuration.
24291 # Compiler output produced by configure, useful for debugging
24292 # configure, is in config.log if it exists.
24295 ac_cs_recheck=false
24297 SHELL=\${CONFIG_SHELL-$SHELL}
24300 cat >>$CONFIG_STATUS <<\_ACEOF
24301 ## --------------------- ##
24302 ## M4sh Initialization. ##
24303 ## --------------------- ##
24305 # Be more Bourne compatible
24306 DUALCASE=1; export DUALCASE # for MKS sh
24307 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24310 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24311 # is contrary to our usage. Disable this feature.
24312 alias -g '${1+"$@"}'='"$@
"'
24313 setopt NO_GLOB_SUBST
24315 case `(set -o) 2>/dev/null` in
24316 *posix*) set -o posix ;;
24325 # Avoid depending upon Character Ranges.
24326 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24327 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24328 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24329 as_cr_digits='0123456789'
24330 as_cr_alnum=$as_cr_Letters$as_cr_digits
24332 # The user is always right.
24333 if test "${PATH_SEPARATOR+set}" != set; then
24334 echo "#! /bin/sh" >conf$$.sh
24335 echo "exit 0" >>conf$$.sh
24337 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24345 # Support unset when possible.
24346 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24354 # We need space, tab and new line, in precisely that order. Quoting is
24355 # there to prevent editors from complaining about space-tab.
24356 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24357 # splitting by setting IFS to empty value.)
24362 # Find who we are. Look in the path if we contain no directory separator.
24364 *[\\/]* ) as_myself
=$0 ;;
24365 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24366 for as_dir
in $PATH
24369 test -z "$as_dir" && as_dir
=.
24370 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24376 # We did not find ourselves, most probably we were run as `sh COMMAND'
24377 # in which case we are not to be found in the path.
24378 if test "x$as_myself" = x
; then
24381 if test ! -f "$as_myself"; then
24382 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24383 { (exit 1); exit 1; }
24386 # Work around bugs in pre-3.0 UWIN ksh.
24387 for as_var
in ENV MAIL MAILPATH
24388 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24396 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24397 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24398 LC_TELEPHONE LC_TIME
24400 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24401 eval $as_var=C
; export $as_var
24403 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24407 # Required to use basename.
24408 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24409 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24415 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24416 as_basename
=basename
24422 # Name of the executable.
24423 as_me
=`$as_basename -- "$0" ||
24424 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24425 X"$0" : 'X\(//\)$' \| \
24426 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24428 sed '/^.*\/\([^/][^/]*\)\/*$/{
24447 as_lineno_1
=$LINENO
24448 as_lineno_2
=$LINENO
24449 test "x$as_lineno_1" != "x$as_lineno_2" &&
24450 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24452 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24453 # uniformly replaced by the line number. The first 'sed' inserts a
24454 # line-number line after each line using $LINENO; the second 'sed'
24455 # does the real work. The second script uses 'N' to pair each
24456 # line-number line with the line containing $LINENO, and appends
24457 # trailing '-' during substitution so that $LINENO is not a special
24458 # case at line end.
24459 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24460 # scripts with optimization help from Paolo Bonzini. Blame Lee
24461 # E. McMahon (1931-1989) for sed's syntax. :-)
24473 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24476 ' >$as_me.lineno
&&
24477 chmod +x
"$as_me.lineno" ||
24478 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24479 { (exit 1); exit 1; }; }
24481 # Don't try to exec as it changes $[0], causing all sort of problems
24482 # (the dirname of $[0] is not the place where we might find the
24483 # original and so on. Autoconf is especially sensitive to this).
24484 .
"./$as_me.lineno"
24485 # Exit status is that of the last command.
24490 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24496 ECHO_C
= ECHO_N
= ECHO_T
=
24497 case `echo -n x` in
24499 case `echo 'x\c'` in
24500 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24507 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24508 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24514 rm -f conf$$ conf$$.exe conf$$.
file
24515 if test -d conf$$.dir
; then
24516 rm -f conf$$.dir
/conf$$.
file
24522 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24524 # ... but there are two gotchas:
24525 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24526 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24527 # In both cases, we have to default to `cp -p'.
24528 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24530 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24535 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24536 rmdir conf$$.dir
2>/dev
/null
24538 if mkdir
-p .
2>/dev
/null
; then
24541 test -d .
/-p && rmdir .
/-p
24545 if test -x / >/dev
/null
2>&1; then
24546 as_test_x
='test -x'
24548 if ls -dL / >/dev
/null
2>&1; then
24555 if test -d "$1"; then
24561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24562 ???[sx]*):;;*)false;;esac;fi
24566 as_executable_p
=$as_test_x
24568 # Sed expression to map a string onto a valid CPP name.
24569 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24571 # Sed expression to map a string onto a valid variable name.
24572 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24577 # Save the log message, to keep $[0] and so on meaningful, and to
24578 # report actual input values of CONFIG_FILES etc. instead of their
24579 # values after options handling.
24581 This file was extended by $as_me, which was
24582 generated by GNU Autoconf 2.61. Invocation command line was
24584 CONFIG_FILES = $CONFIG_FILES
24585 CONFIG_HEADERS = $CONFIG_HEADERS
24586 CONFIG_LINKS = $CONFIG_LINKS
24587 CONFIG_COMMANDS = $CONFIG_COMMANDS
24590 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24595 cat >>$CONFIG_STATUS <<_ACEOF
24596 # Files that config.status was made for.
24597 config_files="$ac_config_files"
24598 config_headers="$ac_config_headers"
24599 config_commands="$ac_config_commands"
24603 cat >>$CONFIG_STATUS <<\_ACEOF
24605 \`$as_me' instantiates files from templates according to the
24606 current configuration.
24608 Usage: $0 [OPTIONS] [FILE]...
24610 -h, --help print this help, then exit
24611 -V, --version print version number and configuration settings, then exit
24612 -q, --quiet do not print progress messages
24613 -d, --debug don't remove temporary files
24614 --recheck update $as_me by reconfiguring in the same conditions
24615 --file=FILE[:TEMPLATE]
24616 instantiate the configuration file FILE
24617 --header=FILE[:TEMPLATE]
24618 instantiate the configuration header FILE
24620 Configuration files:
24623 Configuration headers:
24626 Configuration commands:
24629 Report bugs to <bug-autoconf@gnu.org>."
24632 cat >>$CONFIG_STATUS <<_ACEOF
24635 configured by $0, generated by GNU Autoconf 2.61,
24636 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24638 Copyright (C) 2006 Free Software Foundation, Inc.
24639 This config.status script is free software; the Free Software Foundation
24640 gives unlimited permission to copy, distribute and modify it."
24647 cat >>$CONFIG_STATUS <<\_ACEOF
24648 # If no file are specified by the user, then we need to provide default
24649 # value. By we need to know if files were specified by the user.
24655 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24656 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24667 # Handling of the options.
24668 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24670 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24671 echo "$ac_cs_version"; exit ;;
24672 --debug |
--debu |
--deb |
--de |
--d |
-d )
24674 --file |
--fil |
--fi |
--f )
24676 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24677 ac_need_defaults
=false
;;
24678 --header |
--heade |
--head |
--hea )
24680 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24681 ac_need_defaults
=false
;;
24683 # Conflict between --help and --header
24684 { echo "$as_me: error: ambiguous option: $1
24685 Try \`$0 --help' for more information." >&2
24686 { (exit 1); exit 1; }; };;
24687 --help |
--hel |
-h )
24688 echo "$ac_cs_usage"; exit ;;
24689 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24690 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24693 # This is an error.
24694 -*) { echo "$as_me: error: unrecognized option: $1
24695 Try \`$0 --help' for more information." >&2
24696 { (exit 1); exit 1; }; } ;;
24698 *) ac_config_targets
="$ac_config_targets $1"
24699 ac_need_defaults
=false
;;
24705 ac_configure_extra_args
=
24707 if $ac_cs_silent; then
24709 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24713 cat >>$CONFIG_STATUS <<_ACEOF
24714 if \$ac_cs_recheck; then
24715 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24716 CONFIG_SHELL=$SHELL
24717 export CONFIG_SHELL
24718 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24722 cat >>$CONFIG_STATUS <<\_ACEOF
24726 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24727 ## Running $as_me. ##
24733 cat >>$CONFIG_STATUS <<_ACEOF
24737 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24741 cat >>$CONFIG_STATUS <<\_ACEOF
24743 # Handling of arguments.
24744 for ac_config_target
in $ac_config_targets
24746 case $ac_config_target in
24747 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24748 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24749 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24750 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24751 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24752 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24753 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24754 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24755 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24756 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24757 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24758 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24759 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24761 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24762 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24763 { (exit 1); exit 1; }; };;
24768 # If the user did not use the arguments to specify the items to instantiate,
24769 # then the envvar interface is used. Set only those that are not.
24770 # We use the long form for the default assignment because of an extremely
24771 # bizarre bug on SunOS 4.1.3.
24772 if $ac_need_defaults; then
24773 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24774 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24775 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24778 # Have a temporary directory for convenience. Make it in the build tree
24779 # simply because there is no reason against having it here, and in addition,
24780 # creating and moving files from /tmp can sometimes cause problems.
24781 # Hook for its removal unless debugging.
24782 # Note that there is a small window in which the directory will not be cleaned:
24783 # after its creation but before its name has been assigned to `$tmp'.
24787 trap 'exit_status=$?
24788 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24790 trap '{ (exit 1); exit 1; }' 1 2 13 15
24792 # Create a (secure) tmp directory for tmp files.
24795 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24796 test -n "$tmp" && test -d "$tmp"
24799 tmp
=.
/conf$$
-$RANDOM
24800 (umask 077 && mkdir
"$tmp")
24803 echo "$me: cannot create a temporary directory in ." >&2
24804 { (exit 1); exit 1; }
24808 # Set up the sed scripts for CONFIG_FILES section.
24811 # No need to generate the scripts if there are no CONFIG_FILES.
24812 # This happens for instance when ./config.status config.h
24813 if test -n "$CONFIG_FILES"; then
24820 for ac_last_try
in false false false false false
:; do
24821 cat >conf$
$subs.
sed <<_ACEOF
24822 SHELL!$SHELL$ac_delim
24823 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24824 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24825 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24826 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24827 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24828 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24829 exec_prefix!$exec_prefix$ac_delim
24830 prefix!$prefix$ac_delim
24831 program_transform_name!$program_transform_name$ac_delim
24832 bindir!$bindir$ac_delim
24833 sbindir!$sbindir$ac_delim
24834 libexecdir!$libexecdir$ac_delim
24835 datarootdir!$datarootdir$ac_delim
24836 datadir!$datadir$ac_delim
24837 sysconfdir!$sysconfdir$ac_delim
24838 sharedstatedir!$sharedstatedir$ac_delim
24839 localstatedir!$localstatedir$ac_delim
24840 includedir!$includedir$ac_delim
24841 oldincludedir!$oldincludedir$ac_delim
24842 docdir!$docdir$ac_delim
24843 infodir!$infodir$ac_delim
24844 htmldir!$htmldir$ac_delim
24845 dvidir!$dvidir$ac_delim
24846 pdfdir!$pdfdir$ac_delim
24847 psdir!$psdir$ac_delim
24848 libdir!$libdir$ac_delim
24849 localedir!$localedir$ac_delim
24850 mandir!$mandir$ac_delim
24851 DEFS!$DEFS$ac_delim
24852 ECHO_C!$ECHO_C$ac_delim
24853 ECHO_N!$ECHO_N$ac_delim
24854 ECHO_T!$ECHO_T$ac_delim
24855 LIBS!$LIBS$ac_delim
24856 build_alias!$build_alias$ac_delim
24857 host_alias!$host_alias$ac_delim
24858 target_alias!$target_alias$ac_delim
24859 MAINT!$MAINT$ac_delim
24860 build!$build$ac_delim
24861 build_cpu!$build_cpu$ac_delim
24862 build_vendor!$build_vendor$ac_delim
24863 build_os!$build_os$ac_delim
24864 host!$host$ac_delim
24865 host_cpu!$host_cpu$ac_delim
24866 host_vendor!$host_vendor$ac_delim
24867 host_os!$host_os$ac_delim
24869 CFLAGS!$CFLAGS$ac_delim
24870 LDFLAGS!$LDFLAGS$ac_delim
24871 CPPFLAGS!$CPPFLAGS$ac_delim
24872 ac_ct_CC!$ac_ct_CC$ac_delim
24873 EXEEXT!$EXEEXT$ac_delim
24874 OBJEXT!$OBJEXT$ac_delim
24876 GREP!$GREP$ac_delim
24877 EGREP!$EGREP$ac_delim
24878 LN_S!$LN_S$ac_delim
24879 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24880 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24881 INSTALL_DATA!$INSTALL_DATA$ac_delim
24882 RANLIB!$RANLIB$ac_delim
24883 INSTALL_INFO!$INSTALL_INFO$ac_delim
24884 GZIP_PROG!$GZIP_PROG$ac_delim
24885 MAKEINFO!$MAKEINFO$ac_delim
24886 LIBSOUND!$LIBSOUND$ac_delim
24887 PKG_CONFIG!$PKG_CONFIG$ac_delim
24888 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24889 ALSA_LIBS!$ALSA_LIBS$ac_delim
24890 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24891 SET_MAKE!$SET_MAKE$ac_delim
24892 XMKMF!$XMKMF$ac_delim
24893 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24894 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24895 RSVG_LIBS!$RSVG_LIBS$ac_delim
24896 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24897 GTK_LIBS!$GTK_LIBS$ac_delim
24898 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24899 XFT_LIBS!$XFT_LIBS$ac_delim
24900 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24901 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24902 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24903 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24904 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24905 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24906 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24907 ALLOCA!$ALLOCA$ac_delim
24908 liblockfile!$liblockfile$ac_delim
24909 LIBOBJS!$LIBOBJS$ac_delim
24910 NEED_SETGID!$NEED_SETGID$ac_delim
24911 KMEM_GROUP!$KMEM_GROUP$ac_delim
24912 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24913 GETOPT_H!$GETOPT_H$ac_delim
24914 GETOPTOBJS!$GETOPTOBJS$ac_delim
24915 version!$version$ac_delim
24916 configuration!$configuration$ac_delim
24917 canonical!$canonical$ac_delim
24918 srcdir!$srcdir$ac_delim
24921 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24923 elif $ac_last_try; then
24924 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24925 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24926 { (exit 1); exit 1; }; }
24928 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24932 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24933 if test -n "$ac_eof"; then
24934 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24935 ac_eof
=`expr $ac_eof + 1`
24938 cat >>$CONFIG_STATUS <<_ACEOF
24939 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24940 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24943 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24944 s/^/s,@/; s/!/@,|#_!!_#|/
24947 s/'"$ac_delim"'$/,g/; t
24949 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24950 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24951 rm -f conf$
$subs.
sed
24952 cat >>$CONFIG_STATUS <<_ACEOF
24958 for ac_last_try
in false false false false false
:; do
24959 cat >conf$
$subs.
sed <<_ACEOF
24960 lispdir!$lispdir$ac_delim
24961 locallisppath!$locallisppath$ac_delim
24962 lisppath!$lisppath$ac_delim
24963 x_default_search_path!$x_default_search_path$ac_delim
24964 etcdir!$etcdir$ac_delim
24965 archlibdir!$archlibdir$ac_delim
24966 bitmapdir!$bitmapdir$ac_delim
24967 gamedir!$gamedir$ac_delim
24968 gameuser!$gameuser$ac_delim
24969 c_switch_system!$c_switch_system$ac_delim
24970 c_switch_machine!$c_switch_machine$ac_delim
24971 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24972 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24973 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24974 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24975 machfile!$machfile$ac_delim
24976 opsysfile!$opsysfile$ac_delim
24977 carbon_appdir!$carbon_appdir$ac_delim
24978 LTLIBOBJS!$LTLIBOBJS$ac_delim
24981 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
24983 elif $ac_last_try; then
24984 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24985 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24986 { (exit 1); exit 1; }; }
24988 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24992 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24993 if test -n "$ac_eof"; then
24994 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24995 ac_eof
=`expr $ac_eof + 1`
24998 cat >>$CONFIG_STATUS <<_ACEOF
24999 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25000 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25003 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25004 s/^/s,@/; s/!/@,|#_!!_#|/
25007 s/'"$ac_delim"'$/,g/; t
25009 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25010 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25011 rm -f conf$
$subs.
sed
25012 cat >>$CONFIG_STATUS <<_ACEOF
25019 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25020 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25021 # trailing colons and then remove the whole line if VPATH becomes empty
25022 # (actually we leave an empty line to preserve line numbers).
25023 if test "x$srcdir" = x.
; then
25024 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25025 s/:*\$(srcdir):*/:/
25026 s/:*\${srcdir}:*/:/
25028 s/^\([^=]*=[ ]*\):*/\1/
25034 cat >>$CONFIG_STATUS <<\_ACEOF
25035 fi # test -n "$CONFIG_FILES"
25038 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25041 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25043 case $ac_mode$ac_tag in
25045 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25046 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25047 { (exit 1); exit 1; }; };;
25048 :[FH
]-) ac_tag
=-:-;;
25049 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25066 -) ac_f
="$tmp/stdin";;
25067 *) # Look for the file first in the build tree, then in the source tree
25068 # (if the path is not absolute). The absolute path cannot be DOS-style,
25069 # because $ac_f cannot contain `:'.
25073 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25075 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25076 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25077 { (exit 1); exit 1; }; };;
25079 ac_file_inputs
="$ac_file_inputs $ac_f"
25082 # Let's still pretend it is `configure' which instantiates (i.e., don't
25083 # use $as_me), people would be surprised to read:
25084 # /* config.h. Generated by config.status. */
25085 configure_input
="Generated from "`IFS=:
25086 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25087 if test x
"$ac_file" != x-
; then
25088 configure_input
="$ac_file. $configure_input"
25089 { echo "$as_me:$LINENO: creating $ac_file" >&5
25090 echo "$as_me: creating $ac_file" >&6;}
25094 *:-:* |
*:-) cat >"$tmp/stdin";;
25099 ac_dir
=`$as_dirname -- "$ac_file" ||
25100 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25101 X"$ac_file" : 'X\(//\)[^/]' \| \
25102 X"$ac_file" : 'X\(//\)$' \| \
25103 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25109 /^X\(\/\/\)[^/].*/{
25124 -*) as_dir
=.
/$as_dir;;
25126 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25130 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25131 *) as_qdir
=$as_dir;;
25133 as_dirs
="'$as_qdir' $as_dirs"
25134 as_dir
=`$as_dirname -- "$as_dir" ||
25135 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25136 X"$as_dir" : 'X\(//\)[^/]' \| \
25137 X"$as_dir" : 'X\(//\)$' \| \
25138 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25144 /^X\(\/\/\)[^/].*/{
25157 test -d "$as_dir" && break
25159 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25160 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25161 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25162 { (exit 1); exit 1; }; }; }
25166 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25168 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25169 # A ".." for each directory in $ac_dir_suffix.
25170 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25171 case $ac_top_builddir_sub in
25172 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25173 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25176 ac_abs_top_builddir
=$ac_pwd
25177 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25178 # for backward compatibility:
25179 ac_top_builddir
=$ac_top_build_prefix
25182 .
) # We are building in place.
25184 ac_top_srcdir
=$ac_top_builddir_sub
25185 ac_abs_top_srcdir
=$ac_pwd ;;
25186 [\\/]* | ?
:[\\/]* ) # Absolute name.
25187 ac_srcdir
=$srcdir$ac_dir_suffix;
25188 ac_top_srcdir
=$srcdir
25189 ac_abs_top_srcdir
=$srcdir ;;
25190 *) # Relative name.
25191 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25192 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25193 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25195 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25205 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25206 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25210 cat >>$CONFIG_STATUS <<\_ACEOF
25211 # If the template does not know about datarootdir, expand it.
25212 # FIXME: This hack should be removed a few years after 2.60.
25213 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25215 case `sed -n '/datarootdir/ {
25224 ' $ac_file_inputs` in
25225 *datarootdir
*) ac_datarootdir_seen
=yes;;
25226 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25227 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25228 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25230 cat >>$CONFIG_STATUS <<_ACEOF
25231 ac_datarootdir_hack='
25232 s&@datadir@&$datadir&g
25233 s&@docdir@&$docdir&g
25234 s&@infodir@&$infodir&g
25235 s&@localedir@&$localedir&g
25236 s&@mandir@&$mandir&g
25237 s&\\\${datarootdir}&$datarootdir&g' ;;
25241 # Neutralize VPATH when `$srcdir' = `.'.
25242 # Shell code in configure.ac might set extrasub.
25243 # FIXME: do we really want to maintain this feature?
25244 cat >>$CONFIG_STATUS <<_ACEOF
25248 cat >>$CONFIG_STATUS <<\_ACEOF
25250 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25251 s
&@configure_input@
&$configure_input&;t t
25252 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25253 s
&@srcdir@
&$ac_srcdir&;t t
25254 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25255 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25256 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25257 s
&@builddir@
&$ac_builddir&;t t
25258 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25259 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25260 s
&@INSTALL@
&$ac_INSTALL&;t t
25261 $ac_datarootdir_hack
25262 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25264 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25265 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25266 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25267 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25268 which seems to be undefined. Please make sure it is defined." >&5
25269 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25270 which seems to be undefined. Please make sure it is defined." >&2;}
25274 -) cat "$tmp/out"; rm -f "$tmp/out";;
25275 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25284 # Transform confdefs.h into a sed script `conftest.defines', that
25285 # substitutes the proper values into config.h.in to produce config.h.
25286 rm -f conftest.defines conftest.
tail
25287 # First, append a space to every undef/define line, to ease matching.
25288 echo 's/$/ /' >conftest.defines
25289 # Then, protect against being on the right side of a sed subst, or in
25290 # an unquoted here document, in config.status. If some macros were
25291 # called several times there might be several #defines for the same
25292 # symbol, which is useless. But do not sort them, since the last
25293 # AC_DEFINE must be honored.
25294 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25295 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25296 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25297 # PARAMS is the parameter list in the macro definition--in most cases, it's
25298 # just an empty string.
25299 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25300 ac_dB
='\\)[ (].*,\\1define\\2'
25308 s/^[ ]*#[ ]*define[ ][ ]*//
25313 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25314 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25315 ' >>conftest.defines
25317 # Remove the space that was appended to ease matching.
25318 # Then replace #undef with comments. This is necessary, for
25319 # example, in the case of _POSIX_SOURCE, which is predefined and required
25320 # on some systems where configure will not decide to define it.
25321 # (The regexp can be short, since the line contains either #define or #undef.)
25323 s,^[ #]*u.*,/* & */,' >>conftest.defines
25325 # Break up conftest.defines:
25326 ac_max_sed_lines
=50
25328 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25329 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25330 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25332 ac_in
='$ac_file_inputs'
25333 ac_out
='"$tmp/out1"'
25334 ac_nxt
='"$tmp/out2"'
25338 # Write a here document:
25339 cat >>$CONFIG_STATUS <<_ACEOF
25340 # First, check the format of the line:
25341 cat >"\$tmp/defines.sed" <<\\CEOF
25342 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25343 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25347 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25349 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25350 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25351 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25352 grep . conftest.
tail >/dev
/null ||
break
25353 rm -f conftest.defines
25354 mv conftest.
tail conftest.defines
25356 rm -f conftest.defines conftest.
tail
25358 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25359 cat >>$CONFIG_STATUS <<\_ACEOF
25360 if test x
"$ac_file" != x-
; then
25361 echo "/* $configure_input */" >"$tmp/config.h"
25362 cat "$ac_result" >>"$tmp/config.h"
25363 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25364 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25365 echo "$as_me: $ac_file is unchanged" >&6;}
25368 mv "$tmp/config.h" $ac_file
25371 echo "/* $configure_input */"
25377 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25378 echo "$as_me: executing $ac_file commands" >&6;}
25383 case $ac_file$ac_mode in
25386 ### Make the necessary directories, if they don't exist.
25387 for dir
in etc lisp
; do
25388 test -d ${dir} || mkdir
${dir}
25391 # Build src/Makefile from ${srcdir}/src/Makefile.c
25392 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25393 # This must be done after src/config.h is built, since we rely on that file.
25395 # Now get this: Some word that is part of the ${srcdir} directory name
25396 # or the ${configuration} value might, just might, happen to be an
25397 # identifier like `sun4' or `i386' or something, and be predefined by
25398 # the C preprocessor to some helpful value like 1, or maybe the empty
25399 # string. Needless to say consequent macro substitutions are less
25400 # than conducive to the makefile finding the correct directory.
25401 undefs
="`echo $top_srcdir $configuration $canonical |
25402 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25403 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25406 echo creating src
/epaths.h
25407 ${MAKE-make} epaths-force
25409 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25410 # `..' to `. .' unless invoked with -traditional
25412 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25413 CPPFLAGS
="$CPPFLAGS -traditional"
25416 echo creating lib-src
/Makefile
25418 rm -f junk.c junk1.c junk2.c
25419 sed -e '/start of cpp stuff/q' \
25420 < Makefile.c
> junk1.c
25421 sed -e '1,/start of cpp stuff/d'\
25422 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25423 < Makefile.c
> junk.c
25424 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25425 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25426 cat junk1.c junk2.c
> Makefile.new
25427 rm -f junk.c junk1.c junk2.c
25428 chmod 444 Makefile.new
25429 mv -f Makefile.new Makefile
25432 echo creating src
/Makefile
25434 rm -f junk.c junk1.c junk2.c
25435 sed -e '/start of cpp stuff/q' \
25436 < Makefile.c
> junk1.c
25437 sed -e '1,/start of cpp stuff/d'\
25438 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25439 < Makefile.c
> junk.c
25440 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
25441 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
25443 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25444 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25445 cat junk1.c junk2.c
> Makefile.new
25446 rm -f junk.c junk1.c junk2.c
25447 chmod 444 Makefile.new
25448 mv -f Makefile.new Makefile
25451 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25452 echo creating src
/.gdbinit
25453 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25456 # This is how we know whether to re-run configure in certain cases.
25457 touch src
/config.stamp
25465 { (exit 0); exit 0; }
25467 chmod +x
$CONFIG_STATUS
25468 ac_clean_files
=$ac_clean_files_save
25471 # configure is writing to config.log, and then calls config.status.
25472 # config.status does its own redirection, appending to config.log.
25473 # Unfortunately, on DOS this fails, as config.log is still kept open
25474 # by configure, so config.status won't be able to write to it; its
25475 # output is simply discarded. So we exec the FD to /dev/null,
25476 # effectively closing config.log, so it can be properly (re)opened and
25477 # appended to by config.status. When coming back to configure, we
25478 # need to make the FD available again.
25479 if test "$no_create" != yes; then
25481 ac_config_status_args
=
25482 test "$silent" = yes &&
25483 ac_config_status_args
="$ac_config_status_args --quiet"
25485 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25487 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25488 # would make configure fail if this is the last instruction.
25489 $ac_cs_success ||
{ (exit 1); exit 1; }