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
709 x_default_search_path
727 ac_precious_vars
='build_alias
739 # Initialize some variables set by options.
741 ac_init_version
=false
742 # The variables have the same names as the options, with
743 # dashes changed to underlines.
751 program_transform_name
=s
,x
,x
,
759 # Installation directory options.
760 # These are left unexpanded so users can "make install exec_prefix=/foo"
761 # and all the variables that are supposed to be based on exec_prefix
762 # by default will actually change.
763 # Use braces instead of parens because sh, perl, etc. also accept them.
764 # (The list follows the same order as the GNU Coding Standards.)
765 bindir
='${exec_prefix}/bin'
766 sbindir
='${exec_prefix}/sbin'
767 libexecdir
='${exec_prefix}/libexec'
768 datarootdir
='${prefix}/share'
769 datadir
='${datarootdir}'
770 sysconfdir
='${prefix}/etc'
771 sharedstatedir
='${prefix}/com'
772 localstatedir
='${prefix}/var'
773 includedir
='${prefix}/include'
774 oldincludedir
='/usr/include'
775 docdir
='${datarootdir}/doc/${PACKAGE}'
776 infodir
='${datarootdir}/info'
781 libdir
='${exec_prefix}/lib'
782 localedir
='${datarootdir}/locale'
783 mandir
='${datarootdir}/man'
789 # If the previous option needs an argument, assign it.
790 if test -n "$ac_prev"; then
791 eval $ac_prev=\
$ac_option
797 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
801 # Accept the important Cygnus configure options, so we can diagnose typos.
803 case $ac_dashdash$ac_option in
807 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
809 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
812 -build |
--build |
--buil |
--bui |
--bu)
813 ac_prev
=build_alias
;;
814 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
815 build_alias
=$ac_optarg ;;
817 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
818 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
819 ac_prev
=cache_file
;;
820 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
821 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
822 cache_file
=$ac_optarg ;;
825 cache_file
=config.cache
;;
827 -datadir |
--datadir |
--datadi |
--datad)
829 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
830 datadir
=$ac_optarg ;;
832 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
833 |
--dataroo |
--dataro |
--datar)
834 ac_prev
=datarootdir
;;
835 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
836 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
837 datarootdir
=$ac_optarg ;;
839 -disable-* |
--disable-*)
840 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
841 # Reject names that are not valid shell variable names.
842 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
843 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
844 { (exit 1); exit 1; }; }
845 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
846 eval enable_
$ac_feature=no
;;
848 -docdir |
--docdir |
--docdi |
--doc |
--do)
850 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
853 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
855 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
858 -enable-* |
--enable-*)
859 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
860 # Reject names that are not valid shell variable names.
861 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
862 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
863 { (exit 1); exit 1; }; }
864 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
865 eval enable_
$ac_feature=\
$ac_optarg ;;
867 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
868 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
869 |
--exec |
--exe |
--ex)
870 ac_prev
=exec_prefix
;;
871 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
872 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
873 |
--exec=* |
--exe=* |
--ex=*)
874 exec_prefix
=$ac_optarg ;;
876 -gas |
--gas |
--ga |
--g)
877 # Obsolete; use --with-gas.
880 -help |
--help |
--hel |
--he |
-h)
882 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
883 ac_init_help
=recursive
;;
884 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
885 ac_init_help
=short
;;
887 -host |
--host |
--hos |
--ho)
888 ac_prev
=host_alias
;;
889 -host=* |
--host=* |
--hos=* |
--ho=*)
890 host_alias
=$ac_optarg ;;
892 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
894 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
896 htmldir
=$ac_optarg ;;
898 -includedir |
--includedir |
--includedi |
--included |
--include \
899 |
--includ |
--inclu |
--incl |
--inc)
900 ac_prev
=includedir
;;
901 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
902 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
903 includedir
=$ac_optarg ;;
905 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
907 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
908 infodir
=$ac_optarg ;;
910 -libdir |
--libdir |
--libdi |
--libd)
912 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
915 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
916 |
--libexe |
--libex |
--libe)
917 ac_prev
=libexecdir
;;
918 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
919 |
--libexe=* |
--libex=* |
--libe=*)
920 libexecdir
=$ac_optarg ;;
922 -localedir |
--localedir |
--localedi |
--localed |
--locale)
924 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
925 localedir
=$ac_optarg ;;
927 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
928 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
929 ac_prev
=localstatedir
;;
930 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
931 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
932 localstatedir
=$ac_optarg ;;
934 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
936 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
940 # Obsolete; use --without-fp.
943 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
944 |
--no-cr |
--no-c |
-n)
947 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
948 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
951 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
952 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
953 |
--oldin |
--oldi |
--old |
--ol |
--o)
954 ac_prev
=oldincludedir
;;
955 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
956 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
957 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
958 oldincludedir
=$ac_optarg ;;
960 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
962 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
965 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
966 |
--program-pre |
--program-pr |
--program-p)
967 ac_prev
=program_prefix
;;
968 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
969 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
970 program_prefix
=$ac_optarg ;;
972 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
973 |
--program-suf |
--program-su |
--program-s)
974 ac_prev
=program_suffix
;;
975 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
976 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
977 program_suffix
=$ac_optarg ;;
979 -program-transform-name |
--program-transform-name \
980 |
--program-transform-nam |
--program-transform-na \
981 |
--program-transform-n |
--program-transform- \
982 |
--program-transform |
--program-transfor \
983 |
--program-transfo |
--program-transf \
984 |
--program-trans |
--program-tran \
985 |
--progr-tra |
--program-tr |
--program-t)
986 ac_prev
=program_transform_name
;;
987 -program-transform-name=* |
--program-transform-name=* \
988 |
--program-transform-nam=* |
--program-transform-na=* \
989 |
--program-transform-n=* |
--program-transform-=* \
990 |
--program-transform=* |
--program-transfor=* \
991 |
--program-transfo=* |
--program-transf=* \
992 |
--program-trans=* |
--program-tran=* \
993 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
994 program_transform_name
=$ac_optarg ;;
996 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
998 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1001 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1003 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1006 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1007 |
-silent |
--silent |
--silen |
--sile |
--sil)
1010 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1012 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1014 sbindir
=$ac_optarg ;;
1016 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1017 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1018 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1020 ac_prev
=sharedstatedir
;;
1021 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1022 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1023 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1025 sharedstatedir
=$ac_optarg ;;
1027 -site |
--site |
--sit)
1029 -site=* |
--site=* |
--sit=*)
1032 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1034 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1035 srcdir
=$ac_optarg ;;
1037 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1038 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1039 ac_prev
=sysconfdir
;;
1040 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1041 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1042 sysconfdir
=$ac_optarg ;;
1044 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1045 ac_prev
=target_alias
;;
1046 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1047 target_alias
=$ac_optarg ;;
1049 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1052 -version |
--version |
--versio |
--versi |
--vers |
-V)
1053 ac_init_version
=: ;;
1056 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1059 { echo "$as_me: error: invalid package name: $ac_package" >&2
1060 { (exit 1); exit 1; }; }
1061 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1062 eval with_
$ac_package=\
$ac_optarg ;;
1064 -without-* |
--without-*)
1065 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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=no
;;
1074 # Obsolete; use --with-x.
1077 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1078 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1079 ac_prev
=x_includes
;;
1080 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1081 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1082 x_includes
=$ac_optarg ;;
1084 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1085 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1086 ac_prev
=x_libraries
;;
1087 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1088 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1089 x_libraries
=$ac_optarg ;;
1091 -*) { echo "$as_me: error: unrecognized option: $ac_option
1092 Try \`$0 --help' for more information." >&2
1093 { (exit 1); exit 1; }; }
1097 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1100 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1101 { (exit 1); exit 1; }; }
1102 eval $ac_envvar=\
$ac_optarg
1103 export $ac_envvar ;;
1106 # FIXME: should be removed in autoconf 3.0.
1107 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1108 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1109 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1110 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1116 if test -n "$ac_prev"; then
1117 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1118 { echo "$as_me: error: missing argument to $ac_option" >&2
1119 { (exit 1); exit 1; }; }
1122 # Be sure to have absolute directory names.
1123 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1124 datadir sysconfdir sharedstatedir localstatedir includedir \
1125 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1126 libdir localedir mandir
1128 eval ac_val
=\$
$ac_var
1130 [\\/$
]* | ?
:[\\/]* ) continue;;
1131 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1133 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1134 { (exit 1); exit 1; }; }
1137 # There might be people who depend on the old broken behavior: `$host'
1138 # used to hold the argument of --host etc.
1139 # FIXME: To remove some day.
1142 target
=$target_alias
1144 # FIXME: To remove some day.
1145 if test "x$host_alias" != x
; then
1146 if test "x$build_alias" = x
; then
1147 cross_compiling
=maybe
1148 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1149 If a cross compiler is detected then cross compile mode will be used." >&2
1150 elif test "x$build_alias" != "x$host_alias"; then
1156 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1158 test "$silent" = yes && exec 6>/dev
/null
1161 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1162 ac_ls_di
=`ls -di .` &&
1163 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1164 { echo "$as_me: error: Working directory cannot be determined" >&2
1165 { (exit 1); exit 1; }; }
1166 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1167 { echo "$as_me: error: pwd does not report name of working directory" >&2
1168 { (exit 1); exit 1; }; }
1171 # Find the source files, if location was not specified.
1172 if test -z "$srcdir"; then
1173 ac_srcdir_defaulted
=yes
1174 # Try the directory containing this script, then the parent directory.
1175 ac_confdir
=`$as_dirname -- "$0" ||
1176 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1177 X"$0" : 'X\(//\)[^/]' \| \
1178 X"$0" : 'X\(//\)$' \| \
1179 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1181 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1199 if test ! -r "$srcdir/$ac_unique_file"; then
1203 ac_srcdir_defaulted
=no
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1206 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1207 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1208 { (exit 1); exit 1; }; }
1210 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1212 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1213 { (exit 1); exit 1; }; }
1215 # When building in place, set srcdir=.
1216 if test "$ac_abs_confdir" = "$ac_pwd"; then
1219 # Remove unnecessary trailing slashes from srcdir.
1220 # Double slashes in file names in object file debugging info
1221 # mess up M-x gdb in Emacs.
1223 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1225 for ac_var
in $ac_precious_vars; do
1226 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1227 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1228 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1229 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1233 # Report the --help message.
1235 if test "$ac_init_help" = "long"; then
1236 # Omit some internal or obsolete options to make the list less imposing.
1237 # This message is too long to be a string in the A/UX 3.1 sh.
1239 \`configure' configures this package to adapt to many kinds of systems.
1241 Usage: $0 [OPTION]... [VAR=VALUE]...
1243 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1244 VAR=VALUE. See below for descriptions of some of the useful variables.
1246 Defaults for the options are specified in brackets.
1249 -h, --help display this help and exit
1250 --help=short display options specific to this package
1251 --help=recursive display the short help of all the included packages
1252 -V, --version display version information and exit
1253 -q, --quiet, --silent do not print \`checking...' messages
1254 --cache-file=FILE cache test results in FILE [disabled]
1255 -C, --config-cache alias for \`--cache-file=config.cache'
1256 -n, --no-create do not create output files
1257 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1259 Installation directories:
1260 --prefix=PREFIX install architecture-independent files in PREFIX
1261 [$ac_default_prefix]
1262 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1265 By default, \`make install' will install all the files in
1266 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1267 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1268 for instance \`--prefix=\$HOME'.
1270 For better control, use the options below.
1272 Fine tuning of the installation directories:
1273 --bindir=DIR user executables [EPREFIX/bin]
1274 --sbindir=DIR system admin executables [EPREFIX/sbin]
1275 --libexecdir=DIR program executables [EPREFIX/libexec]
1276 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1277 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1278 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1279 --libdir=DIR object code libraries [EPREFIX/lib]
1280 --includedir=DIR C header files [PREFIX/include]
1281 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1282 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1283 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1284 --infodir=DIR info documentation [DATAROOTDIR/info]
1285 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1286 --mandir=DIR man documentation [DATAROOTDIR/man]
1287 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1288 --htmldir=DIR html documentation [DOCDIR]
1289 --dvidir=DIR dvi documentation [DOCDIR]
1290 --pdfdir=DIR pdf documentation [DOCDIR]
1291 --psdir=DIR ps documentation [DOCDIR]
1297 --program-prefix=PREFIX prepend PREFIX to installed program names
1298 --program-suffix=SUFFIX append SUFFIX to installed program names
1299 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1302 --x-includes=DIR X include files are
in DIR
1303 --x-libraries=DIR X library files are
in DIR
1306 --build=BUILD configure
for building on BUILD
[guessed
]
1307 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1311 if test -n "$ac_init_help"; then
1316 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1317 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1318 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1319 specify
install directory
for Emacs.app on Mac OS X
1320 --enable-asserts compile code with asserts enabled
1321 --enable-maintainer-mode enable make rules and dependencies not useful
1322 (and sometimes confusing
) to the casual installer
1323 --enable-locallisppath=PATH
1324 directories Emacs should search
for lisp files
1325 specific to this site
1326 --disable-largefile omit support
for large files
1329 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1330 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1331 --without-gcc don
't use GCC to compile Emacs if GCC is found
1332 --without-pop don't support POP
mail retrieval with movemail
1333 --with-kerberos support Kerberos-authenticated POP
1334 --with-kerberos5 support Kerberos version
5 authenticated POP
1335 --with-hesiod support Hesiod to get the POP server
host
1336 --without-sound don
't compile with sound support
1337 --with-x-toolkit=KIT use an X toolkit
1338 (KIT = yes/lucid/athena/motif/gtk/no)
1339 --with-xpm use -lXpm for displaying XPM images
1340 --with-jpeg use -ljpeg for displaying JPEG images
1341 --with-tiff use -ltiff for displaying TIFF images
1342 --with-gif use -lungif for displaying GIF images
1343 --with-png use -lpng for displaying PNG images
1344 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1345 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1346 --without-toolkit-scroll-bars
1347 don't use Motif or Xaw3d scroll bars
1348 --without-xim don
't use X11 XIM
1349 --without-carbon don't use Carbon GUI on Mac OS X
1350 --with-x use the X Window System
1352 Some influential environment variables
:
1353 CC C compiler
command
1354 CFLAGS C compiler flags
1355 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1356 nonstandard directory
<lib dir
>
1357 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1358 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1359 you have headers
in a nonstandard directory
<include dir
>
1361 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1363 Use these variables to override the choices made by
`configure' or to help
1364 it to find libraries and programs with nonstandard names/locations.
1370 if test "$ac_init_help" = "recursive"; then
1371 # If there are subdirs, report their specific --help.
1372 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1373 test -d "$ac_dir" || continue
1377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1380 # A ".." for each directory in $ac_dir_suffix.
1381 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1382 case $ac_top_builddir_sub in
1383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1387 ac_abs_top_builddir=$ac_pwd
1388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1389 # for backward compatibility:
1390 ac_top_builddir=$ac_top_build_prefix
1393 .) # We are building in place.
1395 ac_top_srcdir=$ac_top_builddir_sub
1396 ac_abs_top_srcdir=$ac_pwd ;;
1397 [\\/]* | ?:[\\/]* ) # Absolute name.
1398 ac_srcdir=$srcdir$ac_dir_suffix;
1399 ac_top_srcdir=$srcdir
1400 ac_abs_top_srcdir=$srcdir ;;
1402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1403 ac_top_srcdir=$ac_top_build_prefix$srcdir
1404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1408 cd "$ac_dir" || { ac_status=$?; continue; }
1409 # Check for guested configure.
1410 if test -f "$ac_srcdir/configure.gnu"; then
1412 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1413 elif test -f "$ac_srcdir/configure"; then
1415 $SHELL "$ac_srcdir/configure" --help=recursive
1417 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1419 cd "$ac_pwd" || { ac_status=$?; break; }
1423 test -n "$ac_init_help" && exit $ac_status
1424 if $ac_init_version; then
1427 generated by GNU Autoconf 2.61
1429 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1430 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1431 This configure script is free software; the Free Software Foundation
1432 gives unlimited permission to copy, distribute and modify it.
1436 cat >config.log <<_ACEOF
1437 This file contains any messages produced by compilers while
1438 running configure, to aid debugging if configure makes a mistake.
1440 It was created by $as_me, which was
1441 generated by GNU Autoconf 2.61. Invocation command line was
1453 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1454 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1455 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1456 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1457 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1459 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1460 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1462 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1463 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1464 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1465 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1466 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1467 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1468 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476 test -z "$as_dir" && as_dir=.
1477 echo "PATH: $as_dir"
1493 # Keep a trace of the command line.
1494 # Strip out --no-create and --no-recursion so they do not pile up.
1495 # Strip out --silent because we don't want to record it for future runs.
1496 # Also quote any args containing shell meta-characters.
1497 # Make two passes to allow for proper duplicate-argument suppression.
1501 ac_must_keep_next=false
1507 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1508 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1509 | -silent | --silent | --silen | --sile | --sil)
1512 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1515 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1517 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1518 if test $ac_must_keep_next = true; then
1519 ac_must_keep_next=false # Got value, back to normal.
1522 *=* | --config-cache | -C | -disable-* | --disable-* \
1523 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1524 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1525 | -with-* | --with-* | -without-* | --without-* | --x)
1526 case "$ac_configure_args0 " in
1527 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1530 -* ) ac_must_keep_next=true ;;
1533 ac_configure_args="$ac_configure_args '$ac_arg'"
1538 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1539 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1541 # When interrupted or exit'd, cleanup temporary files, and complete
1542 # config.log. We remove comments because anyway the quotes in there
1543 # would cause problems or look ugly.
1544 # WARNING: Use '\'' to represent an apostrophe within the trap.
1545 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1546 trap 'exit_status=$?
1547 # Save into config.log some information that might help in debugging.
1552 ## ---------------- ##
1553 ## Cache variables. ##
1554 ## ---------------- ##
1557 # The following way of writing the cache mishandles newlines in values,
1559 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1560 eval ac_val=\$$ac_var
1564 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1565 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1568 _ | IFS | as_nl) ;; #(
1569 *) $as_unset $ac_var ;;
1574 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1575 *${as_nl}ac_space=\ *)
1577 "s/'\''/'\''\\\\'\'''\''/g;
1578 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1589 ## ----------------- ##
1590 ## Output variables. ##
1591 ## ----------------- ##
1594 for ac_var in $ac_subst_vars
1596 eval ac_val=\$$ac_var
1598 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1600 echo "$ac_var='\''$ac_val'\''"
1604 if test -n "$ac_subst_files"; then
1606 ## ------------------- ##
1607 ## File substitutions. ##
1608 ## ------------------- ##
1611 for ac_var in $ac_subst_files
1613 eval ac_val=\$$ac_var
1615 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1617 echo "$ac_var='\''$ac_val'\''"
1622 if test -s confdefs.h; then
1632 test "$ac_signal" != 0 &&
1633 echo "$as_me: caught signal $ac_signal"
1634 echo "$as_me: exit $exit_status"
1636 rm -f core *.core core.conftest.* &&
1637 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1640 for ac_signal in 1 2 13 15; do
1641 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1645 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1646 rm -f -r conftest* confdefs.h
1648 # Predefined preprocessor variables.
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_NAME "$PACKAGE_NAME"
1655 cat >>confdefs.h <<_ACEOF
1656 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_STRING "$PACKAGE_STRING"
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1675 # Let the site file select an alternate cache file if it wants to.
1676 # Prefer explicitly selected file to automatically selected ones.
1677 if test -n "$CONFIG_SITE"; then
1678 set x "$CONFIG_SITE"
1679 elif test "x$prefix" != xNONE; then
1680 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1682 set x "$ac_default_prefix/share/config.site" \
1683 "$ac_default_prefix/etc/config.site"
1688 if test -r "$ac_site_file"; then
1689 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1690 echo "$as_me: loading site script $ac_site_file" >&6;}
1691 sed 's/^/| /' "$ac_site_file" >&5
1696 if test -r "$cache_file"; then
1697 # Some versions of bash will fail to source /dev/null (special
1698 # files actually), so we avoid doing that.
1699 if test -f "$cache_file"; then
1700 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1701 echo "$as_me: loading cache $cache_file" >&6;}
1703 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1704 *) . "./$cache_file";;
1708 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1709 echo "$as_me: creating cache $cache_file" >&6;}
1713 ac_header_list="$ac_header_list sys/time.h"
1714 ac_header_list="$ac_header_list unistd.h"
1715 ac_func_list="$ac_func_list alarm"
1716 # Check that the precious variables saved in the cache have kept the same
1718 ac_cache_corrupted=false
1719 for ac_var in $ac_precious_vars; do
1720 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1721 eval ac_new_set=\$ac_env_${ac_var}_set
1722 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1723 eval ac_new_val=\$ac_env_${ac_var}_value
1724 case $ac_old_set,$ac_new_set in
1726 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1727 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1728 ac_cache_corrupted=: ;;
1730 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1731 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1732 ac_cache_corrupted=: ;;
1735 if test "x$ac_old_val" != "x$ac_new_val"; then
1736 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1737 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1738 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1739 echo "$as_me: former value
: $ac_old_val" >&2;}
1740 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1741 echo "$as_me: current value
: $ac_new_val" >&2;}
1742 ac_cache_corrupted=:
1745 # Pass precious variables to config.status.
1746 if test "$ac_new_set" = set; then
1748 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1749 *) ac_arg=$ac_var=$ac_new_val ;;
1751 case " $ac_configure_args " in
1752 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1753 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1757 if $ac_cache_corrupted; then
1758 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1759 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1760 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1761 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1762 { (exit 1); exit 1; }; }
1782 ac_cpp='$CPP $CPPFLAGS'
1783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1788 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1791 test "$program_prefix" != NONE &&
1792 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1793 # Use a double $ so make ignores it.
1794 test "$program_suffix" != NONE &&
1795 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1796 # Double any \ or $. echo might interpret backslashes.
1797 # By default was `s
,x
,x
', remove it if useless.
1798 cat <<\_ACEOF >conftest.sed
1799 s/[\\$]/&&/g;s/;s,x,x,$//
1801 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1805 lispdir='${datadir}/emacs
/${version}/lisp
'
1806 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1807 '${datadir}/emacs
/site-lisp
'
1808 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1809 etcdir='${datadir}/emacs
/${version}/etc
'
1810 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1811 docdir='${datadir}/emacs
/${version}/etc
'
1812 gamedir='${localstatedir}/games
/emacs
'
1817 # Check whether --with-gcc was given.
1818 if test "${with_gcc+set}" = set; then
1823 # Check whether --with-pop was given.
1824 if test "${with_pop+set}" = set; then
1825 withval=$with_pop; if test "$withval" = yes; then
1826 cat >>confdefs.h <<\_ACEOF
1827 #define MAIL_USE_POP 1
1833 cat >>confdefs.h <<\_ACEOF
1834 #define MAIL_USE_POP 1
1841 # Check whether --with-kerberos was given.
1842 if test "${with_kerberos+set}" = set; then
1843 withval=$with_kerberos; if test "$withval" = yes; then
1844 cat >>confdefs.h <<\_ACEOF
1853 # Check whether --with-kerberos5 was given.
1854 if test "${with_kerberos5+set}" = set; then
1855 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1856 if test "${with_kerberos+set}" != set; then
1858 cat >>confdefs.h <<\_ACEOF
1864 cat >>confdefs.h <<\_ACEOF
1872 # Check whether --with-hesiod was given.
1873 if test "${with_hesiod+set}" = set; then
1874 withval=$with_hesiod; if test "$withval" = yes; then
1876 cat >>confdefs.h <<\_ACEOF
1885 # Check whether --with-sound was given.
1886 if test "${with_sound+set}" = set; then
1887 withval=$with_sound;
1892 # Check whether --with-x-toolkit was given.
1893 if test "${with_x_toolkit+set}" = set; then
1894 withval=$with_x_toolkit; case "${withval}" in
1895 y | ye | yes ) val=athena ;;
1897 l | lu | luc | luci | lucid ) val=lucid ;;
1898 a | at | ath | athe | athen | athena ) val=athena ;;
1899 m | mo | mot | moti | motif ) val=motif ;;
1900 g | gt | gtk ) val=gtk ;;
1902 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1903 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1904 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1905 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1906 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1907 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1908 { (exit 1); exit 1; }; }
1916 # Check whether --with-xpm was given.
1917 if test "${with_xpm+set}" = set; then
1922 # Check whether --with-jpeg was given.
1923 if test "${with_jpeg+set}" = set; then
1928 # Check whether --with-tiff was given.
1929 if test "${with_tiff+set}" = set; then
1934 # Check whether --with-gif was given.
1935 if test "${with_gif+set}" = set; then
1940 # Check whether --with-png was given.
1941 if test "${with_png+set}" = set; then
1946 # Check whether --with-gtk was given.
1947 if test "${with_gtk+set}" = set; then
1952 # Check whether --with-pkg-config-prog was given.
1953 if test "${with_pkg_config_prog+set}" = set; then
1954 withval=$with_pkg_config_prog;
1958 # Check whether --with-toolkit-scroll-bars was given.
1959 if test "${with_toolkit_scroll_bars+set}" = set; then
1960 withval=$with_toolkit_scroll_bars;
1964 # Check whether --with-xim was given.
1965 if test "${with_xim+set}" = set; then
1970 # Check whether --with-carbon was given.
1971 if test "${with_carbon+set}" = set; then
1972 withval=$with_carbon;
1975 # Check whether --enable-carbon-app was given.
1976 if test "${enable_carbon_app+set}" = set; then
1977 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1981 # Check whether --enable-asserts was given.
1982 if test "${enable_asserts+set}" = set; then
1983 enableval=$enable_asserts; USE_XASSERTS=$enableval
1989 # Check whether --enable-maintainer-mode was given.
1990 if test "${enable_maintainer_mode+set}" = set; then
1991 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1993 USE_MAINTAINER_MODE=no
1996 if test $USE_MAINTAINER_MODE = yes; then
2003 # Check whether --enable-locallisppath was given.
2004 if test "${enable_locallisppath+set}" = set; then
2005 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2007 elif test "${enableval}" != "yes"; then
2008 locallisppath=${enableval}
2013 #### Make srcdir absolute, if it isn't already. It
's important to
2014 #### avoid running the path through pwd unnecessarily, since pwd can
2015 #### give you automounter prefixes, which can go away. We do all this
2016 #### so Emacs can find its files when run uninstalled.
2017 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2022 ## We may be able to use the $PWD environment variable to make this
2023 ## absolute. But sometimes PWD is inaccurate.
2024 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2025 ## but that tested only for a well-formed and valid PWD,
2026 ## it did not object when PWD was well-formed and valid but just wrong.
2027 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2031 srcdir
="`(cd ${srcdir}; pwd)`"
2034 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2037 #### Check if the source directory already has a configured system in it.
2038 if test `pwd` != `(cd ${srcdir} && pwd)` \
2039 && test -f "${srcdir}/src/config.h" ; then
2040 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2041 as a build directory right now; it has been configured in its own
2042 right. To configure in another directory as well, you MUST
2043 use GNU make. If you do not have GNU make, then you must
2044 now do \`make distclean' in ${srcdir},
2045 and then run $0 again." >&5
2046 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2047 as a build directory right now; it has been configured in its own
2048 right. To configure in another directory as well, you MUST
2049 use GNU make. If you do not have GNU make, then you must
2050 now do \`make distclean' in ${srcdir},
2051 and then run $0 again." >&2;}
2054 #### Given the configuration name, set machfile and opsysfile to the
2055 #### names of the m/*.h and s/*.h files we should use.
2057 ### Canonicalize the configuration name.
2060 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2061 if test -f "$ac_dir/install-sh"; then
2063 ac_install_sh
="$ac_aux_dir/install-sh -c"
2065 elif test -f "$ac_dir/install.sh"; then
2067 ac_install_sh
="$ac_aux_dir/install.sh -c"
2069 elif test -f "$ac_dir/shtool"; then
2071 ac_install_sh
="$ac_aux_dir/shtool install -c"
2075 if test -z "$ac_aux_dir"; then
2076 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2077 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2078 { (exit 1); exit 1; }; }
2081 # These three variables are undocumented and unsupported,
2082 # and are intended to be withdrawn in a future Autoconf release.
2083 # They can cause serious problems if a builder's source tree is in a directory
2084 # whose full name contains unusual characters.
2085 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2086 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2087 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2090 # Make sure we can run config.sub.
2091 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2092 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2093 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2094 { (exit 1); exit 1; }; }
2096 { echo "$as_me:$LINENO: checking build system type" >&5
2097 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2098 if test "${ac_cv_build+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2101 ac_build_alias
=$build_alias
2102 test "x$ac_build_alias" = x
&&
2103 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2104 test "x$ac_build_alias" = x
&&
2105 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2106 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2107 { (exit 1); exit 1; }; }
2108 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2109 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2110 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2111 { (exit 1); exit 1; }; }
2114 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2115 echo "${ECHO_T}$ac_cv_build" >&6; }
2116 case $ac_cv_build in
2118 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2119 echo "$as_me: error: invalid value of canonical build" >&2;}
2120 { (exit 1); exit 1; }; };;
2123 ac_save_IFS
=$IFS; IFS
='-'
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2133 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2136 { echo "$as_me:$LINENO: checking host system type" >&5
2137 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2138 if test "${ac_cv_host+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 if test "x$host_alias" = x
; then
2142 ac_cv_host
=$ac_cv_build
2144 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2145 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2146 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2147 { (exit 1); exit 1; }; }
2151 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2152 echo "${ECHO_T}$ac_cv_host" >&6; }
2155 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2156 echo "$as_me: error: invalid value of canonical host" >&2;}
2157 { (exit 1); exit 1; }; };;
2160 ac_save_IFS
=$IFS; IFS
='-'
2166 # Remember, the first character of IFS is used to create $*,
2167 # except with old shells:
2170 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2174 configuration
=${host_alias-$host}
2178 ### If you add support for a new configuration, add code to this
2179 ### switch statement to recognize your configuration name and select
2180 ### the appropriate operating system and machine description files.
2182 ### You would hope that you could choose an m/*.h file pretty much
2183 ### based on the machine portion of the configuration name, and an s-
2184 ### file based on the operating system portion. However, it turns out
2185 ### that each m/*.h file is pretty manufacturer-specific - for
2186 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2187 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2188 ### machines. So we basically have to have a special case for each
2189 ### configuration name.
2191 ### As far as handling version numbers on operating systems is
2192 ### concerned, make sure things will fail in a fixable way. If
2193 ### /etc/MACHINES doesn't say anything about version numbers, be
2194 ### prepared to handle anything reasonably. If version numbers
2195 ### matter, be sure /etc/MACHINES says something about it.
2197 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2198 ### "System V Release 4"; he writes, "The old convention encouraged
2199 ### confusion between `system' and `release' levels'."
2201 machine
='' opsys
='' unported
=no
2202 case "${canonical}" in
2207 case "${canonical}" in
2208 alpha
*-*-freebsd*) machine
=alpha
;;
2209 ia64-
*-freebsd*) machine
=ia64
;;
2210 sparc64-
*-freebsd*) machine
=sparc
;;
2211 powerpc-
*-freebsd*) machine
=macppc
;;
2212 i
[3456]86-*-freebsd*) machine
=intel386
;;
2213 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2220 if test -f /usr
/lib
/crti.o
; then
2222 cat >>confdefs.h
<<\_ACEOF
2228 case "${canonical}" in
2229 alpha
*-*-netbsd*) machine
=alpha
;;
2230 i
[3456]86-*-netbsd*) machine
=intel386
;;
2232 # This is somewhat bogus.
2233 machine
=hp9000s300
;;
2234 mips-
*-netbsd*) machine
=pmax
;;
2235 mipsel-
*-netbsd*) machine
=pmax
;;
2236 mipseb-
*-netbsd*) machine
=pmax
;;
2237 ns32k-
*-netbsd*) machine
=ns32000
;;
2238 powerpc-
*-netbsd*) machine
=macppc
;;
2239 sparc
*-*-netbsd*) machine
=sparc
;;
2240 vax-
*-netbsd*) machine
=vax
;;
2241 arm-
*-netbsd*) machine
=arm
;;
2242 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2243 hppa-
*-netbsd*) machine
=hp800
;;
2244 shle-
*-netbsd*) machine
=sh3el
;;
2251 case "${canonical}" in
2252 alpha
*-*-openbsd*) machine
=alpha
;;
2253 arm-
*-openbsd*) machine
=arm
;;
2254 hppa-
*-openbsd*) machine
=hp9000s300
;;
2255 i386-
*-openbsd*) machine
=intel386
;;
2256 m68k-
*-openbsd*) machine
=hp9000s300
;;
2257 m88k-
*-openbsd*) machine
=aviion
;;
2258 mips64-
*-openbsd*) machine
=mips64
;;
2259 powerpc-
*-openbsd*) machine
=macppc
;;
2260 sh-
*-openbsd*) machine
=sh3el
;;
2261 sparc
*-*-openbsd*) machine
=sparc
;;
2262 vax-
*-openbsd*) machine
=vax
;;
2263 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2270 case "${canonical}" in
2271 i
[3456]86-*-lynxos*) machine
=intel386
;;
2272 powerpc-
*-lynxos*) machine
=powerpc
;;
2277 arm-acorn-riscix1.1
* )
2278 machine
=acorn opsys
=riscix1-1
2280 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2281 ## This name is riscix12 instead of riscix1.2
2282 ## to avoid a file name conflict on MSDOS.
2283 machine
=acorn opsys
=riscix12
2289 case "${canonical}" in
2290 i
[345]86-*-bsdi*) machine
=intel386
;;
2291 sparc-
*-bsdi*) machine
=sparc
;;
2292 powerpc-
*-bsdi*) machine
=macppc
;;
2294 case "${canonical}" in
2295 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2296 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2297 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2298 *-*-bsdi3* ) opsys
=bsdos3
;;
2299 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2304 ## Strictly speaking, we need the version of the alliant operating
2305 ## system to choose the right machine file, but currently the
2306 ## configuration name doesn't tell us enough to choose the right
2307 ## one; we need to give alliants their own operating system name to
2308 ## do this right. When someone cares, they can help us.
2310 machine
=alliant4 opsys
=bsd4-2
2313 machine
=alliant-2800 opsys
=bsd4-3
2316 ## Alpha (DEC) machines.
2318 machine
=alpha opsys
=osf1
2319 # This is needed to find X11R6.1 libraries for certain tests.
2320 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2321 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2322 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2323 # due to non-traditional preprocessing with the current compiler
2324 # defaults. OSF 4 can also have that compiler version, and there
2325 # seems always to have been a usable /usr/bin/cpp.
2326 NON_GNU_CPP
=/usr
/bin
/cpp
2327 case "${canonical}" in
2328 alpha
*-dec-osf[5-9]*)
2333 alpha
*-*-linux-gnu* )
2334 machine
=alpha opsys
=gnu-linux
2338 machine
=arm opsys
=gnu-linux
2343 machine
=altos opsys
=usg5-2
2348 machine
=amdahl opsys
=usg5-2-2
2351 ## Apollo, Domain/OS
2353 machine
=apollo opsys
=bsd4-3
2356 ## Apple Darwin / Mac OS X
2358 case "${canonical}" in
2359 i
[3456]86-* ) machine
=intel386
;;
2360 powerpc-
* ) machine
=powermac
;;
2364 # Define CPP as follows to make autoconf work correctly.
2365 CPP
="${CC-cc} -E -no-cpp-precomp"
2366 # Use fink packages if available.
2367 if test -d /sw
/include
&& test -d /sw
/lib
; then
2368 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2369 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2370 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2374 ## AT&T 3b2, 3b5, 3b15, 3b20
2376 machine
=att3b opsys
=usg5-2-2
2379 ## AT&T 3b1 - The Mighty Unix PC!
2381 machine
=7300 opsys
=usg5-2-2
2386 machine
=ibmrs6000 opsys
=aix3-2
2391 machine
=dpx2 opsys
=usg5-3
2396 machine
=sps7 opsys
=usg5-2
2399 ## CCI 5/32, 6/32 -- see "Tahoe".
2402 ## I don't know what configuration name to use for this; config.sub
2403 ## doesn't seem to know anything about it. Hey, Celerity users, get
2404 ## in touch with us!
2405 celerity-celerity-bsd
* )
2406 machine
=celerity opsys
=bsd4-2
2410 ## What operating systems does this chip run that Emacs has been
2414 ## We'll use the catch-all code at the bottom to guess the
2415 ## operating system.
2419 mips-compaq-nonstopux
* )
2420 machine
=nonstopux opsys
=nonstopux
2424 *-convex-bsd* |
*-convex-convexos* )
2425 machine
=convex opsys
=bsd4-3
2426 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2427 NON_GNU_CPP
="cc -E -P"
2431 i
[3456]86-cubix-sysv* )
2432 machine
=intel386 opsys
=usg5-3
2436 cydra
*-cydrome-sysv* )
2437 machine
=cydra5 opsys
=usg5-3
2440 ## Data General AViiON Machines
2441 ## DG changed naming conventions with the release of 5.4.4.10, they
2442 ## dropped the initial 5.4 but left the intervening R. Because of the
2443 ## R this shouldn't conflict with older versions of the OS (which I
2444 ## think were named like dgux4.*). In addition, DG new AViiONs series
2445 ## uses either Motorola M88k or Intel Pentium CPUs.
2446 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2447 machine
=aviion opsys
=dgux4
2449 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2450 ## This name is dgux5-4-3 instead of dgux5-4r3
2451 ## to avoid a file name conflict on MSDOS.
2452 machine
=aviion opsys
=dgux5-4-3
2454 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2455 machine
=aviion opsys
=dgux5-4r2
2458 machine
=aviion opsys
=dgux
2461 ## Data General AViiON Intel (x86) Machines
2462 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2463 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2464 i
[345]86-dg-dguxR4* )
2465 machine
=aviion-intel opsys
=dgux4
2469 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2470 machine
=pmax opsys
=bsd4-2
2472 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2473 machine
=pmax opsys
=bsd4-3
2476 machine
=pmax opsys
=ultrix4-3
2479 machine
=pmax opsys
=osf1
2481 mips-dec-mach_bsd4.3
* )
2482 machine
=pmax opsys
=mach-bsd4-3
2485 ## Motorola Delta machines
2486 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2487 machine
=delta opsys
=usg5-3
2488 if test -z "`type gnucc | grep 'not found'`"
2490 if test -s /etc
/167config
2491 then CC
="gnucc -m68040"
2492 else CC
="gnucc -m68881"
2495 if test -z "`type gcc | grep 'not found'`"
2501 m88k-motorola-sysv4
* )
2502 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2503 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2504 # I hope there are not other 4.0 versions for this machine
2505 # which really need usg5-4 instead.
2506 machine
=delta88k opsys
=usg5-4-2
2508 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2509 machine
=delta88k opsys
=usg5-3
2514 machine
=dual opsys
=usg5-2
2516 m68
*-dual-uniplus* )
2517 machine
=dual opsys
=unipl5-2
2522 machine
=elxsi opsys
=usg5-2
2527 machine
=ns16000 opsys
=umax
2530 ## The GEC 63 - apparently, this port isn't really finished yet.
2531 # I'm sure we finished off the last of the machines, though. -- fx
2533 ## Gould Power Node and NP1
2535 machine
=gould opsys
=bsd4-2
2538 machine
=gould opsys
=bsd4-3
2541 machine
=gould-np1 opsys
=bsd4-3
2544 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2545 ## as far as Emacs is concerned).
2547 # Build needs to be different on 7.0 and later releases
2548 case "`uname -r`" in
2549 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2550 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2552 NON_GNU_CPP
="/lib/cpp"
2554 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2556 machine
=nh3000 opsys
=cxux
2558 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2559 powerpc-harris-powerunix
)
2560 machine
=nh6000 opsys
=powerunix
2561 NON_GNU_CPP
="cc -Xo -E -P"
2563 ## SR2001/SR2201 running HI-UX/MPP
2564 hppa1.1
-hitachi-hiuxmpp* )
2565 machine
=sr2k opsys
=hiuxmpp
2567 hppa1.1
-hitachi-hiuxwe2* )
2568 machine
=sr2k opsys
=hiuxwe2
2571 xps
*-honeywell-sysv* )
2572 machine
=xps100 opsys
=usg5-2
2575 ## HP 9000 series 200 or 300
2577 machine
=hp9000s300 opsys
=bsd4-3
2579 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2581 case "`uname -r`" in
2582 ## Someone's system reports A.B8.05 for this.
2583 ## I wonder what other possibilities there are.
2584 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2585 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2586 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2587 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2588 *) machine
=hp9000s300 opsys
=hpux
;;
2592 ## HP 9000 series 700 and 800, running HP/UX
2594 machine
=hp800 opsys
=hpux
2597 machine
=hp800 opsys
=hpux8
2599 hppa
*-hp-hpux9shr* )
2600 machine
=hp800 opsys
=hpux9shr
2603 machine
=hp800 opsys
=hpux9
2605 hppa
*-hp-hpux10.2
* )
2606 machine
=hp800 opsys
=hpux10-20
2609 machine
=hp800 opsys
=hpux10
2611 hppa
*-hp-hpux1[1-9]* )
2612 machine
=hp800 opsys
=hpux11
2613 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2616 hppa
*-*-linux-gnu* )
2617 machine
=hp800 opsys
=gnu-linux
2620 ## HP 9000 series 700 and 800, running HP/UX
2622 ## Cross-compilation? Nah!
2623 case "`uname -r`" in
2624 ## Someone's system reports A.B8.05 for this.
2625 ## I wonder what other possibilities there are.
2626 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2627 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2628 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2629 *) machine
=hp800 opsys
=hpux10
;;
2633 machine
=hp800 opsys
=nextstep
2638 machine
=orion opsys
=bsd4-2
2640 clipper-orion-bsd
* )
2641 machine
=orion105 opsys
=bsd4-2
2645 i
[3456]86-ibm-aix1.1
* )
2646 machine
=ibmps2-aix opsys
=usg5-2-2
2648 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2649 machine
=ibmps2-aix opsys
=usg5-3
2652 machine
=ibm370aix opsys
=usg5-3
2655 machine
=ibms390 opsys
=gnu-linux
2657 s390x-
*-linux-gnu* )
2658 machine
=ibms390x opsys
=gnu-linux
2660 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2661 machine
=ibmrs6000 opsys
=aix3-1
2663 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2664 machine
=ibmrs6000 opsys
=aix3-2-5
2666 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2667 machine
=ibmrs6000 opsys
=aix4-1
2669 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2670 machine
=ibmrs6000 opsys
=aix4-2
2672 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2673 machine
=ibmrs6000 opsys
=aix4-2
2675 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2676 machine
=ibmrs6000 opsys
=aix4-2
2678 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2679 machine
=ibmrs6000 opsys
=aix4
2681 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2682 machine
=ibmrs6000 opsys
=aix4-1
2684 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2685 machine
=ibmrs6000 opsys
=aix3-2
2688 machine
=ibmrt opsys
=bsd4-3
2691 machine
=ibmrt opsys
=bsd4-2
2694 machine
=ibmrt opsys
=bsd4-3
2697 machine
=ibmrt opsys
=bsd4-2
2700 machine
=ibmrt opsys
=bsd4-3
2703 machine
=ibmrt opsys
=bsd4-3
2706 machine
=ibmrt-aix opsys
=usg5-2-2
2709 ## Integrated Solutions `Optimum V'
2711 machine
=isi-ov opsys
=bsd4-2
2714 machine
=isi-ov opsys
=bsd4-3
2717 ## Intel 386 machines where we do care about the manufacturer
2718 i
[3456]86-intsys-sysv* )
2719 machine
=is386 opsys
=usg5-2-2
2723 i
[3456]86-prime-sysv* )
2724 machine
=i386 opsys
=usg5-3
2727 ## Sequent Symmetry running Dynix
2728 i
[3456]86-sequent-bsd* )
2729 machine
=symmetry opsys
=bsd4-3
2732 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2733 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2734 machine
=sequent-ptx opsys
=ptx4
2735 NON_GNU_CPP
=/lib
/cpp
2738 ## Sequent Symmetry running DYNIX/ptx
2739 ## Use the old cpp rather than the newer ANSI one.
2740 i
[3456]86-sequent-ptx* )
2741 machine
=sequent-ptx opsys
=ptx
2742 NON_GNU_CPP
="/lib/cpp"
2745 ## ncr machine running svr4.3.
2746 i
[3456]86-ncr-sysv4.3
)
2747 machine
=ncr386 opsys
=usg5-4-3
2750 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2751 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2752 i
[3456]86-ncr-sysv* )
2753 machine
=ncr386 opsys
=usg5-4-2
2756 ## Intel Paragon OSF/1
2758 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2763 machine
=i860 opsys
=usg5-4
2764 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2765 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2768 ## Macintosh PowerPC
2769 powerpc
*-*-linux-gnu* )
2770 machine
=macppc opsys
=gnu-linux
2773 ## Masscomp machines
2774 m68
*-masscomp-rtu* )
2775 machine
=masscomp opsys
=rtu
2778 ## Megatest machines
2779 m68
*-megatest-bsd* )
2780 machine
=mega68 opsys
=bsd4-2
2783 ## Workstations sold by MIPS
2784 ## This is not necessarily all workstations using the MIPS processor -
2785 ## Irises are produced by SGI, and DECstations by DEC.
2787 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2788 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2789 ## it gives for choosing between the alternatives seems to be "Use
2790 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2791 ## the BSD world." I'll assume that these are instructions for
2792 ## handling two odd situations, and that every other situation
2793 ## should use mips.h and usg5-2-2, they being listed first.
2796 ## Fall through to the general code at the bottom to decide on the OS.
2798 mips-mips-riscos4
* )
2799 machine
=mips4 opsys
=bsd4-3
2800 NON_GNU_CC
="cc -systype bsd43"
2801 NON_GNU_CPP
="cc -systype bsd43 -E"
2803 mips-mips-riscos5
* )
2804 machine
=mips4 opsys
=riscos5
2805 NON_GNU_CC
="cc -systype bsd43"
2806 NON_GNU_CPP
="cc -systype bsd43 -E"
2809 machine
=mips opsys
=bsd4-3
2812 machine
=mips opsys
=usg5-2-2
2816 m68
*-next-* | m68k-
*-nextstep* )
2817 machine
=m68k opsys
=nextstep
2820 ## The complete machine from National Semiconductor
2822 machine
=ns32000 opsys
=usg5-2
2826 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2827 machine
=tower32 opsys
=usg5-2-2
2829 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2830 machine
=tower32v3 opsys
=usg5-3
2835 machine
=ews4800 opsys
=ux4800
2838 ## Nixdorf Targon 31
2839 m68
*-nixdorf-sysv* )
2840 machine
=targon31 opsys
=usg5-2-2
2845 machine
=nu opsys
=usg5-2
2850 machine
=plexus opsys
=usg5-2
2854 ## I don't really have any idea what sort of processor the Pyramid has,
2855 ## so I'm assuming it is its own architecture.
2856 pyramid-pyramid-bsd
* )
2857 machine
=pyramid opsys
=bsd4-2
2861 ns32k-sequent-bsd4.2
* )
2862 machine
=sequent opsys
=bsd4-2
2864 ns32k-sequent-bsd4.3
* )
2865 machine
=sequent opsys
=bsd4-3
2869 mips-siemens-sysv
* | mips-sni-sysv
*)
2870 machine
=mips-siemens opsys
=usg5-4
2871 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2872 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2875 ## Silicon Graphics machines
2876 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2878 machine
=irist opsys
=iris3-5
2880 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2881 machine
=irist opsys
=iris3-6
2885 machine
=iris4d opsys
=irix3-3
2888 machine
=iris4d opsys
=irix4-0
2891 machine
=iris4d opsys
=irix6-5
2892 # Without defining _LANGUAGE_C, things get masked out in the headers
2893 # so that, for instance, grepping for `free' in stdlib.h fails and
2894 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2895 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2896 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2899 machine
=iris4d opsys
=irix6-0
2900 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2901 # but presumably it does no harm.
2902 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2903 # -32 probably isn't necessary in later v.6s -- anyone know which?
2904 NON_GCC_TEST_OPTIONS
=-32
2906 mips-sgi-irix5.
[01]* )
2907 machine
=iris4d opsys
=irix5-0
2909 mips-sgi-irix5
* | mips-sgi-irix
* )
2910 machine
=iris4d opsys
=irix5-2
2915 machine
=news opsys
=bsd4-2
2918 machine
=news opsys
=bsd4-3
2920 m68
*-sony-newsos3* | m68
*-sony-news3*)
2921 machine
=news opsys
=bsd4-3
2923 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2924 machine
=news-risc opsys
=bsd4-3
2926 mips-sony-newsos6
* )
2927 machine
=news-r6 opsys
=newsos6
2930 machine
=news-risc opsys
=newsos5
2935 machine
=stride opsys
=usg5-2
2939 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2940 machine
=sparc opsys
=gnu-linux
2943 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2944 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2945 | rs6000-
*-solaris2*)
2946 case "${canonical}" in
2947 m68
*-sunos1* ) machine
=sun1
;;
2948 m68
*-sunos2* ) machine
=sun2
;;
2949 m68
* ) machine
=sun3
;;
2950 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2951 i
[3456]86-*-* ) machine
=intel386
;;
2952 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2953 powerpcle
* ) machine
=powerpcle
;;
2954 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2955 sparc
* ) machine
=sparc
;;
2958 case "${canonical}" in
2959 ## The Sun386 didn't get past 4.0.
2960 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2961 *-sunos4.0
* ) opsys
=sunos4-0
;;
2962 *-sunos4.1.
[3-9]*noshare
)
2963 ## This name is sunos413 instead of sunos4-1-3
2964 ## to avoid a file name conflict on MSDOS.
2966 NON_GNU_CPP
=/usr
/lib
/cpp
2967 NON_GCC_TEST_OPTIONS
=-Bstatic
2968 GCC_TEST_OPTIONS
=-static
2970 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2972 NON_GNU_CPP
=/usr
/lib
/cpp
2974 *-sunos4* |
*-sunos )
2976 NON_GCC_TEST_OPTIONS
=-Bstatic
2977 GCC_TEST_OPTIONS
=-static
2979 *-sunos5.3
* |
*-solaris2.3
* )
2981 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2983 *-sunos5.4
* |
*-solaris2.4
* )
2985 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2988 *-sunos5.5
* |
*-solaris2.5
* )
2990 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2993 *-sunos5.6
* |
*-solaris2.6
* )
2995 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2998 *-sunos5* |
*-solaris* )
3000 ## FIXME: make this into a proper fix that checks the compiler type,
3001 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3002 if [ "x$CC" = x
/opt
/SUNWspro
/bin
/cc
]; then
3003 ## -Xs prevents spurious whitespace.
3004 NON_GNU_CPP
="/opt/SUNWspro/bin/cc -E -Xs"
3006 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3011 ## Watch out for a compiler that we know will not work.
3012 case "${canonical}" in
3013 *-solaris* |
*-sunos5* )
3014 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3015 ## /usr/ucb/cc doesn't work;
3016 ## we should find some other compiler that does work.
3024 machine
=sparc opsys
=nextstep
3028 m68
*-tadpole-sysv* )
3029 machine
=tad68k opsys
=usg5-3
3033 tahoe-tahoe-bsd4.2
* )
3034 machine
=tahoe opsys
=bsd4-2
3036 tahoe-tahoe-bsd4.3
* )
3037 machine
=tahoe opsys
=bsd4-3
3040 ## Tandem Integrity S2
3042 machine
=tandem-s2 opsys
=usg5-3
3046 m88k-tektronix-sysv3
* )
3047 machine
=tekxd88 opsys
=usg5-3
3050 ## Tektronix 16000 box (6130?)
3051 ns16k-tektronix-bsd
* )
3052 machine
=ns16000 opsys
=bsd4-2
3055 ## src/m/tek4300.h hints that this is a m68k machine.
3056 m68
*-tektronix-bsd* )
3057 machine
=tek4300 opsys
=bsd4-3
3061 ## We seem to have lost the machine-description file titan.h!
3063 machine
=titan opsys
=usg5-3
3066 ## Ustation E30 (SS5E)
3067 m68
*-unisys-uniplus* )
3068 machine
=ustation opsystem
=unipl5-2
3074 case "${canonical}" in
3075 *-bsd4.1
* ) opsys
=bsd4-1
;;
3076 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3077 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3078 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3079 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3080 *-vms* ) opsys
=vms
;;
3086 ns16k-whitechapel-
* )
3088 ## We don't know what sort of OS runs on these; we'll let the
3089 ## operating system guessing code below try.
3094 machine
=wicat opsys
=usg5-2
3099 machine
=ia64 opsys
=gnu-linux
3102 ## Intel 386 machines where we don't care about the manufacturer
3105 case "${canonical}" in
3106 *-cygwin ) opsys
=cygwin
;;
3107 *-darwin* ) opsys
=darwin
3108 CPP
="${CC-cc} -E -no-cpp-precomp"
3110 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3111 *-isc2.2
* ) opsys
=isc2-2
;;
3112 *-isc4.0
* ) opsys
=isc4-0
;;
3113 *-isc4.
* ) opsys
=isc4-1
3114 GCC_TEST_OPTIONS
=-posix
3115 NON_GCC_TEST_OPTIONS
=-Xp
3117 *-isc* ) opsys
=isc3-0
;;
3118 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3119 *-esix* ) opsys
=esix
;;
3120 *-xenix* ) opsys
=xenix
;;
3121 *-linux-gnu* ) opsys
=gnu-linux
;;
3122 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3123 *-sco3.2v5
* ) opsys
=sco5
3124 NON_GNU_CPP
=/lib
/cpp
3125 # Prevent -belf from being passed to $CPP.
3126 # /lib/cpp does not accept it.
3127 OVERRIDE_CPPFLAGS
=" "
3129 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3130 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3131 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3132 *-386bsd* ) opsys
=386bsd
;;
3133 *-nextstep* ) opsys
=nextstep
;;
3134 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3138 ## m68k Linux-based GNU system
3140 machine
=m68k opsys
=gnu-linux
3143 ## Mips Linux-based GNU system
3144 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3145 machine
=mips opsys
=gnu-linux
3149 sparc-fujitsu-sysv4
* )
3150 machine
=sparc opsys
=uxpds
3151 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3156 f301-fujitsu-uxpv4.1
)
3157 machine
=f301 opsys
=uxpv
3160 ## AMD x86-64 Linux-based GNU system
3161 x86_64-
*-linux-gnu* )
3162 machine
=amdx86-64 opsys
=gnu-linux
3165 ## Tensilica Xtensa Linux-based GNU system
3166 xtensa-
*-linux-gnu* )
3167 machine
=xtensa opsys
=gnu-linux
3175 ### If the code above didn't choose an operating system, just choose
3176 ### an operating system based on the configuration name. You really
3177 ### only want to use this when you have no idea what the right
3178 ### operating system is; if you know what operating systems a machine
3179 ### runs, it's cleaner to make it explicit in the case statement
3181 if test x
"${opsys}" = x
; then
3182 case "${canonical}" in
3183 *-gnu* ) opsys
=gnu
;;
3184 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3185 *-bsd4.2
) opsys
=bsd4-2
;;
3186 *-bsd4.3
) opsys
=bsd4-3
;;
3187 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3188 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3189 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3190 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3191 *-sysv4.2uw
* ) opsys
=unixware
;;
3192 *-sysv5uw* ) opsys
=unixware
;;
3193 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3194 *-sysv4.1
* |
*-sysvr4.1
* )
3195 NON_GNU_CPP
=/usr
/lib
/cpp
3197 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3198 if [ x
$NON_GNU_CPP = x
]; then
3199 if [ -f /usr
/ccs
/lib
/cpp
]; then
3200 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3202 NON_GNU_CPP
=/lib
/cpp
3206 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3215 if test $unported = yes; then
3216 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3217 Check \`etc/MACHINES' for recognized configuration names." >&5
3218 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3219 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3220 { (exit 1); exit 1; }; }
3223 machfile
="m/${machine}.h"
3224 opsysfile
="s/${opsys}.h"
3227 #### Choose a compiler.
3228 test -n "$CC" && cc_specified
=yes
3230 # Save the value of CFLAGS that the user specified.
3231 SPECIFIED_CFLAGS
="$CFLAGS"
3234 "yes" ) CC
="gcc" GCC
=yes ;;
3235 "no" ) : ${CC=cc} ;;
3239 ac_cpp
='$CPP $CPPFLAGS'
3240 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3243 if test -n "$ac_tool_prefix"; then
3244 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3245 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3248 if test "${ac_cv_prog_CC+set}" = set; then
3249 echo $ECHO_N "(cached) $ECHO_C" >&6
3251 if test -n "$CC"; then
3252 ac_cv_prog_CC
="$CC" # Let the user override the test.
3254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3258 test -z "$as_dir" && as_dir
=.
3259 for ac_exec_ext
in '' $ac_executable_extensions; do
3260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3261 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 if test -n "$CC"; then
3273 { echo "$as_me:$LINENO: result: $CC" >&5
3274 echo "${ECHO_T}$CC" >&6; }
3276 { echo "$as_me:$LINENO: result: no" >&5
3277 echo "${ECHO_T}no" >&6; }
3282 if test -z "$ac_cv_prog_CC"; then
3284 # Extract the first word of "gcc", so it can be a program name with args.
3285 set dummy gcc
; ac_word
=$2
3286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3288 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 if test -n "$ac_ct_CC"; then
3292 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3298 test -z "$as_dir" && as_dir
=.
3299 for ac_exec_ext
in '' $ac_executable_extensions; do
3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3301 ac_cv_prog_ac_ct_CC
="gcc"
3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3312 if test -n "$ac_ct_CC"; then
3313 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3314 echo "${ECHO_T}$ac_ct_CC" >&6; }
3316 { echo "$as_me:$LINENO: result: no" >&5
3317 echo "${ECHO_T}no" >&6; }
3320 if test "x$ac_ct_CC" = x
; then
3323 case $cross_compiling:$ac_tool_warned in
3325 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3326 whose name does not start with the host triplet. If you think this
3327 configuration is useful to you, please write to autoconf@gnu.org." >&5
3328 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3329 whose name does not start with the host triplet. If you think this
3330 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3331 ac_tool_warned
=yes ;;
3339 if test -z "$CC"; then
3340 if test -n "$ac_tool_prefix"; then
3341 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3342 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3345 if test "${ac_cv_prog_CC+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3348 if test -n "$CC"; then
3349 ac_cv_prog_CC
="$CC" # Let the user override the test.
3351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3355 test -z "$as_dir" && as_dir
=.
3356 for ac_exec_ext
in '' $ac_executable_extensions; do
3357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 if test -n "$CC"; then
3370 { echo "$as_me:$LINENO: result: $CC" >&5
3371 echo "${ECHO_T}$CC" >&6; }
3373 { echo "$as_me:$LINENO: result: no" >&5
3374 echo "${ECHO_T}no" >&6; }
3380 if test -z "$CC"; then
3381 # Extract the first word of "cc", so it can be a program name with args.
3382 set dummy cc
; ac_word
=$2
3383 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3384 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3385 if test "${ac_cv_prog_CC+set}" = set; then
3386 echo $ECHO_N "(cached) $ECHO_C" >&6
3388 if test -n "$CC"; then
3389 ac_cv_prog_CC
="$CC" # Let the user override the test.
3392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3396 test -z "$as_dir" && as_dir
=.
3397 for ac_exec_ext
in '' $ac_executable_extensions; do
3398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3399 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3400 ac_prog_rejected
=yes
3404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 if test $ac_prog_rejected = yes; then
3412 # We found a bogon in the path, so make sure we never use it.
3413 set dummy
$ac_cv_prog_CC
3415 if test $# != 0; then
3416 # We chose a different compiler from the bogus one.
3417 # However, it has the same basename, so the bogon will be chosen
3418 # first if we set CC to just the basename; use the full file name.
3420 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3426 if test -n "$CC"; then
3427 { echo "$as_me:$LINENO: result: $CC" >&5
3428 echo "${ECHO_T}$CC" >&6; }
3430 { echo "$as_me:$LINENO: result: no" >&5
3431 echo "${ECHO_T}no" >&6; }
3436 if test -z "$CC"; then
3437 if test -n "$ac_tool_prefix"; then
3438 for ac_prog
in cl.exe
3440 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3441 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3444 if test "${ac_cv_prog_CC+set}" = set; then
3445 echo $ECHO_N "(cached) $ECHO_C" >&6
3447 if test -n "$CC"; then
3448 ac_cv_prog_CC
="$CC" # Let the user override the test.
3450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3454 test -z "$as_dir" && as_dir
=.
3455 for ac_exec_ext
in '' $ac_executable_extensions; do
3456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3457 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 if test -n "$CC"; then
3469 { echo "$as_me:$LINENO: result: $CC" >&5
3470 echo "${ECHO_T}$CC" >&6; }
3472 { echo "$as_me:$LINENO: result: no" >&5
3473 echo "${ECHO_T}no" >&6; }
3477 test -n "$CC" && break
3480 if test -z "$CC"; then
3482 for ac_prog
in cl.exe
3484 # Extract the first word of "$ac_prog", so it can be a program name with args.
3485 set dummy
$ac_prog; ac_word
=$2
3486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3488 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3489 echo $ECHO_N "(cached) $ECHO_C" >&6
3491 if test -n "$ac_ct_CC"; then
3492 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3498 test -z "$as_dir" && as_dir
=.
3499 for ac_exec_ext
in '' $ac_executable_extensions; do
3500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3501 ac_cv_prog_ac_ct_CC
="$ac_prog"
3502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3511 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3512 if test -n "$ac_ct_CC"; then
3513 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3514 echo "${ECHO_T}$ac_ct_CC" >&6; }
3516 { echo "$as_me:$LINENO: result: no" >&5
3517 echo "${ECHO_T}no" >&6; }
3521 test -n "$ac_ct_CC" && break
3524 if test "x$ac_ct_CC" = x
; then
3527 case $cross_compiling:$ac_tool_warned in
3529 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3530 whose name does not start with the host triplet. If you think this
3531 configuration is useful to you, please write to autoconf@gnu.org." >&5
3532 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3533 whose name does not start with the host triplet. If you think this
3534 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3535 ac_tool_warned
=yes ;;
3544 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3545 See \`config.log' for more details." >&5
3546 echo "$as_me: error: no acceptable C compiler found in \$PATH
3547 See \`config.log' for more details." >&2;}
3548 { (exit 1); exit 1; }; }
3550 # Provide some information about the compiler.
3551 echo "$as_me:$LINENO: checking for C compiler version" >&5
3552 ac_compiler
=`set X $ac_compile; echo $2`
3553 { (ac_try
="$ac_compiler --version >&5"
3555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3556 *) ac_try_echo=$ac_try;;
3558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3559 (eval "$ac_compiler --version >&5") 2>&5
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }
3563 { (ac_try="$ac_compiler -v >&5"
3565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3566 *) ac_try_echo
=$ac_try;;
3568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3569 (eval "$ac_compiler -v >&5") 2>&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3572 (exit $ac_status); }
3573 { (ac_try
="$ac_compiler -V >&5"
3575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_compiler -V >&5") 2>&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); }
3584 cat >conftest.$ac_ext <<_ACEOF
3587 cat confdefs.h >>conftest.$ac_ext
3588 cat >>conftest.$ac_ext <<_ACEOF
3589 /* end confdefs.h. */
3599 ac_clean_files_save=$ac_clean_files
3600 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3601 # Try to create an executable without -o first, disregard a.out.
3602 # It will help us diagnose broken compilers, and finding out an intuition
3604 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3605 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3606 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3608 # List of possible output files, starting from the most likely.
3609 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3610 # only as a last resort. b.out is created by i960 compilers.
3611 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3613 # The IRIX 6 linker writes into existing files which may not be
3614 # executable, retaining their permissions. Remove them first so a
3615 # subsequent execution test works.
3617 for ac_file in $ac_files
3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3621 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3626 if { (ac_try="$ac_link_default"
3628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3629 *) ac_try_echo=$ac_try;;
3631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3632 (eval "$ac_link_default") 2>&5
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); }; then
3636 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3637 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3638 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3639 # so that the user can short-circuit this test for compilers unknown to
3641 for ac_file
in $ac_files ''
3643 test -f "$ac_file" ||
continue
3645 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3648 # We found the default executable, but exeext='' is most
3652 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3654 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3656 # We set ac_cv_exeext here because the later test for it is not
3657 # safe: cross compilers may not add the suffix if given an `-o'
3658 # argument, so we may need to know it at that point already.
3659 # Even if this section looks crufty: it has the advantage of
3666 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3672 { echo "$as_me:$LINENO: result: $ac_file" >&5
3673 echo "${ECHO_T}$ac_file" >&6; }
3674 if test -z "$ac_file"; then
3675 echo "$as_me: failed program was:" >&5
3676 sed 's/^/| /' conftest.
$ac_ext >&5
3678 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3679 See \`config.log' for more details." >&5
3680 echo "$as_me: error: C compiler cannot create executables
3681 See \`config.log' for more details." >&2;}
3682 { (exit 77); exit 77; }; }
3685 ac_exeext
=$ac_cv_exeext
3687 # Check that the compiler produces executables we can run. If not, either
3688 # the compiler is broken, or we cross compile.
3689 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3690 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3691 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3692 # If not cross compiling, check that we can run a simple program.
3693 if test "$cross_compiling" != yes; then
3694 if { ac_try
='./$ac_file'
3695 { (case "(($ac_try" in
3696 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3697 *) ac_try_echo=$ac_try;;
3699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3700 (eval "$ac_try") 2>&5
3702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3703 (exit $ac_status); }; }; then
3706 if test "$cross_compiling" = maybe; then
3709 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3710 If you meant to cross compile, use \`--host'.
3711 See \`config.log' for more details.
" >&5
3712 echo "$as_me: error
: cannot run C compiled programs.
3713 If you meant to cross compile
, use \
`--host'.
3714 See \`config.log
' for more details." >&2;}
3715 { (exit 1); exit 1; }; }
3719 { echo "$as_me:$LINENO: result: yes" >&5
3720 echo "${ECHO_T}yes" >&6; }
3722 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3723 ac_clean_files=$ac_clean_files_save
3724 # Check that the compiler produces executables we can run. If not, either
3725 # the compiler is broken, or we cross compile.
3726 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3727 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3728 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3729 echo "${ECHO_T}$cross_compiling" >&6; }
3731 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3732 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3733 if { (ac_try="$ac_link"
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739 (eval "$ac_link") 2>&5
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; then
3743 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3744 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3745 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3747 for ac_file
in conftest.exe conftest conftest.
*; do
3748 test -f "$ac_file" ||
continue
3750 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3751 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3757 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3758 See \`config.log' for more details." >&5
3759 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3760 See \`config.log' for more details." >&2;}
3761 { (exit 1); exit 1; }; }
3764 rm -f conftest
$ac_cv_exeext
3765 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3766 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3768 rm -f conftest.
$ac_ext
3769 EXEEXT
=$ac_cv_exeext
3771 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3772 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3773 if test "${ac_cv_objext+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 cat >conftest.
$ac_ext <<_ACEOF
3779 cat confdefs.h
>>conftest.
$ac_ext
3780 cat >>conftest.
$ac_ext <<_ACEOF
3781 /* end confdefs.h. */
3791 rm -f conftest.o conftest.obj
3792 if { (ac_try
="$ac_compile"
3794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3798 (eval "$ac_compile") 2>&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); }; then
3802 for ac_file in conftest.o conftest.obj conftest.*; do
3803 test -f "$ac_file" || continue;
3805 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3806 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3811 echo "$as_me: failed program was:" >&5
3812 sed 's/^/| /' conftest.$ac_ext >&5
3814 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3815 See \`config.log
' for more details." >&5
3816 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3817 See \`config.log' for more details.
" >&2;}
3818 { (exit 1); exit 1; }; }
3821 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3823 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3824 echo "${ECHO_T}$ac_cv_objext" >&6; }
3825 OBJEXT=$ac_cv_objext
3827 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3828 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3829 if test "${ac_cv_c_compiler_gnu+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. */
3850 rm -f conftest.$ac_objext
3851 if { (ac_try="$ac_compile"
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3857 (eval "$ac_compile") 2>conftest.er1
3859 grep -v '^ *+' conftest.er1 >conftest.err
3861 cat conftest.err >&5
3862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3863 (exit $ac_status); } && {
3864 test -z "$ac_c_werror_flag" ||
3865 test ! -s conftest.err
3866 } && test -s conftest.$ac_objext; then
3869 echo "$as_me: failed program was
:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3879 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3880 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3881 GCC=`test $ac_compiler_gnu = yes && echo yes`
3882 ac_test_CFLAGS=${CFLAGS+set}
3883 ac_save_CFLAGS=$CFLAGS
3884 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3885 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3886 if test "${ac_cv_prog_cc_g+set}" = set; then
3887 echo $ECHO_N "(cached
) $ECHO_C" >&6
3889 ac_save_c_werror_flag=$ac_c_werror_flag
3890 ac_c_werror_flag=yes
3893 cat >conftest.$ac_ext <<_ACEOF
3896 cat confdefs.h >>conftest.$ac_ext
3897 cat >>conftest.$ac_ext <<_ACEOF
3898 /* end confdefs.h. */
3908 rm -f conftest.$ac_objext
3909 if { (ac_try="$ac_compile"
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_compile") 2>conftest.er1
3917 grep -v '^ *+' conftest.er1 >conftest.err
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3921 (exit $ac_status); } && {
3922 test -z "$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 } && test -s conftest.$ac_objext; then
3927 echo "$as_me: failed program was
:" >&5
3928 sed 's/^/| /' conftest.$ac_ext >&5
3931 cat >conftest.$ac_ext <<_ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h. */
3946 rm -f conftest.$ac_objext
3947 if { (ac_try="$ac_compile"
3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3950 *) ac_try_echo=$ac_try;;
3952 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3953 (eval "$ac_compile") 2>conftest.er1
3955 grep -v '^ *+' conftest.er1 >conftest.err
3957 cat conftest.err >&5
3958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3959 (exit $ac_status); } && {
3960 test -z "$ac_c_werror_flag" ||
3961 test ! -s conftest.err
3962 } && test -s conftest.$ac_objext; then
3965 echo "$as_me: failed program was
:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3968 ac_c_werror_flag=$ac_save_c_werror_flag
3970 cat >conftest.$ac_ext <<_ACEOF
3973 cat confdefs.h >>conftest.$ac_ext
3974 cat >>conftest.$ac_ext <<_ACEOF
3975 /* end confdefs.h. */
3985 rm -f conftest.$ac_objext
3986 if { (ac_try="$ac_compile"
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3991 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3992 (eval "$ac_compile") 2>conftest.er1
3994 grep -v '^ *+' conftest.er1 >conftest.err
3996 cat conftest.err >&5
3997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3998 (exit $ac_status); } && {
3999 test -z "$ac_c_werror_flag" ||
4000 test ! -s conftest.err
4001 } && test -s conftest.$ac_objext; then
4004 echo "$as_me: failed program was
:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 ac_c_werror_flag=$ac_save_c_werror_flag
4019 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4020 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4021 if test "$ac_test_CFLAGS" = set; then
4022 CFLAGS=$ac_save_CFLAGS
4023 elif test $ac_cv_prog_cc_g = yes; then
4024 if test "$GCC" = yes; then
4030 if test "$GCC" = yes; then
4036 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4037 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4038 if test "${ac_cv_prog_cc_c89+set}" = set; then
4039 echo $ECHO_N "(cached
) $ECHO_C" >&6
4041 ac_cv_prog_cc_c89=no
4043 cat >conftest.$ac_ext <<_ACEOF
4046 cat confdefs.h >>conftest.$ac_ext
4047 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */
4051 #include <sys/types.h>
4052 #include <sys/stat.h>
4053 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4054 struct buf { int x; };
4055 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4056 static char *e (p, i)
4062 static char *f (char * (*g) (char **, int), char **p, ...)
4067 s = g (p, va_arg (v,int));
4072 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4073 function prototypes and stuff, but not '\xHH' hex character constants.
4074 These don't provoke an error unfortunately, instead are silently treated
4075 as 'x'. The following induces an error, until -std is added to get
4076 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4077 array size at least. It's necessary to write '\x00'==0 to get something
4078 that's true only with -std. */
4079 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4081 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4082 inside strings and character constants. */
4084 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4086 int test (int i, double x);
4087 struct s1 {int (*f) (int a);};
4088 struct s2 {int (*f) (double a);};
4089 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4095 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4100 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4101 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4103 CC="$ac_save_CC $ac_arg"
4104 rm -f conftest.$ac_objext
4105 if { (ac_try="$ac_compile"
4107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108 *) ac_try_echo=$ac_try;;
4110 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4111 (eval "$ac_compile") 2>conftest.er1
4113 grep -v '^ *+' conftest.er1 >conftest.err
4115 cat conftest.err >&5
4116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4117 (exit $ac_status); } && {
4118 test -z "$ac_c_werror_flag" ||
4119 test ! -s conftest.err
4120 } && test -s conftest.$ac_objext; then
4121 ac_cv_prog_cc_c89=$ac_arg
4123 echo "$as_me: failed program was
:" >&5
4124 sed 's/^/| /' conftest.$ac_ext >&5
4129 rm -f core conftest.err conftest.$ac_objext
4130 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4132 rm -f conftest.$ac_ext
4137 case "x
$ac_cv_prog_cc_c89" in
4139 { echo "$as_me:$LINENO: result
: none needed
" >&5
4140 echo "${ECHO_T}none needed
" >&6; } ;;
4142 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4143 echo "${ECHO_T}unsupported
" >&6; } ;;
4145 CC="$CC $ac_cv_prog_cc_c89"
4146 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4147 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4152 ac_cpp='$CPP $CPPFLAGS'
4153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4158 # On Suns, sometimes $CPP names a directory.
4159 if test -n "$CPP" && test -d "$CPP"; then
4163 #### Some systems specify a CPP to use unless we are using GCC.
4164 #### Now that we know whether we are using GCC, we can decide whether
4165 #### to use that one.
4166 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4171 #### Some systems specify a CC to use unless we are using GCC.
4172 #### Now that we know whether we are using GCC, we can decide whether
4173 #### to use that one.
4174 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4175 test x$cc_specified != xyes
4180 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4182 CC="$CC $GCC_TEST_OPTIONS"
4185 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4187 CC="$CC $NON_GCC_TEST_OPTIONS"
4192 ac_cpp='$CPP $CPPFLAGS'
4193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4196 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4197 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4198 # On Suns, sometimes $CPP names a directory.
4199 if test -n "$CPP" && test -d "$CPP"; then
4202 if test -z "$CPP"; then
4203 if test "${ac_cv_prog_CPP+set}" = set; then
4204 echo $ECHO_N "(cached
) $ECHO_C" >&6
4206 # Double quotes because CPP needs to be expanded
4207 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4210 for ac_c_preproc_warn_flag in '' yes
4212 # Use a header file that comes with gcc, so configuring glibc
4213 # with a fresh cross-compiler works.
4214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4215 # <limits.h> exists even on freestanding compilers.
4216 # On the NeXT, cc -E runs the code through the compiler's parser,
4217 # not just through cpp. "Syntax error
" is here to catch this case.
4218 cat >conftest.$ac_ext <<_ACEOF
4221 cat confdefs.h >>conftest.$ac_ext
4222 cat >>conftest.$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4225 # include <limits.h>
4227 # include <assert.h>
4231 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4239 grep -v '^ *+' conftest.er1 >conftest.err
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4243 (exit $ac_status); } >/dev/null && {
4244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4245 test ! -s conftest.err
4249 echo "$as_me: failed program was
:" >&5
4250 sed 's/^/| /' conftest.$ac_ext >&5
4252 # Broken: fails on valid input.
4256 rm -f conftest.err conftest.$ac_ext
4258 # OK, works on sane cases. Now check whether nonexistent headers
4259 # can be detected and how.
4260 cat >conftest.$ac_ext <<_ACEOF
4263 cat confdefs.h >>conftest.$ac_ext
4264 cat >>conftest.$ac_ext <<_ACEOF
4265 /* end confdefs.h. */
4266 #include <ac_nonexistent.h>
4268 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271 *) ac_try_echo=$ac_try;;
4273 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4274 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4276 grep -v '^ *+' conftest.er1 >conftest.err
4278 cat conftest.err >&5
4279 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4280 (exit $ac_status); } >/dev/null && {
4281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4282 test ! -s conftest.err
4284 # Broken: success on invalid input.
4287 echo "$as_me: failed program was
:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4290 # Passes both tests.
4295 rm -f conftest.err conftest.$ac_ext
4298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4299 rm -f conftest.err conftest.$ac_ext
4300 if $ac_preproc_ok; then
4312 { echo "$as_me:$LINENO: result
: $CPP" >&5
4313 echo "${ECHO_T}$CPP" >&6; }
4315 for ac_c_preproc_warn_flag in '' yes
4317 # Use a header file that comes with gcc, so configuring glibc
4318 # with a fresh cross-compiler works.
4319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320 # <limits.h> exists even on freestanding compilers.
4321 # On the NeXT, cc -E runs the code through the compiler's parser,
4322 # not just through cpp. "Syntax error
" is here to catch this case.
4323 cat >conftest.$ac_ext <<_ACEOF
4326 cat confdefs.h >>conftest.$ac_ext
4327 cat >>conftest.$ac_ext <<_ACEOF
4328 /* end confdefs.h. */
4330 # include <limits.h>
4332 # include <assert.h>
4336 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4341 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4342 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4344 grep -v '^ *+' conftest.er1 >conftest.err
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4348 (exit $ac_status); } >/dev/null && {
4349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4350 test ! -s conftest.err
4354 echo "$as_me: failed program was
:" >&5
4355 sed 's/^/| /' conftest.$ac_ext >&5
4357 # Broken: fails on valid input.
4361 rm -f conftest.err conftest.$ac_ext
4363 # OK, works on sane cases. Now check whether nonexistent headers
4364 # can be detected and how.
4365 cat >conftest.$ac_ext <<_ACEOF
4368 cat confdefs.h >>conftest.$ac_ext
4369 cat >>conftest.$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4371 #include <ac_nonexistent.h>
4373 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4379 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4381 grep -v '^ *+' conftest.er1 >conftest.err
4383 cat conftest.err >&5
4384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4385 (exit $ac_status); } >/dev/null && {
4386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4387 test ! -s conftest.err
4389 # Broken: success on invalid input.
4392 echo "$as_me: failed program was
:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4395 # Passes both tests.
4400 rm -f conftest.err conftest.$ac_ext
4403 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4404 rm -f conftest.err conftest.$ac_ext
4405 if $ac_preproc_ok; then
4408 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4409 See \
`config.log' for more details." >&5
4410 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4411 See \`config.log
' for more details." >&2;}
4412 { (exit 1); exit 1; }; }
4416 ac_cpp='$CPP $CPPFLAGS'
4417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4418 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4422 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4423 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4424 if test "${ac_cv_path_GREP+set}" = set; then
4425 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 # Extract the first word of "grep ggrep" to use in msg output
4428 if test -z "$GREP"; then
4429 set dummy grep ggrep; ac_prog_name=$2
4430 if test "${ac_cv_path_GREP+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 ac_path_GREP_found=false
4434 # Loop through the user's path and
test for each of PROGNAME-LIST
4435 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4436 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4439 test -z "$as_dir" && as_dir
=.
4440 for ac_prog
in grep ggrep
; do
4441 for ac_exec_ext
in '' $ac_executable_extensions; do
4442 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4443 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4444 # Check for GNU ac_path_GREP and select it if it is found.
4445 # Check for GNU $ac_path_GREP
4446 case `"$ac_path_GREP" --version 2>&1` in
4448 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4451 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4454 cat "conftest.in" "conftest.in" >"conftest.tmp"
4455 mv "conftest.tmp" "conftest.in"
4456 cp "conftest.in" "conftest.nl"
4457 echo 'GREP' >> "conftest.nl"
4458 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4459 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4460 ac_count
=`expr $ac_count + 1`
4461 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4462 # Best one so far, save it but keep looking for a better one
4463 ac_cv_path_GREP
="$ac_path_GREP"
4464 ac_path_GREP_max
=$ac_count
4466 # 10*(2^10) chars as input seems more than enough
4467 test $ac_count -gt 10 && break
4469 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4473 $ac_path_GREP_found && break 3
4483 GREP
="$ac_cv_path_GREP"
4484 if test -z "$GREP"; then
4485 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4486 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4487 { (exit 1); exit 1; }; }
4491 ac_cv_path_GREP
=$GREP
4496 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4497 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4498 GREP
="$ac_cv_path_GREP"
4501 { echo "$as_me:$LINENO: checking for egrep" >&5
4502 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4503 if test "${ac_cv_path_EGREP+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4507 then ac_cv_path_EGREP
="$GREP -E"
4509 # Extract the first word of "egrep" to use in msg output
4510 if test -z "$EGREP"; then
4511 set dummy
egrep; ac_prog_name
=$2
4512 if test "${ac_cv_path_EGREP+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 ac_path_EGREP_found
=false
4516 # Loop through the user's path and test for each of PROGNAME-LIST
4517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4518 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4521 test -z "$as_dir" && as_dir
=.
4522 for ac_prog
in egrep; do
4523 for ac_exec_ext
in '' $ac_executable_extensions; do
4524 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4525 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4526 # Check for GNU ac_path_EGREP and select it if it is found.
4527 # Check for GNU $ac_path_EGREP
4528 case `"$ac_path_EGREP" --version 2>&1` in
4530 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4533 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4536 cat "conftest.in" "conftest.in" >"conftest.tmp"
4537 mv "conftest.tmp" "conftest.in"
4538 cp "conftest.in" "conftest.nl"
4539 echo 'EGREP' >> "conftest.nl"
4540 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4541 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4542 ac_count
=`expr $ac_count + 1`
4543 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4544 # Best one so far, save it but keep looking for a better one
4545 ac_cv_path_EGREP
="$ac_path_EGREP"
4546 ac_path_EGREP_max
=$ac_count
4548 # 10*(2^10) chars as input seems more than enough
4549 test $ac_count -gt 10 && break
4551 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4555 $ac_path_EGREP_found && break 3
4565 EGREP
="$ac_cv_path_EGREP"
4566 if test -z "$EGREP"; then
4567 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4568 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4569 { (exit 1); exit 1; }; }
4573 ac_cv_path_EGREP
=$EGREP
4579 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4580 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4581 EGREP
="$ac_cv_path_EGREP"
4585 { echo "$as_me:$LINENO: checking for AIX" >&5
4586 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4587 cat >conftest.
$ac_ext <<_ACEOF
4590 cat confdefs.h
>>conftest.
$ac_ext
4591 cat >>conftest.
$ac_ext <<_ACEOF
4592 /* end confdefs.h. */
4598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4599 $EGREP "yes" >/dev
/null
2>&1; then
4600 { echo "$as_me:$LINENO: result: yes" >&5
4601 echo "${ECHO_T}yes" >&6; }
4602 cat >>confdefs.h
<<\_ACEOF
4603 #define _ALL_SOURCE 1
4607 { echo "$as_me:$LINENO: result: no" >&5
4608 echo "${ECHO_T}no" >&6; }
4614 cat >>confdefs.h
<<\_ACEOF
4615 #define _GNU_SOURCE 1
4620 ### Use -Wno-pointer-sign if the compiler supports it
4621 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4622 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4623 SAVE_CFLAGS
="$CFLAGS"
4624 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4625 cat >conftest.
$ac_ext <<_ACEOF
4628 cat confdefs.h
>>conftest.
$ac_ext
4629 cat >>conftest.
$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4640 rm -f conftest.
$ac_objext
4641 if { (ac_try
="$ac_compile"
4643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4644 *) ac_try_echo=$ac_try;;
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_compile") 2>conftest.er1
4649 grep -v '^ *+' conftest.er1 >conftest.err
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && {
4654 test -z "$ac_c_werror_flag" ||
4655 test ! -s conftest.err
4656 } && test -s conftest.$ac_objext; then
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 if test $has_option = yes; then
4667 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4669 { echo "$as_me:$LINENO: result: $has_option" >&5
4670 echo "${ECHO_T}$has_option" >&6; }
4671 CFLAGS="$SAVE_CFLAGS"
4675 #### Some other nice autoconf tests.
4677 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4678 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4680 if test "$LN_S" = "ln -s"; then
4681 { echo "$as_me:$LINENO: result: yes" >&5
4682 echo "${ECHO_T}yes" >&6; }
4684 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4685 echo "${ECHO_T}no, using $LN_S" >&6; }
4689 ac_cpp='$CPP $CPPFLAGS'
4690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4693 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4694 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4695 # On Suns, sometimes $CPP names a directory.
4696 if test -n "$CPP" && test -d "$CPP"; then
4699 if test -z "$CPP"; then
4700 if test "${ac_cv_prog_CPP+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 # Double quotes because CPP needs to be expanded
4704 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4707 for ac_c_preproc_warn_flag in '' yes
4709 # Use a header file that comes with gcc, so configuring glibc
4710 # with a fresh cross-compiler works.
4711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4712 # <limits.h> exists even on freestanding compilers.
4713 # On the NeXT, cc -E runs the code through the compiler's parser,
4714 # not just through cpp. "Syntax error" is here to catch this case.
4715 cat >conftest.$ac_ext <<_ACEOF
4718 cat confdefs.h >>conftest.$ac_ext
4719 cat >>conftest.$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4722 # include <limits.h>
4724 # include <assert.h>
4728 if { (ac_try="$ac_cpp conftest.$ac_ext"
4730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4731 *) ac_try_echo
=$ac_try;;
4733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4736 grep -v '^ *+' conftest.er1
>conftest.err
4738 cat conftest.err
>&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } >/dev
/null
&& {
4741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4742 test ! -s conftest.err
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.
$ac_ext >&5
4749 # Broken: fails on valid input.
4753 rm -f conftest.err conftest.
$ac_ext
4755 # OK, works on sane cases. Now check whether nonexistent headers
4756 # can be detected and how.
4757 cat >conftest.
$ac_ext <<_ACEOF
4760 cat confdefs.h
>>conftest.
$ac_ext
4761 cat >>conftest.
$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763 #include <ac_nonexistent.h>
4765 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4773 grep -v '^ *+' conftest.er1 >conftest.err
4775 cat conftest.err >&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } >/dev/null && {
4778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4779 test ! -s conftest.err
4781 # Broken: success on invalid input.
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4787 # Passes both tests.
4792 rm -f conftest.err conftest.$ac_ext
4795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4796 rm -f conftest.err conftest.
$ac_ext
4797 if $ac_preproc_ok; then
4809 { echo "$as_me:$LINENO: result: $CPP" >&5
4810 echo "${ECHO_T}$CPP" >&6; }
4812 for ac_c_preproc_warn_flag
in '' yes
4814 # Use a header file that comes with gcc, so configuring glibc
4815 # with a fresh cross-compiler works.
4816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4817 # <limits.h> exists even on freestanding compilers.
4818 # On the NeXT, cc -E runs the code through the compiler's parser,
4819 # not just through cpp. "Syntax error" is here to catch this case.
4820 cat >conftest.
$ac_ext <<_ACEOF
4823 cat confdefs.h
>>conftest.
$ac_ext
4824 cat >>conftest.
$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4827 # include <limits.h>
4829 # include <assert.h>
4833 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4841 grep -v '^ *+' conftest.er1 >conftest.err
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } >/dev/null && {
4846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4847 test ! -s conftest.err
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4854 # Broken: fails on valid input.
4858 rm -f conftest.err conftest.$ac_ext
4860 # OK, works on sane cases. Now check whether nonexistent headers
4861 # can be detected and how.
4862 cat >conftest.$ac_ext <<_ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4868 #include <ac_nonexistent.h>
4870 if { (ac_try="$ac_cpp conftest.$ac_ext"
4872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4873 *) ac_try_echo
=$ac_try;;
4875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4878 grep -v '^ *+' conftest.er1
>conftest.err
4880 cat conftest.err
>&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } >/dev
/null
&& {
4883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4884 test ! -s conftest.err
4886 # Broken: success on invalid input.
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.
$ac_ext >&5
4892 # Passes both tests.
4897 rm -f conftest.err conftest.
$ac_ext
4900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4901 rm -f conftest.err conftest.
$ac_ext
4902 if $ac_preproc_ok; then
4905 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4906 See \`config.log' for more details." >&5
4907 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4908 See \`config.log' for more details." >&2;}
4909 { (exit 1); exit 1; }; }
4913 ac_cpp
='$CPP $CPPFLAGS'
4914 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4915 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4916 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4918 # Find a good install program. We prefer a C program (faster),
4919 # so one script is as good as another. But avoid the broken or
4920 # incompatible versions:
4921 # SysV /etc/install, /usr/sbin/install
4922 # SunOS /usr/etc/install
4923 # IRIX /sbin/install
4925 # AmigaOS /C/install, which installs bootblocks on floppy discs
4926 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4927 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4928 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4929 # OS/2's system install, which has a completely different semantic
4930 # ./install, which can be erroneously created by make from ./install.sh.
4931 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4932 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4933 if test -z "$INSTALL"; then
4934 if test "${ac_cv_path_install+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4941 test -z "$as_dir" && as_dir
=.
4942 # Account for people who put trailing slashes in PATH elements.
4944 .
/ | .
// |
/cC
/* | \
4945 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4946 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4949 # OSF1 and SCO ODT 3.0 have their own names for install.
4950 # Don't use installbsd from OSF since it installs stuff as root
4952 for ac_prog
in ginstall scoinst
install; do
4953 for ac_exec_ext
in '' $ac_executable_extensions; do
4954 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4955 if test $ac_prog = install &&
4956 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4957 # AIX install. It has an incompatible calling convention.
4959 elif test $ac_prog = install &&
4960 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4961 # program-specific install script used by HP pwplus--don't use.
4964 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4977 if test "${ac_cv_path_install+set}" = set; then
4978 INSTALL
=$ac_cv_path_install
4980 # As a last resort, use the slow shell script. Don't cache a
4981 # value for INSTALL within a source directory, because that will
4982 # break other packages using the cache if that directory is
4983 # removed, or if the value is a relative name.
4984 INSTALL
=$ac_install_sh
4987 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4988 echo "${ECHO_T}$INSTALL" >&6; }
4990 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4991 # It thinks the first close brace ends the variable substitution.
4992 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4994 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4996 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4998 if test "x$RANLIB" = x
; then
4999 if test -n "$ac_tool_prefix"; then
5000 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5001 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5004 if test "${ac_cv_prog_RANLIB+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 if test -n "$RANLIB"; then
5008 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5014 test -z "$as_dir" && as_dir
=.
5015 for ac_exec_ext
in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 RANLIB
=$ac_cv_prog_RANLIB
5028 if test -n "$RANLIB"; then
5029 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5030 echo "${ECHO_T}$RANLIB" >&6; }
5032 { echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6; }
5038 if test -z "$ac_cv_prog_RANLIB"; then
5039 ac_ct_RANLIB
=$RANLIB
5040 # Extract the first word of "ranlib", so it can be a program name with args.
5041 set dummy ranlib
; ac_word
=$2
5042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5044 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 if test -n "$ac_ct_RANLIB"; then
5048 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5054 test -z "$as_dir" && as_dir
=.
5055 for ac_exec_ext
in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5068 if test -n "$ac_ct_RANLIB"; then
5069 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5070 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5072 { echo "$as_me:$LINENO: result: no" >&5
5073 echo "${ECHO_T}no" >&6; }
5076 if test "x$ac_ct_RANLIB" = x
; then
5079 case $cross_compiling:$ac_tool_warned in
5081 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5082 whose name does not start with the host triplet. If you think this
5083 configuration is useful to you, please write to autoconf@gnu.org." >&5
5084 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5085 whose name does not start with the host triplet. If you think this
5086 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5087 ac_tool_warned
=yes ;;
5089 RANLIB
=$ac_ct_RANLIB
5092 RANLIB
="$ac_cv_prog_RANLIB"
5096 # Extract the first word of "install-info", so it can be a program name with args.
5097 set dummy install-info
; ac_word
=$2
5098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5100 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 case $INSTALL_INFO in
5105 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5112 test -z "$as_dir" && as_dir
=.
5113 for ac_exec_ext
in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5127 if test -n "$INSTALL_INFO"; then
5128 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5129 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5131 { echo "$as_me:$LINENO: result: no" >&5
5132 echo "${ECHO_T}no" >&6; }
5136 # Extract the first word of "install-info", so it can be a program name with args.
5137 set dummy install-info
; ac_word
=$2
5138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5140 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 case $INSTALL_INFO in
5145 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5149 for as_dir
in /usr
/sbin
5152 test -z "$as_dir" && as_dir
=.
5153 for ac_exec_ext
in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5167 if test -n "$INSTALL_INFO"; then
5168 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5169 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5171 { echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6; }
5176 # Extract the first word of "install-info", so it can be a program name with args.
5177 set dummy install-info
; ac_word
=$2
5178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5180 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 case $INSTALL_INFO in
5185 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5192 test -z "$as_dir" && as_dir
=.
5193 for ac_exec_ext
in '' $ac_executable_extensions; do
5194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5207 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5208 if test -n "$INSTALL_INFO"; then
5209 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5210 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5212 { echo "$as_me:$LINENO: result: no" >&5
5213 echo "${ECHO_T}no" >&6; }
5217 # Extract the first word of "gzip", so it can be a program name with args.
5218 set dummy
gzip; 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_GZIP_PROG+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # 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_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5248 if test -n "$GZIP_PROG"; then
5249 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5250 echo "${ECHO_T}$GZIP_PROG" >&6; }
5252 { echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6; }
5259 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5261 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5264 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5266 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5270 late_LDFLAGS
=$LDFLAGS
5271 if test "$GCC" = yes; then
5272 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5274 LDFLAGS
="$LDFLAGS -znocombreloc"
5277 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5278 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5279 cat >conftest.
$ac_ext <<_ACEOF
5282 rm -f conftest.
$ac_objext conftest
$ac_exeext
5283 if { (ac_try
="$ac_link"
5285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5289 (eval "$ac_link") 2>conftest.er1
5291 grep -v '^ *+' conftest.er1 >conftest.err
5293 cat conftest.err >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); } && {
5296 test -z "$ac_c_werror_flag" ||
5297 test ! -s conftest.err
5298 } && test -s conftest$ac_exeext &&
5299 $as_test_x conftest$ac_exeext; then
5300 { echo "$as_me:$LINENO: result: yes" >&5
5301 echo "${ECHO_T}yes" >&6; }
5303 echo "$as_me: failed program was:" >&5
5304 sed 's/^/| /' conftest.$ac_ext >&5
5306 LDFLAGS=$late_LDFLAGS
5307 { echo "$as_me:$LINENO: result: no" >&5
5308 echo "${ECHO_T}no" >&6; }
5311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5312 conftest$ac_exeext conftest.$ac_ext
5314 #### Extract some information from the operating system and machine files.
5316 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5317 - which libraries the lib-src programs will want, and
5318 - whether the GNU malloc routines are usable..." >&5
5319 echo "$as_me: checking the machine- and system-dependent files to find out
5320 - which libraries the lib-src programs will want, and
5321 - whether the GNU malloc routines are usable..." >&6;}
5323 ### First figure out CFLAGS (which we use for running the compiler here)
5324 ### and REAL_CFLAGS (which we use for real compilation).
5325 ### The two are the same except on a few systems, where they are made
5326 ### different to work around various lossages. For example,
5327 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5328 ### as implying static linking.
5330 ### If the CFLAGS env var is specified, we use that value
5331 ### instead of the default.
5333 ### It's not important that this name contain the PID; you can't run
5334 ### two configures in the same directory and have anything work
5336 tempcname="conftest.c"
5339 #include "'${srcdir}'/src/'${opsysfile}'"
5340 #include "'${srcdir}'/src/'${machfile}'"
5341 #ifndef LIBS_MACHINE
5342 #define LIBS_MACHINE
5347 #ifndef C_SWITCH_SYSTEM
5348 #define C_SWITCH_SYSTEM
5350 #ifndef C_SWITCH_MACHINE
5351 #define C_SWITCH_MACHINE
5353 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5354 configure___ c_switch_system=C_SWITCH_SYSTEM
5355 configure___ c_switch_machine=C_SWITCH_MACHINE
5358 #define LIB_X11_LIB -lX11
5361 #ifndef LIBX11_MACHINE
5362 #define LIBX11_MACHINE
5365 #ifndef LIBX11_SYSTEM
5366 #define LIBX11_SYSTEM
5368 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5371 configure___ unexec=UNEXEC
5373 configure___ unexec=unexec.o
5376 #ifdef SYSTEM_MALLOC
5377 configure___ system_malloc=yes
5379 configure___ system_malloc=no
5382 #ifdef USE_MMAP_FOR_BUFFERS
5383 configure___ use_mmap_for_buffers=yes
5385 configure___ use_mmap_for_buffers=no
5388 #ifndef C_DEBUG_SWITCH
5389 #define C_DEBUG_SWITCH -g
5392 #ifndef C_OPTIMIZE_SWITCH
5394 #define C_OPTIMIZE_SWITCH -O2
5396 #define C_OPTIMIZE_SWITCH -O
5400 #ifndef C_WARNINGS_SWITCH
5401 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5404 #ifndef LD_SWITCH_MACHINE
5405 #define LD_SWITCH_MACHINE
5408 #ifndef LD_SWITCH_SYSTEM
5409 #define LD_SWITCH_SYSTEM
5412 #ifndef LD_SWITCH_X_SITE_AUX
5413 #define LD_SWITCH_X_SITE_AUX
5416 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5417 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5419 #ifdef THIS_IS_CONFIGURE
5421 /* Get the CFLAGS for tests in configure. */
5423 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5425 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5428 #else /* not THIS_IS_CONFIGURE */
5430 /* Get the CFLAGS for real compilation. */
5432 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5434 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5437 #endif /* not THIS_IS_CONFIGURE */
5440 # The value of CPP is a quoted variable reference, so we need to do this
5441 # to get its actual value...
5442 CPP=`eval "echo $CPP"`
5443 eval `${CPP} -Isrc ${tempcname} \
5444 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5445 if test "x$SPECIFIED_CFLAGS" = x; then
5446 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5447 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5449 REAL_CFLAGS="$CFLAGS"
5453 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5455 ### Make sure subsequent tests use flags consistent with the build flags.
5457 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5458 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5460 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5465 # Check whether --enable-largefile was given.
5466 if test "${enable_largefile+set}" = set; then
5467 enableval=$enable_largefile;
5470 if test "$enable_largefile" != no; then
5472 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5473 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5474 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5475 echo $ECHO_N "(cached) $ECHO_C" >&6
5477 ac_cv_sys_largefile_CC=no
5478 if test "$GCC" != yes; then
5481 # IRIX 6.2 and later do not support large files by default,
5482 # so use the C compiler's -n32 option if that helps.
5483 cat >conftest.$ac_ext <<_ACEOF
5486 cat confdefs.h >>conftest.$ac_ext
5487 cat >>conftest.$ac_ext <<_ACEOF
5488 /* end confdefs.h. */
5489 #include <sys/types.h>
5490 /* Check that off_t can represent 2**63 - 1 correctly.
5491 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5492 since some C++ compilers masquerading as C compilers
5493 incorrectly reject 9223372036854775807. */
5494 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5495 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5496 && LARGE_OFF_T % 2147483647 == 1)
5506 rm -f conftest.$ac_objext
5507 if { (ac_try="$ac_compile"
5509 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5510 *) ac_try_echo
=$ac_try;;
5512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5513 (eval "$ac_compile") 2>conftest.er1
5515 grep -v '^ *+' conftest.er1
>conftest.err
5517 cat conftest.err
>&5
5518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5519 (exit $ac_status); } && {
5520 test -z "$ac_c_werror_flag" ||
5521 test ! -s conftest.err
5522 } && test -s conftest.
$ac_objext; then
5525 echo "$as_me: failed program was:" >&5
5526 sed 's/^/| /' conftest.
$ac_ext >&5
5531 rm -f core conftest.err conftest.
$ac_objext
5533 rm -f conftest.
$ac_objext
5534 if { (ac_try
="$ac_compile"
5536 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_compile") 2>conftest.er1
5542 grep -v '^ *+' conftest.er1 >conftest.err
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } && {
5547 test -z "$ac_c_werror_flag" ||
5548 test ! -s conftest.err
5549 } && test -s conftest.$ac_objext; then
5550 ac_cv_sys_largefile_CC=' -n32'; break
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5558 rm -f core conftest.err conftest.$ac_objext
5562 rm -f conftest.$ac_ext
5565 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5566 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5567 if test "$ac_cv_sys_largefile_CC" != no; then
5568 CC=$CC$ac_cv_sys_largefile_CC
5571 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5572 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5573 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5577 cat >conftest.$ac_ext <<_ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 #include <sys/types.h>
5584 /* Check that off_t can represent 2**63 - 1 correctly.
5585 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5586 since some C++ compilers masquerading as C compilers
5587 incorrectly reject 9223372036854775807. */
5588 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5589 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5590 && LARGE_OFF_T % 2147483647 == 1)
5600 rm -f conftest.$ac_objext
5601 if { (ac_try="$ac_compile"
5603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5604 *) ac_try_echo
=$ac_try;;
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_compile") 2>conftest.er1
5609 grep -v '^ *+' conftest.er1
>conftest.err
5611 cat conftest.err
>&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } && {
5614 test -z "$ac_c_werror_flag" ||
5615 test ! -s conftest.err
5616 } && test -s conftest.
$ac_objext; then
5617 ac_cv_sys_file_offset_bits
=no
; break
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.
$ac_ext >&5
5625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5626 cat >conftest.
$ac_ext <<_ACEOF
5629 cat confdefs.h
>>conftest.
$ac_ext
5630 cat >>conftest.
$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632 #define _FILE_OFFSET_BITS 64
5633 #include <sys/types.h>
5634 /* Check that off_t can represent 2**63 - 1 correctly.
5635 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5636 since some C++ compilers masquerading as C compilers
5637 incorrectly reject 9223372036854775807. */
5638 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5639 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5640 && LARGE_OFF_T % 2147483647 == 1)
5650 rm -f conftest.
$ac_objext
5651 if { (ac_try
="$ac_compile"
5653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_compile") 2>conftest.er1
5659 grep -v '^ *+' conftest.er1 >conftest.err
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && {
5664 test -z "$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5666 } && test -s conftest.$ac_objext; then
5667 ac_cv_sys_file_offset_bits=64; break
5669 echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676 ac_cv_sys_file_offset_bits=unknown
5680 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5681 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5682 case $ac_cv_sys_file_offset_bits in #(
5685 cat >>confdefs.h <<_ACEOF
5686 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5691 if test $ac_cv_sys_file_offset_bits = unknown; then
5692 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5693 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5694 if test "${ac_cv_sys_large_files+set}" = set; then
5695 echo $ECHO_N "(cached) $ECHO_C" >&6
5698 cat >conftest.$ac_ext <<_ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704 #include <sys/types.h>
5705 /* Check that off_t can represent 2**63 - 1 correctly.
5706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5707 since some C++ compilers masquerading as C compilers
5708 incorrectly reject 9223372036854775807. */
5709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5711 && LARGE_OFF_T % 2147483647 == 1)
5721 rm -f conftest.$ac_objext
5722 if { (ac_try="$ac_compile"
5724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5725 *) ac_try_echo
=$ac_try;;
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_compile") 2>conftest.er1
5730 grep -v '^ *+' conftest.er1
>conftest.err
5732 cat conftest.err
>&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } && {
5735 test -z "$ac_c_werror_flag" ||
5736 test ! -s conftest.err
5737 } && test -s conftest.
$ac_objext; then
5738 ac_cv_sys_large_files
=no
; break
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.
$ac_ext >&5
5746 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5747 cat >conftest.
$ac_ext <<_ACEOF
5750 cat confdefs.h
>>conftest.
$ac_ext
5751 cat >>conftest.
$ac_ext <<_ACEOF
5752 /* end confdefs.h. */
5753 #define _LARGE_FILES 1
5754 #include <sys/types.h>
5755 /* Check that off_t can represent 2**63 - 1 correctly.
5756 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5757 since some C++ compilers masquerading as C compilers
5758 incorrectly reject 9223372036854775807. */
5759 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5760 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5761 && LARGE_OFF_T % 2147483647 == 1)
5771 rm -f conftest.
$ac_objext
5772 if { (ac_try
="$ac_compile"
5774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_compile") 2>conftest.er1
5780 grep -v '^ *+' conftest.er1 >conftest.err
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } && {
5785 test -z "$ac_c_werror_flag" ||
5786 test ! -s conftest.err
5787 } && test -s conftest.$ac_objext; then
5788 ac_cv_sys_large_files=1; break
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5797 ac_cv_sys_large_files=unknown
5801 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5802 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5803 case $ac_cv_sys_large_files in #(
5806 cat >>confdefs.h <<_ACEOF
5807 #define _LARGE_FILES $ac_cv_sys_large_files
5817 ### The standard library on x86-64 GNU/Linux distributions can
5818 ### be located in either /usr/lib64 or /usr/lib.
5819 case "${canonical}" in
5820 x86_64-*-linux-gnu* )
5821 if test -d /usr/lib64; then
5823 cat >>confdefs.h <<\_ACEOF
5824 #define HAVE_X86_64_LIB64_DIR 1
5833 if test "${with_sound}" != "no"; then
5834 # Sound support for GNU/Linux and the free BSDs.
5835 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5836 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5837 if test "${ac_cv_header_stdc+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5840 cat >conftest.$ac_ext <<_ACEOF
5843 cat confdefs.h >>conftest.$ac_ext
5844 cat >>conftest.$ac_ext <<_ACEOF
5845 /* end confdefs.h. */
5859 rm -f conftest.$ac_objext
5860 if { (ac_try="$ac_compile"
5862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5863 *) ac_try_echo
=$ac_try;;
5865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5866 (eval "$ac_compile") 2>conftest.er1
5868 grep -v '^ *+' conftest.er1
>conftest.err
5870 cat conftest.err
>&5
5871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5872 (exit $ac_status); } && {
5873 test -z "$ac_c_werror_flag" ||
5874 test ! -s conftest.err
5875 } && test -s conftest.
$ac_objext; then
5876 ac_cv_header_stdc
=yes
5878 echo "$as_me: failed program was:" >&5
5879 sed 's/^/| /' conftest.
$ac_ext >&5
5881 ac_cv_header_stdc
=no
5884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5886 if test $ac_cv_header_stdc = yes; then
5887 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5888 cat >conftest.
$ac_ext <<_ACEOF
5891 cat confdefs.h
>>conftest.
$ac_ext
5892 cat >>conftest.
$ac_ext <<_ACEOF
5893 /* end confdefs.h. */
5897 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5898 $EGREP "memchr" >/dev
/null
2>&1; then
5901 ac_cv_header_stdc
=no
5907 if test $ac_cv_header_stdc = yes; then
5908 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5909 cat >conftest.
$ac_ext <<_ACEOF
5912 cat confdefs.h
>>conftest.
$ac_ext
5913 cat >>conftest.
$ac_ext <<_ACEOF
5914 /* end confdefs.h. */
5918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5919 $EGREP "free" >/dev
/null
2>&1; then
5922 ac_cv_header_stdc
=no
5928 if test $ac_cv_header_stdc = yes; then
5929 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5930 if test "$cross_compiling" = yes; then
5933 cat >conftest.
$ac_ext <<_ACEOF
5936 cat confdefs.h
>>conftest.
$ac_ext
5937 cat >>conftest.
$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5941 #if ((' ' & 0x0FF) == 0x020)
5942 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5943 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5945 # define ISLOWER(c) \
5946 (('a' <= (c) && (c) <= 'i') \
5947 || ('j' <= (c) && (c) <= 'r') \
5948 || ('s' <= (c) && (c) <= 'z'))
5949 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5957 for (i = 0; i < 256; i++)
5958 if (XOR (islower (i), ISLOWER (i))
5959 || toupper (i) != TOUPPER (i))
5964 rm -f conftest
$ac_exeext
5965 if { (ac_try
="$ac_link"
5967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5968 *) ac_try_echo=$ac_try;;
5970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5971 (eval "$ac_link") 2>&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5975 { (case "(($ac_try" in
5976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5977 *) ac_try_echo
=$ac_try;;
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_try") 2>&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); }; }; then
5986 echo "$as_me: program exited with status $ac_status" >&5
5987 echo "$as_me: failed program was:" >&5
5988 sed 's/^/| /' conftest.
$ac_ext >&5
5991 ac_cv_header_stdc
=no
5993 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5999 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6000 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6001 if test $ac_cv_header_stdc = yes; then
6003 cat >>confdefs.h
<<\_ACEOF
6004 #define STDC_HEADERS 1
6009 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6019 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6020 inttypes.h stdint.h unistd.h
6022 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6025 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 cat >conftest.
$ac_ext <<_ACEOF
6031 cat confdefs.h
>>conftest.
$ac_ext
6032 cat >>conftest.
$ac_ext <<_ACEOF
6033 /* end confdefs.h. */
6034 $ac_includes_default
6036 #include <$ac_header>
6038 rm -f conftest.
$ac_objext
6039 if { (ac_try
="$ac_compile"
6041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_compile") 2>conftest.er1
6047 grep -v '^ *+' conftest.er1 >conftest.err
6049 cat conftest.err >&5
6050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051 (exit $ac_status); } && {
6052 test -z "$ac_c_werror_flag" ||
6053 test ! -s conftest.err
6054 } && test -s conftest.$ac_objext; then
6055 eval "$as_ac_Header=yes"
6057 echo "$as_me: failed program was:" >&5
6058 sed 's/^/| /' conftest.$ac_ext >&5
6060 eval "$as_ac_Header=no"
6063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065 ac_res=`eval echo '${'$as_ac_Header'}'`
6066 { echo "$as_me:$LINENO: result: $ac_res" >&5
6067 echo "${ECHO_T}$ac_res" >&6; }
6068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6069 cat >>confdefs.h <<_ACEOF
6070 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6081 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6083 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6088 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 ac_res=`eval echo '${'$as_ac_Header'}'`
6091 { echo "$as_me:$LINENO: result: $ac_res" >&5
6092 echo "${ECHO_T}$ac_res" >&6; }
6094 # Is the header compilable?
6095 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6096 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6097 cat >conftest.$ac_ext <<_ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6103 $ac_includes_default
6104 #include <$ac_header>
6106 rm -f conftest.$ac_objext
6107 if { (ac_try="$ac_compile"
6109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6110 *) ac_try_echo
=$ac_try;;
6112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6113 (eval "$ac_compile") 2>conftest.er1
6115 grep -v '^ *+' conftest.er1
>conftest.err
6117 cat conftest.err
>&5
6118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); } && {
6120 test -z "$ac_c_werror_flag" ||
6121 test ! -s conftest.err
6122 } && test -s conftest.
$ac_objext; then
6123 ac_header_compiler
=yes
6125 echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.
$ac_ext >&5
6128 ac_header_compiler
=no
6131 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6133 echo "${ECHO_T}$ac_header_compiler" >&6; }
6135 # Is the header present?
6136 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6137 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6138 cat >conftest.
$ac_ext <<_ACEOF
6141 cat confdefs.h
>>conftest.
$ac_ext
6142 cat >>conftest.
$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 #include <$ac_header>
6146 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6149 *) ac_try_echo=$ac_try;;
6151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6154 grep -v '^ *+' conftest.er1 >conftest.err
6156 cat conftest.err >&5
6157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158 (exit $ac_status); } >/dev/null && {
6159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6160 test ! -s conftest.err
6162 ac_header_preproc=yes
6164 echo "$as_me: failed program was:" >&5
6165 sed 's/^/| /' conftest.$ac_ext >&5
6167 ac_header_preproc=no
6170 rm -f conftest.err conftest.$ac_ext
6171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6172 echo "${ECHO_T}$ac_header_preproc" >&6; }
6174 # So? What about this header?
6175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6181 ac_header_preproc=yes
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
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 eval "$as_ac_Header=\$ac_header_preproc"
6206 ac_res=`eval echo '${'$as_ac_Header'}'`
6207 { echo "$as_me:$LINENO: result: $ac_res" >&5
6208 echo "${ECHO_T}$ac_res" >&6; }
6211 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6212 cat >>confdefs.h <<_ACEOF
6213 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6220 # Emulation library used on NetBSD.
6221 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6222 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6223 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6224 echo $ECHO_N "(cached) $ECHO_C" >&6
6226 ac_check_lib_save_LIBS=$LIBS
6227 LIBS="-lossaudio $LIBS"
6228 cat >conftest.$ac_ext <<_ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6235 /* Override any GCC internal prototype to avoid an error.
6236 Use char because int might match the return type of a GCC
6237 builtin and then its argument prototype would still apply. */
6245 return _oss_ioctl ();
6250 rm -f conftest.$ac_objext conftest$ac_exeext
6251 if { (ac_try="$ac_link"
6253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6254 *) ac_try_echo
=$ac_try;;
6256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6257 (eval "$ac_link") 2>conftest.er1
6259 grep -v '^ *+' conftest.er1
>conftest.err
6261 cat conftest.err
>&5
6262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6263 (exit $ac_status); } && {
6264 test -z "$ac_c_werror_flag" ||
6265 test ! -s conftest.err
6266 } && test -s conftest
$ac_exeext &&
6267 $as_test_x conftest
$ac_exeext; then
6268 ac_cv_lib_ossaudio__oss_ioctl
=yes
6270 echo "$as_me: failed program was:" >&5
6271 sed 's/^/| /' conftest.
$ac_ext >&5
6273 ac_cv_lib_ossaudio__oss_ioctl
=no
6276 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6277 conftest
$ac_exeext conftest.
$ac_ext
6278 LIBS
=$ac_check_lib_save_LIBS
6280 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6281 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6282 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6291 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6292 if test "X${with_pkg_config_prog}" != X
; then
6293 PKG_CONFIG
="${with_pkg_config_prog}"
6298 if test -z "$PKG_CONFIG"; then
6299 # Extract the first word of "pkg-config", so it can be a program name with args.
6300 set dummy pkg-config
; ac_word
=$2
6301 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6303 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6308 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6315 test -z "$as_dir" && as_dir
=.
6316 for ac_exec_ext
in '' $ac_executable_extensions; do
6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6318 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6319 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6330 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6331 if test -n "$PKG_CONFIG"; then
6332 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6333 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6335 { echo "$as_me:$LINENO: result: no" >&5
6336 echo "${ECHO_T}no" >&6; }
6342 if test "$PKG_CONFIG" = "no" ; then
6345 PKG_CONFIG_MIN_VERSION
=0.9.0
6346 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6347 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6348 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6350 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6351 { echo "$as_me:$LINENO: result: yes" >&5
6352 echo "${ECHO_T}yes" >&6; }
6355 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6356 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6357 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6358 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6359 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6361 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6362 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6363 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6364 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6365 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6367 { echo "$as_me:$LINENO: result: no" >&5
6368 echo "${ECHO_T}no" >&6; }
6371 ## If we have a custom action on failure, don't print errors, but
6372 ## do set a variable so people can do so.
6373 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6380 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6381 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6385 if test $succeeded = yes; then
6391 if test $HAVE_ALSA = yes; then
6392 SAVE_CFLAGS
="$CFLAGS"
6393 SAVE_LDFLAGS
="$LDFLAGS"
6394 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6395 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6396 cat >conftest.
$ac_ext <<_ACEOF
6399 cat confdefs.h
>>conftest.
$ac_ext
6400 cat >>conftest.
$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6402 #include <asoundlib.h>
6406 snd_lib_error_set_handler (0);
6411 rm -f conftest.
$ac_objext
6412 if { (ac_try
="$ac_compile"
6414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6415 *) ac_try_echo=$ac_try;;
6417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6418 (eval "$ac_compile") 2>conftest.er1
6420 grep -v '^ *+' conftest.er1 >conftest.err
6422 cat conftest.err >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } && {
6425 test -z "$ac_c_werror_flag" ||
6426 test ! -s conftest.err
6427 } && test -s conftest.$ac_objext; then
6428 emacs_alsa_normal=yes
6430 echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6433 emacs_alsa_normal=no
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6437 if test "$emacs_alsa_normal" != yes; then
6438 cat >conftest.$ac_ext <<_ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6444 #include <alsa/asoundlib.h>
6448 snd_lib_error_set_handler (0);
6453 rm -f conftest.$ac_objext
6454 if { (ac_try="$ac_compile"
6456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6457 *) ac_try_echo
=$ac_try;;
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_compile") 2>conftest.er1
6462 grep -v '^ *+' conftest.er1
>conftest.err
6464 cat conftest.err
>&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } && {
6467 test -z "$ac_c_werror_flag" ||
6468 test ! -s conftest.err
6469 } && test -s conftest.
$ac_objext; then
6470 emacs_alsa_subdir
=yes
6472 echo "$as_me: failed program was:" >&5
6473 sed 's/^/| /' conftest.
$ac_ext >&5
6475 emacs_alsa_subdir
=no
6478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6479 if test "$emacs_alsa_subdir" != yes; then
6480 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6481 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6482 { (exit 1); exit 1; }; }
6484 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6487 CFLAGS
="$SAVE_CFLAGS"
6488 LDFLAGS
="$SAVE_LDFLAGS"
6489 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6490 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6492 cat >>confdefs.h
<<\_ACEOF
6527 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6528 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6529 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6530 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6531 sys
/utsname.h
pwd.h gpm.h
6533 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6534 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6535 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6537 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6538 echo $ECHO_N "(cached) $ECHO_C" >&6
6540 ac_res
=`eval echo '${'$as_ac_Header'}'`
6541 { echo "$as_me:$LINENO: result: $ac_res" >&5
6542 echo "${ECHO_T}$ac_res" >&6; }
6544 # Is the header compilable?
6545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6547 cat >conftest.
$ac_ext <<_ACEOF
6550 cat confdefs.h
>>conftest.
$ac_ext
6551 cat >>conftest.
$ac_ext <<_ACEOF
6552 /* end confdefs.h. */
6553 $ac_includes_default
6554 #include <$ac_header>
6556 rm -f conftest.
$ac_objext
6557 if { (ac_try
="$ac_compile"
6559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_compile") 2>conftest.er1
6565 grep -v '^ *+' conftest.er1 >conftest.err
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } && {
6570 test -z "$ac_c_werror_flag" ||
6571 test ! -s conftest.err
6572 } && test -s conftest.$ac_objext; then
6573 ac_header_compiler=yes
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 ac_header_compiler=no
6581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6583 echo "${ECHO_T}$ac_header_compiler" >&6; }
6585 # Is the header present?
6586 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6588 cat >conftest.$ac_ext <<_ACEOF
6591 cat confdefs.h >>conftest.$ac_ext
6592 cat >>conftest.$ac_ext <<_ACEOF
6593 /* end confdefs.h. */
6594 #include <$ac_header>
6596 if { (ac_try="$ac_cpp conftest.$ac_ext"
6598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6599 *) ac_try_echo
=$ac_try;;
6601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6602 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6604 grep -v '^ *+' conftest.er1
>conftest.err
6606 cat conftest.err
>&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } >/dev
/null
&& {
6609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6610 test ! -s conftest.err
6612 ac_header_preproc
=yes
6614 echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.
$ac_ext >&5
6617 ac_header_preproc
=no
6620 rm -f conftest.err conftest.
$ac_ext
6621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6622 echo "${ECHO_T}$ac_header_preproc" >&6; }
6624 # So? What about this header?
6625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6627 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6629 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6631 ac_header_preproc
=yes
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6636 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6637 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6641 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6644 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6649 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6651 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6654 eval "$as_ac_Header=\$ac_header_preproc"
6656 ac_res
=`eval echo '${'$as_ac_Header'}'`
6657 { echo "$as_me:$LINENO: result: $ac_res" >&5
6658 echo "${ECHO_T}$ac_res" >&6; }
6661 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6662 cat >>confdefs.h
<<_ACEOF
6663 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6671 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6672 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6673 cat >conftest.
$ac_ext <<_ACEOF
6676 cat confdefs.h
>>conftest.
$ac_ext
6677 cat >>conftest.
$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6679 #include <sys/personality.h>
6683 personality (PER_LINUX32)
6688 rm -f conftest.
$ac_objext
6689 if { (ac_try
="$ac_compile"
6691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6692 *) ac_try_echo=$ac_try;;
6694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6695 (eval "$ac_compile") 2>conftest.er1
6697 grep -v '^ *+' conftest.er1 >conftest.err
6699 cat conftest.err >&5
6700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6701 (exit $ac_status); } && {
6702 test -z "$ac_c_werror_flag" ||
6703 test ! -s conftest.err
6704 } && test -s conftest.$ac_objext; then
6705 emacs_cv_personality_linux32=yes
6707 echo "$as_me: failed program was:" >&5
6708 sed 's/^/| /' conftest.$ac_ext >&5
6710 emacs_cv_personality_linux32=no
6713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6715 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6717 if test $emacs_cv_personality_linux32 = yes; then
6719 cat >>confdefs.h <<\_ACEOF
6720 #define HAVE_PERSONALITY_LINUX32 1
6726 for ac_header in term.h
6728 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6732 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 cat >conftest.$ac_ext <<_ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 #include <$ac_header>
6742 if { (ac_try="$ac_cpp conftest.$ac_ext"
6744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6745 *) ac_try_echo
=$ac_try;;
6747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6750 grep -v '^ *+' conftest.er1
>conftest.err
6752 cat conftest.err
>&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } >/dev
/null
&& {
6755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6756 test ! -s conftest.err
6758 eval "$as_ac_Header=yes"
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.
$ac_ext >&5
6763 eval "$as_ac_Header=no"
6766 rm -f conftest.err conftest.
$ac_ext
6768 ac_res
=`eval echo '${'$as_ac_Header'}'`
6769 { echo "$as_me:$LINENO: result: $ac_res" >&5
6770 echo "${ECHO_T}$ac_res" >&6; }
6771 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6772 cat >>confdefs.h
<<_ACEOF
6773 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6780 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6781 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6782 if test "${ac_cv_header_stdc+set}" = set; then
6783 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 cat >conftest.
$ac_ext <<_ACEOF
6788 cat confdefs.h
>>conftest.
$ac_ext
6789 cat >>conftest.
$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6804 rm -f conftest.
$ac_objext
6805 if { (ac_try
="$ac_compile"
6807 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6808 *) ac_try_echo=$ac_try;;
6810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6811 (eval "$ac_compile") 2>conftest.er1
6813 grep -v '^ *+' conftest.er1 >conftest.err
6815 cat conftest.err >&5
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } && {
6818 test -z "$ac_c_werror_flag" ||
6819 test ! -s conftest.err
6820 } && test -s conftest.$ac_objext; then
6821 ac_cv_header_stdc=yes
6823 echo "$as_me: failed program was:" >&5
6824 sed 's/^/| /' conftest.$ac_ext >&5
6826 ac_cv_header_stdc=no
6829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6831 if test $ac_cv_header_stdc = yes; then
6832 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6833 cat >conftest.$ac_ext <<_ACEOF
6836 cat confdefs.h >>conftest.$ac_ext
6837 cat >>conftest.$ac_ext <<_ACEOF
6838 /* end confdefs.h. */
6842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6843 $EGREP "memchr" >/dev/null 2>&1; then
6846 ac_cv_header_stdc=no
6852 if test $ac_cv_header_stdc = yes; then
6853 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6854 cat >conftest.$ac_ext <<_ACEOF
6857 cat confdefs.h >>conftest.$ac_ext
6858 cat >>conftest.$ac_ext <<_ACEOF
6859 /* end confdefs.h. */
6863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6864 $EGREP "free" >/dev/null 2>&1; then
6867 ac_cv_header_stdc=no
6873 if test $ac_cv_header_stdc = yes; then
6874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6875 if test "$cross_compiling" = yes; then
6878 cat >conftest.$ac_ext <<_ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6886 #if ((' ' & 0x0FF) == 0x020)
6887 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6888 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6890 # define ISLOWER(c) \
6891 (('a' <= (c) && (c) <= 'i') \
6892 || ('j' <= (c) && (c) <= 'r') \
6893 || ('s' <= (c) && (c) <= 'z'))
6894 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6897 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6902 for (i = 0; i < 256; i++)
6903 if (XOR (islower (i), ISLOWER (i))
6904 || toupper (i) != TOUPPER (i))
6909 rm -f conftest$ac_exeext
6910 if { (ac_try="$ac_link"
6912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6913 *) ac_try_echo
=$ac_try;;
6915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6916 (eval "$ac_link") 2>&5
6918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6919 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6920 { (case "(($ac_try" in
6921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6925 (eval "$ac_try") 2>&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); }; }; then
6931 echo "$as_me: program exited with status $ac_status" >&5
6932 echo "$as_me: failed program was:" >&5
6933 sed 's/^/| /' conftest.$ac_ext >&5
6936 ac_cv_header_stdc=no
6938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6944 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6945 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6946 if test $ac_cv_header_stdc = yes; then
6948 cat >>confdefs.h <<\_ACEOF
6949 #define STDC_HEADERS 1
6954 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6955 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6956 if test "${ac_cv_header_time+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. */
6965 #include <sys/types.h>
6966 #include <sys/time.h>
6972 if ((struct tm *) 0)
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_time
=yes
6997 echo "$as_me: failed program was:" >&5
6998 sed 's/^/| /' conftest.
$ac_ext >&5
7000 ac_cv_header_time
=no
7003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7005 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7006 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7007 if test $ac_cv_header_time = yes; then
7009 cat >>confdefs.h
<<\_ACEOF
7010 #define TIME_WITH_SYS_TIME 1
7015 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7016 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7017 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7020 cat >conftest.
$ac_ext <<_ACEOF
7023 cat confdefs.h
>>conftest.
$ac_ext
7024 cat >>conftest.
$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 $ac_includes_default
7038 rm -f conftest.
$ac_objext
7039 if { (ac_try
="$ac_compile"
7041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7042 *) ac_try_echo=$ac_try;;
7044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7045 (eval "$ac_compile") 2>conftest.er1
7047 grep -v '^ *+' conftest.er1 >conftest.err
7049 cat conftest.err >&5
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } && {
7052 test -z "$ac_c_werror_flag" ||
7053 test ! -s conftest.err
7054 } && test -s conftest.$ac_objext; then
7055 ac_cv_have_decl_sys_siglist=yes
7057 echo "$as_me: failed program was:" >&5
7058 sed 's/^/| /' conftest.$ac_ext >&5
7060 ac_cv_have_decl_sys_siglist=no
7063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7066 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7067 if test $ac_cv_have_decl_sys_siglist = yes; then
7069 cat >>confdefs.h <<_ACEOF
7070 #define HAVE_DECL_SYS_SIGLIST 1
7075 cat >>confdefs.h <<_ACEOF
7076 #define HAVE_DECL_SYS_SIGLIST 0
7083 if test $ac_cv_have_decl_sys_siglist != yes; then
7084 # For Tru64, at least:
7085 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7086 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7087 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7090 cat >conftest.$ac_ext <<_ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096 $ac_includes_default
7100 #ifndef __sys_siglist
7101 (void) __sys_siglist;
7108 rm -f conftest.$ac_objext
7109 if { (ac_try="$ac_compile"
7111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7112 *) ac_try_echo
=$ac_try;;
7114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115 (eval "$ac_compile") 2>conftest.er1
7117 grep -v '^ *+' conftest.er1
>conftest.err
7119 cat conftest.err
>&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest.
$ac_objext; then
7125 ac_cv_have_decl___sys_siglist
=yes
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.
$ac_ext >&5
7130 ac_cv_have_decl___sys_siglist
=no
7133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7135 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7136 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7137 if test $ac_cv_have_decl___sys_siglist = yes; then
7139 cat >>confdefs.h
<<_ACEOF
7140 #define HAVE_DECL___SYS_SIGLIST 1
7145 cat >>confdefs.h
<<_ACEOF
7146 #define HAVE_DECL___SYS_SIGLIST 0
7153 if test $ac_cv_have_decl___sys_siglist = yes; then
7155 cat >>confdefs.h
<<\_ACEOF
7156 #define sys_siglist __sys_siglist
7161 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7162 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7163 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 cat >conftest.
$ac_ext <<_ACEOF
7169 cat confdefs.h
>>conftest.
$ac_ext
7170 cat >>conftest.
$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #include <sys/types.h>
7173 #include <sys/wait.h>
7175 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7178 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7186 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7191 rm -f conftest.
$ac_objext
7192 if { (ac_try
="$ac_compile"
7194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7195 *) ac_try_echo=$ac_try;;
7197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7198 (eval "$ac_compile") 2>conftest.er1
7200 grep -v '^ *+' conftest.er1 >conftest.err
7202 cat conftest.err >&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); } && {
7205 test -z "$ac_c_werror_flag" ||
7206 test ! -s conftest.err
7207 } && test -s conftest.$ac_objext; then
7208 ac_cv_header_sys_wait_h=yes
7210 echo "$as_me: failed program was:" >&5
7211 sed 's/^/| /' conftest.$ac_ext >&5
7213 ac_cv_header_sys_wait_h=no
7216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7218 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7219 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7220 if test $ac_cv_header_sys_wait_h = yes; then
7222 cat >>confdefs.h <<\_ACEOF
7223 #define HAVE_SYS_WAIT_H 1
7229 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7230 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7231 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7232 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 cat >conftest.$ac_ext <<_ACEOF
7237 cat confdefs.h >>conftest.$ac_ext
7238 cat >>conftest.$ac_ext <<_ACEOF
7239 /* end confdefs.h. */
7240 #ifdef TIME_WITH_SYS_TIME
7241 #include <sys/time.h>
7244 #ifdef HAVE_SYS_TIME_H
7245 #include <sys/time.h>
7256 static struct utimbuf x; x.actime = x.modtime;
7261 rm -f conftest.$ac_objext
7262 if { (ac_try="$ac_compile"
7264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7265 *) ac_try_echo
=$ac_try;;
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_compile") 2>conftest.er1
7270 grep -v '^ *+' conftest.er1
>conftest.err
7272 cat conftest.err
>&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } && {
7275 test -z "$ac_c_werror_flag" ||
7276 test ! -s conftest.err
7277 } && test -s conftest.
$ac_objext; then
7278 emacs_cv_struct_utimbuf
=yes
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.
$ac_ext >&5
7283 emacs_cv_struct_utimbuf
=no
7286 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7288 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7289 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7290 if test $emacs_cv_struct_utimbuf = yes; then
7292 cat >>confdefs.h
<<\_ACEOF
7293 #define HAVE_STRUCT_UTIMBUF 1
7298 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7299 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7300 if test "${ac_cv_type_signal+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 cat >conftest.
$ac_ext <<_ACEOF
7306 cat confdefs.h
>>conftest.
$ac_ext
7307 cat >>conftest.
$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 #include <sys/types.h>
7315 return *(signal (0, 0)) (0) == 1;
7320 rm -f conftest.
$ac_objext
7321 if { (ac_try
="$ac_compile"
7323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7324 *) ac_try_echo=$ac_try;;
7326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7327 (eval "$ac_compile") 2>conftest.er1
7329 grep -v '^ *+' conftest.er1 >conftest.err
7331 cat conftest.err >&5
7332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7333 (exit $ac_status); } && {
7334 test -z "$ac_c_werror_flag" ||
7335 test ! -s conftest.err
7336 } && test -s conftest.$ac_objext; then
7337 ac_cv_type_signal=int
7339 echo "$as_me: failed program was:" >&5
7340 sed 's/^/| /' conftest.$ac_ext >&5
7342 ac_cv_type_signal=void
7345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7347 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7348 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7350 cat >>confdefs.h <<_ACEOF
7351 #define RETSIGTYPE $ac_cv_type_signal
7356 { echo "$as_me:$LINENO: checking for speed_t" >&5
7357 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7358 if test "${emacs_cv_speed_t+set}" = set; then
7359 echo $ECHO_N "(cached) $ECHO_C" >&6
7361 cat >conftest.$ac_ext <<_ACEOF
7364 cat confdefs.h >>conftest.$ac_ext
7365 cat >>conftest.$ac_ext <<_ACEOF
7366 /* end confdefs.h. */
7367 #include <termios.h>
7376 rm -f conftest.$ac_objext
7377 if { (ac_try="$ac_compile"
7379 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7380 *) ac_try_echo
=$ac_try;;
7382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7383 (eval "$ac_compile") 2>conftest.er1
7385 grep -v '^ *+' conftest.er1
>conftest.err
7387 cat conftest.err
>&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); } && {
7390 test -z "$ac_c_werror_flag" ||
7391 test ! -s conftest.err
7392 } && test -s conftest.
$ac_objext; then
7393 emacs_cv_speed_t
=yes
7395 echo "$as_me: failed program was:" >&5
7396 sed 's/^/| /' conftest.
$ac_ext >&5
7401 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7403 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7404 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7405 if test $emacs_cv_speed_t = yes; then
7407 cat >>confdefs.h
<<\_ACEOF
7408 #define HAVE_SPEED_T 1
7413 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7414 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7415 if test "${emacs_cv_struct_timeval+set}" = set; then
7416 echo $ECHO_N "(cached) $ECHO_C" >&6
7418 cat >conftest.
$ac_ext <<_ACEOF
7421 cat confdefs.h
>>conftest.
$ac_ext
7422 cat >>conftest.
$ac_ext <<_ACEOF
7423 /* end confdefs.h. */
7424 #ifdef TIME_WITH_SYS_TIME
7425 #include <sys/time.h>
7428 #ifdef HAVE_SYS_TIME_H
7429 #include <sys/time.h>
7437 static struct timeval x; x.tv_sec = x.tv_usec;
7442 rm -f conftest.
$ac_objext
7443 if { (ac_try
="$ac_compile"
7445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7446 *) ac_try_echo=$ac_try;;
7448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7449 (eval "$ac_compile") 2>conftest.er1
7451 grep -v '^ *+' conftest.er1 >conftest.err
7453 cat conftest.err >&5
7454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7455 (exit $ac_status); } && {
7456 test -z "$ac_c_werror_flag" ||
7457 test ! -s conftest.err
7458 } && test -s conftest.$ac_objext; then
7459 emacs_cv_struct_timeval=yes
7461 echo "$as_me: failed program was:" >&5
7462 sed 's/^/| /' conftest.$ac_ext >&5
7464 emacs_cv_struct_timeval=no
7467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7469 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7470 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7471 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7472 if test $emacs_cv_struct_timeval = yes; then
7474 cat >>confdefs.h <<\_ACEOF
7475 #define HAVE_TIMEVAL 1
7480 { echo "$as_me:$LINENO: checking for struct exception" >&5
7481 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7482 if test "${emacs_cv_struct_exception+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 cat >conftest.$ac_ext <<_ACEOF
7488 cat confdefs.h >>conftest.$ac_ext
7489 cat >>conftest.$ac_ext <<_ACEOF
7490 /* end confdefs.h. */
7495 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7500 rm -f conftest.$ac_objext
7501 if { (ac_try="$ac_compile"
7503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7504 *) ac_try_echo
=$ac_try;;
7506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507 (eval "$ac_compile") 2>conftest.er1
7509 grep -v '^ *+' conftest.er1
>conftest.err
7511 cat conftest.err
>&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); } && {
7514 test -z "$ac_c_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest.
$ac_objext; then
7517 emacs_cv_struct_exception
=yes
7519 echo "$as_me: failed program was:" >&5
7520 sed 's/^/| /' conftest.
$ac_ext >&5
7522 emacs_cv_struct_exception
=no
7525 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7527 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7528 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7529 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7530 if test $emacs_cv_struct_exception != yes; then
7532 cat >>confdefs.h
<<\_ACEOF
7533 #define NO_MATHERR 1
7539 for ac_header
in sys
/socket.h
7541 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7542 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7545 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7548 ac_res
=`eval echo '${'$as_ac_Header'}'`
7549 { echo "$as_me:$LINENO: result: $ac_res" >&5
7550 echo "${ECHO_T}$ac_res" >&6; }
7552 # Is the header compilable?
7553 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7554 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7555 cat >conftest.
$ac_ext <<_ACEOF
7558 cat confdefs.h
>>conftest.
$ac_ext
7559 cat >>conftest.
$ac_ext <<_ACEOF
7560 /* end confdefs.h. */
7561 $ac_includes_default
7562 #include <$ac_header>
7564 rm -f conftest.
$ac_objext
7565 if { (ac_try
="$ac_compile"
7567 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7571 (eval "$ac_compile") 2>conftest.er1
7573 grep -v '^ *+' conftest.er1 >conftest.err
7575 cat conftest.err >&5
7576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } && {
7578 test -z "$ac_c_werror_flag" ||
7579 test ! -s conftest.err
7580 } && test -s conftest.$ac_objext; then
7581 ac_header_compiler=yes
7583 echo "$as_me: failed program was:" >&5
7584 sed 's/^/| /' conftest.$ac_ext >&5
7586 ac_header_compiler=no
7589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7591 echo "${ECHO_T}$ac_header_compiler" >&6; }
7593 # Is the header present?
7594 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7595 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7596 cat >conftest.$ac_ext <<_ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h. */
7602 #include <$ac_header>
7604 if { (ac_try="$ac_cpp conftest.$ac_ext"
7606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7607 *) ac_try_echo
=$ac_try;;
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7612 grep -v '^ *+' conftest.er1
>conftest.err
7614 cat conftest.err
>&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } >/dev
/null
&& {
7617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7620 ac_header_preproc
=yes
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.
$ac_ext >&5
7625 ac_header_preproc
=no
7628 rm -f conftest.err conftest.
$ac_ext
7629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7630 echo "${ECHO_T}$ac_header_preproc" >&6; }
7632 # So? What about this header?
7633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7639 ac_header_preproc
=yes
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7659 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7662 eval "$as_ac_Header=\$ac_header_preproc"
7664 ac_res
=`eval echo '${'$as_ac_Header'}'`
7665 { echo "$as_me:$LINENO: result: $ac_res" >&5
7666 echo "${ECHO_T}$ac_res" >&6; }
7669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7670 cat >>confdefs.h
<<_ACEOF
7671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7679 for ac_header
in net
/if.h
7681 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7682 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7684 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 cat >conftest.
$ac_ext <<_ACEOF
7690 cat confdefs.h
>>conftest.
$ac_ext
7691 cat >>conftest.
$ac_ext <<_ACEOF
7692 /* end confdefs.h. */
7693 $ac_includes_default
7694 #if HAVE_SYS_SOCKET_H
7695 #include <sys/socket.h>
7698 #include <$ac_header>
7700 rm -f conftest.
$ac_objext
7701 if { (ac_try
="$ac_compile"
7703 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7704 *) ac_try_echo=$ac_try;;
7706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7707 (eval "$ac_compile") 2>conftest.er1
7709 grep -v '^ *+' conftest.er1 >conftest.err
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } && {
7714 test -z "$ac_c_werror_flag" ||
7715 test ! -s conftest.err
7716 } && test -s conftest.$ac_objext; then
7717 eval "$as_ac_Header=yes"
7719 echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7722 eval "$as_ac_Header=no"
7725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7727 ac_res=`eval echo '${'$as_ac_Header'}'`
7728 { echo "$as_me:$LINENO: result: $ac_res" >&5
7729 echo "${ECHO_T}$ac_res" >&6; }
7730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7731 cat >>confdefs.h <<_ACEOF
7732 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7740 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7741 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7742 if test "${ac_cv_struct_tm+set}" = set; then
7743 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 cat >conftest.$ac_ext <<_ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h. */
7751 #include <sys/types.h>
7758 int *p = &tm.tm_sec;
7764 rm -f conftest.$ac_objext
7765 if { (ac_try="$ac_compile"
7767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7768 *) ac_try_echo
=$ac_try;;
7770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7771 (eval "$ac_compile") 2>conftest.er1
7773 grep -v '^ *+' conftest.er1
>conftest.err
7775 cat conftest.err
>&5
7776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7777 (exit $ac_status); } && {
7778 test -z "$ac_c_werror_flag" ||
7779 test ! -s conftest.err
7780 } && test -s conftest.
$ac_objext; then
7781 ac_cv_struct_tm
=time.h
7783 echo "$as_me: failed program was:" >&5
7784 sed 's/^/| /' conftest.
$ac_ext >&5
7786 ac_cv_struct_tm
=sys
/time.h
7789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7791 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7792 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7793 if test $ac_cv_struct_tm = sys
/time.h
; then
7795 cat >>confdefs.h
<<\_ACEOF
7796 #define TM_IN_SYS_TIME 1
7801 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7802 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7803 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7804 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 cat >conftest.
$ac_ext <<_ACEOF
7809 cat confdefs.h
>>conftest.
$ac_ext
7810 cat >>conftest.
$ac_ext <<_ACEOF
7811 /* end confdefs.h. */
7812 #include <sys/types.h>
7813 #include <$ac_cv_struct_tm>
7819 static struct tm ac_aggr;
7820 if (ac_aggr.tm_zone)
7826 rm -f conftest.
$ac_objext
7827 if { (ac_try
="$ac_compile"
7829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833 (eval "$ac_compile") 2>conftest.er1
7835 grep -v '^ *+' conftest.er1 >conftest.err
7837 cat conftest.err >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } && {
7840 test -z "$ac_c_werror_flag" ||
7841 test ! -s conftest.err
7842 } && test -s conftest.$ac_objext; then
7843 ac_cv_member_struct_tm_tm_zone=yes
7845 echo "$as_me: failed program was:" >&5
7846 sed 's/^/| /' conftest.$ac_ext >&5
7848 cat >conftest.$ac_ext <<_ACEOF
7851 cat confdefs.h >>conftest.$ac_ext
7852 cat >>conftest.$ac_ext <<_ACEOF
7853 /* end confdefs.h. */
7854 #include <sys/types.h>
7855 #include <$ac_cv_struct_tm>
7861 static struct tm ac_aggr;
7862 if (sizeof ac_aggr.tm_zone)
7868 rm -f conftest.$ac_objext
7869 if { (ac_try="$ac_compile"
7871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7872 *) ac_try_echo
=$ac_try;;
7874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7875 (eval "$ac_compile") 2>conftest.er1
7877 grep -v '^ *+' conftest.er1
>conftest.err
7879 cat conftest.err
>&5
7880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7881 (exit $ac_status); } && {
7882 test -z "$ac_c_werror_flag" ||
7883 test ! -s conftest.err
7884 } && test -s conftest.
$ac_objext; then
7885 ac_cv_member_struct_tm_tm_zone
=yes
7887 echo "$as_me: failed program was:" >&5
7888 sed 's/^/| /' conftest.
$ac_ext >&5
7890 ac_cv_member_struct_tm_tm_zone
=no
7893 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7896 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7898 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7899 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7900 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7902 cat >>confdefs.h
<<_ACEOF
7903 #define HAVE_STRUCT_TM_TM_ZONE 1
7909 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7911 cat >>confdefs.h
<<\_ACEOF
7912 #define HAVE_TM_ZONE 1
7916 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7917 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7918 if test "${ac_cv_have_decl_tzname+set}" = set; then
7919 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 cat >conftest.
$ac_ext <<_ACEOF
7924 cat confdefs.h
>>conftest.
$ac_ext
7925 cat >>conftest.
$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7940 rm -f conftest.
$ac_objext
7941 if { (ac_try
="$ac_compile"
7943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947 (eval "$ac_compile") 2>conftest.er1
7949 grep -v '^ *+' conftest.er1 >conftest.err
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } && {
7954 test -z "$ac_c_werror_flag" ||
7955 test ! -s conftest.err
7956 } && test -s conftest.$ac_objext; then
7957 ac_cv_have_decl_tzname=yes
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7962 ac_cv_have_decl_tzname=no
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7967 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7968 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7969 if test $ac_cv_have_decl_tzname = yes; then
7971 cat >>confdefs.h <<_ACEOF
7972 #define HAVE_DECL_TZNAME 1
7977 cat >>confdefs.h <<_ACEOF
7978 #define HAVE_DECL_TZNAME 0
7985 { echo "$as_me:$LINENO: checking for tzname" >&5
7986 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7987 if test "${ac_cv_var_tzname+set}" = set; then
7988 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 cat >conftest.$ac_ext <<_ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7997 #if !HAVE_DECL_TZNAME
7998 extern char *tzname[];
8004 return tzname[0][0];
8009 rm -f conftest.$ac_objext conftest$ac_exeext
8010 if { (ac_try="$ac_link"
8012 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8013 *) ac_try_echo
=$ac_try;;
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_link") 2>conftest.er1
8018 grep -v '^ *+' conftest.er1
>conftest.err
8020 cat conftest.err
>&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } && {
8023 test -z "$ac_c_werror_flag" ||
8024 test ! -s conftest.err
8025 } && test -s conftest
$ac_exeext &&
8026 $as_test_x conftest
$ac_exeext; then
8027 ac_cv_var_tzname
=yes
8029 echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.
$ac_ext >&5
8035 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8036 conftest
$ac_exeext conftest.
$ac_ext
8038 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8039 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8040 if test $ac_cv_var_tzname = yes; then
8042 cat >>confdefs.h
<<\_ACEOF
8043 #define HAVE_TZNAME 1
8049 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8050 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8051 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8052 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 cat >conftest.
$ac_ext <<_ACEOF
8057 cat confdefs.h
>>conftest.
$ac_ext
8058 cat >>conftest.
$ac_ext <<_ACEOF
8059 /* end confdefs.h. */
8065 static struct tm ac_aggr;
8066 if (ac_aggr.tm_gmtoff)
8072 rm -f conftest.
$ac_objext
8073 if { (ac_try
="$ac_compile"
8075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8076 *) ac_try_echo=$ac_try;;
8078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8079 (eval "$ac_compile") 2>conftest.er1
8081 grep -v '^ *+' conftest.er1 >conftest.err
8083 cat conftest.err >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); } && {
8086 test -z "$ac_c_werror_flag" ||
8087 test ! -s conftest.err
8088 } && test -s conftest.$ac_objext; then
8089 ac_cv_member_struct_tm_tm_gmtoff=yes
8091 echo "$as_me: failed program was:" >&5
8092 sed 's/^/| /' conftest.$ac_ext >&5
8094 cat >conftest.$ac_ext <<_ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8105 static struct tm ac_aggr;
8106 if (sizeof ac_aggr.tm_gmtoff)
8112 rm -f conftest.$ac_objext
8113 if { (ac_try="$ac_compile"
8115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8116 *) ac_try_echo
=$ac_try;;
8118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8119 (eval "$ac_compile") 2>conftest.er1
8121 grep -v '^ *+' conftest.er1
>conftest.err
8123 cat conftest.err
>&5
8124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8125 (exit $ac_status); } && {
8126 test -z "$ac_c_werror_flag" ||
8127 test ! -s conftest.err
8128 } && test -s conftest.
$ac_objext; then
8129 ac_cv_member_struct_tm_tm_gmtoff
=yes
8131 echo "$as_me: failed program was:" >&5
8132 sed 's/^/| /' conftest.
$ac_ext >&5
8134 ac_cv_member_struct_tm_tm_gmtoff
=no
8137 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8142 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8143 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8144 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8146 cat >>confdefs.h
<<\_ACEOF
8147 #define HAVE_TM_GMTOFF 1
8152 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8153 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8154 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8155 echo $ECHO_N "(cached) $ECHO_C" >&6
8157 cat >conftest.
$ac_ext <<_ACEOF
8160 cat confdefs.h
>>conftest.
$ac_ext
8161 cat >>conftest.
$ac_ext <<_ACEOF
8162 /* end confdefs.h. */
8163 $ac_includes_default
8164 #if HAVE_SYS_SOCKET_H
8165 #include <sys/socket.h>
8174 static struct ifreq ac_aggr;
8175 if (ac_aggr.ifr_flags)
8181 rm -f conftest.
$ac_objext
8182 if { (ac_try
="$ac_compile"
8184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8185 *) ac_try_echo=$ac_try;;
8187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8188 (eval "$ac_compile") 2>conftest.er1
8190 grep -v '^ *+' conftest.er1 >conftest.err
8192 cat conftest.err >&5
8193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8194 (exit $ac_status); } && {
8195 test -z "$ac_c_werror_flag" ||
8196 test ! -s conftest.err
8197 } && test -s conftest.$ac_objext; then
8198 ac_cv_member_struct_ifreq_ifr_flags=yes
8200 echo "$as_me: failed program was:" >&5
8201 sed 's/^/| /' conftest.$ac_ext >&5
8203 cat >conftest.$ac_ext <<_ACEOF
8206 cat confdefs.h >>conftest.$ac_ext
8207 cat >>conftest.$ac_ext <<_ACEOF
8208 /* end confdefs.h. */
8209 $ac_includes_default
8210 #if HAVE_SYS_SOCKET_H
8211 #include <sys/socket.h>
8220 static struct ifreq ac_aggr;
8221 if (sizeof ac_aggr.ifr_flags)
8227 rm -f conftest.$ac_objext
8228 if { (ac_try="$ac_compile"
8230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8231 *) ac_try_echo
=$ac_try;;
8233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8234 (eval "$ac_compile") 2>conftest.er1
8236 grep -v '^ *+' conftest.er1
>conftest.err
8238 cat conftest.err
>&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } && {
8241 test -z "$ac_c_werror_flag" ||
8242 test ! -s conftest.err
8243 } && test -s conftest.
$ac_objext; then
8244 ac_cv_member_struct_ifreq_ifr_flags
=yes
8246 echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.
$ac_ext >&5
8249 ac_cv_member_struct_ifreq_ifr_flags
=no
8252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8257 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8258 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8259 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8261 cat >>confdefs.h
<<_ACEOF
8262 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8267 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8268 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8269 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 cat >conftest.
$ac_ext <<_ACEOF
8275 cat confdefs.h
>>conftest.
$ac_ext
8276 cat >>conftest.
$ac_ext <<_ACEOF
8277 /* end confdefs.h. */
8278 $ac_includes_default
8279 #if HAVE_SYS_SOCKET_H
8280 #include <sys/socket.h>
8289 static struct ifreq ac_aggr;
8290 if (ac_aggr.ifr_hwaddr)
8296 rm -f conftest.
$ac_objext
8297 if { (ac_try
="$ac_compile"
8299 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8300 *) ac_try_echo=$ac_try;;
8302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8303 (eval "$ac_compile") 2>conftest.er1
8305 grep -v '^ *+' conftest.er1 >conftest.err
8307 cat conftest.err >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); } && {
8310 test -z "$ac_c_werror_flag" ||
8311 test ! -s conftest.err
8312 } && test -s conftest.$ac_objext; then
8313 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8315 echo "$as_me: failed program was:" >&5
8316 sed 's/^/| /' conftest.$ac_ext >&5
8318 cat >conftest.$ac_ext <<_ACEOF
8321 cat confdefs.h >>conftest.$ac_ext
8322 cat >>conftest.$ac_ext <<_ACEOF
8323 /* end confdefs.h. */
8324 $ac_includes_default
8325 #if HAVE_SYS_SOCKET_H
8326 #include <sys/socket.h>
8335 static struct ifreq ac_aggr;
8336 if (sizeof ac_aggr.ifr_hwaddr)
8342 rm -f conftest.$ac_objext
8343 if { (ac_try="$ac_compile"
8345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8346 *) ac_try_echo
=$ac_try;;
8348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8349 (eval "$ac_compile") 2>conftest.er1
8351 grep -v '^ *+' conftest.er1
>conftest.err
8353 cat conftest.err
>&5
8354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8355 (exit $ac_status); } && {
8356 test -z "$ac_c_werror_flag" ||
8357 test ! -s conftest.err
8358 } && test -s conftest.
$ac_objext; then
8359 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8361 echo "$as_me: failed program was:" >&5
8362 sed 's/^/| /' conftest.
$ac_ext >&5
8364 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8367 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8370 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8372 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8373 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8374 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8376 cat >>confdefs.h
<<_ACEOF
8377 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8382 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8383 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8384 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8387 cat >conftest.
$ac_ext <<_ACEOF
8390 cat confdefs.h
>>conftest.
$ac_ext
8391 cat >>conftest.
$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 $ac_includes_default
8394 #if HAVE_SYS_SOCKET_H
8395 #include <sys/socket.h>
8404 static struct ifreq ac_aggr;
8405 if (ac_aggr.ifr_netmask)
8411 rm -f conftest.
$ac_objext
8412 if { (ac_try
="$ac_compile"
8414 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8415 *) ac_try_echo=$ac_try;;
8417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8418 (eval "$ac_compile") 2>conftest.er1
8420 grep -v '^ *+' conftest.er1 >conftest.err
8422 cat conftest.err >&5
8423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8424 (exit $ac_status); } && {
8425 test -z "$ac_c_werror_flag" ||
8426 test ! -s conftest.err
8427 } && test -s conftest.$ac_objext; then
8428 ac_cv_member_struct_ifreq_ifr_netmask=yes
8430 echo "$as_me: failed program was:" >&5
8431 sed 's/^/| /' conftest.$ac_ext >&5
8433 cat >conftest.$ac_ext <<_ACEOF
8436 cat confdefs.h >>conftest.$ac_ext
8437 cat >>conftest.$ac_ext <<_ACEOF
8438 /* end confdefs.h. */
8439 $ac_includes_default
8440 #if HAVE_SYS_SOCKET_H
8441 #include <sys/socket.h>
8450 static struct ifreq ac_aggr;
8451 if (sizeof ac_aggr.ifr_netmask)
8457 rm -f conftest.$ac_objext
8458 if { (ac_try="$ac_compile"
8460 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8461 *) ac_try_echo
=$ac_try;;
8463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8464 (eval "$ac_compile") 2>conftest.er1
8466 grep -v '^ *+' conftest.er1
>conftest.err
8468 cat conftest.err
>&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } && {
8471 test -z "$ac_c_werror_flag" ||
8472 test ! -s conftest.err
8473 } && test -s conftest.
$ac_objext; then
8474 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8476 echo "$as_me: failed program was:" >&5
8477 sed 's/^/| /' conftest.
$ac_ext >&5
8479 ac_cv_member_struct_ifreq_ifr_netmask
=no
8482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8487 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8488 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8489 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8491 cat >>confdefs.h
<<_ACEOF
8492 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8497 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8498 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8499 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 cat >conftest.
$ac_ext <<_ACEOF
8505 cat confdefs.h
>>conftest.
$ac_ext
8506 cat >>conftest.
$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8508 $ac_includes_default
8509 #if HAVE_SYS_SOCKET_H
8510 #include <sys/socket.h>
8519 static struct ifreq ac_aggr;
8520 if (ac_aggr.ifr_broadaddr)
8526 rm -f conftest.
$ac_objext
8527 if { (ac_try
="$ac_compile"
8529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_compile") 2>conftest.er1
8535 grep -v '^ *+' conftest.er1 >conftest.err
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } && {
8540 test -z "$ac_c_werror_flag" ||
8541 test ! -s conftest.err
8542 } && test -s conftest.$ac_objext; then
8543 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8545 echo "$as_me: failed program was:" >&5
8546 sed 's/^/| /' conftest.$ac_ext >&5
8548 cat >conftest.$ac_ext <<_ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8554 $ac_includes_default
8555 #if HAVE_SYS_SOCKET_H
8556 #include <sys/socket.h>
8565 static struct ifreq ac_aggr;
8566 if (sizeof ac_aggr.ifr_broadaddr)
8572 rm -f conftest.$ac_objext
8573 if { (ac_try="$ac_compile"
8575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8576 *) ac_try_echo
=$ac_try;;
8578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8579 (eval "$ac_compile") 2>conftest.er1
8581 grep -v '^ *+' conftest.er1
>conftest.err
8583 cat conftest.err
>&5
8584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8585 (exit $ac_status); } && {
8586 test -z "$ac_c_werror_flag" ||
8587 test ! -s conftest.err
8588 } && test -s conftest.
$ac_objext; then
8589 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.
$ac_ext >&5
8594 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8597 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8600 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8602 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8603 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8604 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8606 cat >>confdefs.h
<<_ACEOF
8607 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8612 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8613 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8614 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
8617 cat >conftest.
$ac_ext <<_ACEOF
8620 cat confdefs.h
>>conftest.
$ac_ext
8621 cat >>conftest.
$ac_ext <<_ACEOF
8622 /* end confdefs.h. */
8623 $ac_includes_default
8624 #if HAVE_SYS_SOCKET_H
8625 #include <sys/socket.h>
8634 static struct ifreq ac_aggr;
8635 if (ac_aggr.ifr_addr)
8641 rm -f conftest.
$ac_objext
8642 if { (ac_try
="$ac_compile"
8644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_compile") 2>conftest.er1
8650 grep -v '^ *+' conftest.er1 >conftest.err
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } && {
8655 test -z "$ac_c_werror_flag" ||
8656 test ! -s conftest.err
8657 } && test -s conftest.$ac_objext; then
8658 ac_cv_member_struct_ifreq_ifr_addr=yes
8660 echo "$as_me: failed program was:" >&5
8661 sed 's/^/| /' conftest.$ac_ext >&5
8663 cat >conftest.$ac_ext <<_ACEOF
8666 cat confdefs.h >>conftest.$ac_ext
8667 cat >>conftest.$ac_ext <<_ACEOF
8668 /* end confdefs.h. */
8669 $ac_includes_default
8670 #if HAVE_SYS_SOCKET_H
8671 #include <sys/socket.h>
8680 static struct ifreq ac_aggr;
8681 if (sizeof ac_aggr.ifr_addr)
8687 rm -f conftest.$ac_objext
8688 if { (ac_try="$ac_compile"
8690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8691 *) ac_try_echo
=$ac_try;;
8693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8694 (eval "$ac_compile") 2>conftest.er1
8696 grep -v '^ *+' conftest.er1
>conftest.err
8698 cat conftest.err
>&5
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); } && {
8701 test -z "$ac_c_werror_flag" ||
8702 test ! -s conftest.err
8703 } && test -s conftest.
$ac_objext; then
8704 ac_cv_member_struct_ifreq_ifr_addr
=yes
8706 echo "$as_me: failed program was:" >&5
8707 sed 's/^/| /' conftest.
$ac_ext >&5
8709 ac_cv_member_struct_ifreq_ifr_addr
=no
8712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8717 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8718 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8719 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8721 cat >>confdefs.h
<<_ACEOF
8722 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8730 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8731 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8732 if test "$ac_cv_prog_cc_c89" != no
; then
8733 { echo "$as_me:$LINENO: result: yes" >&5
8734 echo "${ECHO_T}yes" >&6; }
8736 cat >>confdefs.h
<<\_ACEOF
8737 #define PROTOTYPES 1
8741 cat >>confdefs.h
<<\_ACEOF
8742 #define __PROTOTYPES 1
8746 { echo "$as_me:$LINENO: result: no" >&5
8747 echo "${ECHO_T}no" >&6; }
8750 { echo "$as_me:$LINENO: checking for working volatile" >&5
8751 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8752 if test "${ac_cv_c_volatile+set}" = set; then
8753 echo $ECHO_N "(cached) $ECHO_C" >&6
8755 cat >conftest.
$ac_ext <<_ACEOF
8758 cat confdefs.h
>>conftest.
$ac_ext
8759 cat >>conftest.
$ac_ext <<_ACEOF
8760 /* end confdefs.h. */
8767 int * volatile y = (int *) 0;
8773 rm -f conftest.
$ac_objext
8774 if { (ac_try
="$ac_compile"
8776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8777 *) ac_try_echo=$ac_try;;
8779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8780 (eval "$ac_compile") 2>conftest.er1
8782 grep -v '^ *+' conftest.er1 >conftest.err
8784 cat conftest.err >&5
8785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8786 (exit $ac_status); } && {
8787 test -z "$ac_c_werror_flag" ||
8788 test ! -s conftest.err
8789 } && test -s conftest.$ac_objext; then
8790 ac_cv_c_volatile=yes
8792 echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8800 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8801 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8802 if test $ac_cv_c_volatile = no; then
8804 cat >>confdefs.h <<\_ACEOF
8810 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8811 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8812 if test "${ac_cv_c_const+set}" = set; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8815 cat >conftest.$ac_ext <<_ACEOF
8818 cat confdefs.h >>conftest.$ac_ext
8819 cat >>conftest.$ac_ext <<_ACEOF
8820 /* end confdefs.h. */
8825 /* FIXME: Include the comments suggested by Paul. */
8827 /* Ultrix mips cc rejects this. */
8828 typedef int charset[2];
8830 /* SunOS 4.1.1 cc rejects this. */
8831 char const *const *pcpcc;
8833 /* NEC SVR4.0.2 mips cc rejects this. */
8834 struct point {int x, y;};
8835 static struct point const zero = {0,0};
8836 /* AIX XL C 1.02.0.0 rejects this.
8837 It does not let you subtract one const X* pointer from another in
8838 an arm of an if-expression whose if-part is not a constant
8840 const char *g = "string";
8841 pcpcc = &g + (g ? g-g : 0);
8842 /* HPUX 7.0 cc rejects these. */
8844 ppc = (char**) pcpcc;
8845 pcpcc = (char const *const *) ppc;
8846 { /* SCO 3.2v4 cc rejects this. */
8848 char const *s = 0 ? (char *) 0 : (char const *) 0;
8853 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8855 const int *foo = &x[0];
8858 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8859 typedef const int *iptr;
8863 { /* AIX XL C 1.02.0.0 rejects this saying
8864 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8865 struct s { int j; const int *ap[3]; };
8866 struct s *b; b->j = 5;
8868 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8872 return !cs[0] && !zero.x;
8879 rm -f conftest.$ac_objext
8880 if { (ac_try="$ac_compile"
8882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8883 *) ac_try_echo
=$ac_try;;
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_compile") 2>conftest.er1
8888 grep -v '^ *+' conftest.er1
>conftest.err
8890 cat conftest.err
>&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } && {
8893 test -z "$ac_c_werror_flag" ||
8894 test ! -s conftest.err
8895 } && test -s conftest.
$ac_objext; then
8898 echo "$as_me: failed program was:" >&5
8899 sed 's/^/| /' conftest.
$ac_ext >&5
8904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8906 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8907 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8908 if test $ac_cv_c_const = no
; then
8910 cat >>confdefs.h
<<\_ACEOF
8916 { echo "$as_me:$LINENO: checking for void * support" >&5
8917 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8918 if test "${emacs_cv_void_star+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8921 cat >conftest.
$ac_ext <<_ACEOF
8924 cat confdefs.h
>>conftest.
$ac_ext
8925 cat >>conftest.
$ac_ext <<_ACEOF
8926 /* end confdefs.h. */
8936 rm -f conftest.
$ac_objext
8937 if { (ac_try
="$ac_compile"
8939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_compile") 2>conftest.er1
8945 grep -v '^ *+' conftest.er1 >conftest.err
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); } && {
8950 test -z "$ac_c_werror_flag" ||
8951 test ! -s conftest.err
8952 } && test -s conftest.$ac_objext; then
8953 emacs_cv_void_star=yes
8955 echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8958 emacs_cv_void_star=no
8961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8963 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8964 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8965 if test $emacs_cv_void_star = yes; then
8966 cat >>confdefs.h <<\_ACEOF
8967 #define POINTER_TYPE void
8971 cat >>confdefs.h <<\_ACEOF
8972 #define POINTER_TYPE char
8981 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8982 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8983 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8984 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8985 echo $ECHO_N "(cached) $ECHO_C" >&6
8987 cat >conftest.make <<\_ACEOF
8990 @echo '@@@%%%=$(MAKE)=@@@%%%'
8992 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8993 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8995 eval ac_cv_prog_make_${ac_make}_set=yes;;
8997 eval ac_cv_prog_make_${ac_make}_set=no;;
9001 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9002 { echo "$as_me:$LINENO: result: yes" >&5
9003 echo "${ECHO_T}yes" >&6; }
9006 { echo "$as_me:$LINENO: result: no" >&5
9007 echo "${ECHO_T}no" >&6; }
9008 SET_MAKE="MAKE=${MAKE-make}"
9012 { echo "$as_me:$LINENO: checking for long file names" >&5
9013 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9014 if test "${ac_cv_sys_long_file_names+set}" = set; then
9015 echo $ECHO_N "(cached) $ECHO_C" >&6
9017 ac_cv_sys_long_file_names=yes
9018 # Test for long file names in all the places we know might matter:
9019 # . the current directory, where building will happen
9020 # $prefix/lib where we will be installing things
9021 # $exec_prefix/lib likewise
9022 # $TMPDIR if set, where it might want to write temporary files
9023 # /tmp where it might want to write temporary files
9026 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9027 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9028 # in the usual case where exec_prefix is '${prefix}'.
9030 . | /* | ?:[\\/]*) ;; #(
9033 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9034 ac_xdir=$ac_dir/cf$$
9035 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9036 ac_tf1=$ac_xdir/conftest9012345
9037 ac_tf2=$ac_xdir/conftest9012346
9038 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9039 ac_cv_sys_long_file_names=no
9040 rm -f -r "$ac_xdir" 2>/dev/null
9041 test $ac_cv_sys_long_file_names = no && break
9044 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9045 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9046 if test $ac_cv_sys_long_file_names = yes; then
9048 cat >>confdefs.h <<\_ACEOF
9049 #define HAVE_LONG_FILE_NAMES 1
9055 #### Choose a window system.
9057 { echo "$as_me:$LINENO: checking for X" >&5
9058 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9061 # Check whether --with-x was given.
9062 if test "${with_x+set}" = set; then
9066 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9067 if test "x$with_x" = xno; then
9068 # The user explicitly disabled X.
9071 case $x_includes,$x_libraries in #(
9072 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9073 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9074 { (exit 1); exit 1; }; };; #(
9075 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9076 echo $ECHO_N "(cached) $ECHO_C" >&6
9078 # One or both of the vars are not set, and there is no cached value.
9079 ac_x_includes=no ac_x_libraries=no
9080 rm -f -r conftest.dir
9081 if mkdir conftest.dir; then
9083 cat >Imakefile <<'_ACEOF'
9085 @echo incroot='${INCROOT}'
9087 @echo usrlibdir='${USRLIBDIR}'
9089 @echo libdir='${LIBDIR}'
9091 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9092 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9093 for ac_var in incroot usrlibdir libdir; do
9094 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9096 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9097 for ac_extension in a so sl; do
9098 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9099 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9100 ac_im_usrlibdir=$ac_im_libdir; break
9103 # Screen out bogus values from the imake configuration. They are
9104 # bogus both because they are the default anyway, and because
9105 # using them would break gcc on systems where it needs fixed includes.
9106 case $ac_im_incroot in
9107 /usr/include) ac_x_includes= ;;
9108 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9110 case $ac_im_usrlibdir in
9112 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9116 rm -f -r conftest.dir
9119 # Standard set of common directories for X headers.
9120 # Check X11 before X11Rn because it is often a symlink to the current release.
9132 /usr/local/X11/include
9133 /usr/local/X11R6/include
9134 /usr/local/X11R5/include
9135 /usr/local/X11R4/include
9137 /usr/local/include/X11
9138 /usr/local/include/X11R6
9139 /usr/local/include/X11R5
9140 /usr/local/include/X11R4
9144 /usr/XFree86/include/X11
9148 /usr/unsupported/include
9150 /usr/local/x11r5/include
9151 /usr/lpp/Xamples/include
9153 /usr/openwin/include
9154 /usr/openwin/share/include'
9156 if test "$ac_x_includes" = no; then
9157 # Guess where to find include files, by looking for Xlib.h.
9158 # First, try using that file with no special directory specified.
9159 cat >conftest.$ac_ext <<_ACEOF
9162 cat confdefs.h >>conftest.$ac_ext
9163 cat >>conftest.$ac_ext <<_ACEOF
9164 /* end confdefs.h. */
9165 #include <X11/Xlib.h>
9167 if { (ac_try="$ac_cpp conftest.$ac_ext"
9169 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9170 *) ac_try_echo
=$ac_try;;
9172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9173 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9175 grep -v '^ *+' conftest.er1
>conftest.err
9177 cat conftest.err
>&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } >/dev
/null
&& {
9180 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9181 test ! -s conftest.err
9183 # We can compile using X headers with no special include directory.
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.
$ac_ext >&5
9189 for ac_dir
in $ac_x_header_dirs; do
9190 if test -r "$ac_dir/X11/Xlib.h"; then
9191 ac_x_includes
=$ac_dir
9197 rm -f conftest.err conftest.
$ac_ext
9198 fi # $ac_x_includes = no
9200 if test "$ac_x_libraries" = no
; then
9201 # Check for the libraries.
9202 # See if we find them without any special options.
9203 # Don't add to $LIBS permanently.
9206 cat >conftest.
$ac_ext <<_ACEOF
9209 cat confdefs.h
>>conftest.
$ac_ext
9210 cat >>conftest.
$ac_ext <<_ACEOF
9211 /* end confdefs.h. */
9212 #include <X11/Xlib.h>
9221 rm -f conftest.
$ac_objext conftest
$ac_exeext
9222 if { (ac_try
="$ac_link"
9224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9225 *) ac_try_echo=$ac_try;;
9227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9228 (eval "$ac_link") 2>conftest.er1
9230 grep -v '^ *+' conftest.er1 >conftest.err
9232 cat conftest.err >&5
9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234 (exit $ac_status); } && {
9235 test -z "$ac_c_werror_flag" ||
9236 test ! -s conftest.err
9237 } && test -s conftest$ac_exeext &&
9238 $as_test_x conftest$ac_exeext; then
9240 # We can link X programs with no special library path.
9243 echo "$as_me: failed program was:" >&5
9244 sed 's/^/| /' conftest.$ac_ext >&5
9247 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9249 # Don't even attempt the hair of trying to link an X program!
9250 for ac_extension in a so sl; do
9251 if test -r "$ac_dir/libX11.$ac_extension"; then
9252 ac_x_libraries=$ac_dir
9259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9260 conftest$ac_exeext conftest.$ac_ext
9261 fi # $ac_x_libraries = no
9263 case $ac_x_includes,$ac_x_libraries in #(
9265 # Didn't find X, or a directory has "'" in its name.
9266 ac_cv_have_x="have_x=no";; #(
9268 # Record where we found X for the cache.
9269 ac_cv_have_x="have_x=yes\
9270 ac_x_includes='$ac_x_includes'\
9271 ac_x_libraries='$ac_x_libraries'"
9277 eval "$ac_cv_have_x"
9280 if test "$have_x" != yes; then
9281 { echo "$as_me:$LINENO: result: $have_x" >&5
9282 echo "${ECHO_T}$have_x" >&6; }
9285 # If each of the values was on the command line, it overrides each guess.
9286 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9287 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9288 # Update the cache value to reflect the command line values.
9289 ac_cv_have_x="have_x=yes\
9290 ac_x_includes='$x_includes'\
9291 ac_x_libraries='$x_libraries'"
9292 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9293 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9296 if test "$no_x" = yes; then
9302 if test "${x_libraries}" != NONE; then
9303 if test -n "${x_libraries}"; then
9304 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9305 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9307 x_default_search_path=""
9308 x_search_path=${x_libraries}
9309 if test -z "${x_search_path}"; then
9310 x_search_path=/usr/lib
9312 for x_library in `echo ${x_search_path}: | \
9313 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9315 ${x_library}/X11/%L/%T/%N%C%S:\
9316 ${x_library}/X11/%l/%T/%N%C%S:\
9317 ${x_library}/X11/%T/%N%C%S:\
9318 ${x_library}/X11/%L/%T/%N%S:\
9319 ${x_library}/X11/%l/%T/%N%S:\
9320 ${x_library}/X11/%T/%N%S"
9321 if test x"${x_default_search_path}" = x; then
9322 x_default_search_path=${x_search_path}
9324 x_default_search_path="${x_search_path}:${x_default_search_path}"
9328 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9329 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9332 if test x"${x_includes}" = x; then
9333 bitmapdir=/usr/include/X11/bitmaps
9335 # accumulate include directories that have X11 bitmap subdirectories
9337 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9338 if test -d "${bmd}/X11/bitmaps"; then
9339 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9341 if test -d "${bmd}/bitmaps"; then
9342 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9345 if test ${bmd_acc} != "dummyval"; then
9346 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9351 if test "${with_carbon}" != no; then
9352 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9353 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9354 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9355 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9356 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9359 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9361 # Is the header compilable?
9362 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9363 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9364 cat >conftest.$ac_ext <<_ACEOF
9367 cat confdefs.h >>conftest.$ac_ext
9368 cat >>conftest.$ac_ext <<_ACEOF
9369 /* end confdefs.h. */
9370 $ac_includes_default
9371 #include <Carbon/Carbon.h>
9373 rm -f conftest.$ac_objext
9374 if { (ac_try="$ac_compile"
9376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9377 *) ac_try_echo
=$ac_try;;
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_compile") 2>conftest.er1
9382 grep -v '^ *+' conftest.er1
>conftest.err
9384 cat conftest.err
>&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } && {
9387 test -z "$ac_c_werror_flag" ||
9388 test ! -s conftest.err
9389 } && test -s conftest.
$ac_objext; then
9390 ac_header_compiler
=yes
9392 echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.
$ac_ext >&5
9395 ac_header_compiler
=no
9398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9400 echo "${ECHO_T}$ac_header_compiler" >&6; }
9402 # Is the header present?
9403 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9404 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9405 cat >conftest.
$ac_ext <<_ACEOF
9408 cat confdefs.h
>>conftest.
$ac_ext
9409 cat >>conftest.
$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9411 #include <Carbon/Carbon.h>
9413 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9416 *) ac_try_echo=$ac_try;;
9418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9421 grep -v '^ *+' conftest.er1 >conftest.err
9423 cat conftest.err >&5
9424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9425 (exit $ac_status); } >/dev/null && {
9426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9427 test ! -s conftest.err
9429 ac_header_preproc=yes
9431 echo "$as_me: failed program was:" >&5
9432 sed 's/^/| /' conftest.$ac_ext >&5
9434 ac_header_preproc=no
9437 rm -f conftest.err conftest.$ac_ext
9438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9439 echo "${ECHO_T}$ac_header_preproc" >&6; }
9441 # So? What about this header?
9442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9444 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9445 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9446 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9447 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9448 ac_header_preproc=yes
9451 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9452 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9454 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9456 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9458 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9459 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9460 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9462 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9466 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9467 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9468 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9469 echo $ECHO_N "(cached) $ECHO_C" >&6
9471 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9473 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9474 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9477 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9483 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9484 if test "${with_carbon+set}" != set \
9485 && test "${carbon_appdir_x+set}" != set; then
9486 for var in with_x with_x_toolkit with_gtk with_xim \
9487 with_xpm with_jpeg with_tiff with_gif with_png; do
9488 if eval test \"\${$var+set}\" = set; then
9495 if test "${HAVE_CARBON}" = yes; then
9499 case "${window_system}" in
9503 case "${with_x_toolkit}" in
9504 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9505 motif ) USE_X_TOOLKIT=MOTIF ;;
9507 USE_X_TOOLKIT=none ;;
9508 no ) USE_X_TOOLKIT=none ;;
9509 * ) USE_X_TOOLKIT=maybe ;;
9519 ### If we're using X11, we should use the X menu package.
9522 yes ) HAVE_MENUS=yes ;;
9525 if test "${opsys}" = "hpux9"; then
9526 case "${x_libraries}" in
9528 opsysfile="s/hpux9-x11r4.h"
9533 if test "${opsys}" = "hpux9shr"; then
9534 case "${x_libraries}" in
9536 opsysfile="s/hpux9shxr4.h"
9541 ### Compute the unexec source name from the object name.
9542 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9544 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9545 # Assume not, until told otherwise.
9548 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9549 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9550 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9551 echo $ECHO_N "(cached) $ECHO_C" >&6
9553 cat >conftest.$ac_ext <<_ACEOF
9556 cat confdefs.h >>conftest.$ac_ext
9557 cat >>conftest.$ac_ext <<_ACEOF
9558 /* end confdefs.h. */
9559 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9561 #define malloc_get_state innocuous_malloc_get_state
9563 /* System header to define __stub macros and hopefully few prototypes,
9564 which can conflict with char malloc_get_state (); below.
9565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9566 <limits.h> exists even on freestanding compilers. */
9569 # include <limits.h>
9571 # include <assert.h>
9574 #undef malloc_get_state
9576 /* Override any GCC internal prototype to avoid an error.
9577 Use char because int might match the return type of a GCC
9578 builtin and then its argument prototype would still apply. */
9582 char malloc_get_state ();
9583 /* The GNU C library defines this for functions which it implements
9584 to always fail with ENOSYS. Some functions are actually named
9585 something starting with __ and the normal name is an alias. */
9586 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9593 return malloc_get_state ();
9598 rm -f conftest.$ac_objext conftest$ac_exeext
9599 if { (ac_try="$ac_link"
9601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9602 *) ac_try_echo
=$ac_try;;
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_link") 2>conftest.er1
9607 grep -v '^ *+' conftest.er1
>conftest.err
9609 cat conftest.err
>&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } && {
9612 test -z "$ac_c_werror_flag" ||
9613 test ! -s conftest.err
9614 } && test -s conftest
$ac_exeext &&
9615 $as_test_x conftest
$ac_exeext; then
9616 ac_cv_func_malloc_get_state
=yes
9618 echo "$as_me: failed program was:" >&5
9619 sed 's/^/| /' conftest.
$ac_ext >&5
9621 ac_cv_func_malloc_get_state
=no
9624 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9625 conftest
$ac_exeext conftest.
$ac_ext
9627 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9628 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9629 if test $ac_cv_func_malloc_get_state = yes; then
9635 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9636 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9637 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9638 echo $ECHO_N "(cached) $ECHO_C" >&6
9640 cat >conftest.
$ac_ext <<_ACEOF
9643 cat confdefs.h
>>conftest.
$ac_ext
9644 cat >>conftest.
$ac_ext <<_ACEOF
9645 /* end confdefs.h. */
9646 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9647 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9648 #define malloc_set_state innocuous_malloc_set_state
9650 /* System header to define __stub macros and hopefully few prototypes,
9651 which can conflict with char malloc_set_state (); below.
9652 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9653 <limits.h> exists even on freestanding compilers. */
9656 # include <limits.h>
9658 # include <assert.h>
9661 #undef malloc_set_state
9663 /* Override any GCC internal prototype to avoid an error.
9664 Use char because int might match the return type of a GCC
9665 builtin and then its argument prototype would still apply. */
9669 char malloc_set_state ();
9670 /* The GNU C library defines this for functions which it implements
9671 to always fail with ENOSYS. Some functions are actually named
9672 something starting with __ and the normal name is an alias. */
9673 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9680 return malloc_set_state ();
9685 rm -f conftest.
$ac_objext conftest
$ac_exeext
9686 if { (ac_try
="$ac_link"
9688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_link") 2>conftest.er1
9694 grep -v '^ *+' conftest.er1 >conftest.err
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && {
9699 test -z "$ac_c_werror_flag" ||
9700 test ! -s conftest.err
9701 } && test -s conftest$ac_exeext &&
9702 $as_test_x conftest$ac_exeext; then
9703 ac_cv_func_malloc_set_state=yes
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9708 ac_cv_func_malloc_set_state=no
9711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9712 conftest$ac_exeext conftest.$ac_ext
9714 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9715 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9716 if test $ac_cv_func_malloc_set_state = yes; then
9722 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9723 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9724 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9725 echo $ECHO_N "(cached) $ECHO_C" >&6
9727 cat >conftest.$ac_ext <<_ACEOF
9730 cat confdefs.h >>conftest.$ac_ext
9731 cat >>conftest.$ac_ext <<_ACEOF
9732 /* end confdefs.h. */
9733 extern void (* __after_morecore_hook)();
9737 __after_morecore_hook = 0
9742 rm -f conftest.$ac_objext conftest$ac_exeext
9743 if { (ac_try="$ac_link"
9745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9746 *) ac_try_echo
=$ac_try;;
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_link") 2>conftest.er1
9751 grep -v '^ *+' conftest.er1
>conftest.err
9753 cat conftest.err
>&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } && {
9756 test -z "$ac_c_werror_flag" ||
9757 test ! -s conftest.err
9758 } && test -s conftest
$ac_exeext &&
9759 $as_test_x conftest
$ac_exeext; then
9760 emacs_cv_var___after_morecore_hook
=yes
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.
$ac_ext >&5
9765 emacs_cv_var___after_morecore_hook
=no
9768 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9769 conftest
$ac_exeext conftest.
$ac_ext
9771 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9772 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9773 if test $emacs_cv_var___after_morecore_hook = no
; then
9776 if test "${system_malloc}" = "yes"; then
9779 (The GNU allocators don't work with this system configuration.)"
9781 if test "$doug_lea_malloc" = "yes" ; then
9782 if test "$GNU_MALLOC" = yes ; then
9784 (Using Doug Lea's new malloc from the GNU C Library.)"
9787 cat >>confdefs.h
<<\_ACEOF
9788 #define DOUG_LEA_MALLOC 1
9793 if test x
"${REL_ALLOC}" = x
; then
9794 REL_ALLOC
=${GNU_MALLOC}
9800 for ac_header
in stdlib.h unistd.h
9802 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9803 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9806 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9807 echo $ECHO_N "(cached) $ECHO_C" >&6
9809 ac_res
=`eval echo '${'$as_ac_Header'}'`
9810 { echo "$as_me:$LINENO: result: $ac_res" >&5
9811 echo "${ECHO_T}$ac_res" >&6; }
9813 # Is the header compilable?
9814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9816 cat >conftest.
$ac_ext <<_ACEOF
9819 cat confdefs.h
>>conftest.
$ac_ext
9820 cat >>conftest.
$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 $ac_includes_default
9823 #include <$ac_header>
9825 rm -f conftest.
$ac_objext
9826 if { (ac_try
="$ac_compile"
9828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_compile") 2>conftest.er1
9834 grep -v '^ *+' conftest.er1 >conftest.err
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && {
9839 test -z "$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 } && test -s conftest.$ac_objext; then
9842 ac_header_compiler=yes
9844 echo "$as_me: failed program was:" >&5
9845 sed 's/^/| /' conftest.$ac_ext >&5
9847 ac_header_compiler=no
9850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9852 echo "${ECHO_T}$ac_header_compiler" >&6; }
9854 # Is the header present?
9855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9857 cat >conftest.$ac_ext <<_ACEOF
9860 cat confdefs.h >>conftest.$ac_ext
9861 cat >>conftest.$ac_ext <<_ACEOF
9862 /* end confdefs.h. */
9863 #include <$ac_header>
9865 if { (ac_try="$ac_cpp conftest.$ac_ext"
9867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9868 *) ac_try_echo
=$ac_try;;
9870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9873 grep -v '^ *+' conftest.er1
>conftest.err
9875 cat conftest.err
>&5
9876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9877 (exit $ac_status); } >/dev
/null
&& {
9878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9879 test ! -s conftest.err
9881 ac_header_preproc
=yes
9883 echo "$as_me: failed program was:" >&5
9884 sed 's/^/| /' conftest.
$ac_ext >&5
9886 ac_header_preproc
=no
9889 rm -f conftest.err conftest.
$ac_ext
9890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9891 echo "${ECHO_T}$ac_header_preproc" >&6; }
9893 # So? What about this header?
9894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9900 ac_header_preproc
=yes
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9920 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9921 echo $ECHO_N "(cached) $ECHO_C" >&6
9923 eval "$as_ac_Header=\$ac_header_preproc"
9925 ac_res
=`eval echo '${'$as_ac_Header'}'`
9926 { echo "$as_me:$LINENO: result: $ac_res" >&5
9927 echo "${ECHO_T}$ac_res" >&6; }
9930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9931 cat >>confdefs.h
<<_ACEOF
9932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9940 for ac_func
in getpagesize
9942 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9943 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9944 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9945 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9946 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 cat >conftest.
$ac_ext <<_ACEOF
9951 cat confdefs.h
>>conftest.
$ac_ext
9952 cat >>conftest.
$ac_ext <<_ACEOF
9953 /* end confdefs.h. */
9954 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9955 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9956 #define $ac_func innocuous_$ac_func
9958 /* System header to define __stub macros and hopefully few prototypes,
9959 which can conflict with char $ac_func (); below.
9960 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9961 <limits.h> exists even on freestanding compilers. */
9964 # include <limits.h>
9966 # include <assert.h>
9971 /* Override any GCC internal prototype to avoid an error.
9972 Use char because int might match the return type of a GCC
9973 builtin and then its argument prototype would still apply. */
9978 /* The GNU C library defines this for functions which it implements
9979 to always fail with ENOSYS. Some functions are actually named
9980 something starting with __ and the normal name is an alias. */
9981 #if defined __stub_$ac_func || defined __stub___$ac_func
9993 rm -f conftest.
$ac_objext conftest
$ac_exeext
9994 if { (ac_try
="$ac_link"
9996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9997 *) ac_try_echo=$ac_try;;
9999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10000 (eval "$ac_link") 2>conftest.er1
10002 grep -v '^ *+' conftest.er1 >conftest.err
10004 cat conftest.err >&5
10005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10006 (exit $ac_status); } && {
10007 test -z "$ac_c_werror_flag" ||
10008 test ! -s conftest.err
10009 } && test -s conftest$ac_exeext &&
10010 $as_test_x conftest$ac_exeext; then
10011 eval "$as_ac_var=yes"
10013 echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10016 eval "$as_ac_var=no"
10019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10020 conftest$ac_exeext conftest.$ac_ext
10022 ac_res=`eval echo '${'$as_ac_var'}'`
10023 { echo "$as_me:$LINENO: result: $ac_res" >&5
10024 echo "${ECHO_T}$ac_res" >&6; }
10025 if test `eval echo '${'$as_ac_var'}'` = yes; then
10026 cat >>confdefs.h <<_ACEOF
10027 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10033 { echo "$as_me:$LINENO: checking for working mmap" >&5
10034 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10035 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10038 if test "$cross_compiling" = yes; then
10039 ac_cv_func_mmap_fixed_mapped=no
10041 cat >conftest.$ac_ext <<_ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10047 $ac_includes_default
10048 /* malloc might have been renamed as rpl_malloc. */
10051 /* Thanks to Mike Haertel and Jim Avera for this test.
10052 Here is a matrix of mmap possibilities:
10053 mmap private not fixed
10054 mmap private fixed at somewhere currently unmapped
10055 mmap private fixed at somewhere already mapped
10056 mmap shared not fixed
10057 mmap shared fixed at somewhere currently unmapped
10058 mmap shared fixed at somewhere already mapped
10059 For private mappings, we should verify that changes cannot be read()
10060 back from the file, nor mmap's back from the file at a different
10061 address. (There have been systems where private was not correctly
10062 implemented like the infamous i386 svr4.0, and systems where the
10063 VM page cache was not coherent with the file system buffer cache
10064 like early versions of FreeBSD and possibly contemporary NetBSD.)
10065 For shared mappings, we should conversely verify that changes get
10066 propagated back to all the places they're supposed to be.
10068 Grep wants private fixed already mapped.
10069 The main things grep needs to know about mmap are:
10070 * does it exist and is it safe to write into the mmap'd area
10071 * how to use it (BSD variants) */
10074 #include <sys/mman.h>
10076 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10080 /* This mess was copied from the GNU getpagesize.h. */
10081 #ifndef HAVE_GETPAGESIZE
10082 /* Assume that all systems that can run configure have sys/param.h. */
10083 # ifndef HAVE_SYS_PARAM_H
10084 # define HAVE_SYS_PARAM_H 1
10087 # ifdef _SC_PAGESIZE
10088 # define getpagesize() sysconf(_SC_PAGESIZE)
10089 # else /* no _SC_PAGESIZE */
10090 # ifdef HAVE_SYS_PARAM_H
10091 # include <sys/param.h>
10092 # ifdef EXEC_PAGESIZE
10093 # define getpagesize() EXEC_PAGESIZE
10094 # else /* no EXEC_PAGESIZE */
10096 # define getpagesize() NBPG * CLSIZE
10099 # endif /* no CLSIZE */
10100 # else /* no NBPG */
10102 # define getpagesize() NBPC
10103 # else /* no NBPC */
10105 # define getpagesize() PAGESIZE
10106 # endif /* PAGESIZE */
10107 # endif /* no NBPC */
10108 # endif /* no NBPG */
10109 # endif /* no EXEC_PAGESIZE */
10110 # else /* no HAVE_SYS_PARAM_H */
10111 # define getpagesize() 8192 /* punt totally */
10112 # endif /* no HAVE_SYS_PARAM_H */
10113 # endif /* no _SC_PAGESIZE */
10115 #endif /* no HAVE_GETPAGESIZE */
10120 char *data, *data2, *data3;
10124 pagesize = getpagesize ();
10126 /* First, make a file with some known garbage in it. */
10127 data = (char *) malloc (pagesize);
10130 for (i = 0; i < pagesize; ++i)
10131 *(data + i) = rand ();
10133 fd = creat ("conftest.mmap", 0600);
10136 if (write (fd, data, pagesize) != pagesize)
10140 /* Next, try to mmap the file at a fixed address which already has
10141 something else allocated at it. If we can, also make sure that
10142 we see the same garbage. */
10143 fd = open ("conftest.mmap", O_RDWR);
10146 data2 = (char *) malloc (2 * pagesize);
10149 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10150 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10151 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10153 for (i = 0; i < pagesize; ++i)
10154 if (*(data + i) != *(data2 + i))
10157 /* Finally, make sure that changes to the mapped area do not
10158 percolate back to the file as seen by read(). (This is a bug on
10159 some variants of i386 svr4.0.) */
10160 for (i = 0; i < pagesize; ++i)
10161 *(data2 + i) = *(data2 + i) + 1;
10162 data3 = (char *) malloc (pagesize);
10165 if (read (fd, data3, pagesize) != pagesize)
10167 for (i = 0; i < pagesize; ++i)
10168 if (*(data + i) != *(data3 + i))
10174 rm -f conftest$ac_exeext
10175 if { (ac_try="$ac_link"
10176 case "(($ac_try" in
10177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10178 *) ac_try_echo
=$ac_try;;
10180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10181 (eval "$ac_link") 2>&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10185 { (case "(($ac_try" in
10186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10187 *) ac_try_echo=$ac_try;;
10189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10190 (eval "$ac_try") 2>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); }; }; then
10194 ac_cv_func_mmap_fixed_mapped=yes
10196 echo "$as_me: program exited with status $ac_status" >&5
10197 echo "$as_me: failed program was:" >&5
10198 sed 's/^/| /' conftest.$ac_ext >&5
10200 ( exit $ac_status )
10201 ac_cv_func_mmap_fixed_mapped=no
10203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10208 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10209 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10210 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10212 cat >>confdefs.h <<\_ACEOF
10213 #define HAVE_MMAP 1
10217 rm -f conftest.mmap
10219 if test $use_mmap_for_buffers = yes; then
10223 LIBS="$libsrc_libs $LIBS"
10226 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10227 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10228 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 ac_check_lib_save_LIBS=$LIBS
10232 LIBS="-ldnet $LIBS"
10233 cat >conftest.$ac_ext <<_ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10240 /* Override any GCC internal prototype to avoid an error.
10241 Use char because int might match the return type of a GCC
10242 builtin and then its argument prototype would still apply. */
10250 return dnet_ntoa ();
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (ac_try="$ac_link"
10257 case "(($ac_try" in
10258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10259 *) ac_try_echo
=$ac_try;;
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262 (eval "$ac_link") 2>conftest.er1
10264 grep -v '^ *+' conftest.er1
>conftest.err
10266 cat conftest.err
>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } && {
10269 test -z "$ac_c_werror_flag" ||
10270 test ! -s conftest.err
10271 } && test -s conftest
$ac_exeext &&
10272 $as_test_x conftest
$ac_exeext; then
10273 ac_cv_lib_dnet_dnet_ntoa
=yes
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.
$ac_ext >&5
10278 ac_cv_lib_dnet_dnet_ntoa
=no
10281 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10282 conftest
$ac_exeext conftest.
$ac_ext
10283 LIBS
=$ac_check_lib_save_LIBS
10285 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10286 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10287 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10288 cat >>confdefs.h
<<_ACEOF
10289 #define HAVE_LIBDNET 1
10292 LIBS
="-ldnet $LIBS"
10297 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10298 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10299 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 ac_check_lib_save_LIBS
=$LIBS
10303 LIBS
="-lXbsd $LIBS"
10304 cat >conftest.
$ac_ext <<_ACEOF
10307 cat confdefs.h
>>conftest.
$ac_ext
10308 cat >>conftest.
$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10320 rm -f conftest.
$ac_objext conftest
$ac_exeext
10321 if { (ac_try
="$ac_link"
10322 case "(($ac_try" in
10323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10324 *) ac_try_echo=$ac_try;;
10326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10327 (eval "$ac_link") 2>conftest.er1
10329 grep -v '^ *+' conftest.er1 >conftest.err
10331 cat conftest.err >&5
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); } && {
10334 test -z "$ac_c_werror_flag" ||
10335 test ! -s conftest.err
10336 } && test -s conftest$ac_exeext &&
10337 $as_test_x conftest$ac_exeext; then
10338 ac_cv_lib_Xbsd_main=yes
10340 echo "$as_me: failed program was:" >&5
10341 sed 's/^/| /' conftest.$ac_ext >&5
10343 ac_cv_lib_Xbsd_main=no
10346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10347 conftest$ac_exeext conftest.$ac_ext
10348 LIBS=$ac_check_lib_save_LIBS
10350 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10351 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10352 if test $ac_cv_lib_Xbsd_main = yes; then
10353 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10358 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10359 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10360 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10361 echo $ECHO_N "(cached) $ECHO_C" >&6
10363 ac_check_lib_save_LIBS=$LIBS
10364 LIBS="-lpthreads $LIBS"
10365 cat >conftest.$ac_ext <<_ACEOF
10368 cat confdefs.h >>conftest.$ac_ext
10369 cat >>conftest.$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10372 /* Override any GCC internal prototype to avoid an error.
10373 Use char because int might match the return type of a GCC
10374 builtin and then its argument prototype would still apply. */
10382 return cma_open ();
10387 rm -f conftest.$ac_objext conftest$ac_exeext
10388 if { (ac_try="$ac_link"
10389 case "(($ac_try" in
10390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10391 *) ac_try_echo
=$ac_try;;
10393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10394 (eval "$ac_link") 2>conftest.er1
10396 grep -v '^ *+' conftest.er1
>conftest.err
10398 cat conftest.err
>&5
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); } && {
10401 test -z "$ac_c_werror_flag" ||
10402 test ! -s conftest.err
10403 } && test -s conftest
$ac_exeext &&
10404 $as_test_x conftest
$ac_exeext; then
10405 ac_cv_lib_pthreads_cma_open
=yes
10407 echo "$as_me: failed program was:" >&5
10408 sed 's/^/| /' conftest.
$ac_ext >&5
10410 ac_cv_lib_pthreads_cma_open
=no
10413 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10414 conftest
$ac_exeext conftest.
$ac_ext
10415 LIBS
=$ac_check_lib_save_LIBS
10417 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10418 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10419 if test $ac_cv_lib_pthreads_cma_open = yes; then
10420 cat >>confdefs.h
<<_ACEOF
10421 #define HAVE_LIBPTHREADS 1
10424 LIBS
="-lpthreads $LIBS"
10429 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10430 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10431 if test -d /usr
/X386
/include
; then
10433 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10437 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10438 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10443 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10444 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10445 if test "${gdb_cv_bigtoc+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10450 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10451 *) gdb_cv_bigtoc
=-bbigtoc ;;
10454 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10455 cat >conftest.
$ac_ext <<_ACEOF
10458 cat confdefs.h
>>conftest.
$ac_ext
10459 cat >>conftest.
$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10470 rm -f conftest.
$ac_objext conftest
$ac_exeext
10471 if { (ac_try
="$ac_link"
10472 case "(($ac_try" in
10473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10474 *) ac_try_echo=$ac_try;;
10476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10477 (eval "$ac_link") 2>conftest.er1
10479 grep -v '^ *+' conftest.er1 >conftest.err
10481 cat conftest.err >&5
10482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10483 (exit $ac_status); } && {
10484 test -z "$ac_c_werror_flag" ||
10485 test ! -s conftest.err
10486 } && test -s conftest$ac_exeext &&
10487 $as_test_x conftest$ac_exeext; then
10490 echo "$as_me: failed program was:" >&5
10491 sed 's/^/| /' conftest.$ac_ext >&5
10496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10497 conftest$ac_exeext conftest.$ac_ext
10500 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10501 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10505 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10506 # used for the tests that follow. We set them back to REAL_CFLAGS and
10507 # REAL_CPPFLAGS later on.
10509 REAL_CPPFLAGS="$CPPFLAGS"
10511 if test "${HAVE_X11}" = "yes"; then
10512 DEFS="$C_SWITCH_X_SITE $DEFS"
10513 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10515 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10516 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10518 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10519 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10520 # but it's more convenient here to set LD_RUN_PATH
10521 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10522 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10523 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10527 if test "${opsys}" = "gnu-linux"; then
10528 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10529 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10530 cat >conftest.$ac_ext <<_ACEOF
10533 cat confdefs.h >>conftest.$ac_ext
10534 cat >>conftest.$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10540 XOpenDisplay ("foo");
10545 rm -f conftest.$ac_objext conftest$ac_exeext
10546 if { (ac_try="$ac_link"
10547 case "(($ac_try" in
10548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10549 *) ac_try_echo
=$ac_try;;
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_link") 2>conftest.er1
10554 grep -v '^ *+' conftest.er1
>conftest.err
10556 cat conftest.err
>&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && {
10559 test -z "$ac_c_werror_flag" ||
10560 test ! -s conftest.err
10561 } && test -s conftest
$ac_exeext &&
10562 $as_test_x conftest
$ac_exeext; then
10563 xlinux_first_failure
=no
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.
$ac_ext >&5
10568 xlinux_first_failure
=yes
10571 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10572 conftest
$ac_exeext conftest.
$ac_ext
10573 if test "${xlinux_first_failure}" = "yes"; then
10574 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10575 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10576 OLD_CPPFLAGS
="$CPPFLAGS"
10578 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10579 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10580 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10581 LIBS
="$LIBS -b i486-linuxaout"
10582 cat >conftest.
$ac_ext <<_ACEOF
10585 cat confdefs.h
>>conftest.
$ac_ext
10586 cat >>conftest.
$ac_ext <<_ACEOF
10587 /* end confdefs.h. */
10592 XOpenDisplay ("foo");
10597 rm -f conftest.
$ac_objext conftest
$ac_exeext
10598 if { (ac_try
="$ac_link"
10599 case "(($ac_try" in
10600 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10601 *) ac_try_echo=$ac_try;;
10603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10604 (eval "$ac_link") 2>conftest.er1
10606 grep -v '^ *+' conftest.er1 >conftest.err
10608 cat conftest.err >&5
10609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610 (exit $ac_status); } && {
10611 test -z "$ac_c_werror_flag" ||
10612 test ! -s conftest.err
10613 } && test -s conftest$ac_exeext &&
10614 $as_test_x conftest$ac_exeext; then
10615 xlinux_second_failure=no
10617 echo "$as_me: failed program was:" >&5
10618 sed 's/^/| /' conftest.$ac_ext >&5
10620 xlinux_second_failure=yes
10623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10624 conftest$ac_exeext conftest.$ac_ext
10625 if test "${xlinux_second_failure}" = "yes"; then
10626 # If we get the same failure with -b, there is no use adding -b.
10627 # So take it out. This plays safe.
10628 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10629 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10630 CPPFLAGS="$OLD_CPPFLAGS"
10632 { echo "$as_me:$LINENO: result: no" >&5
10633 echo "${ECHO_T}no" >&6; }
10635 { echo "$as_me:$LINENO: result: yes" >&5
10636 echo "${ECHO_T}yes" >&6; }
10639 { echo "$as_me:$LINENO: result: no" >&5
10640 echo "${ECHO_T}no" >&6; }
10644 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10645 # header files included from there.
10646 { echo "$as_me:$LINENO: checking for Xkb" >&5
10647 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10648 cat >conftest.$ac_ext <<_ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10654 #include <X11/Xlib.h>
10655 #include <X11/XKBlib.h>
10659 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10664 rm -f conftest.$ac_objext conftest$ac_exeext
10665 if { (ac_try="$ac_link"
10666 case "(($ac_try" in
10667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10668 *) ac_try_echo
=$ac_try;;
10670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10671 (eval "$ac_link") 2>conftest.er1
10673 grep -v '^ *+' conftest.er1
>conftest.err
10675 cat conftest.err
>&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); } && {
10678 test -z "$ac_c_werror_flag" ||
10679 test ! -s conftest.err
10680 } && test -s conftest
$ac_exeext &&
10681 $as_test_x conftest
$ac_exeext; then
10684 echo "$as_me: failed program was:" >&5
10685 sed 's/^/| /' conftest.
$ac_ext >&5
10690 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10691 conftest
$ac_exeext conftest.
$ac_ext
10692 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10693 echo "${ECHO_T}$emacs_xkb" >&6; }
10694 if test $emacs_xkb = yes; then
10696 cat >>confdefs.h
<<\_ACEOF
10697 #define HAVE_XKBGETKEYBOARD 1
10706 for ac_func
in XrmSetDatabase XScreenResourceString \
10707 XScreenNumberOfScreen XSetWMProtocols
10709 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10712 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10715 cat >conftest.
$ac_ext <<_ACEOF
10718 cat confdefs.h
>>conftest.
$ac_ext
10719 cat >>conftest.
$ac_ext <<_ACEOF
10720 /* end confdefs.h. */
10721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10723 #define $ac_func innocuous_$ac_func
10725 /* System header to define __stub macros and hopefully few prototypes,
10726 which can conflict with char $ac_func (); below.
10727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10728 <limits.h> exists even on freestanding compilers. */
10731 # include <limits.h>
10733 # include <assert.h>
10738 /* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10745 /* The GNU C library defines this for functions which it implements
10746 to always fail with ENOSYS. Some functions are actually named
10747 something starting with __ and the normal name is an alias. */
10748 #if defined __stub_$ac_func || defined __stub___$ac_func
10755 return $ac_func ();
10760 rm -f conftest.
$ac_objext conftest
$ac_exeext
10761 if { (ac_try
="$ac_link"
10762 case "(($ac_try" in
10763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_link") 2>conftest.er1
10769 grep -v '^ *+' conftest.er1 >conftest.err
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } && {
10774 test -z "$ac_c_werror_flag" ||
10775 test ! -s conftest.err
10776 } && test -s conftest$ac_exeext &&
10777 $as_test_x conftest$ac_exeext; then
10778 eval "$as_ac_var=yes"
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10783 eval "$as_ac_var=no"
10786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10787 conftest$ac_exeext conftest.$ac_ext
10789 ac_res=`eval echo '${'$as_ac_var'}'`
10790 { echo "$as_me:$LINENO: result: $ac_res" >&5
10791 echo "${ECHO_T}$ac_res" >&6; }
10792 if test `eval echo '${'$as_ac_var'}'` = yes; then
10793 cat >>confdefs.h <<_ACEOF
10794 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10802 if test "${window_system}" = "x11"; then
10803 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10804 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10805 if test "${emacs_cv_x11_version_6+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10808 cat >conftest.$ac_ext <<_ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 #include <X11/Xlib.h>
10818 #if XlibSpecificationRelease < 6
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (ac_try="$ac_link"
10828 case "(($ac_try" in
10829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10830 *) ac_try_echo
=$ac_try;;
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_link") 2>conftest.er1
10835 grep -v '^ *+' conftest.er1
>conftest.err
10837 cat conftest.err
>&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest
$ac_exeext &&
10843 $as_test_x conftest
$ac_exeext; then
10844 emacs_cv_x11_version_6
=yes
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.
$ac_ext >&5
10849 emacs_cv_x11_version_6
=no
10852 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10853 conftest
$ac_exeext conftest.
$ac_ext
10856 if test $emacs_cv_x11_version_6 = yes; then
10857 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10858 echo "${ECHO_T}6 or newer" >&6; }
10860 cat >>confdefs.h
<<\_ACEOF
10861 #define HAVE_X11R6 1
10865 { echo "$as_me:$LINENO: result: before 6" >&5
10866 echo "${ECHO_T}before 6" >&6; }
10870 if test "${window_system}" = "x11"; then
10871 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10872 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10873 if test "${emacs_cv_x11_version_5+set}" = set; then
10874 echo $ECHO_N "(cached) $ECHO_C" >&6
10876 cat >conftest.
$ac_ext <<_ACEOF
10879 cat confdefs.h
>>conftest.
$ac_ext
10880 cat >>conftest.
$ac_ext <<_ACEOF
10881 /* end confdefs.h. */
10882 #include <X11/Xlib.h>
10886 #if XlibSpecificationRelease < 5
10894 rm -f conftest.
$ac_objext conftest
$ac_exeext
10895 if { (ac_try
="$ac_link"
10896 case "(($ac_try" in
10897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10898 *) ac_try_echo=$ac_try;;
10900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10901 (eval "$ac_link") 2>conftest.er1
10903 grep -v '^ *+' conftest.er1 >conftest.err
10905 cat conftest.err >&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); } && {
10908 test -z "$ac_c_werror_flag" ||
10909 test ! -s conftest.err
10910 } && test -s conftest$ac_exeext &&
10911 $as_test_x conftest$ac_exeext; then
10912 emacs_cv_x11_version_5=yes
10914 echo "$as_me: failed program was:" >&5
10915 sed 's/^/| /' conftest.$ac_ext >&5
10917 emacs_cv_x11_version_5=no
10920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10921 conftest$ac_exeext conftest.$ac_ext
10924 if test $emacs_cv_x11_version_5 = yes; then
10925 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10926 echo "${ECHO_T}5 or newer" >&6; }
10929 cat >>confdefs.h <<\_ACEOF
10930 #define HAVE_X11R5 1
10935 { echo "$as_me:$LINENO: result: before 5" >&5
10936 echo "${ECHO_T}before 5" >&6; }
10941 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10944 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10945 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10946 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10947 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10948 { (exit 1); exit 1; }; };
10952 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10954 if test "X${with_pkg_config_prog}" != X; then
10955 PKG_CONFIG="${with_pkg_config_prog}"
10960 if test -z "$PKG_CONFIG"; then
10961 # Extract the first word of "pkg-config", so it can be a program name with args.
10962 set dummy pkg-config; ac_word=$2
10963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10965 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10966 echo $ECHO_N "(cached) $ECHO_C" >&6
10968 case $PKG_CONFIG in
10970 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974 for as_dir in $PATH
10977 test -z "$as_dir" && as_dir=.
10978 for ac_exec_ext in '' $ac_executable_extensions; do
10979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10980 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10988 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10992 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10993 if test -n "$PKG_CONFIG"; then
10994 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10995 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10997 { echo "$as_me:$LINENO: result: no" >&5
10998 echo "${ECHO_T}no" >&6; }
11004 if test "$PKG_CONFIG" = "no" ; then
11005 { { echo "$as_me:$LINENO: error:
11006 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
11007 echo "$as_me: error:
11008 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
11009 { (exit 1); exit 1; }; }
11011 PKG_CONFIG_MIN_VERSION=0.9.0
11012 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11013 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11014 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11016 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11017 { echo "$as_me:$LINENO: result: yes" >&5
11018 echo "${ECHO_T}yes" >&6; }
11021 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11022 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11023 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11024 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11025 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11027 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11028 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11029 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11030 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11031 echo "${ECHO_T}$GTK_LIBS" >&6; }
11033 { echo "$as_me:$LINENO: result: no" >&5
11034 echo "${ECHO_T}no" >&6; }
11037 ## If we have a custom action on failure, don't print errors, but
11038 ## do set a variable so people can do so.
11039 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11040 echo $GTK_PKG_ERRORS
11046 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11047 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11051 if test $succeeded = yes; then
11054 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
11055 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
11056 { (exit 1); exit 1; }; }
11061 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11062 CFLAGS="$CFLAGS $GTK_CFLAGS"
11063 LIBS="$GTK_LIBS $LIBS"
11066 for ac_func in gtk_main
11068 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11069 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11070 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11071 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11072 echo $ECHO_N "(cached) $ECHO_C" >&6
11074 cat >conftest.$ac_ext <<_ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11082 #define $ac_func innocuous_$ac_func
11084 /* System header to define __stub macros and hopefully few prototypes,
11085 which can conflict with char $ac_func (); below.
11086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11087 <limits.h> exists even on freestanding compilers. */
11090 # include <limits.h>
11092 # include <assert.h>
11097 /* Override any GCC internal prototype to avoid an error.
11098 Use char because int might match the return type of a GCC
11099 builtin and then its argument prototype would still apply. */
11104 /* The GNU C library defines this for functions which it implements
11105 to always fail with ENOSYS. Some functions are actually named
11106 something starting with __ and the normal name is an alias. */
11107 #if defined __stub_$ac_func || defined __stub___$ac_func
11114 return $ac_func ();
11119 rm -f conftest.$ac_objext conftest$ac_exeext
11120 if { (ac_try="$ac_link"
11121 case "(($ac_try" in
11122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11123 *) ac_try_echo
=$ac_try;;
11125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11126 (eval "$ac_link") 2>conftest.er1
11128 grep -v '^ *+' conftest.er1
>conftest.err
11130 cat conftest.err
>&5
11131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11132 (exit $ac_status); } && {
11133 test -z "$ac_c_werror_flag" ||
11134 test ! -s conftest.err
11135 } && test -s conftest
$ac_exeext &&
11136 $as_test_x conftest
$ac_exeext; then
11137 eval "$as_ac_var=yes"
11139 echo "$as_me: failed program was:" >&5
11140 sed 's/^/| /' conftest.
$ac_ext >&5
11142 eval "$as_ac_var=no"
11145 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11146 conftest
$ac_exeext conftest.
$ac_ext
11148 ac_res
=`eval echo '${'$as_ac_var'}'`
11149 { echo "$as_me:$LINENO: result: $ac_res" >&5
11150 echo "${ECHO_T}$ac_res" >&6; }
11151 if test `eval echo '${'$as_ac_var'}'` = yes; then
11152 cat >>confdefs.h
<<_ACEOF
11153 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11159 if test "${GTK_COMPILES}" != "yes"; then
11160 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11161 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11162 { (exit 1); exit 1; }; };
11167 cat >>confdefs.h
<<\_ACEOF
11173 if test "$with_toolkit_scroll_bars" != no
; then
11174 with_toolkit_scroll_bars
=yes
11177 HAVE_GTK_MULTIDISPLAY
=no
11179 for ac_func
in gdk_display_open
11181 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11182 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11183 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11184 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11185 echo $ECHO_N "(cached) $ECHO_C" >&6
11187 cat >conftest.
$ac_ext <<_ACEOF
11190 cat confdefs.h
>>conftest.
$ac_ext
11191 cat >>conftest.
$ac_ext <<_ACEOF
11192 /* end confdefs.h. */
11193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11195 #define $ac_func innocuous_$ac_func
11197 /* System header to define __stub macros and hopefully few prototypes,
11198 which can conflict with char $ac_func (); below.
11199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11200 <limits.h> exists even on freestanding compilers. */
11203 # include <limits.h>
11205 # include <assert.h>
11210 /* Override any GCC internal prototype to avoid an error.
11211 Use char because int might match the return type of a GCC
11212 builtin and then its argument prototype would still apply. */
11217 /* The GNU C library defines this for functions which it implements
11218 to always fail with ENOSYS. Some functions are actually named
11219 something starting with __ and the normal name is an alias. */
11220 #if defined __stub_$ac_func || defined __stub___$ac_func
11227 return $ac_func ();
11232 rm -f conftest.
$ac_objext conftest
$ac_exeext
11233 if { (ac_try
="$ac_link"
11234 case "(($ac_try" in
11235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11236 *) ac_try_echo=$ac_try;;
11238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11239 (eval "$ac_link") 2>conftest.er1
11241 grep -v '^ *+' conftest.er1 >conftest.err
11243 cat conftest.err >&5
11244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11245 (exit $ac_status); } && {
11246 test -z "$ac_c_werror_flag" ||
11247 test ! -s conftest.err
11248 } && test -s conftest$ac_exeext &&
11249 $as_test_x conftest$ac_exeext; then
11250 eval "$as_ac_var=yes"
11252 echo "$as_me: failed program was:" >&5
11253 sed 's/^/| /' conftest.$ac_ext >&5
11255 eval "$as_ac_var=no"
11258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11259 conftest$ac_exeext conftest.$ac_ext
11261 ac_res=`eval echo '${'$as_ac_var'}'`
11262 { echo "$as_me:$LINENO: result: $ac_res" >&5
11263 echo "${ECHO_T}$ac_res" >&6; }
11264 if test `eval echo '${'$as_ac_var'}'` = yes; then
11265 cat >>confdefs.h <<_ACEOF
11266 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11268 HAVE_GTK_MULTIDISPLAY=yes
11272 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11274 cat >>confdefs.h <<\_ACEOF
11275 #define HAVE_GTK_MULTIDISPLAY 1
11279 HAVE_GTK_FILE_SELECTION=no
11281 for ac_func in gtk_file_selection_new
11283 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11284 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11285 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11286 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 cat >conftest.$ac_ext <<_ACEOF
11292 cat confdefs.h >>conftest.$ac_ext
11293 cat >>conftest.$ac_ext <<_ACEOF
11294 /* end confdefs.h. */
11295 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11297 #define $ac_func innocuous_$ac_func
11299 /* System header to define __stub macros and hopefully few prototypes,
11300 which can conflict with char $ac_func (); below.
11301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11302 <limits.h> exists even on freestanding compilers. */
11305 # include <limits.h>
11307 # include <assert.h>
11312 /* Override any GCC internal prototype to avoid an error.
11313 Use char because int might match the return type of a GCC
11314 builtin and then its argument prototype would still apply. */
11319 /* The GNU C library defines this for functions which it implements
11320 to always fail with ENOSYS. Some functions are actually named
11321 something starting with __ and the normal name is an alias. */
11322 #if defined __stub_$ac_func || defined __stub___$ac_func
11329 return $ac_func ();
11334 rm -f conftest.$ac_objext conftest$ac_exeext
11335 if { (ac_try="$ac_link"
11336 case "(($ac_try" in
11337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11338 *) ac_try_echo
=$ac_try;;
11340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11341 (eval "$ac_link") 2>conftest.er1
11343 grep -v '^ *+' conftest.er1
>conftest.err
11345 cat conftest.err
>&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); } && {
11348 test -z "$ac_c_werror_flag" ||
11349 test ! -s conftest.err
11350 } && test -s conftest
$ac_exeext &&
11351 $as_test_x conftest
$ac_exeext; then
11352 eval "$as_ac_var=yes"
11354 echo "$as_me: failed program was:" >&5
11355 sed 's/^/| /' conftest.
$ac_ext >&5
11357 eval "$as_ac_var=no"
11360 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11361 conftest
$ac_exeext conftest.
$ac_ext
11363 ac_res
=`eval echo '${'$as_ac_var'}'`
11364 { echo "$as_me:$LINENO: result: $ac_res" >&5
11365 echo "${ECHO_T}$ac_res" >&6; }
11366 if test `eval echo '${'$as_ac_var'}'` = yes; then
11367 cat >>confdefs.h
<<_ACEOF
11368 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11370 HAVE_GTK_FILE_SELECTION
=yes
11375 HAVE_GTK_FILE_CHOOSER
=no
11377 for ac_func
in gtk_file_chooser_dialog_new
11379 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11380 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11381 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11382 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11383 echo $ECHO_N "(cached) $ECHO_C" >&6
11385 cat >conftest.
$ac_ext <<_ACEOF
11388 cat confdefs.h
>>conftest.
$ac_ext
11389 cat >>conftest.
$ac_ext <<_ACEOF
11390 /* end confdefs.h. */
11391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11392 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11393 #define $ac_func innocuous_$ac_func
11395 /* System header to define __stub macros and hopefully few prototypes,
11396 which can conflict with char $ac_func (); below.
11397 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11398 <limits.h> exists even on freestanding compilers. */
11401 # include <limits.h>
11403 # include <assert.h>
11408 /* Override any GCC internal prototype to avoid an error.
11409 Use char because int might match the return type of a GCC
11410 builtin and then its argument prototype would still apply. */
11415 /* The GNU C library defines this for functions which it implements
11416 to always fail with ENOSYS. Some functions are actually named
11417 something starting with __ and the normal name is an alias. */
11418 #if defined __stub_$ac_func || defined __stub___$ac_func
11425 return $ac_func ();
11430 rm -f conftest.
$ac_objext conftest
$ac_exeext
11431 if { (ac_try
="$ac_link"
11432 case "(($ac_try" in
11433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11434 *) ac_try_echo=$ac_try;;
11436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11437 (eval "$ac_link") 2>conftest.er1
11439 grep -v '^ *+' conftest.er1 >conftest.err
11441 cat conftest.err >&5
11442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11443 (exit $ac_status); } && {
11444 test -z "$ac_c_werror_flag" ||
11445 test ! -s conftest.err
11446 } && test -s conftest$ac_exeext &&
11447 $as_test_x conftest$ac_exeext; then
11448 eval "$as_ac_var=yes"
11450 echo "$as_me: failed program was:" >&5
11451 sed 's/^/| /' conftest.$ac_ext >&5
11453 eval "$as_ac_var=no"
11456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11457 conftest$ac_exeext conftest.$ac_ext
11459 ac_res=`eval echo '${'$as_ac_var'}'`
11460 { echo "$as_me:$LINENO: result: $ac_res" >&5
11461 echo "${ECHO_T}$ac_res" >&6; }
11462 if test `eval echo '${'$as_ac_var'}'` = yes; then
11463 cat >>confdefs.h <<_ACEOF
11464 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11466 HAVE_GTK_FILE_CHOOSER=yes
11471 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11472 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11474 cat >>confdefs.h <<\_ACEOF
11475 #define HAVE_GTK_FILE_BOTH 1
11480 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11481 HAVE_GTK_AND_PTHREAD=no
11483 for ac_header in pthread.h
11485 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11486 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11489 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 ac_res=`eval echo '${'$as_ac_Header'}'`
11493 { echo "$as_me:$LINENO: result: $ac_res" >&5
11494 echo "${ECHO_T}$ac_res" >&6; }
11496 # Is the header compilable?
11497 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11499 cat >conftest.$ac_ext <<_ACEOF
11502 cat confdefs.h >>conftest.$ac_ext
11503 cat >>conftest.$ac_ext <<_ACEOF
11504 /* end confdefs.h. */
11505 $ac_includes_default
11506 #include <$ac_header>
11508 rm -f conftest.$ac_objext
11509 if { (ac_try="$ac_compile"
11510 case "(($ac_try" in
11511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11512 *) ac_try_echo
=$ac_try;;
11514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11515 (eval "$ac_compile") 2>conftest.er1
11517 grep -v '^ *+' conftest.er1
>conftest.err
11519 cat conftest.err
>&5
11520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11521 (exit $ac_status); } && {
11522 test -z "$ac_c_werror_flag" ||
11523 test ! -s conftest.err
11524 } && test -s conftest.
$ac_objext; then
11525 ac_header_compiler
=yes
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.
$ac_ext >&5
11530 ac_header_compiler
=no
11533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11535 echo "${ECHO_T}$ac_header_compiler" >&6; }
11537 # Is the header present?
11538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11540 cat >conftest.
$ac_ext <<_ACEOF
11543 cat confdefs.h
>>conftest.
$ac_ext
11544 cat >>conftest.
$ac_ext <<_ACEOF
11545 /* end confdefs.h. */
11546 #include <$ac_header>
11548 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11549 case "(($ac_try" in
11550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11556 grep -v '^ *+' conftest.er1 >conftest.err
11558 cat conftest.err >&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } >/dev/null && {
11561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11562 test ! -s conftest.err
11564 ac_header_preproc=yes
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11569 ac_header_preproc=no
11572 rm -f conftest.err conftest.$ac_ext
11573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11574 echo "${ECHO_T}$ac_header_preproc" >&6; }
11576 # So? What about this header?
11577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11583 ac_header_preproc=yes
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 eval "$as_ac_Header=\$ac_header_preproc"
11608 ac_res=`eval echo '${'$as_ac_Header'}'`
11609 { echo "$as_me:$LINENO: result: $ac_res" >&5
11610 echo "${ECHO_T}$ac_res" >&6; }
11613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11614 cat >>confdefs.h <<_ACEOF
11615 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11622 if test "$ac_cv_header_pthread_h"; then
11623 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11624 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11625 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11628 ac_check_lib_save_LIBS=$LIBS
11629 LIBS="-lpthread $LIBS"
11630 cat >conftest.$ac_ext <<_ACEOF
11633 cat confdefs.h >>conftest.$ac_ext
11634 cat >>conftest.$ac_ext <<_ACEOF
11635 /* end confdefs.h. */
11637 /* Override any GCC internal prototype to avoid an error.
11638 Use char because int might match the return type of a GCC
11639 builtin and then its argument prototype would still apply. */
11643 char pthread_self ();
11647 return pthread_self ();
11652 rm -f conftest.$ac_objext conftest$ac_exeext
11653 if { (ac_try="$ac_link"
11654 case "(($ac_try" in
11655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11656 *) ac_try_echo
=$ac_try;;
11658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11659 (eval "$ac_link") 2>conftest.er1
11661 grep -v '^ *+' conftest.er1
>conftest.err
11663 cat conftest.err
>&5
11664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11665 (exit $ac_status); } && {
11666 test -z "$ac_c_werror_flag" ||
11667 test ! -s conftest.err
11668 } && test -s conftest
$ac_exeext &&
11669 $as_test_x conftest
$ac_exeext; then
11670 ac_cv_lib_pthread_pthread_self
=yes
11672 echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.
$ac_ext >&5
11675 ac_cv_lib_pthread_pthread_self
=no
11678 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11679 conftest
$ac_exeext conftest.
$ac_ext
11680 LIBS
=$ac_check_lib_save_LIBS
11682 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11683 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11684 if test $ac_cv_lib_pthread_pthread_self = yes; then
11685 HAVE_GTK_AND_PTHREAD
=yes
11689 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11690 GTK_LIBS
="$GTK_LIBS -lpthread"
11692 cat >>confdefs.h
<<\_ACEOF
11693 #define HAVE_GTK_AND_PTHREAD 1
11700 ### Link with -lXft if available to work around a bug.
11702 if test "${HAVE_GTK}" = "yes"; then
11703 if test "X${with_pkg_config_prog}" != X
; then
11704 PKG_CONFIG
="${with_pkg_config_prog}"
11710 if test -z "$PKG_CONFIG"; then
11711 # Extract the first word of "pkg-config", so it can be a program name with args.
11712 set dummy pkg-config
; ac_word
=$2
11713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11715 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11716 echo $ECHO_N "(cached) $ECHO_C" >&6
11718 case $PKG_CONFIG in
11720 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11724 for as_dir
in $PATH
11727 test -z "$as_dir" && as_dir
=.
11728 for ac_exec_ext
in '' $ac_executable_extensions; do
11729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11730 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11738 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11742 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11743 if test -n "$PKG_CONFIG"; then
11744 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11745 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11747 { echo "$as_me:$LINENO: result: no" >&5
11748 echo "${ECHO_T}no" >&6; }
11754 if test "$PKG_CONFIG" = "no" ; then
11757 PKG_CONFIG_MIN_VERSION
=0.9.0
11758 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11759 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11760 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11762 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11763 { echo "$as_me:$LINENO: result: yes" >&5
11764 echo "${ECHO_T}yes" >&6; }
11767 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11768 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11769 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11770 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11771 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11773 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11774 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11775 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11776 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11777 echo "${ECHO_T}$XFT_LIBS" >&6; }
11779 { echo "$as_me:$LINENO: result: no" >&5
11780 echo "${ECHO_T}no" >&6; }
11783 ## If we have a custom action on failure, don't print errors, but
11784 ## do set a variable so people can do so.
11785 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11792 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11793 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11797 if test $succeeded = yes; then
11803 if test "$HAVE_XFT" != no
; then
11804 OLD_CFLAGS
="$CPPFLAGS"
11805 OLD_CPPFLAGS
="$CFLAGS"
11807 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11808 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11809 LIBS
="$XFT_LIBS $LIBS"
11810 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11811 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11812 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11813 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11814 echo $ECHO_N "(cached) $ECHO_C" >&6
11816 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11817 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11819 # Is the header compilable?
11820 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11821 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11822 cat >conftest.
$ac_ext <<_ACEOF
11825 cat confdefs.h
>>conftest.
$ac_ext
11826 cat >>conftest.
$ac_ext <<_ACEOF
11827 /* end confdefs.h. */
11828 $ac_includes_default
11829 #include <X11/Xft/Xft.h>
11831 rm -f conftest.
$ac_objext
11832 if { (ac_try
="$ac_compile"
11833 case "(($ac_try" in
11834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11835 *) ac_try_echo=$ac_try;;
11837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11838 (eval "$ac_compile") 2>conftest.er1
11840 grep -v '^ *+' conftest.er1 >conftest.err
11842 cat conftest.err >&5
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } && {
11845 test -z "$ac_c_werror_flag" ||
11846 test ! -s conftest.err
11847 } && test -s conftest.$ac_objext; then
11848 ac_header_compiler=yes
11850 echo "$as_me: failed program was:" >&5
11851 sed 's/^/| /' conftest.$ac_ext >&5
11853 ac_header_compiler=no
11856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11858 echo "${ECHO_T}$ac_header_compiler" >&6; }
11860 # Is the header present?
11861 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11862 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11863 cat >conftest.$ac_ext <<_ACEOF
11866 cat confdefs.h >>conftest.$ac_ext
11867 cat >>conftest.$ac_ext <<_ACEOF
11868 /* end confdefs.h. */
11869 #include <X11/Xft/Xft.h>
11871 if { (ac_try="$ac_cpp conftest.$ac_ext"
11872 case "(($ac_try" in
11873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11874 *) ac_try_echo
=$ac_try;;
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11879 grep -v '^ *+' conftest.er1
>conftest.err
11881 cat conftest.err
>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } >/dev
/null
&& {
11884 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11885 test ! -s conftest.err
11887 ac_header_preproc
=yes
11889 echo "$as_me: failed program was:" >&5
11890 sed 's/^/| /' conftest.
$ac_ext >&5
11892 ac_header_preproc
=no
11895 rm -f conftest.err conftest.
$ac_ext
11896 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11897 echo "${ECHO_T}$ac_header_preproc" >&6; }
11899 # So? What about this header?
11900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11902 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11903 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11904 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11905 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11906 ac_header_preproc
=yes
11909 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11910 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11912 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11914 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11916 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11917 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11918 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11919 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11920 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11924 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11925 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11926 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11929 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
11931 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11932 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11935 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11936 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11937 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11938 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11941 ac_check_lib_save_LIBS
=$LIBS
11942 LIBS
="-lXft $XFT_LIBS $LIBS"
11943 cat >conftest.
$ac_ext <<_ACEOF
11946 cat confdefs.h
>>conftest.
$ac_ext
11947 cat >>conftest.
$ac_ext <<_ACEOF
11948 /* end confdefs.h. */
11950 /* Override any GCC internal prototype to avoid an error.
11951 Use char because int might match the return type of a GCC
11952 builtin and then its argument prototype would still apply. */
11956 char XftFontOpen ();
11960 return XftFontOpen ();
11965 rm -f conftest.
$ac_objext conftest
$ac_exeext
11966 if { (ac_try
="$ac_link"
11967 case "(($ac_try" in
11968 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_link") 2>conftest.er1
11974 grep -v '^ *+' conftest.er1 >conftest.err
11976 cat conftest.err >&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } && {
11979 test -z "$ac_c_werror_flag" ||
11980 test ! -s conftest.err
11981 } && test -s conftest$ac_exeext &&
11982 $as_test_x conftest$ac_exeext; then
11983 ac_cv_lib_Xft_XftFontOpen=yes
11985 echo "$as_me: failed program was:" >&5
11986 sed 's/^/| /' conftest.$ac_ext >&5
11988 ac_cv_lib_Xft_XftFontOpen=no
11991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11992 conftest$ac_exeext conftest.$ac_ext
11993 LIBS=$ac_check_lib_save_LIBS
11995 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11996 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11997 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12005 if test "${HAVE_XFT}" = "yes"; then
12007 cat >>confdefs.h <<\_ACEOF
12012 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12014 CFLAGS="$OLD_CPPFLAGS"
12015 CFLAGS="$OLD_CFLAGS"
12021 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12022 if test x"${HAVE_X11R5}" = xyes; then
12023 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12024 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12025 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12026 echo $ECHO_N "(cached) $ECHO_C" >&6
12028 cat >conftest.$ac_ext <<_ACEOF
12031 cat confdefs.h >>conftest.$ac_ext
12032 cat >>conftest.$ac_ext <<_ACEOF
12033 /* end confdefs.h. */
12035 #include <X11/Intrinsic.h>
12036 #include <X11/Xaw/Simple.h>
12045 rm -f conftest.$ac_objext conftest$ac_exeext
12046 if { (ac_try="$ac_link"
12047 case "(($ac_try" in
12048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12049 *) ac_try_echo
=$ac_try;;
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052 (eval "$ac_link") 2>conftest.er1
12054 grep -v '^ *+' conftest.er1
>conftest.err
12056 cat conftest.err
>&5
12057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12058 (exit $ac_status); } && {
12059 test -z "$ac_c_werror_flag" ||
12060 test ! -s conftest.err
12061 } && test -s conftest
$ac_exeext &&
12062 $as_test_x conftest
$ac_exeext; then
12063 emacs_cv_x11_version_5_with_xaw
=yes
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.
$ac_ext >&5
12068 emacs_cv_x11_version_5_with_xaw
=no
12071 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12072 conftest
$ac_exeext conftest.
$ac_ext
12075 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12076 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12077 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12078 USE_X_TOOLKIT
=LUCID
12080 if test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12081 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12082 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12083 { (exit 1); exit 1; }; }
12085 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12086 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12095 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12097 if test "${USE_X_TOOLKIT}" != "none"; then
12098 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12099 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12100 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 cat >conftest.
$ac_ext <<_ACEOF
12106 cat confdefs.h
>>conftest.
$ac_ext
12107 cat >>conftest.
$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12109 #include <X11/Intrinsic.h>
12113 #if XtSpecificationRelease < 6
12121 rm -f conftest.
$ac_objext conftest
$ac_exeext
12122 if { (ac_try
="$ac_link"
12123 case "(($ac_try" in
12124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12125 *) ac_try_echo=$ac_try;;
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_link") 2>conftest.er1
12130 grep -v '^ *+' conftest.er1 >conftest.err
12132 cat conftest.err >&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } && {
12135 test -z "$ac_c_werror_flag" ||
12136 test ! -s conftest.err
12137 } && test -s conftest$ac_exeext &&
12138 $as_test_x conftest$ac_exeext; then
12139 emacs_cv_x11_toolkit_version_6=yes
12141 echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.$ac_ext >&5
12144 emacs_cv_x11_toolkit_version_6=no
12147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12148 conftest$ac_exeext conftest.$ac_ext
12151 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12152 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12153 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12154 echo "${ECHO_T}6 or newer" >&6; }
12156 cat >>confdefs.h <<\_ACEOF
12157 #define HAVE_X11XTR6 1
12161 { echo "$as_me:$LINENO: result: before 6" >&5
12162 echo "${ECHO_T}before 6" >&6; }
12166 if test x$HAVE_X11XTR6 = xyes; then
12167 LIBS="-lXt -lSM -lICE $LIBS"
12172 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12173 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12174 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 ac_check_lib_save_LIBS=$LIBS
12179 cat >conftest.$ac_ext <<_ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h. */
12186 /* Override any GCC internal prototype to avoid an error.
12187 Use char because int might match the return type of a GCC
12188 builtin and then its argument prototype would still apply. */
12192 char XmuConvertStandardSelection ();
12196 return XmuConvertStandardSelection ();
12201 rm -f conftest.$ac_objext conftest$ac_exeext
12202 if { (ac_try="$ac_link"
12203 case "(($ac_try" in
12204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12205 *) ac_try_echo
=$ac_try;;
12207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12208 (eval "$ac_link") 2>conftest.er1
12210 grep -v '^ *+' conftest.er1
>conftest.err
12212 cat conftest.err
>&5
12213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } && {
12215 test -z "$ac_c_werror_flag" ||
12216 test ! -s conftest.err
12217 } && test -s conftest
$ac_exeext &&
12218 $as_test_x conftest
$ac_exeext; then
12219 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12221 echo "$as_me: failed program was:" >&5
12222 sed 's/^/| /' conftest.
$ac_ext >&5
12224 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12227 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12228 conftest
$ac_exeext conftest.
$ac_ext
12229 LIBS
=$ac_check_lib_save_LIBS
12231 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12232 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12233 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12234 cat >>confdefs.h
<<_ACEOF
12235 #define HAVE_LIBXMU 1
12242 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12245 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12246 if test "${HAVE_X11}" = "yes"; then
12247 if test "${USE_X_TOOLKIT}" != "none"; then
12249 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12250 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12251 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12254 ac_check_lib_save_LIBS
=$LIBS
12255 LIBS
="-lXext $LIBS"
12256 cat >conftest.
$ac_ext <<_ACEOF
12259 cat confdefs.h
>>conftest.
$ac_ext
12260 cat >>conftest.
$ac_ext <<_ACEOF
12261 /* end confdefs.h. */
12263 /* Override any GCC internal prototype to avoid an error.
12264 Use char because int might match the return type of a GCC
12265 builtin and then its argument prototype would still apply. */
12269 char XShapeQueryExtension ();
12273 return XShapeQueryExtension ();
12278 rm -f conftest.
$ac_objext conftest
$ac_exeext
12279 if { (ac_try
="$ac_link"
12280 case "(($ac_try" in
12281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12282 *) ac_try_echo=$ac_try;;
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_link") 2>conftest.er1
12287 grep -v '^ *+' conftest.er1 >conftest.err
12289 cat conftest.err >&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } && {
12292 test -z "$ac_c_werror_flag" ||
12293 test ! -s conftest.err
12294 } && test -s conftest$ac_exeext &&
12295 $as_test_x conftest$ac_exeext; then
12296 ac_cv_lib_Xext_XShapeQueryExtension=yes
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12301 ac_cv_lib_Xext_XShapeQueryExtension=no
12304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12305 conftest$ac_exeext conftest.$ac_ext
12306 LIBS=$ac_check_lib_save_LIBS
12308 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12309 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12310 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12311 cat >>confdefs.h <<_ACEOF
12312 #define HAVE_LIBXEXT 1
12315 LIBS="-lXext $LIBS"
12322 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12323 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12324 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12325 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12326 echo $ECHO_N "(cached) $ECHO_C" >&6
12328 cat >conftest.$ac_ext <<_ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h. */
12338 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12341 Motif version prior to 2.1.
12347 rm -f conftest.$ac_objext
12348 if { (ac_try="$ac_compile"
12349 case "(($ac_try" in
12350 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12351 *) ac_try_echo
=$ac_try;;
12353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354 (eval "$ac_compile") 2>conftest.er1
12356 grep -v '^ *+' conftest.er1
>conftest.err
12358 cat conftest.err
>&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } && {
12361 test -z "$ac_c_werror_flag" ||
12362 test ! -s conftest.err
12363 } && test -s conftest.
$ac_objext; then
12364 emacs_cv_motif_version_2_1
=yes
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.
$ac_ext >&5
12369 emacs_cv_motif_version_2_1
=no
12372 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12374 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12375 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12376 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12377 if test $emacs_cv_motif_version_2_1 = yes; then
12380 cat >>confdefs.h
<<\_ACEOF
12381 #define HAVE_MOTIF_2_1 1
12384 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12385 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12386 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 ac_check_lib_save_LIBS
=$LIBS
12391 cat >conftest.
$ac_ext <<_ACEOF
12394 cat confdefs.h
>>conftest.
$ac_ext
12395 cat >>conftest.
$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12398 /* Override any GCC internal prototype to avoid an error.
12399 Use char because int might match the return type of a GCC
12400 builtin and then its argument prototype would still apply. */
12404 char XpCreateContext ();
12408 return XpCreateContext ();
12413 rm -f conftest.
$ac_objext conftest
$ac_exeext
12414 if { (ac_try
="$ac_link"
12415 case "(($ac_try" in
12416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12417 *) ac_try_echo=$ac_try;;
12419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12420 (eval "$ac_link") 2>conftest.er1
12422 grep -v '^ *+' conftest.er1 >conftest.err
12424 cat conftest.err >&5
12425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426 (exit $ac_status); } && {
12427 test -z "$ac_c_werror_flag" ||
12428 test ! -s conftest.err
12429 } && test -s conftest$ac_exeext &&
12430 $as_test_x conftest$ac_exeext; then
12431 ac_cv_lib_Xp_XpCreateContext=yes
12433 echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12436 ac_cv_lib_Xp_XpCreateContext=no
12439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12440 conftest$ac_exeext conftest.$ac_ext
12441 LIBS=$ac_check_lib_save_LIBS
12443 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12444 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12445 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12449 if test ${HAVE_LIBXP} = yes; then
12451 cat >>confdefs.h <<\_ACEOF
12452 #define HAVE_LIBXP 1
12457 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12458 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12459 if test "${emacs_cv_lesstif+set}" = set; then
12460 echo $ECHO_N "(cached) $ECHO_C" >&6
12462 # We put this in CFLAGS temporarily to precede other -I options
12463 # that might be in CFLAGS temporarily.
12464 # We put this in CPPFLAGS where it precedes the other -I options.
12465 OLD_CPPFLAGS=$CPPFLAGS
12467 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12468 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12469 cat >conftest.$ac_ext <<_ACEOF
12472 cat confdefs.h >>conftest.$ac_ext
12473 cat >>conftest.$ac_ext <<_ACEOF
12474 /* end confdefs.h. */
12475 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12484 rm -f conftest.$ac_objext
12485 if { (ac_try="$ac_compile"
12486 case "(($ac_try" in
12487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12488 *) ac_try_echo
=$ac_try;;
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491 (eval "$ac_compile") 2>conftest.er1
12493 grep -v '^ *+' conftest.er1
>conftest.err
12495 cat conftest.err
>&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); } && {
12498 test -z "$ac_c_werror_flag" ||
12499 test ! -s conftest.err
12500 } && test -s conftest.
$ac_objext; then
12501 emacs_cv_lesstif
=yes
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.
$ac_ext >&5
12506 emacs_cv_lesstif
=no
12509 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12511 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12512 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12513 if test $emacs_cv_lesstif = yes; then
12514 # Make sure this -I option remains in CPPFLAGS after it is set
12515 # back to REAL_CPPFLAGS.
12516 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12517 # have those other -I options anyway. Ultimately, having this
12518 # directory ultimately in CPPFLAGS will be enough.
12519 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12520 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12523 CPPFLAGS
=$OLD_CPPFLAGS
12528 ### Is -lXaw3d available?
12530 if test "${HAVE_X11}" = "yes"; then
12531 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12532 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12533 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12534 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12535 echo $ECHO_N "(cached) $ECHO_C" >&6
12537 cat >conftest.
$ac_ext <<_ACEOF
12540 cat confdefs.h
>>conftest.
$ac_ext
12541 cat >>conftest.
$ac_ext <<_ACEOF
12542 /* end confdefs.h. */
12543 #include <X11/Xaw3d/Scrollbar.h>
12545 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12546 case "(($ac_try" in
12547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12548 *) ac_try_echo=$ac_try;;
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12553 grep -v '^ *+' conftest.er1 >conftest.err
12555 cat conftest.err >&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } >/dev/null && {
12558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12559 test ! -s conftest.err
12561 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12566 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12569 rm -f conftest.err conftest.$ac_ext
12571 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12572 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12573 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12574 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12575 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12576 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12577 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 ac_check_lib_save_LIBS=$LIBS
12580 LIBS="-lXaw3d $LIBS"
12581 cat >conftest.$ac_ext <<_ACEOF
12584 cat confdefs.h >>conftest.$ac_ext
12585 cat >>conftest.$ac_ext <<_ACEOF
12586 /* end confdefs.h. */
12588 /* Override any GCC internal prototype to avoid an error.
12589 Use char because int might match the return type of a GCC
12590 builtin and then its argument prototype would still apply. */
12594 char XawScrollbarSetThumb ();
12598 return XawScrollbarSetThumb ();
12603 rm -f conftest.$ac_objext conftest$ac_exeext
12604 if { (ac_try="$ac_link"
12605 case "(($ac_try" in
12606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12607 *) ac_try_echo
=$ac_try;;
12609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12610 (eval "$ac_link") 2>conftest.er1
12612 grep -v '^ *+' conftest.er1
>conftest.err
12614 cat conftest.err
>&5
12615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12616 (exit $ac_status); } && {
12617 test -z "$ac_c_werror_flag" ||
12618 test ! -s conftest.err
12619 } && test -s conftest
$ac_exeext &&
12620 $as_test_x conftest
$ac_exeext; then
12621 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12623 echo "$as_me: failed program was:" >&5
12624 sed 's/^/| /' conftest.
$ac_ext >&5
12626 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12629 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12630 conftest
$ac_exeext conftest.
$ac_ext
12631 LIBS
=$ac_check_lib_save_LIBS
12633 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12634 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12635 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12642 if test "${HAVE_XAW3D}" = "yes"; then
12644 cat >>confdefs.h
<<\_ACEOF
12645 #define HAVE_XAW3D 1
12654 USE_TOOLKIT_SCROLL_BARS
=no
12655 if test "${with_toolkit_scroll_bars}" != "no"; then
12656 if test "${USE_X_TOOLKIT}" != "none"; then
12657 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12658 cat >>confdefs.h
<<\_ACEOF
12659 #define USE_TOOLKIT_SCROLL_BARS 1
12663 USE_TOOLKIT_SCROLL_BARS
=yes
12664 elif test "${HAVE_XAW3D}" = "yes"; then
12665 cat >>confdefs.h
<<\_ACEOF
12666 #define USE_TOOLKIT_SCROLL_BARS 1
12669 USE_TOOLKIT_SCROLL_BARS
=yes
12671 elif test "${HAVE_GTK}" = "yes"; then
12672 cat >>confdefs.h
<<\_ACEOF
12673 #define USE_TOOLKIT_SCROLL_BARS 1
12676 USE_TOOLKIT_SCROLL_BARS
=yes
12677 elif test "${HAVE_CARBON}" = "yes"; then
12678 cat >>confdefs.h
<<\_ACEOF
12679 #define USE_TOOLKIT_SCROLL_BARS 1
12682 USE_TOOLKIT_SCROLL_BARS
=yes
12686 cat >conftest.
$ac_ext <<_ACEOF
12689 cat confdefs.h
>>conftest.
$ac_ext
12690 cat >>conftest.
$ac_ext <<_ACEOF
12691 /* end confdefs.h. */
12693 #include <X11/Xlib.h>
12694 #include <X11/Xresource.h>
12703 rm -f conftest.
$ac_objext
12704 if { (ac_try
="$ac_compile"
12705 case "(($ac_try" in
12706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12707 *) ac_try_echo=$ac_try;;
12709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12710 (eval "$ac_compile") 2>conftest.er1
12712 grep -v '^ *+' conftest.er1 >conftest.err
12714 cat conftest.err >&5
12715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12716 (exit $ac_status); } && {
12717 test -z "$ac_c_werror_flag" ||
12718 test ! -s conftest.err
12719 } && test -s conftest.$ac_objext; then
12722 cat >>confdefs.h <<\_ACEOF
12727 echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12736 if test "${with_xim}" != "no"; then
12738 cat >>confdefs.h <<\_ACEOF
12745 if test "${HAVE_XIM}" != "no"; then
12746 late_CFLAGS=$CFLAGS
12747 if test "$GCC" = yes; then
12748 CFLAGS="$CFLAGS --pedantic-errors"
12750 cat >conftest.$ac_ext <<_ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h. */
12757 #include <X11/Xlib.h>
12758 #include <X11/Xresource.h>
12767 XPointer *client_data;
12769 /* If we're not using GCC, it's probably not XFree86, and this is
12770 probably right, but we can't use something like --pedantic-errors. */
12771 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12772 char*, XIMProc, XPointer*);
12774 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12780 rm -f conftest.$ac_objext
12781 if { (ac_try="$ac_compile"
12782 case "(($ac_try" in
12783 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12784 *) ac_try_echo
=$ac_try;;
12786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12787 (eval "$ac_compile") 2>conftest.er1
12789 grep -v '^ *+' conftest.er1
>conftest.err
12791 cat conftest.err
>&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); } && {
12794 test -z "$ac_c_werror_flag" ||
12795 test ! -s conftest.err
12796 } && test -s conftest.
$ac_objext; then
12797 emacs_cv_arg6_star
=yes
12799 echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.
$ac_ext >&5
12805 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12807 if test "$emacs_cv_arg6_star" = yes; then
12808 cat >>confdefs.h
<<\_ACEOF
12809 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12813 cat >>confdefs.h
<<\_ACEOF
12814 #define XRegisterIMInstantiateCallback_arg6 XPointer
12818 CFLAGS
=$late_CFLAGS
12821 ### Use -lXpm if available, unless `--with-xpm=no'.
12823 if test "${HAVE_X11}" = "yes"; then
12824 if test "${with_xpm}" != "no"; then
12825 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12826 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12827 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12828 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12831 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12832 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12834 # Is the header compilable?
12835 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12836 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12837 cat >conftest.
$ac_ext <<_ACEOF
12840 cat confdefs.h
>>conftest.
$ac_ext
12841 cat >>conftest.
$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12843 $ac_includes_default
12844 #include <X11/xpm.h>
12846 rm -f conftest.
$ac_objext
12847 if { (ac_try
="$ac_compile"
12848 case "(($ac_try" in
12849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12850 *) ac_try_echo=$ac_try;;
12852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12853 (eval "$ac_compile") 2>conftest.er1
12855 grep -v '^ *+' conftest.er1 >conftest.err
12857 cat conftest.err >&5
12858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12859 (exit $ac_status); } && {
12860 test -z "$ac_c_werror_flag" ||
12861 test ! -s conftest.err
12862 } && test -s conftest.$ac_objext; then
12863 ac_header_compiler=yes
12865 echo "$as_me: failed program was:" >&5
12866 sed 's/^/| /' conftest.$ac_ext >&5
12868 ac_header_compiler=no
12871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12873 echo "${ECHO_T}$ac_header_compiler" >&6; }
12875 # Is the header present?
12876 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12877 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12878 cat >conftest.$ac_ext <<_ACEOF
12881 cat confdefs.h >>conftest.$ac_ext
12882 cat >>conftest.$ac_ext <<_ACEOF
12883 /* end confdefs.h. */
12884 #include <X11/xpm.h>
12886 if { (ac_try="$ac_cpp conftest.$ac_ext"
12887 case "(($ac_try" in
12888 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12889 *) ac_try_echo
=$ac_try;;
12891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12894 grep -v '^ *+' conftest.er1
>conftest.err
12896 cat conftest.err
>&5
12897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12898 (exit $ac_status); } >/dev
/null
&& {
12899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12900 test ! -s conftest.err
12902 ac_header_preproc
=yes
12904 echo "$as_me: failed program was:" >&5
12905 sed 's/^/| /' conftest.
$ac_ext >&5
12907 ac_header_preproc
=no
12910 rm -f conftest.err conftest.
$ac_ext
12911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12912 echo "${ECHO_T}$ac_header_preproc" >&6; }
12914 # So? What about this header?
12915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12917 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12918 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12919 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12920 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12921 ac_header_preproc
=yes
12924 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12925 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12926 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12927 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12928 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12929 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12931 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12932 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12933 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12934 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12935 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12939 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12940 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12941 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12942 echo $ECHO_N "(cached) $ECHO_C" >&6
12944 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12946 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12947 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12950 if test $ac_cv_header_X11_xpm_h = yes; then
12951 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12952 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12953 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 ac_check_lib_save_LIBS
=$LIBS
12957 LIBS
="-lXpm -lX11 $LIBS"
12958 cat >conftest.
$ac_ext <<_ACEOF
12961 cat confdefs.h
>>conftest.
$ac_ext
12962 cat >>conftest.
$ac_ext <<_ACEOF
12963 /* end confdefs.h. */
12965 /* Override any GCC internal prototype to avoid an error.
12966 Use char because int might match the return type of a GCC
12967 builtin and then its argument prototype would still apply. */
12971 char XpmReadFileToPixmap ();
12975 return XpmReadFileToPixmap ();
12980 rm -f conftest.
$ac_objext conftest
$ac_exeext
12981 if { (ac_try
="$ac_link"
12982 case "(($ac_try" in
12983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12984 *) ac_try_echo=$ac_try;;
12986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12987 (eval "$ac_link") 2>conftest.er1
12989 grep -v '^ *+' conftest.er1 >conftest.err
12991 cat conftest.err >&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); } && {
12994 test -z "$ac_c_werror_flag" ||
12995 test ! -s conftest.err
12996 } && test -s conftest$ac_exeext &&
12997 $as_test_x conftest$ac_exeext; then
12998 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13000 echo "$as_me: failed program was:" >&5
13001 sed 's/^/| /' conftest.$ac_ext >&5
13003 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13007 conftest$ac_exeext conftest.$ac_ext
13008 LIBS=$ac_check_lib_save_LIBS
13010 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13011 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13012 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13019 if test "${HAVE_XPM}" = "yes"; then
13020 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13021 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13022 cat >conftest.$ac_ext <<_ACEOF
13025 cat confdefs.h >>conftest.$ac_ext
13026 cat >>conftest.$ac_ext <<_ACEOF
13027 /* end confdefs.h. */
13028 #include "X11/xpm.h"
13029 #ifndef XpmReturnAllocPixels
13030 no_return_alloc_pixels
13034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13035 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13043 if test "${HAVE_XPM}" = "yes"; then
13044 { echo "$as_me:$LINENO: result: yes" >&5
13045 echo "${ECHO_T}yes" >&6; }
13047 { echo "$as_me:$LINENO: result: no" >&5
13048 echo "${ECHO_T}no" >&6; }
13053 if test "${HAVE_XPM}" = "yes"; then
13055 cat >>confdefs.h <<\_ACEOF
13062 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13064 if test "${HAVE_X11}" = "yes"; then
13065 if test "${with_jpeg}" != "no"; then
13066 if test "${ac_cv_header_jerror_h+set}" = set; then
13067 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13068 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13069 if test "${ac_cv_header_jerror_h+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13072 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13073 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13075 # Is the header compilable?
13076 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13077 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13078 cat >conftest.$ac_ext <<_ACEOF
13081 cat confdefs.h >>conftest.$ac_ext
13082 cat >>conftest.$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13084 $ac_includes_default
13085 #include <jerror.h>
13087 rm -f conftest.$ac_objext
13088 if { (ac_try="$ac_compile"
13089 case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_compile") 2>conftest.er1
13096 grep -v '^
*+' conftest.er1 >conftest.err
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } && {
13101 test -z "$ac_c_werror_flag" ||
13102 test ! -s conftest.err
13103 } && test -s conftest.$ac_objext; then
13104 ac_header_compiler=yes
13106 echo "$as_me: failed program was:" >&5
13107 sed 's
/^
/|
/' conftest.$ac_ext >&5
13109 ac_header_compiler=no
13112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13114 echo "${ECHO_T}$ac_header_compiler" >&6; }
13116 # Is the header present?
13117 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13118 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13119 cat >conftest.$ac_ext <<_ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13125 #include <jerror.h>
13127 if { (ac_try="$ac_cpp conftest.$ac_ext"
13128 case "(($ac_try" in
13129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13130 *) ac_try_echo=$ac_try;;
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13135 grep -v '^
*+' conftest.er1 >conftest.err
13137 cat conftest.err >&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } >/dev/null && {
13140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13141 test ! -s conftest.err
13143 ac_header_preproc=yes
13145 echo "$as_me: failed program was:" >&5
13146 sed 's
/^
/|
/' conftest.$ac_ext >&5
13148 ac_header_preproc=no
13151 rm -f conftest.err conftest.$ac_ext
13152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13153 echo "${ECHO_T}$ac_header_preproc" >&6; }
13155 # So? What about this header?
13156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13158 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13159 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13160 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13161 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13162 ac_header_preproc=yes
13165 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13166 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13168 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13170 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13172 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13174 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13175 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13176 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13180 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13181 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13182 if test "${ac_cv_header_jerror_h+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13185 ac_cv_header_jerror_h=$ac_header_preproc
13187 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13188 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13191 if test $ac_cv_header_jerror_h = yes; then
13192 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13193 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13194 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13195 echo $ECHO_N "(cached) $ECHO_C" >&6
13197 ac_check_lib_save_LIBS=$LIBS
13198 LIBS="-ljpeg $LIBS"
13199 cat >conftest.$ac_ext <<_ACEOF
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13206 /* Override any GCC internal prototype to avoid an error.
13207 Use char because int might match the return type of a GCC
13208 builtin and then its argument prototype would still apply. */
13212 char jpeg_destroy_compress ();
13216 return jpeg_destroy_compress ();
13221 rm -f conftest.$ac_objext conftest$ac_exeext
13222 if { (ac_try="$ac_link"
13223 case "(($ac_try" in
13224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_link") 2>conftest.er1
13230 grep -v '^
*+' conftest.er1 >conftest.err
13232 cat conftest.err >&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } && {
13235 test -z "$ac_c_werror_flag" ||
13236 test ! -s conftest.err
13237 } && test -s conftest$ac_exeext &&
13238 $as_test_x conftest$ac_exeext; then
13239 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13241 echo "$as_me: failed program was:" >&5
13242 sed 's
/^
/|
/' conftest.$ac_ext >&5
13244 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13248 conftest$ac_exeext conftest.$ac_ext
13249 LIBS=$ac_check_lib_save_LIBS
13251 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13252 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13253 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13263 if test "${HAVE_JPEG}" = "yes"; then
13264 cat >>confdefs.h <<\_ACEOF
13265 #define HAVE_JPEG 1
13268 cat >conftest.$ac_ext <<_ACEOF
13271 cat confdefs.h >>conftest.$ac_ext
13272 cat >>conftest.$ac_ext <<_ACEOF
13273 /* end confdefs.h. */
13274 #include <jpeglib.h>
13275 version=JPEG_LIB_VERSION
13278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13279 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13280 cat >>confdefs.h <<\_ACEOF
13281 #define HAVE_JPEG 1
13285 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13286 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13294 ### Use -lpng if available, unless `--with-png=no'.
13296 if test "${HAVE_X11}" = "yes"; then
13297 if test "${with_png}" != "no"; then
13298 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13299 # in /usr/include/libpng.
13302 for ac_header
in png.h libpng
/png.h
13304 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13305 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13306 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13307 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13308 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13309 echo $ECHO_N "(cached) $ECHO_C" >&6
13311 ac_res
=`eval echo '${'$as_ac_Header'}'`
13312 { echo "$as_me:$LINENO: result: $ac_res" >&5
13313 echo "${ECHO_T}$ac_res" >&6; }
13315 # Is the header compilable?
13316 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13318 cat >conftest.
$ac_ext <<_ACEOF
13321 cat confdefs.h
>>conftest.
$ac_ext
13322 cat >>conftest.
$ac_ext <<_ACEOF
13323 /* end confdefs.h. */
13324 $ac_includes_default
13325 #include <$ac_header>
13327 rm -f conftest.
$ac_objext
13328 if { (ac_try
="$ac_compile"
13329 case "(($ac_try" in
13330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_compile") 2>conftest.er1
13336 grep -v '^ *+' conftest.er1 >conftest.err
13338 cat conftest.err >&5
13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13340 (exit $ac_status); } && {
13341 test -z "$ac_c_werror_flag" ||
13342 test ! -s conftest.err
13343 } && test -s conftest.$ac_objext; then
13344 ac_header_compiler=yes
13346 echo "$as_me: failed program was:" >&5
13347 sed 's/^/| /' conftest.$ac_ext >&5
13349 ac_header_compiler=no
13352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13353 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13354 echo "${ECHO_T}$ac_header_compiler" >&6; }
13356 # Is the header present?
13357 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13358 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13359 cat >conftest.$ac_ext <<_ACEOF
13362 cat confdefs.h >>conftest.$ac_ext
13363 cat >>conftest.$ac_ext <<_ACEOF
13364 /* end confdefs.h. */
13365 #include <$ac_header>
13367 if { (ac_try="$ac_cpp conftest.$ac_ext"
13368 case "(($ac_try" in
13369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13370 *) ac_try_echo
=$ac_try;;
13372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13375 grep -v '^ *+' conftest.er1
>conftest.err
13377 cat conftest.err
>&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); } >/dev
/null
&& {
13380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13381 test ! -s conftest.err
13383 ac_header_preproc
=yes
13385 echo "$as_me: failed program was:" >&5
13386 sed 's/^/| /' conftest.
$ac_ext >&5
13388 ac_header_preproc
=no
13391 rm -f conftest.err conftest.
$ac_ext
13392 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13393 echo "${ECHO_T}$ac_header_preproc" >&6; }
13395 # So? What about this header?
13396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13399 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13401 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13402 ac_header_preproc
=yes
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13406 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13408 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13410 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13412 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13414 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13416 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13420 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13421 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13422 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
13425 eval "$as_ac_Header=\$ac_header_preproc"
13427 ac_res
=`eval echo '${'$as_ac_Header'}'`
13428 { echo "$as_me:$LINENO: result: $ac_res" >&5
13429 echo "${ECHO_T}$ac_res" >&6; }
13432 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13433 cat >>confdefs.h
<<_ACEOF
13434 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13441 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13442 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13443 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13444 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13445 echo $ECHO_N "(cached) $ECHO_C" >&6
13447 ac_check_lib_save_LIBS
=$LIBS
13448 LIBS
="-lpng -lz -lm $LIBS"
13449 cat >conftest.
$ac_ext <<_ACEOF
13452 cat confdefs.h
>>conftest.
$ac_ext
13453 cat >>conftest.
$ac_ext <<_ACEOF
13454 /* end confdefs.h. */
13456 /* Override any GCC internal prototype to avoid an error.
13457 Use char because int might match the return type of a GCC
13458 builtin and then its argument prototype would still apply. */
13462 char png_get_channels ();
13466 return png_get_channels ();
13471 rm -f conftest.
$ac_objext conftest
$ac_exeext
13472 if { (ac_try
="$ac_link"
13473 case "(($ac_try" in
13474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13475 *) ac_try_echo=$ac_try;;
13477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13478 (eval "$ac_link") 2>conftest.er1
13480 grep -v '^ *+' conftest.er1 >conftest.err
13482 cat conftest.err >&5
13483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13484 (exit $ac_status); } && {
13485 test -z "$ac_c_werror_flag" ||
13486 test ! -s conftest.err
13487 } && test -s conftest$ac_exeext &&
13488 $as_test_x conftest$ac_exeext; then
13489 ac_cv_lib_png_png_get_channels=yes
13491 echo "$as_me: failed program was:" >&5
13492 sed 's/^/| /' conftest.$ac_ext >&5
13494 ac_cv_lib_png_png_get_channels=no
13497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13498 conftest$ac_exeext conftest.$ac_ext
13499 LIBS=$ac_check_lib_save_LIBS
13501 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13502 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13503 if test $ac_cv_lib_png_png_get_channels = yes; then
13510 if test "${HAVE_PNG}" = "yes"; then
13512 cat >>confdefs.h <<\_ACEOF
13519 ### Use -ltiff if available, unless `--with-tiff=no
'.
13521 if test "${HAVE_X11}" = "yes"; then
13522 if test "${with_tiff}" != "no"; then
13523 if test "${ac_cv_header_tiffio_h+set}" = set; then
13524 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13525 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13526 if test "${ac_cv_header_tiffio_h+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13529 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13530 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13532 # Is the header compilable?
13533 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13534 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13535 cat >conftest.$ac_ext <<_ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h. */
13541 $ac_includes_default
13542 #include <tiffio.h>
13544 rm -f conftest.$ac_objext
13545 if { (ac_try="$ac_compile"
13546 case "(($ac_try" in
13547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13548 *) ac_try_echo=$ac_try;;
13550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13551 (eval "$ac_compile") 2>conftest.er1
13553 grep -v '^
*+' conftest.er1 >conftest.err
13555 cat conftest.err >&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } && {
13558 test -z "$ac_c_werror_flag" ||
13559 test ! -s conftest.err
13560 } && test -s conftest.$ac_objext; then
13561 ac_header_compiler=yes
13563 echo "$as_me: failed program was:" >&5
13564 sed 's
/^
/|
/' conftest.$ac_ext >&5
13566 ac_header_compiler=no
13569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13571 echo "${ECHO_T}$ac_header_compiler" >&6; }
13573 # Is the header present?
13574 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13575 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13576 cat >conftest.$ac_ext <<_ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13582 #include <tiffio.h>
13584 if { (ac_try="$ac_cpp conftest.$ac_ext"
13585 case "(($ac_try" in
13586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587 *) ac_try_echo=$ac_try;;
13589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13592 grep -v '^
*+' conftest.er1 >conftest.err
13594 cat conftest.err >&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } >/dev/null && {
13597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13598 test ! -s conftest.err
13600 ac_header_preproc=yes
13602 echo "$as_me: failed program was:" >&5
13603 sed 's
/^
/|
/' conftest.$ac_ext >&5
13605 ac_header_preproc=no
13608 rm -f conftest.err conftest.$ac_ext
13609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13610 echo "${ECHO_T}$ac_header_preproc" >&6; }
13612 # So? What about this header?
13613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13615 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13616 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13618 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13619 ac_header_preproc=yes
13622 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13623 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13624 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13625 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13626 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13627 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13628 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13629 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13630 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13631 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13632 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13633 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13637 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13638 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13639 if test "${ac_cv_header_tiffio_h+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13642 ac_cv_header_tiffio_h=$ac_header_preproc
13644 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13645 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13648 if test $ac_cv_header_tiffio_h = yes; then
13650 # At least one tiff package requires the jpeg library.
13651 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13652 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13653 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13654 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13655 echo $ECHO_N "(cached) $ECHO_C" >&6
13657 ac_check_lib_save_LIBS=$LIBS
13658 LIBS="-ltiff $tifflibs $LIBS"
13659 cat >conftest.$ac_ext <<_ACEOF
13662 cat confdefs.h >>conftest.$ac_ext
13663 cat >>conftest.$ac_ext <<_ACEOF
13664 /* end confdefs.h. */
13666 /* Override any GCC internal prototype to avoid an error.
13667 Use char because int might match the return type of a GCC
13668 builtin and then its argument prototype would still apply. */
13672 char TIFFGetVersion ();
13676 return TIFFGetVersion ();
13681 rm -f conftest.$ac_objext conftest$ac_exeext
13682 if { (ac_try="$ac_link"
13683 case "(($ac_try" in
13684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685 *) ac_try_echo=$ac_try;;
13687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13688 (eval "$ac_link") 2>conftest.er1
13690 grep -v '^
*+' conftest.er1 >conftest.err
13692 cat conftest.err >&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } && {
13695 test -z "$ac_c_werror_flag" ||
13696 test ! -s conftest.err
13697 } && test -s conftest$ac_exeext &&
13698 $as_test_x conftest$ac_exeext; then
13699 ac_cv_lib_tiff_TIFFGetVersion=yes
13701 echo "$as_me: failed program was:" >&5
13702 sed 's
/^
/|
/' conftest.$ac_ext >&5
13704 ac_cv_lib_tiff_TIFFGetVersion=no
13707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13708 conftest$ac_exeext conftest.$ac_ext
13709 LIBS=$ac_check_lib_save_LIBS
13711 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13712 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13713 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13722 if test "${HAVE_TIFF}" = "yes"; then
13724 cat >>confdefs.h <<\_ACEOF
13725 #define HAVE_TIFF 1
13731 ### Use -lgif if available, unless `--with-gif=no'.
13733 if test "${HAVE_X11}" = "yes"; then
13734 if test "${with_gif}" != "no"; then
13735 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13736 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13737 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13738 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13739 echo $ECHO_N "(cached) $ECHO_C" >&6
13741 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13742 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13744 # Is the header compilable?
13745 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13746 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13747 cat >conftest.
$ac_ext <<_ACEOF
13750 cat confdefs.h
>>conftest.
$ac_ext
13751 cat >>conftest.
$ac_ext <<_ACEOF
13752 /* end confdefs.h. */
13753 $ac_includes_default
13754 #include <gif_lib.h>
13756 rm -f conftest.
$ac_objext
13757 if { (ac_try
="$ac_compile"
13758 case "(($ac_try" in
13759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13760 *) ac_try_echo=$ac_try;;
13762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13763 (eval "$ac_compile") 2>conftest.er1
13765 grep -v '^ *+' conftest.er1 >conftest.err
13767 cat conftest.err >&5
13768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13769 (exit $ac_status); } && {
13770 test -z "$ac_c_werror_flag" ||
13771 test ! -s conftest.err
13772 } && test -s conftest.$ac_objext; then
13773 ac_header_compiler=yes
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13778 ac_header_compiler=no
13781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13782 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13783 echo "${ECHO_T}$ac_header_compiler" >&6; }
13785 # Is the header present?
13786 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13787 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13788 cat >conftest.$ac_ext <<_ACEOF
13791 cat confdefs.h >>conftest.$ac_ext
13792 cat >>conftest.$ac_ext <<_ACEOF
13793 /* end confdefs.h. */
13794 #include <gif_lib.h>
13796 if { (ac_try="$ac_cpp conftest.$ac_ext"
13797 case "(($ac_try" in
13798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13799 *) ac_try_echo
=$ac_try;;
13801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13804 grep -v '^ *+' conftest.er1
>conftest.err
13806 cat conftest.err
>&5
13807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808 (exit $ac_status); } >/dev
/null
&& {
13809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13810 test ! -s conftest.err
13812 ac_header_preproc
=yes
13814 echo "$as_me: failed program was:" >&5
13815 sed 's/^/| /' conftest.
$ac_ext >&5
13817 ac_header_preproc
=no
13820 rm -f conftest.err conftest.
$ac_ext
13821 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13822 echo "${ECHO_T}$ac_header_preproc" >&6; }
13824 # So? What about this header?
13825 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13827 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13828 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13829 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13830 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13831 ac_header_preproc
=yes
13834 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13835 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13836 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13837 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13838 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13839 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13840 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13841 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13842 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13843 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13844 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13845 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13849 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13850 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13851 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13852 echo $ECHO_N "(cached) $ECHO_C" >&6
13854 ac_cv_header_gif_lib_h
=$ac_header_preproc
13856 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13857 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13860 if test $ac_cv_header_gif_lib_h = yes; then
13861 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13862 # Earlier versions can crash Emacs.
13863 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13864 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13865 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13868 ac_check_lib_save_LIBS
=$LIBS
13869 LIBS
="-lungif $LIBS"
13870 cat >conftest.
$ac_ext <<_ACEOF
13873 cat confdefs.h
>>conftest.
$ac_ext
13874 cat >>conftest.
$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13877 /* Override any GCC internal prototype to avoid an error.
13878 Use char because int might match the return type of a GCC
13879 builtin and then its argument prototype would still apply. */
13883 char EGifPutExtensionLast ();
13887 return EGifPutExtensionLast ();
13892 rm -f conftest.
$ac_objext conftest
$ac_exeext
13893 if { (ac_try
="$ac_link"
13894 case "(($ac_try" in
13895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13896 *) ac_try_echo=$ac_try;;
13898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13899 (eval "$ac_link") 2>conftest.er1
13901 grep -v '^ *+' conftest.er1 >conftest.err
13903 cat conftest.err >&5
13904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13905 (exit $ac_status); } && {
13906 test -z "$ac_c_werror_flag" ||
13907 test ! -s conftest.err
13908 } && test -s conftest$ac_exeext &&
13909 $as_test_x conftest$ac_exeext; then
13910 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13912 echo "$as_me: failed program was:" >&5
13913 sed 's/^/| /' conftest.$ac_ext >&5
13915 ac_cv_lib_ungif_EGifPutExtensionLast=no
13918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13919 conftest$ac_exeext conftest.$ac_ext
13920 LIBS=$ac_check_lib_save_LIBS
13922 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13923 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13924 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13933 if test "${HAVE_GIF}" = "yes"; then
13935 cat >>confdefs.h <<\_ACEOF
13942 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13943 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13944 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13945 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13949 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13951 # Is the header compilable?
13952 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13953 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13954 cat >conftest.$ac_ext <<_ACEOF
13957 cat confdefs.h >>conftest.$ac_ext
13958 cat >>conftest.$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13960 $ac_includes_default
13961 #include <malloc/malloc.h>
13963 rm -f conftest.$ac_objext
13964 if { (ac_try="$ac_compile"
13965 case "(($ac_try" in
13966 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13967 *) ac_try_echo
=$ac_try;;
13969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13970 (eval "$ac_compile") 2>conftest.er1
13972 grep -v '^ *+' conftest.er1
>conftest.err
13974 cat conftest.err
>&5
13975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13976 (exit $ac_status); } && {
13977 test -z "$ac_c_werror_flag" ||
13978 test ! -s conftest.err
13979 } && test -s conftest.
$ac_objext; then
13980 ac_header_compiler
=yes
13982 echo "$as_me: failed program was:" >&5
13983 sed 's/^/| /' conftest.
$ac_ext >&5
13985 ac_header_compiler
=no
13988 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13990 echo "${ECHO_T}$ac_header_compiler" >&6; }
13992 # Is the header present?
13993 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13994 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13995 cat >conftest.
$ac_ext <<_ACEOF
13998 cat confdefs.h
>>conftest.
$ac_ext
13999 cat >>conftest.
$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 #include <malloc/malloc.h>
14003 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14004 case "(($ac_try" in
14005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14006 *) ac_try_echo=$ac_try;;
14008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14011 grep -v '^ *+' conftest.er1 >conftest.err
14013 cat conftest.err >&5
14014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14015 (exit $ac_status); } >/dev/null && {
14016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14017 test ! -s conftest.err
14019 ac_header_preproc=yes
14021 echo "$as_me: failed program was:" >&5
14022 sed 's/^/| /' conftest.$ac_ext >&5
14024 ac_header_preproc=no
14027 rm -f conftest.err conftest.$ac_ext
14028 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14029 echo "${ECHO_T}$ac_header_preproc" >&6; }
14031 # So? What about this header?
14032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14034 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14035 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14036 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14037 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14038 ac_header_preproc=yes
14041 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14042 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14044 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14046 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14047 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14048 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14049 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14050 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14052 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14056 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14057 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14058 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14059 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14063 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14064 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14067 if test $ac_cv_header_malloc_malloc_h = yes; then
14069 cat >>confdefs.h <<\_ACEOF
14070 #define HAVE_MALLOC_MALLOC_H 1
14077 ### Use Mac OS X Carbon API to implement GUI.
14078 if test "${HAVE_CARBON}" = "yes"; then
14080 cat >>confdefs.h <<\_ACEOF
14081 #define HAVE_CARBON 1
14084 ## Specify the install directory
14086 if test "${carbon_appdir_x}" != ""; then
14087 case ${carbon_appdir_x} in
14088 y | ye | yes) carbon_appdir=/Applications ;;
14089 * ) carbon_appdir=${carbon_appdir_x} ;;
14092 # We also have mouse menus.
14096 ### Use session management (-lSM -lICE) if available
14098 if test "${HAVE_X11}" = "yes"; then
14099 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14100 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14101 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14102 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14103 echo $ECHO_N "(cached) $ECHO_C" >&6
14105 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14106 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14108 # Is the header compilable?
14109 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14110 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14111 cat >conftest.$ac_ext <<_ACEOF
14114 cat confdefs.h >>conftest.$ac_ext
14115 cat >>conftest.$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14117 $ac_includes_default
14118 #include <X11/SM/SMlib.h>
14120 rm -f conftest.$ac_objext
14121 if { (ac_try="$ac_compile"
14122 case "(($ac_try" in
14123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14124 *) ac_try_echo
=$ac_try;;
14126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14127 (eval "$ac_compile") 2>conftest.er1
14129 grep -v '^ *+' conftest.er1
>conftest.err
14131 cat conftest.err
>&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); } && {
14134 test -z "$ac_c_werror_flag" ||
14135 test ! -s conftest.err
14136 } && test -s conftest.
$ac_objext; then
14137 ac_header_compiler
=yes
14139 echo "$as_me: failed program was:" >&5
14140 sed 's/^/| /' conftest.
$ac_ext >&5
14142 ac_header_compiler
=no
14145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14147 echo "${ECHO_T}$ac_header_compiler" >&6; }
14149 # Is the header present?
14150 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14151 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14152 cat >conftest.
$ac_ext <<_ACEOF
14155 cat confdefs.h
>>conftest.
$ac_ext
14156 cat >>conftest.
$ac_ext <<_ACEOF
14157 /* end confdefs.h. */
14158 #include <X11/SM/SMlib.h>
14160 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14161 case "(($ac_try" in
14162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14163 *) ac_try_echo=$ac_try;;
14165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14168 grep -v '^ *+' conftest.er1 >conftest.err
14170 cat conftest.err >&5
14171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14172 (exit $ac_status); } >/dev/null && {
14173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14174 test ! -s conftest.err
14176 ac_header_preproc=yes
14178 echo "$as_me: failed program was:" >&5
14179 sed 's/^/| /' conftest.$ac_ext >&5
14181 ac_header_preproc=no
14184 rm -f conftest.err conftest.$ac_ext
14185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14186 echo "${ECHO_T}$ac_header_preproc" >&6; }
14188 # So? What about this header?
14189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14191 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14192 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14193 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14194 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14195 ac_header_preproc=yes
14198 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14199 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14200 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14201 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14202 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14203 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14204 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14205 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14206 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14207 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14208 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14209 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14213 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14214 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14215 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14216 echo $ECHO_N "(cached) $ECHO_C" >&6
14218 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14220 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14221 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14224 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14225 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14226 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14227 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14228 echo $ECHO_N "(cached) $ECHO_C" >&6
14230 ac_check_lib_save_LIBS=$LIBS
14231 LIBS="-lSM -lICE $LIBS"
14232 cat >conftest.$ac_ext <<_ACEOF
14235 cat confdefs.h >>conftest.$ac_ext
14236 cat >>conftest.$ac_ext <<_ACEOF
14237 /* end confdefs.h. */
14239 /* Override any GCC internal prototype to avoid an error.
14240 Use char because int might match the return type of a GCC
14241 builtin and then its argument prototype would still apply. */
14245 char SmcOpenConnection ();
14249 return SmcOpenConnection ();
14254 rm -f conftest.$ac_objext conftest$ac_exeext
14255 if { (ac_try="$ac_link"
14256 case "(($ac_try" in
14257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14258 *) ac_try_echo
=$ac_try;;
14260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14261 (eval "$ac_link") 2>conftest.er1
14263 grep -v '^ *+' conftest.er1
>conftest.err
14265 cat conftest.err
>&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } && {
14268 test -z "$ac_c_werror_flag" ||
14269 test ! -s conftest.err
14270 } && test -s conftest
$ac_exeext &&
14271 $as_test_x conftest
$ac_exeext; then
14272 ac_cv_lib_SM_SmcOpenConnection
=yes
14274 echo "$as_me: failed program was:" >&5
14275 sed 's/^/| /' conftest.
$ac_ext >&5
14277 ac_cv_lib_SM_SmcOpenConnection
=no
14280 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14281 conftest
$ac_exeext conftest.
$ac_ext
14282 LIBS
=$ac_check_lib_save_LIBS
14284 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14285 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14286 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14294 if test "${HAVE_X_SM}" = "yes"; then
14296 cat >>confdefs.h
<<\_ACEOF
14297 #define HAVE_X_SM 1
14302 *) LIBS
="-lSM -lICE $LIBS" ;;
14307 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14308 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14309 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14310 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14311 echo $ECHO_N "(cached) $ECHO_C" >&6
14313 cat >conftest.
$ac_ext <<_ACEOF
14316 cat confdefs.h
>>conftest.
$ac_ext
14317 cat >>conftest.
$ac_ext <<_ACEOF
14318 /* end confdefs.h. */
14328 rm -f conftest.
$ac_objext conftest
$ac_exeext
14329 if { (ac_try
="$ac_link"
14330 case "(($ac_try" in
14331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_link") 2>conftest.er1
14337 grep -v '^ *+' conftest.er1 >conftest.err
14339 cat conftest.err >&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); } && {
14342 test -z "$ac_c_werror_flag" ||
14343 test ! -s conftest.err
14344 } && test -s conftest$ac_exeext &&
14345 $as_test_x conftest$ac_exeext; then
14346 emacs_cv_netdb_declares_h_errno=yes
14348 echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14351 emacs_cv_netdb_declares_h_errno=no
14354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14355 conftest$ac_exeext conftest.$ac_ext
14357 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14358 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14359 if test $emacs_cv_netdb_declares_h_errno = yes; then
14361 cat >>confdefs.h <<\_ACEOF
14362 #define HAVE_H_ERRNO 1
14367 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14368 # for constant arguments. Useless!
14369 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14370 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14371 if test "${ac_cv_working_alloca_h+set}" = set; then
14372 echo $ECHO_N "(cached) $ECHO_C" >&6
14374 cat >conftest.$ac_ext <<_ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14380 #include <alloca.h>
14384 char *p = (char *) alloca (2 * sizeof (int));
14390 rm -f conftest.$ac_objext conftest$ac_exeext
14391 if { (ac_try="$ac_link"
14392 case "(($ac_try" in
14393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14394 *) ac_try_echo
=$ac_try;;
14396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14397 (eval "$ac_link") 2>conftest.er1
14399 grep -v '^ *+' conftest.er1
>conftest.err
14401 cat conftest.err
>&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } && {
14404 test -z "$ac_c_werror_flag" ||
14405 test ! -s conftest.err
14406 } && test -s conftest
$ac_exeext &&
14407 $as_test_x conftest
$ac_exeext; then
14408 ac_cv_working_alloca_h
=yes
14410 echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.
$ac_ext >&5
14413 ac_cv_working_alloca_h
=no
14416 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14417 conftest
$ac_exeext conftest.
$ac_ext
14419 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14420 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14421 if test $ac_cv_working_alloca_h = yes; then
14423 cat >>confdefs.h
<<\_ACEOF
14424 #define HAVE_ALLOCA_H 1
14429 { echo "$as_me:$LINENO: checking for alloca" >&5
14430 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14431 if test "${ac_cv_func_alloca_works+set}" = set; then
14432 echo $ECHO_N "(cached) $ECHO_C" >&6
14434 cat >conftest.
$ac_ext <<_ACEOF
14437 cat confdefs.h
>>conftest.
$ac_ext
14438 cat >>conftest.
$ac_ext <<_ACEOF
14439 /* end confdefs.h. */
14441 # define alloca __builtin_alloca
14444 # include <malloc.h>
14445 # define alloca _alloca
14447 # ifdef HAVE_ALLOCA_H
14448 # include <alloca.h>
14453 # ifndef alloca /* predefined by HP cc +Olibcalls */
14464 char *p = (char *) alloca (1);
14470 rm -f conftest.
$ac_objext conftest
$ac_exeext
14471 if { (ac_try
="$ac_link"
14472 case "(($ac_try" in
14473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14474 *) ac_try_echo=$ac_try;;
14476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14477 (eval "$ac_link") 2>conftest.er1
14479 grep -v '^ *+' conftest.er1 >conftest.err
14481 cat conftest.err >&5
14482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14483 (exit $ac_status); } && {
14484 test -z "$ac_c_werror_flag" ||
14485 test ! -s conftest.err
14486 } && test -s conftest$ac_exeext &&
14487 $as_test_x conftest$ac_exeext; then
14488 ac_cv_func_alloca_works=yes
14490 echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14493 ac_cv_func_alloca_works=no
14496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14497 conftest$ac_exeext conftest.$ac_ext
14499 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14500 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14502 if test $ac_cv_func_alloca_works = yes; then
14504 cat >>confdefs.h <<\_ACEOF
14505 #define HAVE_ALLOCA 1
14509 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14510 # that cause trouble. Some versions do not even contain alloca or
14511 # contain a buggy version. If you still want to use their alloca,
14512 # use ar to extract alloca.o from them instead of compiling alloca.c.
14514 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14516 cat >>confdefs.h <<\_ACEOF
14521 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14522 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14523 if test "${ac_cv_os_cray+set}" = set; then
14524 echo $ECHO_N "(cached
) $ECHO_C" >&6
14526 cat >conftest.$ac_ext <<_ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14532 #if defined CRAY && ! defined CRAY2
14539 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14540 $EGREP "webecray
" >/dev/null 2>&1; then
14548 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14549 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14550 if test $ac_cv_os_cray = yes; then
14551 for ac_func in _getb67 GETB67 getb67; do
14552 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14553 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14554 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14555 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14556 echo $ECHO_N "(cached
) $ECHO_C" >&6
14558 cat >conftest.$ac_ext <<_ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h. */
14564 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14566 #define $ac_func innocuous_$ac_func
14568 /* System header to define __stub macros and hopefully few prototypes,
14569 which can conflict with char $ac_func (); below.
14570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14571 <limits.h> exists even on freestanding compilers. */
14574 # include <limits.h>
14576 # include <assert.h>
14581 /* Override any GCC internal prototype to avoid an error.
14582 Use char because int might match the return type of a GCC
14583 builtin and then its argument prototype would still apply. */
14588 /* The GNU C library defines this for functions which it implements
14589 to always fail with ENOSYS. Some functions are actually named
14590 something starting with __ and the normal name is an alias. */
14591 #if defined __stub_$ac_func || defined __stub___$ac_func
14598 return $ac_func ();
14603 rm -f conftest.$ac_objext conftest$ac_exeext
14604 if { (ac_try="$ac_link"
14605 case "(($ac_try" in
14606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14607 *) ac_try_echo=$ac_try;;
14609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14610 (eval "$ac_link") 2>conftest.er1
14612 grep -v '^ *+' conftest.er1 >conftest.err
14614 cat conftest.err >&5
14615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14616 (exit $ac_status); } && {
14617 test -z "$ac_c_werror_flag" ||
14618 test ! -s conftest.err
14619 } && test -s conftest$ac_exeext &&
14620 $as_test_x conftest$ac_exeext; then
14621 eval "$as_ac_var=yes"
14623 echo "$as_me: failed program was
:" >&5
14624 sed 's/^/| /' conftest.$ac_ext >&5
14626 eval "$as_ac_var=no
"
14629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14630 conftest$ac_exeext conftest.$ac_ext
14632 ac_res=`eval echo '${'$as_ac_var'}'`
14633 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14634 echo "${ECHO_T}$ac_res" >&6; }
14635 if test `eval echo '${'$as_ac_var'}'` = yes; then
14637 cat >>confdefs.h <<_ACEOF
14638 #define CRAY_STACKSEG_END $ac_func
14647 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14648 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14649 if test "${ac_cv_c_stack_direction+set}" = set; then
14650 echo $ECHO_N "(cached
) $ECHO_C" >&6
14652 if test "$cross_compiling" = yes; then
14653 ac_cv_c_stack_direction=0
14655 cat >conftest.$ac_ext <<_ACEOF
14658 cat confdefs.h >>conftest.$ac_ext
14659 cat >>conftest.$ac_ext <<_ACEOF
14660 /* end confdefs.h. */
14661 $ac_includes_default
14663 find_stack_direction ()
14665 static char *addr = 0;
14670 return find_stack_direction ();
14673 return (&dummy > addr) ? 1 : -1;
14679 return find_stack_direction () < 0;
14682 rm -f conftest$ac_exeext
14683 if { (ac_try="$ac_link"
14684 case "(($ac_try" in
14685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686 *) ac_try_echo=$ac_try;;
14688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14689 (eval "$ac_link") 2>&5
14691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14692 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14693 { (case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14697 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14698 (eval "$ac_try") 2>&5
14700 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14701 (exit $ac_status); }; }; then
14702 ac_cv_c_stack_direction=1
14704 echo "$as_me: program exited with status
$ac_status" >&5
14705 echo "$as_me: failed program was
:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14708 ( exit $ac_status )
14709 ac_cv_c_stack_direction=-1
14711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14716 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14717 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14719 cat >>confdefs.h <<_ACEOF
14720 #define STACK_DIRECTION $ac_cv_c_stack_direction
14727 # fmod, logb, and frexp are found in -lm on most systems.
14728 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14730 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14731 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14732 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14733 echo $ECHO_N "(cached
) $ECHO_C" >&6
14735 ac_check_lib_save_LIBS=$LIBS
14737 cat >conftest.$ac_ext <<_ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14744 /* Override any GCC internal prototype to avoid an error.
14745 Use char because int might match the return type of a GCC
14746 builtin and then its argument prototype would still apply. */
14759 rm -f conftest.$ac_objext conftest$ac_exeext
14760 if { (ac_try="$ac_link"
14761 case "(($ac_try" in
14762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14763 *) ac_try_echo=$ac_try;;
14765 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_link") 2>conftest.er1
14768 grep -v '^ *+' conftest.er1 >conftest.err
14770 cat conftest.err >&5
14771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14772 (exit $ac_status); } && {
14773 test -z "$ac_c_werror_flag" ||
14774 test ! -s conftest.err
14775 } && test -s conftest$ac_exeext &&
14776 $as_test_x conftest$ac_exeext; then
14777 ac_cv_lib_m_sqrt=yes
14779 echo "$as_me: failed program was
:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14782 ac_cv_lib_m_sqrt=no
14785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14786 conftest$ac_exeext conftest.$ac_ext
14787 LIBS=$ac_check_lib_save_LIBS
14789 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
14790 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14791 if test $ac_cv_lib_m_sqrt = yes; then
14792 cat >>confdefs.h <<_ACEOF
14793 #define HAVE_LIBM 1
14801 # Check for mail-locking functions in a "mail" library. Probably this should
14802 # have the same check as for liblockfile below.
14804 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
14805 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
14806 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14807 echo $ECHO_N "(cached
) $ECHO_C" >&6
14809 ac_check_lib_save_LIBS=$LIBS
14810 LIBS="-lmail $LIBS"
14811 cat >conftest.$ac_ext <<_ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h. */
14818 /* Override any GCC internal prototype to avoid an error.
14819 Use char because int might match the return type of a GCC
14820 builtin and then its argument prototype would still apply. */
14828 return maillock ();
14833 rm -f conftest.$ac_objext conftest$ac_exeext
14834 if { (ac_try="$ac_link"
14835 case "(($ac_try" in
14836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14837 *) ac_try_echo=$ac_try;;
14839 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14840 (eval "$ac_link") 2>conftest.er1
14842 grep -v '^ *+' conftest.er1 >conftest.err
14844 cat conftest.err >&5
14845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14846 (exit $ac_status); } && {
14847 test -z "$ac_c_werror_flag" ||
14848 test ! -s conftest.err
14849 } && test -s conftest$ac_exeext &&
14850 $as_test_x conftest$ac_exeext; then
14851 ac_cv_lib_mail_maillock=yes
14853 echo "$as_me: failed program was
:" >&5
14854 sed 's/^/| /' conftest.$ac_ext >&5
14856 ac_cv_lib_mail_maillock=no
14859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14860 conftest$ac_exeext conftest.$ac_ext
14861 LIBS=$ac_check_lib_save_LIBS
14863 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
14864 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14865 if test $ac_cv_lib_mail_maillock = yes; then
14866 cat >>confdefs.h <<_ACEOF
14867 #define HAVE_LIBMAIL 1
14870 LIBS="-lmail $LIBS"
14875 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
14876 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
14877 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14878 echo $ECHO_N "(cached
) $ECHO_C" >&6
14880 ac_check_lib_save_LIBS=$LIBS
14881 LIBS="-llockfile $LIBS"
14882 cat >conftest.$ac_ext <<_ACEOF
14885 cat confdefs.h >>conftest.$ac_ext
14886 cat >>conftest.$ac_ext <<_ACEOF
14887 /* end confdefs.h. */
14889 /* Override any GCC internal prototype to avoid an error.
14890 Use char because int might match the return type of a GCC
14891 builtin and then its argument prototype would still apply. */
14899 return maillock ();
14904 rm -f conftest.$ac_objext conftest$ac_exeext
14905 if { (ac_try="$ac_link"
14906 case "(($ac_try" in
14907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14908 *) ac_try_echo=$ac_try;;
14910 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14911 (eval "$ac_link") 2>conftest.er1
14913 grep -v '^ *+' conftest.er1 >conftest.err
14915 cat conftest.err >&5
14916 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14917 (exit $ac_status); } && {
14918 test -z "$ac_c_werror_flag" ||
14919 test ! -s conftest.err
14920 } && test -s conftest$ac_exeext &&
14921 $as_test_x conftest$ac_exeext; then
14922 ac_cv_lib_lockfile_maillock=yes
14924 echo "$as_me: failed program was
:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14927 ac_cv_lib_lockfile_maillock=no
14930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14931 conftest$ac_exeext conftest.$ac_ext
14932 LIBS=$ac_check_lib_save_LIBS
14934 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
14935 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14936 if test $ac_cv_lib_lockfile_maillock = yes; then
14937 cat >>confdefs.h <<_ACEOF
14938 #define HAVE_LIBLOCKFILE 1
14941 LIBS="-llockfile $LIBS"
14945 # If we have the shared liblockfile, assume we must use it for mail
14946 # locking (e.g. Debian). If we couldn't link against liblockfile
14947 # (no liblockfile.a installed), ensure that we don't need to.
14948 if test "$ac_cv_lib_lockfile_maillock" = no; then
14949 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
14950 set dummy liblockfile.so; ac_word=$2
14951 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14952 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14953 if test "${ac_cv_prog_liblockfile+set}" = set; then
14954 echo $ECHO_N "(cached
) $ECHO_C" >&6
14956 if test -n "$liblockfile"; then
14957 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14960 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
14961 for as_dir in $as_dummy
14964 test -z "$as_dir" && as_dir=.
14965 for ac_exec_ext in '' $ac_executable_extensions; do
14966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14967 ac_cv_prog_liblockfile="yes"
14968 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14975 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
14978 liblockfile=$ac_cv_prog_liblockfile
14979 if test -n "$liblockfile"; then
14980 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
14981 echo "${ECHO_T}$liblockfile" >&6; }
14983 { echo "$as_me:$LINENO: result
: no
" >&5
14984 echo "${ECHO_T}no
" >&6; }
14988 if test $ac_cv_prog_liblockfile = yes; then
14989 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
14990 This probably means that movemail could lose mail.
14991 There may be a \`development' package to
install containing liblockfile.
" >&5
14992 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
14993 This probably means that movemail could lose mail.
14994 There may be a \`development' package to
install containing liblockfile.
" >&2;}
14995 { (exit 1); exit 1; }; }
15000 for ac_func in touchlock
15002 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15003 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15004 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15005 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15006 echo $ECHO_N "(cached
) $ECHO_C" >&6
15008 cat >conftest.$ac_ext <<_ACEOF
15011 cat confdefs.h >>conftest.$ac_ext
15012 cat >>conftest.$ac_ext <<_ACEOF
15013 /* end confdefs.h. */
15014 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15015 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15016 #define $ac_func innocuous_$ac_func
15018 /* System header to define __stub macros and hopefully few prototypes,
15019 which can conflict with char $ac_func (); below.
15020 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15021 <limits.h> exists even on freestanding compilers. */
15024 # include <limits.h>
15026 # include <assert.h>
15031 /* Override any GCC internal prototype to avoid an error.
15032 Use char because int might match the return type of a GCC
15033 builtin and then its argument prototype would still apply. */
15038 /* The GNU C library defines this for functions which it implements
15039 to always fail with ENOSYS. Some functions are actually named
15040 something starting with __ and the normal name is an alias. */
15041 #if defined __stub_$ac_func || defined __stub___$ac_func
15048 return $ac_func ();
15053 rm -f conftest.$ac_objext conftest$ac_exeext
15054 if { (ac_try="$ac_link"
15055 case "(($ac_try" in
15056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15057 *) ac_try_echo=$ac_try;;
15059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15060 (eval "$ac_link") 2>conftest.er1
15062 grep -v '^ *+' conftest.er1 >conftest.err
15064 cat conftest.err >&5
15065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15066 (exit $ac_status); } && {
15067 test -z "$ac_c_werror_flag" ||
15068 test ! -s conftest.err
15069 } && test -s conftest$ac_exeext &&
15070 $as_test_x conftest$ac_exeext; then
15071 eval "$as_ac_var=yes"
15073 echo "$as_me: failed program was
:" >&5
15074 sed 's/^/| /' conftest.$ac_ext >&5
15076 eval "$as_ac_var=no
"
15079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15080 conftest$ac_exeext conftest.$ac_ext
15082 ac_res=`eval echo '${'$as_ac_var'}'`
15083 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15084 echo "${ECHO_T}$ac_res" >&6; }
15085 if test `eval echo '${'$as_ac_var'}'` = yes; then
15086 cat >>confdefs.h <<_ACEOF
15087 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15094 for ac_header in maillock.h
15096 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15097 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15098 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15099 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15100 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15101 echo $ECHO_N "(cached
) $ECHO_C" >&6
15103 ac_res=`eval echo '${'$as_ac_Header'}'`
15104 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15105 echo "${ECHO_T}$ac_res" >&6; }
15107 # Is the header compilable?
15108 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15109 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15110 cat >conftest.$ac_ext <<_ACEOF
15113 cat confdefs.h >>conftest.$ac_ext
15114 cat >>conftest.$ac_ext <<_ACEOF
15115 /* end confdefs.h. */
15116 $ac_includes_default
15117 #include <$ac_header>
15119 rm -f conftest.$ac_objext
15120 if { (ac_try="$ac_compile"
15121 case "(($ac_try" in
15122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15123 *) ac_try_echo=$ac_try;;
15125 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15126 (eval "$ac_compile") 2>conftest.er1
15128 grep -v '^ *+' conftest.er1 >conftest.err
15130 cat conftest.err >&5
15131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15132 (exit $ac_status); } && {
15133 test -z "$ac_c_werror_flag" ||
15134 test ! -s conftest.err
15135 } && test -s conftest.$ac_objext; then
15136 ac_header_compiler=yes
15138 echo "$as_me: failed program was
:" >&5
15139 sed 's/^/| /' conftest.$ac_ext >&5
15141 ac_header_compiler=no
15144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15145 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15146 echo "${ECHO_T}$ac_header_compiler" >&6; }
15148 # Is the header present?
15149 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15150 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15151 cat >conftest.$ac_ext <<_ACEOF
15154 cat confdefs.h >>conftest.$ac_ext
15155 cat >>conftest.$ac_ext <<_ACEOF
15156 /* end confdefs.h. */
15157 #include <$ac_header>
15159 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15160 case "(($ac_try" in
15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162 *) ac_try_echo=$ac_try;;
15164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15165 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15167 grep -v '^ *+' conftest.er1 >conftest.err
15169 cat conftest.err >&5
15170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15171 (exit $ac_status); } >/dev/null && {
15172 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15173 test ! -s conftest.err
15175 ac_header_preproc=yes
15177 echo "$as_me: failed program was
:" >&5
15178 sed 's/^/| /' conftest.$ac_ext >&5
15180 ac_header_preproc=no
15183 rm -f conftest.err conftest.$ac_ext
15184 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15185 echo "${ECHO_T}$ac_header_preproc" >&6; }
15187 # So? What about this header?
15188 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15190 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15191 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15192 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15194 ac_header_preproc=yes
15197 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15198 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15199 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15200 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15201 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15202 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15203 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15204 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15205 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15207 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15208 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15212 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15213 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15214 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15215 echo $ECHO_N "(cached
) $ECHO_C" >&6
15217 eval "$as_ac_Header=\
$ac_header_preproc"
15219 ac_res=`eval echo '${'$as_ac_Header'}'`
15220 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15221 echo "${ECHO_T}$ac_res" >&6; }
15224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15225 cat >>confdefs.h <<_ACEOF
15226 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15303 for ac_func in gethostname getdomainname dup2 \
15304 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15305 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15306 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15307 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15308 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15309 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15310 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15311 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15313 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15314 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15315 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15316 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15317 echo $ECHO_N "(cached
) $ECHO_C" >&6
15319 cat >conftest.$ac_ext <<_ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15327 #define $ac_func innocuous_$ac_func
15329 /* System header to define __stub macros and hopefully few prototypes,
15330 which can conflict with char $ac_func (); below.
15331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15332 <limits.h> exists even on freestanding compilers. */
15335 # include <limits.h>
15337 # include <assert.h>
15342 /* Override any GCC internal prototype to avoid an error.
15343 Use char because int might match the return type of a GCC
15344 builtin and then its argument prototype would still apply. */
15349 /* The GNU C library defines this for functions which it implements
15350 to always fail with ENOSYS. Some functions are actually named
15351 something starting with __ and the normal name is an alias. */
15352 #if defined __stub_$ac_func || defined __stub___$ac_func
15359 return $ac_func ();
15364 rm -f conftest.$ac_objext conftest$ac_exeext
15365 if { (ac_try="$ac_link"
15366 case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_link") 2>conftest.er1
15373 grep -v '^ *+' conftest.er1 >conftest.err
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15377 (exit $ac_status); } && {
15378 test -z "$ac_c_werror_flag" ||
15379 test ! -s conftest.err
15380 } && test -s conftest$ac_exeext &&
15381 $as_test_x conftest$ac_exeext; then
15382 eval "$as_ac_var=yes"
15384 echo "$as_me: failed program was
:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 eval "$as_ac_var=no
"
15390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15391 conftest$ac_exeext conftest.$ac_ext
15393 ac_res=`eval echo '${'$as_ac_var'}'`
15394 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15395 echo "${ECHO_T}$ac_res" >&6; }
15396 if test `eval echo '${'$as_ac_var'}'` = yes; then
15397 cat >>confdefs.h <<_ACEOF
15398 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15406 for ac_header in sys/un.h
15408 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15409 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15410 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15411 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15412 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15413 echo $ECHO_N "(cached
) $ECHO_C" >&6
15415 ac_res=`eval echo '${'$as_ac_Header'}'`
15416 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15417 echo "${ECHO_T}$ac_res" >&6; }
15419 # Is the header compilable?
15420 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15421 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15422 cat >conftest.$ac_ext <<_ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15428 $ac_includes_default
15429 #include <$ac_header>
15431 rm -f conftest.$ac_objext
15432 if { (ac_try="$ac_compile"
15433 case "(($ac_try" in
15434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15435 *) ac_try_echo=$ac_try;;
15437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15438 (eval "$ac_compile") 2>conftest.er1
15440 grep -v '^ *+' conftest.er1 >conftest.err
15442 cat conftest.err >&5
15443 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15444 (exit $ac_status); } && {
15445 test -z "$ac_c_werror_flag" ||
15446 test ! -s conftest.err
15447 } && test -s conftest.$ac_objext; then
15448 ac_header_compiler=yes
15450 echo "$as_me: failed program was
:" >&5
15451 sed 's/^/| /' conftest.$ac_ext >&5
15453 ac_header_compiler=no
15456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15457 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15458 echo "${ECHO_T}$ac_header_compiler" >&6; }
15460 # Is the header present?
15461 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15462 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15463 cat >conftest.$ac_ext <<_ACEOF
15466 cat confdefs.h >>conftest.$ac_ext
15467 cat >>conftest.$ac_ext <<_ACEOF
15468 /* end confdefs.h. */
15469 #include <$ac_header>
15471 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15472 case "(($ac_try" in
15473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15474 *) ac_try_echo=$ac_try;;
15476 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15477 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15479 grep -v '^ *+' conftest.er1 >conftest.err
15481 cat conftest.err >&5
15482 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15483 (exit $ac_status); } >/dev/null && {
15484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15485 test ! -s conftest.err
15487 ac_header_preproc=yes
15489 echo "$as_me: failed program was
:" >&5
15490 sed 's/^/| /' conftest.$ac_ext >&5
15492 ac_header_preproc=no
15495 rm -f conftest.err conftest.$ac_ext
15496 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15497 echo "${ECHO_T}$ac_header_preproc" >&6; }
15499 # So? What about this header?
15500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15502 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15503 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15504 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15505 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15506 ac_header_preproc=yes
15509 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15510 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15511 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15512 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15513 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15514 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15515 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15516 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15517 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15518 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15519 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15520 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15524 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15525 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15526 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15527 echo $ECHO_N "(cached
) $ECHO_C" >&6
15529 eval "$as_ac_Header=\
$ac_header_preproc"
15531 ac_res=`eval echo '${'$as_ac_Header'}'`
15532 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15533 echo "${ECHO_T}$ac_res" >&6; }
15536 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15537 cat >>confdefs.h <<_ACEOF
15538 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15550 for ac_header in $ac_header_list
15552 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15553 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15554 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15555 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15556 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15557 echo $ECHO_N "(cached
) $ECHO_C" >&6
15559 ac_res=`eval echo '${'$as_ac_Header'}'`
15560 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15561 echo "${ECHO_T}$ac_res" >&6; }
15563 # Is the header compilable?
15564 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15565 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15566 cat >conftest.$ac_ext <<_ACEOF
15569 cat confdefs.h >>conftest.$ac_ext
15570 cat >>conftest.$ac_ext <<_ACEOF
15571 /* end confdefs.h. */
15572 $ac_includes_default
15573 #include <$ac_header>
15575 rm -f conftest.$ac_objext
15576 if { (ac_try="$ac_compile"
15577 case "(($ac_try" in
15578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15579 *) ac_try_echo=$ac_try;;
15581 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15582 (eval "$ac_compile") 2>conftest.er1
15584 grep -v '^ *+' conftest.er1 >conftest.err
15586 cat conftest.err >&5
15587 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15588 (exit $ac_status); } && {
15589 test -z "$ac_c_werror_flag" ||
15590 test ! -s conftest.err
15591 } && test -s conftest.$ac_objext; then
15592 ac_header_compiler=yes
15594 echo "$as_me: failed program was
:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15597 ac_header_compiler=no
15600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15601 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15602 echo "${ECHO_T}$ac_header_compiler" >&6; }
15604 # Is the header present?
15605 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15606 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15607 cat >conftest.$ac_ext <<_ACEOF
15610 cat confdefs.h >>conftest.$ac_ext
15611 cat >>conftest.$ac_ext <<_ACEOF
15612 /* end confdefs.h. */
15613 #include <$ac_header>
15615 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15616 case "(($ac_try" in
15617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618 *) ac_try_echo=$ac_try;;
15620 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15621 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15623 grep -v '^ *+' conftest.er1 >conftest.err
15625 cat conftest.err >&5
15626 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15627 (exit $ac_status); } >/dev/null && {
15628 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15629 test ! -s conftest.err
15631 ac_header_preproc=yes
15633 echo "$as_me: failed program was
:" >&5
15634 sed 's/^/| /' conftest.$ac_ext >&5
15636 ac_header_preproc=no
15639 rm -f conftest.err conftest.$ac_ext
15640 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15641 echo "${ECHO_T}$ac_header_preproc" >&6; }
15643 # So? What about this header?
15644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15646 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15647 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15648 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15649 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15650 ac_header_preproc=yes
15653 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15654 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15655 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15656 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15657 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15658 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15659 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15660 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15661 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15662 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15663 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15664 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15668 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15669 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15670 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15671 echo $ECHO_N "(cached
) $ECHO_C" >&6
15673 eval "$as_ac_Header=\
$ac_header_preproc"
15675 ac_res=`eval echo '${'$as_ac_Header'}'`
15676 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15677 echo "${ECHO_T}$ac_res" >&6; }
15680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15681 cat >>confdefs.h <<_ACEOF
15682 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15697 for ac_func in $ac_func_list
15699 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15700 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15701 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15702 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15703 echo $ECHO_N "(cached
) $ECHO_C" >&6
15705 cat >conftest.$ac_ext <<_ACEOF
15708 cat confdefs.h >>conftest.$ac_ext
15709 cat >>conftest.$ac_ext <<_ACEOF
15710 /* end confdefs.h. */
15711 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15712 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15713 #define $ac_func innocuous_$ac_func
15715 /* System header to define __stub macros and hopefully few prototypes,
15716 which can conflict with char $ac_func (); below.
15717 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15718 <limits.h> exists even on freestanding compilers. */
15721 # include <limits.h>
15723 # include <assert.h>
15728 /* Override any GCC internal prototype to avoid an error.
15729 Use char because int might match the return type of a GCC
15730 builtin and then its argument prototype would still apply. */
15735 /* The GNU C library defines this for functions which it implements
15736 to always fail with ENOSYS. Some functions are actually named
15737 something starting with __ and the normal name is an alias. */
15738 #if defined __stub_$ac_func || defined __stub___$ac_func
15745 return $ac_func ();
15750 rm -f conftest.$ac_objext conftest$ac_exeext
15751 if { (ac_try="$ac_link"
15752 case "(($ac_try" in
15753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15754 *) ac_try_echo=$ac_try;;
15756 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15757 (eval "$ac_link") 2>conftest.er1
15759 grep -v '^ *+' conftest.er1 >conftest.err
15761 cat conftest.err >&5
15762 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15763 (exit $ac_status); } && {
15764 test -z "$ac_c_werror_flag" ||
15765 test ! -s conftest.err
15766 } && test -s conftest$ac_exeext &&
15767 $as_test_x conftest$ac_exeext; then
15768 eval "$as_ac_var=yes"
15770 echo "$as_me: failed program was
:" >&5
15771 sed 's/^/| /' conftest.$ac_ext >&5
15773 eval "$as_ac_var=no
"
15776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15777 conftest$ac_exeext conftest.$ac_ext
15779 ac_res=`eval echo '${'$as_ac_var'}'`
15780 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15781 echo "${ECHO_T}$ac_res" >&6; }
15782 if test `eval echo '${'$as_ac_var'}'` = yes; then
15783 cat >>confdefs.h <<_ACEOF
15784 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15806 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
15807 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
15808 if test "${ac_cv_func_working_mktime+set}" = set; then
15809 echo $ECHO_N "(cached
) $ECHO_C" >&6
15811 if test "$cross_compiling" = yes; then
15812 ac_cv_func_working_mktime=no
15814 cat >conftest.$ac_ext <<_ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h. */
15820 /* Test program from Paul Eggert and Tony Leneis. */
15821 #ifdef TIME_WITH_SYS_TIME
15822 # include <sys/time.h>
15825 # ifdef HAVE_SYS_TIME_H
15826 # include <sys/time.h>
15832 #include <stdlib.h>
15834 #ifdef HAVE_UNISTD_H
15835 # include <unistd.h>
15839 # define alarm(X) /* empty */
15842 /* Work around redefinition to rpl_putenv by other config tests. */
15845 static time_t time_t_max;
15846 static time_t time_t_min;
15848 /* Values we'll use to set the TZ environment variable. */
15849 static char *tz_strings[] = {
15850 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
15851 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
15853 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15855 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15856 Based on a problem report from Andreas Jaeger. */
15858 spring_forward_gap ()
15860 /* glibc (up to about 1998-10-07) failed this test. */
15863 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15864 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15865 on systems that don't support the Olson extension, or don't have the
15866 full zoneinfo tables installed. */
15867 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15876 return mktime (&tm) != (time_t) -1;
15884 return ! (lt = localtime (&now)) || mktime (lt) == now;
15891 return (mktime_test1 (now)
15892 && mktime_test1 ((time_t) (time_t_max - now))
15893 && mktime_test1 ((time_t) (time_t_min + now)));
15899 /* Based on code from Ariel Faigon. */
15909 return tm.tm_mon == 2 && tm.tm_mday == 31;
15918 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15919 now = mktime (&tm);
15920 if (now != (time_t) -1)
15922 struct tm *lt = localtime (&now);
15924 && lt->tm_year == tm.tm_year
15925 && lt->tm_mon == tm.tm_mon
15926 && lt->tm_mday == tm.tm_mday
15927 && lt->tm_hour == tm.tm_hour
15928 && lt->tm_min == tm.tm_min
15929 && lt->tm_sec == tm.tm_sec
15930 && lt->tm_yday == tm.tm_yday
15931 && lt->tm_wday == tm.tm_wday
15932 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15933 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15942 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15943 ignoring leap seconds. */
15944 unsigned long int answer = 2527315200UL;
15948 tm.tm_year = 2050 - 1900;
15951 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15954 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15955 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15956 on systems that don't support the Olson extension, or don't have the
15957 full zoneinfo tables installed. */
15958 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15962 /* Check that the result is either a failure, or close enough
15963 to the correct answer that we can assume the discrepancy is
15964 due to leap seconds. */
15965 return (t == (time_t) -1
15966 || (0 < t && answer - 120 <= t && t <= answer + 120));
15975 /* This test makes some buggy mktime implementations loop.
15976 Give up after 60 seconds; a mktime slower than that
15977 isn't worth using anyway. */
15980 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15983 if ((time_t) -1 < 0)
15984 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15986 delta = time_t_max / 997; /* a suitable prime number */
15987 for (i = 0; i < N_STRINGS; i++)
15990 putenv (tz_strings[i]);
15992 for (t = 0; t <= time_t_max - delta; t += delta)
15993 if (! mktime_test (t))
15995 if (! (mktime_test ((time_t) 1)
15996 && mktime_test ((time_t) (60 * 60))
15997 && mktime_test ((time_t) (60 * 60 * 24))))
16000 for (j = 1; 0 < j; j *= 2)
16001 if (! bigtime_test (j))
16003 if (! bigtime_test (j - 1))
16006 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16009 rm -f conftest$ac_exeext
16010 if { (ac_try="$ac_link"
16011 case "(($ac_try" in
16012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16013 *) ac_try_echo=$ac_try;;
16015 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16016 (eval "$ac_link") 2>&5
16018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16019 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16020 { (case "(($ac_try" in
16021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16022 *) ac_try_echo=$ac_try;;
16024 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16025 (eval "$ac_try") 2>&5
16027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16028 (exit $ac_status); }; }; then
16029 ac_cv_func_working_mktime=yes
16031 echo "$as_me: program exited with status
$ac_status" >&5
16032 echo "$as_me: failed program was
:" >&5
16033 sed 's/^/| /' conftest.$ac_ext >&5
16035 ( exit $ac_status )
16036 ac_cv_func_working_mktime=no
16038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16043 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16044 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16045 if test $ac_cv_func_working_mktime = no; then
16046 case " $LIBOBJS " in
16047 *" mktime.
$ac_objext "* ) ;;
16048 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16054 if test "$ac_cv_func_working_mktime" = no; then
16056 cat >>confdefs.h <<\_ACEOF
16057 #define BROKEN_MKTIME 1
16062 ac_have_func=no # yes means we've found a way to get the load average.
16064 # Make sure getloadavg.c is where it belongs, at configure-time.
16065 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16066 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16067 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16068 { (exit 1); exit 1; }; }
16072 # Check for getloadavg, but be sure not to touch the cache variable.
16073 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16074 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16075 if test "${ac_cv_func_getloadavg+set}" = set; then
16076 echo $ECHO_N "(cached
) $ECHO_C" >&6
16078 cat >conftest.$ac_ext <<_ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h. */
16084 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16086 #define getloadavg innocuous_getloadavg
16088 /* System header to define __stub macros and hopefully few prototypes,
16089 which can conflict with char getloadavg (); below.
16090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16091 <limits.h> exists even on freestanding compilers. */
16094 # include <limits.h>
16096 # include <assert.h>
16101 /* Override any GCC internal prototype to avoid an error.
16102 Use char because int might match the return type of a GCC
16103 builtin and then its argument prototype would still apply. */
16107 char getloadavg ();
16108 /* The GNU C library defines this for functions which it implements
16109 to always fail with ENOSYS. Some functions are actually named
16110 something starting with __ and the normal name is an alias. */
16111 #if defined __stub_getloadavg || defined __stub___getloadavg
16118 return getloadavg ();
16123 rm -f conftest.$ac_objext conftest$ac_exeext
16124 if { (ac_try="$ac_link"
16125 case "(($ac_try" in
16126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16127 *) ac_try_echo=$ac_try;;
16129 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16130 (eval "$ac_link") 2>conftest.er1
16132 grep -v '^ *+' conftest.er1 >conftest.err
16134 cat conftest.err >&5
16135 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16136 (exit $ac_status); } && {
16137 test -z "$ac_c_werror_flag" ||
16138 test ! -s conftest.err
16139 } && test -s conftest$ac_exeext &&
16140 $as_test_x conftest$ac_exeext; then
16141 ac_cv_func_getloadavg=yes
16143 echo "$as_me: failed program was
:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16146 ac_cv_func_getloadavg=no
16149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16150 conftest$ac_exeext conftest.$ac_ext
16152 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16153 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16154 if test $ac_cv_func_getloadavg = yes; then
16159 ) && ac_have_func=yes
16161 # On HPUX9, an unprivileged user can get load averages through this function.
16163 for ac_func in pstat_getdynamic
16165 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16166 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16167 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16168 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16169 echo $ECHO_N "(cached
) $ECHO_C" >&6
16171 cat >conftest.$ac_ext <<_ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h. */
16177 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16179 #define $ac_func innocuous_$ac_func
16181 /* System header to define __stub macros and hopefully few prototypes,
16182 which can conflict with char $ac_func (); below.
16183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16184 <limits.h> exists even on freestanding compilers. */
16187 # include <limits.h>
16189 # include <assert.h>
16194 /* Override any GCC internal prototype to avoid an error.
16195 Use char because int might match the return type of a GCC
16196 builtin and then its argument prototype would still apply. */
16201 /* The GNU C library defines this for functions which it implements
16202 to always fail with ENOSYS. Some functions are actually named
16203 something starting with __ and the normal name is an alias. */
16204 #if defined __stub_$ac_func || defined __stub___$ac_func
16211 return $ac_func ();
16216 rm -f conftest.$ac_objext conftest$ac_exeext
16217 if { (ac_try="$ac_link"
16218 case "(($ac_try" in
16219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220 *) ac_try_echo=$ac_try;;
16222 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16223 (eval "$ac_link") 2>conftest.er1
16225 grep -v '^ *+' conftest.er1 >conftest.err
16227 cat conftest.err >&5
16228 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16229 (exit $ac_status); } && {
16230 test -z "$ac_c_werror_flag" ||
16231 test ! -s conftest.err
16232 } && test -s conftest$ac_exeext &&
16233 $as_test_x conftest$ac_exeext; then
16234 eval "$as_ac_var=yes"
16236 echo "$as_me: failed program was
:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16239 eval "$as_ac_var=no
"
16242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16243 conftest$ac_exeext conftest.$ac_ext
16245 ac_res=`eval echo '${'$as_ac_var'}'`
16246 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16247 echo "${ECHO_T}$ac_res" >&6; }
16248 if test `eval echo '${'$as_ac_var'}'` = yes; then
16249 cat >>confdefs.h <<_ACEOF
16250 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16257 # Solaris has libkstat which does not require root.
16259 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16260 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16261 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16262 echo $ECHO_N "(cached
) $ECHO_C" >&6
16264 ac_check_lib_save_LIBS=$LIBS
16265 LIBS="-lkstat $LIBS"
16266 cat >conftest.$ac_ext <<_ACEOF
16269 cat confdefs.h >>conftest.$ac_ext
16270 cat >>conftest.$ac_ext <<_ACEOF
16271 /* end confdefs.h. */
16273 /* Override any GCC internal prototype to avoid an error.
16274 Use char because int might match the return type of a GCC
16275 builtin and then its argument prototype would still apply. */
16279 char kstat_open ();
16283 return kstat_open ();
16288 rm -f conftest.$ac_objext conftest$ac_exeext
16289 if { (ac_try="$ac_link"
16290 case "(($ac_try" in
16291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292 *) ac_try_echo=$ac_try;;
16294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16295 (eval "$ac_link") 2>conftest.er1
16297 grep -v '^ *+' conftest.er1 >conftest.err
16299 cat conftest.err >&5
16300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16301 (exit $ac_status); } && {
16302 test -z "$ac_c_werror_flag" ||
16303 test ! -s conftest.err
16304 } && test -s conftest$ac_exeext &&
16305 $as_test_x conftest$ac_exeext; then
16306 ac_cv_lib_kstat_kstat_open=yes
16308 echo "$as_me: failed program was
:" >&5
16309 sed 's/^/| /' conftest.$ac_ext >&5
16311 ac_cv_lib_kstat_kstat_open=no
16314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16315 conftest$ac_exeext conftest.$ac_ext
16316 LIBS=$ac_check_lib_save_LIBS
16318 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16319 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16320 if test $ac_cv_lib_kstat_kstat_open = yes; then
16321 cat >>confdefs.h <<_ACEOF
16322 #define HAVE_LIBKSTAT 1
16325 LIBS="-lkstat $LIBS"
16329 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16331 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16332 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16333 # to get the right answer into the cache.
16334 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16335 if test $ac_have_func = no; then
16336 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16337 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16338 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16339 echo $ECHO_N "(cached
) $ECHO_C" >&6
16341 ac_check_lib_save_LIBS=$LIBS
16343 cat >conftest.$ac_ext <<_ACEOF
16346 cat confdefs.h >>conftest.$ac_ext
16347 cat >>conftest.$ac_ext <<_ACEOF
16348 /* end confdefs.h. */
16350 /* Override any GCC internal prototype to avoid an error.
16351 Use char because int might match the return type of a GCC
16352 builtin and then its argument prototype would still apply. */
16360 return elf_begin ();
16365 rm -f conftest.$ac_objext conftest$ac_exeext
16366 if { (ac_try="$ac_link"
16367 case "(($ac_try" in
16368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16369 *) ac_try_echo=$ac_try;;
16371 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16372 (eval "$ac_link") 2>conftest.er1
16374 grep -v '^ *+' conftest.er1 >conftest.err
16376 cat conftest.err >&5
16377 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16378 (exit $ac_status); } && {
16379 test -z "$ac_c_werror_flag" ||
16380 test ! -s conftest.err
16381 } && test -s conftest$ac_exeext &&
16382 $as_test_x conftest$ac_exeext; then
16383 ac_cv_lib_elf_elf_begin=yes
16385 echo "$as_me: failed program was
:" >&5
16386 sed 's/^/| /' conftest.$ac_ext >&5
16388 ac_cv_lib_elf_elf_begin=no
16391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16392 conftest$ac_exeext conftest.$ac_ext
16393 LIBS=$ac_check_lib_save_LIBS
16395 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16396 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16397 if test $ac_cv_lib_elf_elf_begin = yes; then
16402 if test $ac_have_func = no; then
16403 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16404 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16405 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16406 echo $ECHO_N "(cached
) $ECHO_C" >&6
16408 ac_check_lib_save_LIBS=$LIBS
16410 cat >conftest.$ac_ext <<_ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h. */
16417 /* Override any GCC internal prototype to avoid an error.
16418 Use char because int might match the return type of a GCC
16419 builtin and then its argument prototype would still apply. */
16427 return kvm_open ();
16432 rm -f conftest.$ac_objext conftest$ac_exeext
16433 if { (ac_try="$ac_link"
16434 case "(($ac_try" in
16435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436 *) ac_try_echo=$ac_try;;
16438 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16439 (eval "$ac_link") 2>conftest.er1
16441 grep -v '^ *+' conftest.er1 >conftest.err
16443 cat conftest.err >&5
16444 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16445 (exit $ac_status); } && {
16446 test -z "$ac_c_werror_flag" ||
16447 test ! -s conftest.err
16448 } && test -s conftest$ac_exeext &&
16449 $as_test_x conftest$ac_exeext; then
16450 ac_cv_lib_kvm_kvm_open=yes
16452 echo "$as_me: failed program was
:" >&5
16453 sed 's/^/| /' conftest.$ac_ext >&5
16455 ac_cv_lib_kvm_kvm_open=no
16458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16459 conftest$ac_exeext conftest.$ac_ext
16460 LIBS=$ac_check_lib_save_LIBS
16462 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16463 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16464 if test $ac_cv_lib_kvm_kvm_open = yes; then
16468 # Check for the 4.4BSD definition of getloadavg.
16469 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16470 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16471 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16472 echo $ECHO_N "(cached
) $ECHO_C" >&6
16474 ac_check_lib_save_LIBS=$LIBS
16475 LIBS="-lutil $LIBS"
16476 cat >conftest.$ac_ext <<_ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16483 /* Override any GCC internal prototype to avoid an error.
16484 Use char because int might match the return type of a GCC
16485 builtin and then its argument prototype would still apply. */
16489 char getloadavg ();
16493 return getloadavg ();
16498 rm -f conftest.$ac_objext conftest$ac_exeext
16499 if { (ac_try="$ac_link"
16500 case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16505 (eval "$ac_link") 2>conftest.er1
16507 grep -v '^ *+' conftest.er1 >conftest.err
16509 cat conftest.err >&5
16510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16511 (exit $ac_status); } && {
16512 test -z "$ac_c_werror_flag" ||
16513 test ! -s conftest.err
16514 } && test -s conftest$ac_exeext &&
16515 $as_test_x conftest$ac_exeext; then
16516 ac_cv_lib_util_getloadavg=yes
16518 echo "$as_me: failed program was
:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16521 ac_cv_lib_util_getloadavg=no
16524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16525 conftest$ac_exeext conftest.$ac_ext
16526 LIBS=$ac_check_lib_save_LIBS
16528 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16529 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16530 if test $ac_cv_lib_util_getloadavg = yes; then
16531 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16536 if test $ac_have_func = no; then
16537 # There is a commonly available library for RS/6000 AIX.
16538 # Since it is not a standard part of AIX, it might be installed locally.
16539 ac_getloadavg_LIBS=$LIBS
16540 LIBS="-L/usr
/local
/lib
$LIBS"
16541 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16542 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16543 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16544 echo $ECHO_N "(cached
) $ECHO_C" >&6
16546 ac_check_lib_save_LIBS=$LIBS
16547 LIBS="-lgetloadavg $LIBS"
16548 cat >conftest.$ac_ext <<_ACEOF
16551 cat confdefs.h >>conftest.$ac_ext
16552 cat >>conftest.$ac_ext <<_ACEOF
16553 /* end confdefs.h. */
16555 /* Override any GCC internal prototype to avoid an error.
16556 Use char because int might match the return type of a GCC
16557 builtin and then its argument prototype would still apply. */
16561 char getloadavg ();
16565 return getloadavg ();
16570 rm -f conftest.$ac_objext conftest$ac_exeext
16571 if { (ac_try="$ac_link"
16572 case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16576 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16577 (eval "$ac_link") 2>conftest.er1
16579 grep -v '^ *+' conftest.er1 >conftest.err
16581 cat conftest.err >&5
16582 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16583 (exit $ac_status); } && {
16584 test -z "$ac_c_werror_flag" ||
16585 test ! -s conftest.err
16586 } && test -s conftest$ac_exeext &&
16587 $as_test_x conftest$ac_exeext; then
16588 ac_cv_lib_getloadavg_getloadavg=yes
16590 echo "$as_me: failed program was
:" >&5
16591 sed 's/^/| /' conftest.$ac_ext >&5
16593 ac_cv_lib_getloadavg_getloadavg=no
16596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16597 conftest$ac_exeext conftest.$ac_ext
16598 LIBS=$ac_check_lib_save_LIBS
16600 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16601 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16602 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16603 LIBS="-lgetloadavg $LIBS"
16605 LIBS=$ac_getloadavg_LIBS
16610 # Make sure it is really in the library, if we think we found it,
16611 # otherwise set up the replacement function.
16613 for ac_func in getloadavg
16615 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16616 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16617 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16618 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16619 echo $ECHO_N "(cached
) $ECHO_C" >&6
16621 cat >conftest.$ac_ext <<_ACEOF
16624 cat confdefs.h >>conftest.$ac_ext
16625 cat >>conftest.$ac_ext <<_ACEOF
16626 /* end confdefs.h. */
16627 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16628 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16629 #define $ac_func innocuous_$ac_func
16631 /* System header to define __stub macros and hopefully few prototypes,
16632 which can conflict with char $ac_func (); below.
16633 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16634 <limits.h> exists even on freestanding compilers. */
16637 # include <limits.h>
16639 # include <assert.h>
16644 /* Override any GCC internal prototype to avoid an error.
16645 Use char because int might match the return type of a GCC
16646 builtin and then its argument prototype would still apply. */
16651 /* The GNU C library defines this for functions which it implements
16652 to always fail with ENOSYS. Some functions are actually named
16653 something starting with __ and the normal name is an alias. */
16654 #if defined __stub_$ac_func || defined __stub___$ac_func
16661 return $ac_func ();
16666 rm -f conftest.$ac_objext conftest$ac_exeext
16667 if { (ac_try="$ac_link"
16668 case "(($ac_try" in
16669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16670 *) ac_try_echo=$ac_try;;
16672 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16673 (eval "$ac_link") 2>conftest.er1
16675 grep -v '^ *+' conftest.er1 >conftest.err
16677 cat conftest.err >&5
16678 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16679 (exit $ac_status); } && {
16680 test -z "$ac_c_werror_flag" ||
16681 test ! -s conftest.err
16682 } && test -s conftest$ac_exeext &&
16683 $as_test_x conftest$ac_exeext; then
16684 eval "$as_ac_var=yes"
16686 echo "$as_me: failed program was
:" >&5
16687 sed 's/^/| /' conftest.$ac_ext >&5
16689 eval "$as_ac_var=no
"
16692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16693 conftest$ac_exeext conftest.$ac_ext
16695 ac_res=`eval echo '${'$as_ac_var'}'`
16696 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16697 echo "${ECHO_T}$ac_res" >&6; }
16698 if test `eval echo '${'$as_ac_var'}'` = yes; then
16699 cat >>confdefs.h <<_ACEOF
16700 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16704 case " $LIBOBJS " in
16705 *" getloadavg.
$ac_objext "* ) ;;
16706 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16711 cat >>confdefs.h <<\_ACEOF
16712 #define C_GETLOADAVG 1
16715 # Figure out what our getloadavg.c needs.
16717 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16718 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16719 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16720 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16721 echo $ECHO_N "(cached
) $ECHO_C" >&6
16723 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16724 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16726 # Is the header compilable?
16727 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16728 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16729 cat >conftest.$ac_ext <<_ACEOF
16732 cat confdefs.h >>conftest.$ac_ext
16733 cat >>conftest.$ac_ext <<_ACEOF
16734 /* end confdefs.h. */
16735 $ac_includes_default
16736 #include <sys/dg_sys_info.h>
16738 rm -f conftest.$ac_objext
16739 if { (ac_try="$ac_compile"
16740 case "(($ac_try" in
16741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16742 *) ac_try_echo=$ac_try;;
16744 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16745 (eval "$ac_compile") 2>conftest.er1
16747 grep -v '^ *+' conftest.er1 >conftest.err
16749 cat conftest.err >&5
16750 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16751 (exit $ac_status); } && {
16752 test -z "$ac_c_werror_flag" ||
16753 test ! -s conftest.err
16754 } && test -s conftest.$ac_objext; then
16755 ac_header_compiler=yes
16757 echo "$as_me: failed program was
:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16760 ac_header_compiler=no
16763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16764 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16765 echo "${ECHO_T}$ac_header_compiler" >&6; }
16767 # Is the header present?
16768 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16769 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16770 cat >conftest.$ac_ext <<_ACEOF
16773 cat confdefs.h >>conftest.$ac_ext
16774 cat >>conftest.$ac_ext <<_ACEOF
16775 /* end confdefs.h. */
16776 #include <sys/dg_sys_info.h>
16778 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16779 case "(($ac_try" in
16780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16781 *) ac_try_echo=$ac_try;;
16783 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16784 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16786 grep -v '^ *+' conftest.er1 >conftest.err
16788 cat conftest.err >&5
16789 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16790 (exit $ac_status); } >/dev/null && {
16791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16792 test ! -s conftest.err
16794 ac_header_preproc=yes
16796 echo "$as_me: failed program was
:" >&5
16797 sed 's/^/| /' conftest.$ac_ext >&5
16799 ac_header_preproc=no
16802 rm -f conftest.err conftest.$ac_ext
16803 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16804 echo "${ECHO_T}$ac_header_preproc" >&6; }
16806 # So? What about this header?
16807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16809 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16810 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16811 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
16812 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
16813 ac_header_preproc=yes
16816 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
16817 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
16818 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
16819 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
16820 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
16821 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
16822 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16823 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16824 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
16825 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
16826 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
16827 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
16831 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16832 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16833 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16834 echo $ECHO_N "(cached
) $ECHO_C" >&6
16836 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16838 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16839 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16842 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16845 cat >>confdefs.h <<\_ACEOF
16850 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
16851 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
16852 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16853 echo $ECHO_N "(cached
) $ECHO_C" >&6
16855 ac_check_lib_save_LIBS=$LIBS
16857 cat >conftest.$ac_ext <<_ACEOF
16860 cat confdefs.h >>conftest.$ac_ext
16861 cat >>conftest.$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16864 /* Override any GCC internal prototype to avoid an error.
16865 Use char because int might match the return type of a GCC
16866 builtin and then its argument prototype would still apply. */
16870 char dg_sys_info ();
16874 return dg_sys_info ();
16879 rm -f conftest.$ac_objext conftest$ac_exeext
16880 if { (ac_try="$ac_link"
16881 case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_link") 2>conftest.er1
16888 grep -v '^ *+' conftest.er1 >conftest.err
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16892 (exit $ac_status); } && {
16893 test -z "$ac_c_werror_flag" ||
16894 test ! -s conftest.err
16895 } && test -s conftest$ac_exeext &&
16896 $as_test_x conftest$ac_exeext; then
16897 ac_cv_lib_dgc_dg_sys_info=yes
16899 echo "$as_me: failed program was
:" >&5
16900 sed 's/^/| /' conftest.$ac_ext >&5
16902 ac_cv_lib_dgc_dg_sys_info=no
16905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16906 conftest$ac_exeext conftest.$ac_ext
16907 LIBS=$ac_check_lib_save_LIBS
16909 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
16910 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16911 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16912 cat >>confdefs.h <<_ACEOF
16913 #define HAVE_LIBDGC 1
16924 if test "${ac_cv_header_locale_h+set}" = set; then
16925 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16926 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16927 if test "${ac_cv_header_locale_h+set}" = set; then
16928 echo $ECHO_N "(cached
) $ECHO_C" >&6
16930 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16931 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16933 # Is the header compilable?
16934 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
16935 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
16936 cat >conftest.$ac_ext <<_ACEOF
16939 cat confdefs.h >>conftest.$ac_ext
16940 cat >>conftest.$ac_ext <<_ACEOF
16941 /* end confdefs.h. */
16942 $ac_includes_default
16943 #include <locale.h>
16945 rm -f conftest.$ac_objext
16946 if { (ac_try="$ac_compile"
16947 case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_compile") 2>conftest.er1
16954 grep -v '^ *+' conftest.er1 >conftest.err
16956 cat conftest.err >&5
16957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16958 (exit $ac_status); } && {
16959 test -z "$ac_c_werror_flag" ||
16960 test ! -s conftest.err
16961 } && test -s conftest.$ac_objext; then
16962 ac_header_compiler=yes
16964 echo "$as_me: failed program was
:" >&5
16965 sed 's/^/| /' conftest.$ac_ext >&5
16967 ac_header_compiler=no
16970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16971 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16972 echo "${ECHO_T}$ac_header_compiler" >&6; }
16974 # Is the header present?
16975 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
16976 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
16977 cat >conftest.$ac_ext <<_ACEOF
16980 cat confdefs.h >>conftest.$ac_ext
16981 cat >>conftest.$ac_ext <<_ACEOF
16982 /* end confdefs.h. */
16983 #include <locale.h>
16985 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16986 case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16991 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16993 grep -v '^ *+' conftest.er1 >conftest.err
16995 cat conftest.err >&5
16996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16997 (exit $ac_status); } >/dev/null && {
16998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16999 test ! -s conftest.err
17001 ac_header_preproc=yes
17003 echo "$as_me: failed program was
:" >&5
17004 sed 's/^/| /' conftest.$ac_ext >&5
17006 ac_header_preproc=no
17009 rm -f conftest.err conftest.$ac_ext
17010 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17011 echo "${ECHO_T}$ac_header_preproc" >&6; }
17013 # So? What about this header?
17014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17016 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17017 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17018 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17019 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17020 ac_header_preproc=yes
17023 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17024 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17025 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17026 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17027 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17028 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17029 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17030 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17031 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17032 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17033 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17034 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17038 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17039 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17040 if test "${ac_cv_header_locale_h+set}" = set; then
17041 echo $ECHO_N "(cached
) $ECHO_C" >&6
17043 ac_cv_header_locale_h=$ac_header_preproc
17045 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17046 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17052 for ac_func in setlocale
17054 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17055 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17056 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17057 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17058 echo $ECHO_N "(cached
) $ECHO_C" >&6
17060 cat >conftest.$ac_ext <<_ACEOF
17063 cat confdefs.h >>conftest.$ac_ext
17064 cat >>conftest.$ac_ext <<_ACEOF
17065 /* end confdefs.h. */
17066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17068 #define $ac_func innocuous_$ac_func
17070 /* System header to define __stub macros and hopefully few prototypes,
17071 which can conflict with char $ac_func (); below.
17072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17073 <limits.h> exists even on freestanding compilers. */
17076 # include <limits.h>
17078 # include <assert.h>
17083 /* Override any GCC internal prototype to avoid an error.
17084 Use char because int might match the return type of a GCC
17085 builtin and then its argument prototype would still apply. */
17090 /* The GNU C library defines this for functions which it implements
17091 to always fail with ENOSYS. Some functions are actually named
17092 something starting with __ and the normal name is an alias. */
17093 #if defined __stub_$ac_func || defined __stub___$ac_func
17100 return $ac_func ();
17105 rm -f conftest.$ac_objext conftest$ac_exeext
17106 if { (ac_try="$ac_link"
17107 case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17112 (eval "$ac_link") 2>conftest.er1
17114 grep -v '^ *+' conftest.er1 >conftest.err
17116 cat conftest.err >&5
17117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17118 (exit $ac_status); } && {
17119 test -z "$ac_c_werror_flag" ||
17120 test ! -s conftest.err
17121 } && test -s conftest$ac_exeext &&
17122 $as_test_x conftest$ac_exeext; then
17123 eval "$as_ac_var=yes"
17125 echo "$as_me: failed program was
:" >&5
17126 sed 's/^/| /' conftest.$ac_ext >&5
17128 eval "$as_ac_var=no
"
17131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17132 conftest$ac_exeext conftest.$ac_ext
17134 ac_res=`eval echo '${'$as_ac_var'}'`
17135 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17136 echo "${ECHO_T}$ac_res" >&6; }
17137 if test `eval echo '${'$as_ac_var'}'` = yes; then
17138 cat >>confdefs.h <<_ACEOF
17139 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17146 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17147 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17148 # Irix 4.0.5F has the header but not the library.
17149 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17152 cat >>confdefs.h <<\_ACEOF
17158 if test $ac_have_func = no; then
17159 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17160 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17161 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17162 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17163 echo $ECHO_N "(cached
) $ECHO_C" >&6
17165 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17166 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17168 # Is the header compilable?
17169 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17170 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17171 cat >conftest.$ac_ext <<_ACEOF
17174 cat confdefs.h >>conftest.$ac_ext
17175 cat >>conftest.$ac_ext <<_ACEOF
17176 /* end confdefs.h. */
17177 $ac_includes_default
17178 #include <inq_stats/cpustats.h>
17180 rm -f conftest.$ac_objext
17181 if { (ac_try="$ac_compile"
17182 case "(($ac_try" in
17183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17184 *) ac_try_echo=$ac_try;;
17186 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17187 (eval "$ac_compile") 2>conftest.er1
17189 grep -v '^ *+' conftest.er1 >conftest.err
17191 cat conftest.err >&5
17192 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17193 (exit $ac_status); } && {
17194 test -z "$ac_c_werror_flag" ||
17195 test ! -s conftest.err
17196 } && test -s conftest.$ac_objext; then
17197 ac_header_compiler=yes
17199 echo "$as_me: failed program was
:" >&5
17200 sed 's/^/| /' conftest.$ac_ext >&5
17202 ac_header_compiler=no
17205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17206 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17207 echo "${ECHO_T}$ac_header_compiler" >&6; }
17209 # Is the header present?
17210 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17211 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17212 cat >conftest.$ac_ext <<_ACEOF
17215 cat confdefs.h >>conftest.$ac_ext
17216 cat >>conftest.$ac_ext <<_ACEOF
17217 /* end confdefs.h. */
17218 #include <inq_stats/cpustats.h>
17220 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17221 case "(($ac_try" in
17222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223 *) ac_try_echo=$ac_try;;
17225 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17226 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17228 grep -v '^ *+' conftest.er1 >conftest.err
17230 cat conftest.err >&5
17231 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17232 (exit $ac_status); } >/dev/null && {
17233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17234 test ! -s conftest.err
17236 ac_header_preproc=yes
17238 echo "$as_me: failed program was
:" >&5
17239 sed 's/^/| /' conftest.$ac_ext >&5
17241 ac_header_preproc=no
17244 rm -f conftest.err conftest.$ac_ext
17245 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17246 echo "${ECHO_T}$ac_header_preproc" >&6; }
17248 # So? What about this header?
17249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17251 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17252 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17253 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17254 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17255 ac_header_preproc=yes
17258 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17259 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17260 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17261 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17262 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17263 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17264 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17265 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17266 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17267 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17268 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17269 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17273 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17274 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17275 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17276 echo $ECHO_N "(cached
) $ECHO_C" >&6
17278 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17280 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17281 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17284 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17287 cat >>confdefs.h <<\_ACEOF
17292 cat >>confdefs.h <<\_ACEOF
17301 if test $ac_have_func = no; then
17302 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17303 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17304 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17305 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17306 echo $ECHO_N "(cached
) $ECHO_C" >&6
17308 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17309 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17311 # Is the header compilable?
17312 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17313 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17314 cat >conftest.$ac_ext <<_ACEOF
17317 cat confdefs.h >>conftest.$ac_ext
17318 cat >>conftest.$ac_ext <<_ACEOF
17319 /* end confdefs.h. */
17320 $ac_includes_default
17321 #include <sys/cpustats.h>
17323 rm -f conftest.$ac_objext
17324 if { (ac_try="$ac_compile"
17325 case "(($ac_try" in
17326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17327 *) ac_try_echo=$ac_try;;
17329 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17330 (eval "$ac_compile") 2>conftest.er1
17332 grep -v '^ *+' conftest.er1 >conftest.err
17334 cat conftest.err >&5
17335 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17336 (exit $ac_status); } && {
17337 test -z "$ac_c_werror_flag" ||
17338 test ! -s conftest.err
17339 } && test -s conftest.$ac_objext; then
17340 ac_header_compiler=yes
17342 echo "$as_me: failed program was
:" >&5
17343 sed 's/^/| /' conftest.$ac_ext >&5
17345 ac_header_compiler=no
17348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17349 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17350 echo "${ECHO_T}$ac_header_compiler" >&6; }
17352 # Is the header present?
17353 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17354 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17355 cat >conftest.$ac_ext <<_ACEOF
17358 cat confdefs.h >>conftest.$ac_ext
17359 cat >>conftest.$ac_ext <<_ACEOF
17360 /* end confdefs.h. */
17361 #include <sys/cpustats.h>
17363 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17364 case "(($ac_try" in
17365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17366 *) ac_try_echo=$ac_try;;
17368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17369 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17371 grep -v '^ *+' conftest.er1 >conftest.err
17373 cat conftest.err >&5
17374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17375 (exit $ac_status); } >/dev/null && {
17376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17377 test ! -s conftest.err
17379 ac_header_preproc=yes
17381 echo "$as_me: failed program was
:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17384 ac_header_preproc=no
17387 rm -f conftest.err conftest.$ac_ext
17388 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17389 echo "${ECHO_T}$ac_header_preproc" >&6; }
17391 # So? What about this header?
17392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17394 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17395 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17396 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17397 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17398 ac_header_preproc=yes
17401 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17402 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17403 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17404 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17405 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17406 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17407 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17408 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17409 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17410 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17411 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17412 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17416 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17417 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17418 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17419 echo $ECHO_N "(cached
) $ECHO_C" >&6
17421 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17423 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17424 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17427 if test $ac_cv_header_sys_cpustats_h = yes; then
17428 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17437 if test $ac_have_func = no; then
17439 for ac_header in mach/mach.h
17441 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17442 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17443 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17444 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17445 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17446 echo $ECHO_N "(cached
) $ECHO_C" >&6
17448 ac_res=`eval echo '${'$as_ac_Header'}'`
17449 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17450 echo "${ECHO_T}$ac_res" >&6; }
17452 # Is the header compilable?
17453 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17454 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17455 cat >conftest.$ac_ext <<_ACEOF
17458 cat confdefs.h >>conftest.$ac_ext
17459 cat >>conftest.$ac_ext <<_ACEOF
17460 /* end confdefs.h. */
17461 $ac_includes_default
17462 #include <$ac_header>
17464 rm -f conftest.$ac_objext
17465 if { (ac_try="$ac_compile"
17466 case "(($ac_try" in
17467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468 *) ac_try_echo=$ac_try;;
17470 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17471 (eval "$ac_compile") 2>conftest.er1
17473 grep -v '^ *+' conftest.er1 >conftest.err
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17477 (exit $ac_status); } && {
17478 test -z "$ac_c_werror_flag" ||
17479 test ! -s conftest.err
17480 } && test -s conftest.$ac_objext; then
17481 ac_header_compiler=yes
17483 echo "$as_me: failed program was
:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17486 ac_header_compiler=no
17489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17490 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17491 echo "${ECHO_T}$ac_header_compiler" >&6; }
17493 # Is the header present?
17494 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17495 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17496 cat >conftest.$ac_ext <<_ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17502 #include <$ac_header>
17504 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17505 case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17509 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17512 grep -v '^ *+' conftest.er1 >conftest.err
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17516 (exit $ac_status); } >/dev/null && {
17517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17518 test ! -s conftest.err
17520 ac_header_preproc=yes
17522 echo "$as_me: failed program was
:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17525 ac_header_preproc=no
17528 rm -f conftest.err conftest.$ac_ext
17529 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17530 echo "${ECHO_T}$ac_header_preproc" >&6; }
17532 # So? What about this header?
17533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17535 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17536 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17537 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17538 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17539 ac_header_preproc=yes
17542 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17543 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17544 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17545 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17546 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17547 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17548 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17549 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17550 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17551 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17552 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17553 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17557 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17558 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17559 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17560 echo $ECHO_N "(cached
) $ECHO_C" >&6
17562 eval "$as_ac_Header=\
$ac_header_preproc"
17564 ac_res=`eval echo '${'$as_ac_Header'}'`
17565 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17566 echo "${ECHO_T}$ac_res" >&6; }
17569 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17570 cat >>confdefs.h <<_ACEOF
17571 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17581 for ac_header in nlist.h
17583 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17584 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17585 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17586 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17587 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17588 echo $ECHO_N "(cached
) $ECHO_C" >&6
17590 ac_res=`eval echo '${'$as_ac_Header'}'`
17591 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17592 echo "${ECHO_T}$ac_res" >&6; }
17594 # Is the header compilable?
17595 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17596 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17597 cat >conftest.$ac_ext <<_ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h. */
17603 $ac_includes_default
17604 #include <$ac_header>
17606 rm -f conftest.$ac_objext
17607 if { (ac_try="$ac_compile"
17608 case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_compile") 2>conftest.er1
17615 grep -v '^ *+' conftest.er1 >conftest.err
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17619 (exit $ac_status); } && {
17620 test -z "$ac_c_werror_flag" ||
17621 test ! -s conftest.err
17622 } && test -s conftest.$ac_objext; then
17623 ac_header_compiler=yes
17625 echo "$as_me: failed program was
:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17628 ac_header_compiler=no
17631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17632 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17633 echo "${ECHO_T}$ac_header_compiler" >&6; }
17635 # Is the header present?
17636 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17637 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17638 cat >conftest.$ac_ext <<_ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h. */
17644 #include <$ac_header>
17646 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17647 case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17651 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17654 grep -v '^ *+' conftest.er1 >conftest.err
17656 cat conftest.err >&5
17657 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17658 (exit $ac_status); } >/dev/null && {
17659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17660 test ! -s conftest.err
17662 ac_header_preproc=yes
17664 echo "$as_me: failed program was
:" >&5
17665 sed 's/^/| /' conftest.$ac_ext >&5
17667 ac_header_preproc=no
17670 rm -f conftest.err conftest.$ac_ext
17671 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17672 echo "${ECHO_T}$ac_header_preproc" >&6; }
17674 # So? What about this header?
17675 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17677 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17678 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17679 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17680 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17681 ac_header_preproc=yes
17684 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17685 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17686 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17687 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17688 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17689 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17690 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17691 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17692 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17693 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17694 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17695 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17699 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17700 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17701 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17702 echo $ECHO_N "(cached
) $ECHO_C" >&6
17704 eval "$as_ac_Header=\
$ac_header_preproc"
17706 ac_res=`eval echo '${'$as_ac_Header'}'`
17707 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17708 echo "${ECHO_T}$ac_res" >&6; }
17711 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17712 cat >>confdefs.h <<_ACEOF
17713 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17715 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17716 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17717 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17718 echo $ECHO_N "(cached
) $ECHO_C" >&6
17720 cat >conftest.$ac_ext <<_ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17731 static struct nlist ac_aggr;
17732 if (ac_aggr.n_un.n_name)
17738 rm -f conftest.$ac_objext
17739 if { (ac_try="$ac_compile"
17740 case "(($ac_try" in
17741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17742 *) ac_try_echo=$ac_try;;
17744 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17745 (eval "$ac_compile") 2>conftest.er1
17747 grep -v '^ *+' conftest.er1 >conftest.err
17749 cat conftest.err >&5
17750 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17751 (exit $ac_status); } && {
17752 test -z "$ac_c_werror_flag" ||
17753 test ! -s conftest.err
17754 } && test -s conftest.$ac_objext; then
17755 ac_cv_member_struct_nlist_n_un_n_name=yes
17757 echo "$as_me: failed program was
:" >&5
17758 sed 's/^/| /' conftest.$ac_ext >&5
17760 cat >conftest.$ac_ext <<_ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17771 static struct nlist ac_aggr;
17772 if (sizeof ac_aggr.n_un.n_name)
17778 rm -f conftest.$ac_objext
17779 if { (ac_try="$ac_compile"
17780 case "(($ac_try" in
17781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17784 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17785 (eval "$ac_compile") 2>conftest.er1
17787 grep -v '^ *+' conftest.er1 >conftest.err
17789 cat conftest.err >&5
17790 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17791 (exit $ac_status); } && {
17792 test -z "$ac_c_werror_flag" ||
17793 test ! -s conftest.err
17794 } && test -s conftest.$ac_objext; then
17795 ac_cv_member_struct_nlist_n_un_n_name=yes
17797 echo "$as_me: failed program was
:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17800 ac_cv_member_struct_nlist_n_un_n_name=no
17803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17808 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17809 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17810 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17812 cat >>confdefs.h <<_ACEOF
17813 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17817 cat >>confdefs.h <<\_ACEOF
17818 #define NLIST_NAME_UNION 1
17832 # Some definitions of getloadavg require that the program be installed setgid.
17833 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
17834 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
17835 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17836 echo $ECHO_N "(cached
) $ECHO_C" >&6
17838 cat >conftest.$ac_ext <<_ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17844 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
17845 #ifdef LDAV_PRIVILEGED
17846 Yowza Am I SETGID yet
17849 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17850 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
17851 ac_cv_func_getloadavg_setgid=yes
17853 ac_cv_func_getloadavg_setgid=no
17858 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
17859 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17860 if test $ac_cv_func_getloadavg_setgid = yes; then
17863 cat >>confdefs.h <<\_ACEOF
17864 #define GETLOADAVG_PRIVILEGED 1
17871 if test $ac_cv_func_getloadavg_setgid = yes; then
17872 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
17873 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
17874 if test "${ac_cv_group_kmem+set}" = set; then
17875 echo $ECHO_N "(cached
) $ECHO_C" >&6
17877 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17878 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17879 # If we got an error (system does not support symlinks), try without -L.
17880 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17881 ac_cv_group_kmem=`echo $ac_ls_output \
17882 | sed -ne 's/[ ][ ]*/ /g;
17883 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17887 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
17888 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17889 KMEM_GROUP=$ac_cv_group_kmem
17891 if test "x
$ac_save_LIBS" = x; then
17892 GETLOADAVG_LIBS=$LIBS
17894 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
17900 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
17901 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
17902 if test "${ac_cv_sys_largefile_source+set}" = set; then
17903 echo $ECHO_N "(cached
) $ECHO_C" >&6
17906 cat >conftest.$ac_ext <<_ACEOF
17909 cat confdefs.h >>conftest.$ac_ext
17910 cat >>conftest.$ac_ext <<_ACEOF
17911 /* end confdefs.h. */
17912 #include <sys/types.h> /* for off_t */
17917 int (*fp) (FILE *, off_t, int) = fseeko;
17918 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17923 rm -f conftest.$ac_objext conftest$ac_exeext
17924 if { (ac_try="$ac_link"
17925 case "(($ac_try" in
17926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17927 *) ac_try_echo=$ac_try;;
17929 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17930 (eval "$ac_link") 2>conftest.er1
17932 grep -v '^ *+' conftest.er1 >conftest.err
17934 cat conftest.err >&5
17935 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17936 (exit $ac_status); } && {
17937 test -z "$ac_c_werror_flag" ||
17938 test ! -s conftest.err
17939 } && test -s conftest$ac_exeext &&
17940 $as_test_x conftest$ac_exeext; then
17941 ac_cv_sys_largefile_source=no; break
17943 echo "$as_me: failed program was
:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17950 conftest$ac_exeext conftest.$ac_ext
17951 cat >conftest.$ac_ext <<_ACEOF
17954 cat confdefs.h >>conftest.$ac_ext
17955 cat >>conftest.$ac_ext <<_ACEOF
17956 /* end confdefs.h. */
17957 #define _LARGEFILE_SOURCE 1
17958 #include <sys/types.h> /* for off_t */
17963 int (*fp) (FILE *, off_t, int) = fseeko;
17964 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17969 rm -f conftest.$ac_objext conftest$ac_exeext
17970 if { (ac_try="$ac_link"
17971 case "(($ac_try" in
17972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973 *) ac_try_echo=$ac_try;;
17975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17976 (eval "$ac_link") 2>conftest.er1
17978 grep -v '^ *+' conftest.er1 >conftest.err
17980 cat conftest.err >&5
17981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17982 (exit $ac_status); } && {
17983 test -z "$ac_c_werror_flag" ||
17984 test ! -s conftest.err
17985 } && test -s conftest$ac_exeext &&
17986 $as_test_x conftest$ac_exeext; then
17987 ac_cv_sys_largefile_source=1; break
17989 echo "$as_me: failed program was
:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17996 conftest$ac_exeext conftest.$ac_ext
17997 ac_cv_sys_largefile_source=unknown
18001 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18002 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18003 case $ac_cv_sys_largefile_source in #(
18006 cat >>confdefs.h <<_ACEOF
18007 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18013 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18014 # in glibc 2.1.3, but that breaks too many other things.
18015 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18016 if test $ac_cv_sys_largefile_source != unknown; then
18018 cat >>confdefs.h <<\_ACEOF
18019 #define HAVE_FSEEKO 1
18025 # Configure getopt.
18026 # getopt.m4 serial 10
18028 # The getopt module assume you want GNU getopt, with getopt_long etc,
18029 # rather than vanilla POSIX getopt. This means your your code should
18030 # always include <getopt.h> for the getopt prototypes.
18042 # Prerequisites of lib/getopt*.
18049 for ac_header in getopt.h
18051 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18052 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18053 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18054 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18055 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18056 echo $ECHO_N "(cached
) $ECHO_C" >&6
18058 ac_res=`eval echo '${'$as_ac_Header'}'`
18059 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18060 echo "${ECHO_T}$ac_res" >&6; }
18062 # Is the header compilable?
18063 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18064 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18065 cat >conftest.$ac_ext <<_ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h. */
18071 $ac_includes_default
18072 #include <$ac_header>
18074 rm -f conftest.$ac_objext
18075 if { (ac_try="$ac_compile"
18076 case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_compile") 2>conftest.er1
18083 grep -v '^ *+' conftest.er1 >conftest.err
18085 cat conftest.err >&5
18086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18087 (exit $ac_status); } && {
18088 test -z "$ac_c_werror_flag" ||
18089 test ! -s conftest.err
18090 } && test -s conftest.$ac_objext; then
18091 ac_header_compiler=yes
18093 echo "$as_me: failed program was
:" >&5
18094 sed 's/^/| /' conftest.$ac_ext >&5
18096 ac_header_compiler=no
18099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18100 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18101 echo "${ECHO_T}$ac_header_compiler" >&6; }
18103 # Is the header present?
18104 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18105 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18106 cat >conftest.$ac_ext <<_ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h. */
18112 #include <$ac_header>
18114 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18115 case "(($ac_try" in
18116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18117 *) ac_try_echo=$ac_try;;
18119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18120 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18122 grep -v '^ *+' conftest.er1 >conftest.err
18124 cat conftest.err >&5
18125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18126 (exit $ac_status); } >/dev/null && {
18127 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18128 test ! -s conftest.err
18130 ac_header_preproc=yes
18132 echo "$as_me: failed program was
:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18135 ac_header_preproc=no
18138 rm -f conftest.err conftest.$ac_ext
18139 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18140 echo "${ECHO_T}$ac_header_preproc" >&6; }
18142 # So? What about this header?
18143 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18145 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18146 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18147 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18148 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18149 ac_header_preproc=yes
18152 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18153 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18154 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18155 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18156 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18157 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18158 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18159 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18160 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18161 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18162 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18163 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18167 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18168 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18169 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18170 echo $ECHO_N "(cached
) $ECHO_C" >&6
18172 eval "$as_ac_Header=\
$ac_header_preproc"
18174 ac_res=`eval echo '${'$as_ac_Header'}'`
18175 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18176 echo "${ECHO_T}$ac_res" >&6; }
18179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18180 cat >>confdefs.h <<_ACEOF
18181 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18190 if test -z "$GETOPT_H"; then
18192 for ac_func in getopt_long_only
18194 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18195 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18196 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18197 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18198 echo $ECHO_N "(cached
) $ECHO_C" >&6
18200 cat >conftest.$ac_ext <<_ACEOF
18203 cat confdefs.h >>conftest.$ac_ext
18204 cat >>conftest.$ac_ext <<_ACEOF
18205 /* end confdefs.h. */
18206 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18207 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18208 #define $ac_func innocuous_$ac_func
18210 /* System header to define __stub macros and hopefully few prototypes,
18211 which can conflict with char $ac_func (); below.
18212 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18213 <limits.h> exists even on freestanding compilers. */
18216 # include <limits.h>
18218 # include <assert.h>
18223 /* Override any GCC internal prototype to avoid an error.
18224 Use char because int might match the return type of a GCC
18225 builtin and then its argument prototype would still apply. */
18230 /* The GNU C library defines this for functions which it implements
18231 to always fail with ENOSYS. Some functions are actually named
18232 something starting with __ and the normal name is an alias. */
18233 #if defined __stub_$ac_func || defined __stub___$ac_func
18240 return $ac_func ();
18245 rm -f conftest.$ac_objext conftest$ac_exeext
18246 if { (ac_try="$ac_link"
18247 case "(($ac_try" in
18248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18249 *) ac_try_echo=$ac_try;;
18251 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18252 (eval "$ac_link") 2>conftest.er1
18254 grep -v '^ *+' conftest.er1 >conftest.err
18256 cat conftest.err >&5
18257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18258 (exit $ac_status); } && {
18259 test -z "$ac_c_werror_flag" ||
18260 test ! -s conftest.err
18261 } && test -s conftest$ac_exeext &&
18262 $as_test_x conftest$ac_exeext; then
18263 eval "$as_ac_var=yes"
18265 echo "$as_me: failed program was
:" >&5
18266 sed 's/^/| /' conftest.$ac_ext >&5
18268 eval "$as_ac_var=no
"
18271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18272 conftest$ac_exeext conftest.$ac_ext
18274 ac_res=`eval echo '${'$as_ac_var'}'`
18275 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18276 echo "${ECHO_T}$ac_res" >&6; }
18277 if test `eval echo '${'$as_ac_var'}'` = yes; then
18278 cat >>confdefs.h <<_ACEOF
18279 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18289 if test -z "$GETOPT_H"; then
18290 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18291 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18292 if test "${ac_cv_have_decl_optreset+set}" = set; then
18293 echo $ECHO_N "(cached
) $ECHO_C" >&6
18295 cat >conftest.$ac_ext <<_ACEOF
18298 cat confdefs.h >>conftest.$ac_ext
18299 cat >>conftest.$ac_ext <<_ACEOF
18300 /* end confdefs.h. */
18301 #include <getopt.h>
18314 rm -f conftest.$ac_objext
18315 if { (ac_try="$ac_compile"
18316 case "(($ac_try" in
18317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18318 *) ac_try_echo=$ac_try;;
18320 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18321 (eval "$ac_compile") 2>conftest.er1
18323 grep -v '^ *+' conftest.er1 >conftest.err
18325 cat conftest.err >&5
18326 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18327 (exit $ac_status); } && {
18328 test -z "$ac_c_werror_flag" ||
18329 test ! -s conftest.err
18330 } && test -s conftest.$ac_objext; then
18331 ac_cv_have_decl_optreset=yes
18333 echo "$as_me: failed program was
:" >&5
18334 sed 's/^/| /' conftest.$ac_ext >&5
18336 ac_cv_have_decl_optreset=no
18339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18341 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18342 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18343 if test $ac_cv_have_decl_optreset = yes; then
18349 if test -z "$GETOPT_H"; then
18350 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18351 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18352 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18353 echo $ECHO_N "(cached
) $ECHO_C" >&6
18355 if test "$cross_compiling" = yes; then
18356 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18357 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18358 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18359 echo $ECHO_N "(cached
) $ECHO_C" >&6
18361 cat >conftest.$ac_ext <<_ACEOF
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h. */
18367 #include <getopt.h>
18372 #ifndef getopt_clip
18373 (void) getopt_clip;
18380 rm -f conftest.$ac_objext
18381 if { (ac_try="$ac_compile"
18382 case "(($ac_try" in
18383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18384 *) ac_try_echo=$ac_try;;
18386 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18387 (eval "$ac_compile") 2>conftest.er1
18389 grep -v '^ *+' conftest.er1 >conftest.err
18391 cat conftest.err >&5
18392 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18393 (exit $ac_status); } && {
18394 test -z "$ac_c_werror_flag" ||
18395 test ! -s conftest.err
18396 } && test -s conftest.$ac_objext; then
18397 ac_cv_have_decl_getopt_clip=yes
18399 echo "$as_me: failed program was
:" >&5
18400 sed 's/^/| /' conftest.$ac_ext >&5
18402 ac_cv_have_decl_getopt_clip=no
18405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18407 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18408 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18409 if test $ac_cv_have_decl_getopt_clip = yes; then
18410 gl_cv_func_gnu_getopt=no
18412 gl_cv_func_gnu_getopt=yes
18416 cat >conftest.$ac_ext <<_ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h. */
18422 #include <getopt.h>
18428 myargv[0] = "conftest
";
18431 return getopt (2, myargv, "+a
") != '?';
18437 rm -f conftest$ac_exeext
18438 if { (ac_try="$ac_link"
18439 case "(($ac_try" in
18440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 *) ac_try_echo=$ac_try;;
18443 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18444 (eval "$ac_link") 2>&5
18446 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18448 { (case "(($ac_try" in
18449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18450 *) ac_try_echo=$ac_try;;
18452 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18453 (eval "$ac_try") 2>&5
18455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18456 (exit $ac_status); }; }; then
18457 gl_cv_func_gnu_getopt=yes
18459 echo "$as_me: program exited with status
$ac_status" >&5
18460 echo "$as_me: failed program was
:" >&5
18461 sed 's/^/| /' conftest.$ac_ext >&5
18463 ( exit $ac_status )
18464 gl_cv_func_gnu_getopt=no
18466 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18471 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18472 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18473 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18480 if test -n "$GETOPT_H"; then
18485 cat >>confdefs.h <<\_ACEOF
18486 #define __GETOPT_PREFIX rpl_
18492 GETOPTOBJS='getopt.o getopt1.o'
18499 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18500 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18501 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18502 echo $ECHO_N "(cached
) $ECHO_C" >&6
18504 # Use it with a single arg.
18505 cat >conftest.$ac_ext <<_ACEOF
18508 cat confdefs.h >>conftest.$ac_ext
18509 cat >>conftest.$ac_ext <<_ACEOF
18510 /* end confdefs.h. */
18511 $ac_includes_default
18520 rm -f conftest.$ac_objext
18521 if { (ac_try="$ac_compile"
18522 case "(($ac_try" in
18523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18524 *) ac_try_echo=$ac_try;;
18526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18527 (eval "$ac_compile") 2>conftest.er1
18529 grep -v '^ *+' conftest.er1 >conftest.err
18531 cat conftest.err >&5
18532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18533 (exit $ac_status); } && {
18534 test -z "$ac_c_werror_flag" ||
18535 test ! -s conftest.err
18536 } && test -s conftest.$ac_objext; then
18537 ac_cv_func_getpgrp_void=no
18539 echo "$as_me: failed program was
:" >&5
18540 sed 's/^/| /' conftest.$ac_ext >&5
18542 ac_cv_func_getpgrp_void=yes
18545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18548 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18549 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18550 if test $ac_cv_func_getpgrp_void = yes; then
18552 cat >>confdefs.h <<\_ACEOF
18553 #define GETPGRP_VOID 1
18560 for ac_func in strftime
18562 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18563 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18564 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18565 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18566 echo $ECHO_N "(cached
) $ECHO_C" >&6
18568 cat >conftest.$ac_ext <<_ACEOF
18571 cat confdefs.h >>conftest.$ac_ext
18572 cat >>conftest.$ac_ext <<_ACEOF
18573 /* end confdefs.h. */
18574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18576 #define $ac_func innocuous_$ac_func
18578 /* System header to define __stub macros and hopefully few prototypes,
18579 which can conflict with char $ac_func (); below.
18580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18581 <limits.h> exists even on freestanding compilers. */
18584 # include <limits.h>
18586 # include <assert.h>
18591 /* Override any GCC internal prototype to avoid an error.
18592 Use char because int might match the return type of a GCC
18593 builtin and then its argument prototype would still apply. */
18598 /* The GNU C library defines this for functions which it implements
18599 to always fail with ENOSYS. Some functions are actually named
18600 something starting with __ and the normal name is an alias. */
18601 #if defined __stub_$ac_func || defined __stub___$ac_func
18608 return $ac_func ();
18613 rm -f conftest.$ac_objext conftest$ac_exeext
18614 if { (ac_try="$ac_link"
18615 case "(($ac_try" in
18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18619 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18620 (eval "$ac_link") 2>conftest.er1
18622 grep -v '^ *+' conftest.er1 >conftest.err
18624 cat conftest.err >&5
18625 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18626 (exit $ac_status); } && {
18627 test -z "$ac_c_werror_flag" ||
18628 test ! -s conftest.err
18629 } && test -s conftest$ac_exeext &&
18630 $as_test_x conftest$ac_exeext; then
18631 eval "$as_ac_var=yes"
18633 echo "$as_me: failed program was
:" >&5
18634 sed 's/^/| /' conftest.$ac_ext >&5
18636 eval "$as_ac_var=no
"
18639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18640 conftest$ac_exeext conftest.$ac_ext
18642 ac_res=`eval echo '${'$as_ac_var'}'`
18643 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18644 echo "${ECHO_T}$ac_res" >&6; }
18645 if test `eval echo '${'$as_ac_var'}'` = yes; then
18646 cat >>confdefs.h <<_ACEOF
18647 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18651 # strftime is in -lintl on SCO UNIX.
18652 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18653 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18654 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18655 echo $ECHO_N "(cached
) $ECHO_C" >&6
18657 ac_check_lib_save_LIBS=$LIBS
18658 LIBS="-lintl $LIBS"
18659 cat >conftest.$ac_ext <<_ACEOF
18662 cat confdefs.h >>conftest.$ac_ext
18663 cat >>conftest.$ac_ext <<_ACEOF
18664 /* end confdefs.h. */
18666 /* Override any GCC internal prototype to avoid an error.
18667 Use char because int might match the return type of a GCC
18668 builtin and then its argument prototype would still apply. */
18676 return strftime ();
18681 rm -f conftest.$ac_objext conftest$ac_exeext
18682 if { (ac_try="$ac_link"
18683 case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_link") 2>conftest.er1
18690 grep -v '^ *+' conftest.er1 >conftest.err
18692 cat conftest.err >&5
18693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18694 (exit $ac_status); } && {
18695 test -z "$ac_c_werror_flag" ||
18696 test ! -s conftest.err
18697 } && test -s conftest$ac_exeext &&
18698 $as_test_x conftest$ac_exeext; then
18699 ac_cv_lib_intl_strftime=yes
18701 echo "$as_me: failed program was
:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18704 ac_cv_lib_intl_strftime=no
18707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18708 conftest$ac_exeext conftest.$ac_ext
18709 LIBS=$ac_check_lib_save_LIBS
18711 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18712 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18713 if test $ac_cv_lib_intl_strftime = yes; then
18714 cat >>confdefs.h <<\_ACEOF
18715 #define HAVE_STRFTIME 1
18718 LIBS="-lintl $LIBS"
18727 for ac_func in grantpt
18729 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18730 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18731 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18732 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18733 echo $ECHO_N "(cached
) $ECHO_C" >&6
18735 cat >conftest.$ac_ext <<_ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18743 #define $ac_func innocuous_$ac_func
18745 /* System header to define __stub macros and hopefully few prototypes,
18746 which can conflict with char $ac_func (); below.
18747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18748 <limits.h> exists even on freestanding compilers. */
18751 # include <limits.h>
18753 # include <assert.h>
18758 /* Override any GCC internal prototype to avoid an error.
18759 Use char because int might match the return type of a GCC
18760 builtin and then its argument prototype would still apply. */
18765 /* The GNU C library defines this for functions which it implements
18766 to always fail with ENOSYS. Some functions are actually named
18767 something starting with __ and the normal name is an alias. */
18768 #if defined __stub_$ac_func || defined __stub___$ac_func
18775 return $ac_func ();
18780 rm -f conftest.$ac_objext conftest$ac_exeext
18781 if { (ac_try="$ac_link"
18782 case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18786 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18787 (eval "$ac_link") 2>conftest.er1
18789 grep -v '^ *+' conftest.er1 >conftest.err
18791 cat conftest.err >&5
18792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18793 (exit $ac_status); } && {
18794 test -z "$ac_c_werror_flag" ||
18795 test ! -s conftest.err
18796 } && test -s conftest$ac_exeext &&
18797 $as_test_x conftest$ac_exeext; then
18798 eval "$as_ac_var=yes"
18800 echo "$as_me: failed program was
:" >&5
18801 sed 's/^/| /' conftest.$ac_ext >&5
18803 eval "$as_ac_var=no
"
18806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18807 conftest$ac_exeext conftest.$ac_ext
18809 ac_res=`eval echo '${'$as_ac_var'}'`
18810 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18811 echo "${ECHO_T}$ac_res" >&6; }
18812 if test `eval echo '${'$as_ac_var'}'` = yes; then
18813 cat >>confdefs.h <<_ACEOF
18814 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18821 # PTY-related GNU extensions.
18823 for ac_func in getpt
18825 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18826 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18827 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18828 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18829 echo $ECHO_N "(cached
) $ECHO_C" >&6
18831 cat >conftest.$ac_ext <<_ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18839 #define $ac_func innocuous_$ac_func
18841 /* System header to define __stub macros and hopefully few prototypes,
18842 which can conflict with char $ac_func (); below.
18843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18844 <limits.h> exists even on freestanding compilers. */
18847 # include <limits.h>
18849 # include <assert.h>
18854 /* Override any GCC internal prototype to avoid an error.
18855 Use char because int might match the return type of a GCC
18856 builtin and then its argument prototype would still apply. */
18861 /* The GNU C library defines this for functions which it implements
18862 to always fail with ENOSYS. Some functions are actually named
18863 something starting with __ and the normal name is an alias. */
18864 #if defined __stub_$ac_func || defined __stub___$ac_func
18871 return $ac_func ();
18876 rm -f conftest.$ac_objext conftest$ac_exeext
18877 if { (ac_try="$ac_link"
18878 case "(($ac_try" in
18879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18880 *) ac_try_echo=$ac_try;;
18882 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18883 (eval "$ac_link") 2>conftest.er1
18885 grep -v '^ *+' conftest.er1 >conftest.err
18887 cat conftest.err >&5
18888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18889 (exit $ac_status); } && {
18890 test -z "$ac_c_werror_flag" ||
18891 test ! -s conftest.err
18892 } && test -s conftest$ac_exeext &&
18893 $as_test_x conftest$ac_exeext; then
18894 eval "$as_ac_var=yes"
18896 echo "$as_me: failed program was
:" >&5
18897 sed 's/^/| /' conftest.$ac_ext >&5
18899 eval "$as_ac_var=no
"
18902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18903 conftest$ac_exeext conftest.$ac_ext
18905 ac_res=`eval echo '${'$as_ac_var'}'`
18906 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18907 echo "${ECHO_T}$ac_res" >&6; }
18908 if test `eval echo '${'$as_ac_var'}'` = yes; then
18909 cat >>confdefs.h <<_ACEOF
18910 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18917 # Check this now, so that we will NOT find the above functions in ncurses.
18918 # That is because we have not set up to link ncurses in lib-src.
18919 # It's better to believe a function is not available
18920 # than to expect to find it in ncurses.
18922 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
18923 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
18924 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18925 echo $ECHO_N "(cached
) $ECHO_C" >&6
18927 ac_check_lib_save_LIBS=$LIBS
18928 LIBS="-lncurses $LIBS"
18929 cat >conftest.$ac_ext <<_ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18936 /* Override any GCC internal prototype to avoid an error.
18937 Use char because int might match the return type of a GCC
18938 builtin and then its argument prototype would still apply. */
18951 rm -f conftest.$ac_objext conftest$ac_exeext
18952 if { (ac_try="$ac_link"
18953 case "(($ac_try" in
18954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18955 *) ac_try_echo=$ac_try;;
18957 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18958 (eval "$ac_link") 2>conftest.er1
18960 grep -v '^ *+' conftest.er1 >conftest.err
18962 cat conftest.err >&5
18963 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18964 (exit $ac_status); } && {
18965 test -z "$ac_c_werror_flag" ||
18966 test ! -s conftest.err
18967 } && test -s conftest$ac_exeext &&
18968 $as_test_x conftest$ac_exeext; then
18969 ac_cv_lib_ncurses_tparm=yes
18971 echo "$as_me: failed program was
:" >&5
18972 sed 's/^/| /' conftest.$ac_ext >&5
18974 ac_cv_lib_ncurses_tparm=no
18977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18978 conftest$ac_exeext conftest.$ac_ext
18979 LIBS=$ac_check_lib_save_LIBS
18981 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
18982 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18983 if test $ac_cv_lib_ncurses_tparm = yes; then
18984 cat >>confdefs.h <<_ACEOF
18985 #define HAVE_LIBNCURSES 1
18988 LIBS="-lncurses $LIBS"
18993 # Do we need the Hesiod library to provide the support routines?
18994 if test "$with_hesiod" = yes ; then
18995 # Don't set $LIBS here -- see comments above.
18997 { echo "$as_me:$LINENO: checking
for res_send
" >&5
18998 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
18999 if test "${ac_cv_func_res_send+set}" = set; then
19000 echo $ECHO_N "(cached
) $ECHO_C" >&6
19002 cat >conftest.$ac_ext <<_ACEOF
19005 cat confdefs.h >>conftest.$ac_ext
19006 cat >>conftest.$ac_ext <<_ACEOF
19007 /* end confdefs.h. */
19008 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19010 #define res_send innocuous_res_send
19012 /* System header to define __stub macros and hopefully few prototypes,
19013 which can conflict with char res_send (); below.
19014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19015 <limits.h> exists even on freestanding compilers. */
19018 # include <limits.h>
19020 # include <assert.h>
19025 /* Override any GCC internal prototype to avoid an error.
19026 Use char because int might match the return type of a GCC
19027 builtin and then its argument prototype would still apply. */
19032 /* The GNU C library defines this for functions which it implements
19033 to always fail with ENOSYS. Some functions are actually named
19034 something starting with __ and the normal name is an alias. */
19035 #if defined __stub_res_send || defined __stub___res_send
19042 return res_send ();
19047 rm -f conftest.$ac_objext conftest$ac_exeext
19048 if { (ac_try="$ac_link"
19049 case "(($ac_try" in
19050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051 *) ac_try_echo=$ac_try;;
19053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19054 (eval "$ac_link") 2>conftest.er1
19056 grep -v '^ *+' conftest.er1 >conftest.err
19058 cat conftest.err >&5
19059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19060 (exit $ac_status); } && {
19061 test -z "$ac_c_werror_flag" ||
19062 test ! -s conftest.err
19063 } && test -s conftest$ac_exeext &&
19064 $as_test_x conftest$ac_exeext; then
19065 ac_cv_func_res_send=yes
19067 echo "$as_me: failed program was
:" >&5
19068 sed 's/^/| /' conftest.$ac_ext >&5
19070 ac_cv_func_res_send=no
19073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19074 conftest$ac_exeext conftest.$ac_ext
19076 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19077 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19078 if test $ac_cv_func_res_send = yes; then
19081 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19082 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19083 if test "${ac_cv_func___res_send+set}" = set; then
19084 echo $ECHO_N "(cached
) $ECHO_C" >&6
19086 cat >conftest.$ac_ext <<_ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h. */
19092 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19093 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19094 #define __res_send innocuous___res_send
19096 /* System header to define __stub macros and hopefully few prototypes,
19097 which can conflict with char __res_send (); below.
19098 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19099 <limits.h> exists even on freestanding compilers. */
19102 # include <limits.h>
19104 # include <assert.h>
19109 /* Override any GCC internal prototype to avoid an error.
19110 Use char because int might match the return type of a GCC
19111 builtin and then its argument prototype would still apply. */
19115 char __res_send ();
19116 /* The GNU C library defines this for functions which it implements
19117 to always fail with ENOSYS. Some functions are actually named
19118 something starting with __ and the normal name is an alias. */
19119 #if defined __stub___res_send || defined __stub_____res_send
19126 return __res_send ();
19131 rm -f conftest.$ac_objext conftest$ac_exeext
19132 if { (ac_try="$ac_link"
19133 case "(($ac_try" in
19134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19135 *) ac_try_echo=$ac_try;;
19137 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19138 (eval "$ac_link") 2>conftest.er1
19140 grep -v '^ *+' conftest.er1 >conftest.err
19142 cat conftest.err >&5
19143 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19144 (exit $ac_status); } && {
19145 test -z "$ac_c_werror_flag" ||
19146 test ! -s conftest.err
19147 } && test -s conftest$ac_exeext &&
19148 $as_test_x conftest$ac_exeext; then
19149 ac_cv_func___res_send=yes
19151 echo "$as_me: failed program was
:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19154 ac_cv_func___res_send=no
19157 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19158 conftest$ac_exeext conftest.$ac_ext
19160 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19161 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19162 if test $ac_cv_func___res_send = yes; then
19165 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19166 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19167 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19168 echo $ECHO_N "(cached
) $ECHO_C" >&6
19170 ac_check_lib_save_LIBS=$LIBS
19171 LIBS="-lresolv $LIBS"
19172 cat >conftest.$ac_ext <<_ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h. */
19179 /* Override any GCC internal prototype to avoid an error.
19180 Use char because int might match the return type of a GCC
19181 builtin and then its argument prototype would still apply. */
19189 return res_send ();
19194 rm -f conftest.$ac_objext conftest$ac_exeext
19195 if { (ac_try="$ac_link"
19196 case "(($ac_try" in
19197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198 *) ac_try_echo=$ac_try;;
19200 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19201 (eval "$ac_link") 2>conftest.er1
19203 grep -v '^ *+' conftest.er1 >conftest.err
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19207 (exit $ac_status); } && {
19208 test -z "$ac_c_werror_flag" ||
19209 test ! -s conftest.err
19210 } && test -s conftest$ac_exeext &&
19211 $as_test_x conftest$ac_exeext; then
19212 ac_cv_lib_resolv_res_send=yes
19214 echo "$as_me: failed program was
:" >&5
19215 sed 's/^/| /' conftest.$ac_ext >&5
19217 ac_cv_lib_resolv_res_send=no
19220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19221 conftest$ac_exeext conftest.$ac_ext
19222 LIBS=$ac_check_lib_save_LIBS
19224 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19225 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19226 if test $ac_cv_lib_resolv_res_send = yes; then
19229 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19230 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19231 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19232 echo $ECHO_N "(cached
) $ECHO_C" >&6
19234 ac_check_lib_save_LIBS=$LIBS
19235 LIBS="-lresolv $LIBS"
19236 cat >conftest.$ac_ext <<_ACEOF
19239 cat confdefs.h >>conftest.$ac_ext
19240 cat >>conftest.$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19243 /* Override any GCC internal prototype to avoid an error.
19244 Use char because int might match the return type of a GCC
19245 builtin and then its argument prototype would still apply. */
19249 char __res_send ();
19253 return __res_send ();
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 ac_cv_lib_resolv___res_send=yes
19278 echo "$as_me: failed program was
:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19281 ac_cv_lib_resolv___res_send=no
19284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19285 conftest$ac_exeext conftest.$ac_ext
19286 LIBS=$ac_check_lib_save_LIBS
19288 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19289 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19290 if test $ac_cv_lib_resolv___res_send = yes; then
19300 if test "$resolv" = yes ; then
19303 cat >>confdefs.h <<\_ACEOF
19304 #define HAVE_LIBRESOLV 1
19310 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19311 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19312 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19313 echo $ECHO_N "(cached
) $ECHO_C" >&6
19315 cat >conftest.$ac_ext <<_ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h. */
19321 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19323 #define hes_getmailhost innocuous_hes_getmailhost
19325 /* System header to define __stub macros and hopefully few prototypes,
19326 which can conflict with char hes_getmailhost (); below.
19327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19328 <limits.h> exists even on freestanding compilers. */
19331 # include <limits.h>
19333 # include <assert.h>
19336 #undef hes_getmailhost
19338 /* Override any GCC internal prototype to avoid an error.
19339 Use char because int might match the return type of a GCC
19340 builtin and then its argument prototype would still apply. */
19344 char hes_getmailhost ();
19345 /* The GNU C library defines this for functions which it implements
19346 to always fail with ENOSYS. Some functions are actually named
19347 something starting with __ and the normal name is an alias. */
19348 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19355 return hes_getmailhost ();
19360 rm -f conftest.$ac_objext conftest$ac_exeext
19361 if { (ac_try="$ac_link"
19362 case "(($ac_try" in
19363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19364 *) ac_try_echo=$ac_try;;
19366 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19367 (eval "$ac_link") 2>conftest.er1
19369 grep -v '^ *+' conftest.er1 >conftest.err
19371 cat conftest.err >&5
19372 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19373 (exit $ac_status); } && {
19374 test -z "$ac_c_werror_flag" ||
19375 test ! -s conftest.err
19376 } && test -s conftest$ac_exeext &&
19377 $as_test_x conftest$ac_exeext; then
19378 ac_cv_func_hes_getmailhost=yes
19380 echo "$as_me: failed program was
:" >&5
19381 sed 's/^/| /' conftest.$ac_ext >&5
19383 ac_cv_func_hes_getmailhost=no
19386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19387 conftest$ac_exeext conftest.$ac_ext
19389 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19390 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19391 if test $ac_cv_func_hes_getmailhost = yes; then
19394 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19395 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19396 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19397 echo $ECHO_N "(cached
) $ECHO_C" >&6
19399 ac_check_lib_save_LIBS=$LIBS
19400 LIBS="-lhesiod $RESOLVLIB $LIBS"
19401 cat >conftest.$ac_ext <<_ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19408 /* Override any GCC internal prototype to avoid an error.
19409 Use char because int might match the return type of a GCC
19410 builtin and then its argument prototype would still apply. */
19414 char hes_getmailhost ();
19418 return hes_getmailhost ();
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (ac_try="$ac_link"
19425 case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_link") 2>conftest.er1
19432 grep -v '^ *+' conftest.er1 >conftest.err
19434 cat conftest.err >&5
19435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19436 (exit $ac_status); } && {
19437 test -z "$ac_c_werror_flag" ||
19438 test ! -s conftest.err
19439 } && test -s conftest$ac_exeext &&
19440 $as_test_x conftest$ac_exeext; then
19441 ac_cv_lib_hesiod_hes_getmailhost=yes
19443 echo "$as_me: failed program was
:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 ac_cv_lib_hesiod_hes_getmailhost=no
19449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19450 conftest$ac_exeext conftest.$ac_ext
19451 LIBS=$ac_check_lib_save_LIBS
19453 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19454 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19455 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19457 cat >>confdefs.h <<\_ACEOF
19458 #define HAVE_LIBHESIOD 1
19469 # These tell us which Kerberos-related libraries to use.
19470 if test "${with_kerberos+set}" = set; then
19472 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19473 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19474 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19475 echo $ECHO_N "(cached
) $ECHO_C" >&6
19477 ac_check_lib_save_LIBS=$LIBS
19478 LIBS="-lcom_err $LIBS"
19479 cat >conftest.$ac_ext <<_ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19486 /* Override any GCC internal prototype to avoid an error.
19487 Use char because int might match the return type of a GCC
19488 builtin and then its argument prototype would still apply. */
19501 rm -f conftest.$ac_objext conftest$ac_exeext
19502 if { (ac_try="$ac_link"
19503 case "(($ac_try" in
19504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505 *) ac_try_echo=$ac_try;;
19507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19508 (eval "$ac_link") 2>conftest.er1
19510 grep -v '^ *+' conftest.er1 >conftest.err
19512 cat conftest.err >&5
19513 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19514 (exit $ac_status); } && {
19515 test -z "$ac_c_werror_flag" ||
19516 test ! -s conftest.err
19517 } && test -s conftest$ac_exeext &&
19518 $as_test_x conftest$ac_exeext; then
19519 ac_cv_lib_com_err_com_err=yes
19521 echo "$as_me: failed program was
:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19524 ac_cv_lib_com_err_com_err=no
19527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19528 conftest$ac_exeext conftest.$ac_ext
19529 LIBS=$ac_check_lib_save_LIBS
19531 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19532 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19533 if test $ac_cv_lib_com_err_com_err = yes; then
19534 cat >>confdefs.h <<_ACEOF
19535 #define HAVE_LIBCOM_ERR 1
19538 LIBS="-lcom_err $LIBS"
19543 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19544 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19545 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19546 echo $ECHO_N "(cached
) $ECHO_C" >&6
19548 ac_check_lib_save_LIBS=$LIBS
19549 LIBS="-lk5crypto $LIBS"
19550 cat >conftest.$ac_ext <<_ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h. */
19557 /* Override any GCC internal prototype to avoid an error.
19558 Use char because int might match the return type of a GCC
19559 builtin and then its argument prototype would still apply. */
19563 char mit_des_cbc_encrypt ();
19567 return mit_des_cbc_encrypt ();
19572 rm -f conftest.$ac_objext conftest$ac_exeext
19573 if { (ac_try="$ac_link"
19574 case "(($ac_try" in
19575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19576 *) ac_try_echo=$ac_try;;
19578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19579 (eval "$ac_link") 2>conftest.er1
19581 grep -v '^ *+' conftest.er1 >conftest.err
19583 cat conftest.err >&5
19584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19585 (exit $ac_status); } && {
19586 test -z "$ac_c_werror_flag" ||
19587 test ! -s conftest.err
19588 } && test -s conftest$ac_exeext &&
19589 $as_test_x conftest$ac_exeext; then
19590 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19592 echo "$as_me: failed program was
:" >&5
19593 sed 's/^/| /' conftest.$ac_ext >&5
19595 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19599 conftest$ac_exeext conftest.$ac_ext
19600 LIBS=$ac_check_lib_save_LIBS
19602 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19603 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19604 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19605 cat >>confdefs.h <<_ACEOF
19606 #define HAVE_LIBK5CRYPTO 1
19609 LIBS="-lk5crypto $LIBS"
19614 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19615 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19616 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19617 echo $ECHO_N "(cached
) $ECHO_C" >&6
19619 ac_check_lib_save_LIBS=$LIBS
19620 LIBS="-lcrypto $LIBS"
19621 cat >conftest.$ac_ext <<_ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h. */
19628 /* Override any GCC internal prototype to avoid an error.
19629 Use char because int might match the return type of a GCC
19630 builtin and then its argument prototype would still apply. */
19634 char mit_des_cbc_encrypt ();
19638 return mit_des_cbc_encrypt ();
19643 rm -f conftest.$ac_objext conftest$ac_exeext
19644 if { (ac_try="$ac_link"
19645 case "(($ac_try" in
19646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19647 *) ac_try_echo=$ac_try;;
19649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19650 (eval "$ac_link") 2>conftest.er1
19652 grep -v '^ *+' conftest.er1 >conftest.err
19654 cat conftest.err >&5
19655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19656 (exit $ac_status); } && {
19657 test -z "$ac_c_werror_flag" ||
19658 test ! -s conftest.err
19659 } && test -s conftest$ac_exeext &&
19660 $as_test_x conftest$ac_exeext; then
19661 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19663 echo "$as_me: failed program was
:" >&5
19664 sed 's/^/| /' conftest.$ac_ext >&5
19666 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19670 conftest$ac_exeext conftest.$ac_ext
19671 LIBS=$ac_check_lib_save_LIBS
19673 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19674 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19675 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19676 cat >>confdefs.h <<_ACEOF
19677 #define HAVE_LIBCRYPTO 1
19680 LIBS="-lcrypto $LIBS"
19685 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19686 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19687 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19688 echo $ECHO_N "(cached
) $ECHO_C" >&6
19690 ac_check_lib_save_LIBS=$LIBS
19691 LIBS="-lkrb5 $LIBS"
19692 cat >conftest.$ac_ext <<_ACEOF
19695 cat confdefs.h >>conftest.$ac_ext
19696 cat >>conftest.$ac_ext <<_ACEOF
19697 /* end confdefs.h. */
19699 /* Override any GCC internal prototype to avoid an error.
19700 Use char because int might match the return type of a GCC
19701 builtin and then its argument prototype would still apply. */
19705 char krb5_init_context ();
19709 return krb5_init_context ();
19714 rm -f conftest.$ac_objext conftest$ac_exeext
19715 if { (ac_try="$ac_link"
19716 case "(($ac_try" in
19717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19718 *) ac_try_echo=$ac_try;;
19720 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19721 (eval "$ac_link") 2>conftest.er1
19723 grep -v '^ *+' conftest.er1 >conftest.err
19725 cat conftest.err >&5
19726 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19727 (exit $ac_status); } && {
19728 test -z "$ac_c_werror_flag" ||
19729 test ! -s conftest.err
19730 } && test -s conftest$ac_exeext &&
19731 $as_test_x conftest$ac_exeext; then
19732 ac_cv_lib_krb5_krb5_init_context=yes
19734 echo "$as_me: failed program was
:" >&5
19735 sed 's/^/| /' conftest.$ac_ext >&5
19737 ac_cv_lib_krb5_krb5_init_context=no
19740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19741 conftest$ac_exeext conftest.$ac_ext
19742 LIBS=$ac_check_lib_save_LIBS
19744 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19745 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19746 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19747 cat >>confdefs.h <<_ACEOF
19748 #define HAVE_LIBKRB5 1
19751 LIBS="-lkrb5 $LIBS"
19755 if test "${with_kerberos5+set}" != set; then
19757 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19758 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19759 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19760 echo $ECHO_N "(cached
) $ECHO_C" >&6
19762 ac_check_lib_save_LIBS=$LIBS
19763 LIBS="-ldes425 $LIBS"
19764 cat >conftest.$ac_ext <<_ACEOF
19767 cat confdefs.h >>conftest.$ac_ext
19768 cat >>conftest.$ac_ext <<_ACEOF
19769 /* end confdefs.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. */
19777 char des_cbc_encrypt ();
19781 return des_cbc_encrypt ();
19786 rm -f conftest.$ac_objext conftest$ac_exeext
19787 if { (ac_try="$ac_link"
19788 case "(($ac_try" in
19789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790 *) ac_try_echo=$ac_try;;
19792 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19793 (eval "$ac_link") 2>conftest.er1
19795 grep -v '^ *+' conftest.er1 >conftest.err
19797 cat conftest.err >&5
19798 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19799 (exit $ac_status); } && {
19800 test -z "$ac_c_werror_flag" ||
19801 test ! -s conftest.err
19802 } && test -s conftest$ac_exeext &&
19803 $as_test_x conftest$ac_exeext; then
19804 ac_cv_lib_des425_des_cbc_encrypt=yes
19806 echo "$as_me: failed program was
:" >&5
19807 sed 's/^/| /' conftest.$ac_ext >&5
19809 ac_cv_lib_des425_des_cbc_encrypt=no
19812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19813 conftest$ac_exeext conftest.$ac_ext
19814 LIBS=$ac_check_lib_save_LIBS
19816 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19817 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19818 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19819 cat >>confdefs.h <<_ACEOF
19820 #define HAVE_LIBDES425 1
19823 LIBS="-ldes425 $LIBS"
19827 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
19828 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
19829 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19830 echo $ECHO_N "(cached
) $ECHO_C" >&6
19832 ac_check_lib_save_LIBS=$LIBS
19834 cat >conftest.$ac_ext <<_ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19841 /* Override any GCC internal prototype to avoid an error.
19842 Use char because int might match the return type of a GCC
19843 builtin and then its argument prototype would still apply. */
19847 char des_cbc_encrypt ();
19851 return des_cbc_encrypt ();
19856 rm -f conftest.$ac_objext conftest$ac_exeext
19857 if { (ac_try="$ac_link"
19858 case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_link") 2>conftest.er1
19865 grep -v '^ *+' conftest.er1 >conftest.err
19867 cat conftest.err >&5
19868 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19869 (exit $ac_status); } && {
19870 test -z "$ac_c_werror_flag" ||
19871 test ! -s conftest.err
19872 } && test -s conftest$ac_exeext &&
19873 $as_test_x conftest$ac_exeext; then
19874 ac_cv_lib_des_des_cbc_encrypt=yes
19876 echo "$as_me: failed program was
:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19879 ac_cv_lib_des_des_cbc_encrypt=no
19882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19883 conftest$ac_exeext conftest.$ac_ext
19884 LIBS=$ac_check_lib_save_LIBS
19886 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
19887 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19888 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19889 cat >>confdefs.h <<_ACEOF
19890 #define HAVE_LIBDES 1
19900 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
19901 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
19902 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19903 echo $ECHO_N "(cached
) $ECHO_C" >&6
19905 ac_check_lib_save_LIBS=$LIBS
19906 LIBS="-lkrb4 $LIBS"
19907 cat >conftest.$ac_ext <<_ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h. */
19914 /* Override any GCC internal prototype to avoid an error.
19915 Use char because int might match the return type of a GCC
19916 builtin and then its argument prototype would still apply. */
19920 char krb_get_cred ();
19924 return krb_get_cred ();
19929 rm -f conftest.$ac_objext conftest$ac_exeext
19930 if { (ac_try="$ac_link"
19931 case "(($ac_try" in
19932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933 *) ac_try_echo=$ac_try;;
19935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19936 (eval "$ac_link") 2>conftest.er1
19938 grep -v '^ *+' conftest.er1 >conftest.err
19940 cat conftest.err >&5
19941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19942 (exit $ac_status); } && {
19943 test -z "$ac_c_werror_flag" ||
19944 test ! -s conftest.err
19945 } && test -s conftest$ac_exeext &&
19946 $as_test_x conftest$ac_exeext; then
19947 ac_cv_lib_krb4_krb_get_cred=yes
19949 echo "$as_me: failed program was
:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19952 ac_cv_lib_krb4_krb_get_cred=no
19955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19956 conftest$ac_exeext conftest.$ac_ext
19957 LIBS=$ac_check_lib_save_LIBS
19959 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
19960 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19961 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19962 cat >>confdefs.h <<_ACEOF
19963 #define HAVE_LIBKRB4 1
19966 LIBS="-lkrb4 $LIBS"
19970 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
19971 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
19972 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19973 echo $ECHO_N "(cached
) $ECHO_C" >&6
19975 ac_check_lib_save_LIBS=$LIBS
19977 cat >conftest.$ac_ext <<_ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19984 /* Override any GCC internal prototype to avoid an error.
19985 Use char because int might match the return type of a GCC
19986 builtin and then its argument prototype would still apply. */
19990 char krb_get_cred ();
19994 return krb_get_cred ();
19999 rm -f conftest.$ac_objext conftest$ac_exeext
20000 if { (ac_try="$ac_link"
20001 case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20006 (eval "$ac_link") 2>conftest.er1
20008 grep -v '^ *+' conftest.er1 >conftest.err
20010 cat conftest.err >&5
20011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20012 (exit $ac_status); } && {
20013 test -z "$ac_c_werror_flag" ||
20014 test ! -s conftest.err
20015 } && test -s conftest$ac_exeext &&
20016 $as_test_x conftest$ac_exeext; then
20017 ac_cv_lib_krb_krb_get_cred=yes
20019 echo "$as_me: failed program was
:" >&5
20020 sed 's/^/| /' conftest.$ac_ext >&5
20022 ac_cv_lib_krb_krb_get_cred=no
20025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20026 conftest$ac_exeext conftest.$ac_ext
20027 LIBS=$ac_check_lib_save_LIBS
20029 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20030 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20031 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20032 cat >>confdefs.h <<_ACEOF
20033 #define HAVE_LIBKRB 1
20044 if test "${with_kerberos5+set}" = set; then
20046 for ac_header in krb5.h
20048 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20049 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20050 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20051 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20052 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20053 echo $ECHO_N "(cached
) $ECHO_C" >&6
20055 ac_res=`eval echo '${'$as_ac_Header'}'`
20056 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20057 echo "${ECHO_T}$ac_res" >&6; }
20059 # Is the header compilable?
20060 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20061 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20062 cat >conftest.$ac_ext <<_ACEOF
20065 cat confdefs.h >>conftest.$ac_ext
20066 cat >>conftest.$ac_ext <<_ACEOF
20067 /* end confdefs.h. */
20068 $ac_includes_default
20069 #include <$ac_header>
20071 rm -f conftest.$ac_objext
20072 if { (ac_try="$ac_compile"
20073 case "(($ac_try" in
20074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075 *) ac_try_echo=$ac_try;;
20077 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20078 (eval "$ac_compile") 2>conftest.er1
20080 grep -v '^ *+' conftest.er1 >conftest.err
20082 cat conftest.err >&5
20083 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20084 (exit $ac_status); } && {
20085 test -z "$ac_c_werror_flag" ||
20086 test ! -s conftest.err
20087 } && test -s conftest.$ac_objext; then
20088 ac_header_compiler=yes
20090 echo "$as_me: failed program was
:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20093 ac_header_compiler=no
20096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20097 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20098 echo "${ECHO_T}$ac_header_compiler" >&6; }
20100 # Is the header present?
20101 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20102 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20103 cat >conftest.$ac_ext <<_ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20109 #include <$ac_header>
20111 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20112 case "(($ac_try" in
20113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20114 *) ac_try_echo=$ac_try;;
20116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20117 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20119 grep -v '^ *+' conftest.er1 >conftest.err
20121 cat conftest.err >&5
20122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20123 (exit $ac_status); } >/dev/null && {
20124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20125 test ! -s conftest.err
20127 ac_header_preproc=yes
20129 echo "$as_me: failed program was
:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20132 ac_header_preproc=no
20135 rm -f conftest.err conftest.$ac_ext
20136 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20137 echo "${ECHO_T}$ac_header_preproc" >&6; }
20139 # So? What about this header?
20140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20142 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20143 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20144 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20146 ac_header_preproc=yes
20149 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20150 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20151 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20152 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20153 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20154 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20155 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20156 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20157 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20159 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20160 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20164 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20165 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20166 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20167 echo $ECHO_N "(cached
) $ECHO_C" >&6
20169 eval "$as_ac_Header=\
$ac_header_preproc"
20171 ac_res=`eval echo '${'$as_ac_Header'}'`
20172 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20173 echo "${ECHO_T}$ac_res" >&6; }
20176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20177 cat >>confdefs.h <<_ACEOF
20178 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20187 for ac_header in des.h
20189 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20190 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20191 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20192 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20193 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20194 echo $ECHO_N "(cached
) $ECHO_C" >&6
20196 ac_res=`eval echo '${'$as_ac_Header'}'`
20197 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20198 echo "${ECHO_T}$ac_res" >&6; }
20200 # Is the header compilable?
20201 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20202 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20203 cat >conftest.$ac_ext <<_ACEOF
20206 cat confdefs.h >>conftest.$ac_ext
20207 cat >>conftest.$ac_ext <<_ACEOF
20208 /* end confdefs.h. */
20209 $ac_includes_default
20210 #include <$ac_header>
20212 rm -f conftest.$ac_objext
20213 if { (ac_try="$ac_compile"
20214 case "(($ac_try" in
20215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20216 *) ac_try_echo=$ac_try;;
20218 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20219 (eval "$ac_compile") 2>conftest.er1
20221 grep -v '^ *+' conftest.er1 >conftest.err
20223 cat conftest.err >&5
20224 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20225 (exit $ac_status); } && {
20226 test -z "$ac_c_werror_flag" ||
20227 test ! -s conftest.err
20228 } && test -s conftest.$ac_objext; then
20229 ac_header_compiler=yes
20231 echo "$as_me: failed program was
:" >&5
20232 sed 's/^/| /' conftest.$ac_ext >&5
20234 ac_header_compiler=no
20237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20238 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20239 echo "${ECHO_T}$ac_header_compiler" >&6; }
20241 # Is the header present?
20242 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20243 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20244 cat >conftest.$ac_ext <<_ACEOF
20247 cat confdefs.h >>conftest.$ac_ext
20248 cat >>conftest.$ac_ext <<_ACEOF
20249 /* end confdefs.h. */
20250 #include <$ac_header>
20252 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20253 case "(($ac_try" in
20254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255 *) ac_try_echo=$ac_try;;
20257 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20258 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20260 grep -v '^ *+' conftest.er1 >conftest.err
20262 cat conftest.err >&5
20263 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20264 (exit $ac_status); } >/dev/null && {
20265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20266 test ! -s conftest.err
20268 ac_header_preproc=yes
20270 echo "$as_me: failed program was
:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20273 ac_header_preproc=no
20276 rm -f conftest.err conftest.$ac_ext
20277 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20278 echo "${ECHO_T}$ac_header_preproc" >&6; }
20280 # So? What about this header?
20281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20283 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20284 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20285 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20286 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20287 ac_header_preproc=yes
20290 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20291 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20292 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20293 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20294 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20295 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20296 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20297 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20298 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20300 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20301 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20305 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20306 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20307 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20308 echo $ECHO_N "(cached
) $ECHO_C" >&6
20310 eval "$as_ac_Header=\
$ac_header_preproc"
20312 ac_res=`eval echo '${'$as_ac_Header'}'`
20313 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20314 echo "${ECHO_T}$ac_res" >&6; }
20317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20318 cat >>confdefs.h <<_ACEOF
20319 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20324 for ac_header in kerberosIV/des.h
20326 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20327 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20328 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20329 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20330 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20331 echo $ECHO_N "(cached
) $ECHO_C" >&6
20333 ac_res=`eval echo '${'$as_ac_Header'}'`
20334 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20335 echo "${ECHO_T}$ac_res" >&6; }
20337 # Is the header compilable?
20338 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20339 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20340 cat >conftest.$ac_ext <<_ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h. */
20346 $ac_includes_default
20347 #include <$ac_header>
20349 rm -f conftest.$ac_objext
20350 if { (ac_try="$ac_compile"
20351 case "(($ac_try" in
20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20356 (eval "$ac_compile") 2>conftest.er1
20358 grep -v '^ *+' conftest.er1 >conftest.err
20360 cat conftest.err >&5
20361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20362 (exit $ac_status); } && {
20363 test -z "$ac_c_werror_flag" ||
20364 test ! -s conftest.err
20365 } && test -s conftest.$ac_objext; then
20366 ac_header_compiler=yes
20368 echo "$as_me: failed program was
:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20371 ac_header_compiler=no
20374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20375 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20376 echo "${ECHO_T}$ac_header_compiler" >&6; }
20378 # Is the header present?
20379 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20380 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20381 cat >conftest.$ac_ext <<_ACEOF
20384 cat confdefs.h >>conftest.$ac_ext
20385 cat >>conftest.$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20387 #include <$ac_header>
20389 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20390 case "(($ac_try" in
20391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20392 *) ac_try_echo=$ac_try;;
20394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20395 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20397 grep -v '^ *+' conftest.er1 >conftest.err
20399 cat conftest.err >&5
20400 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20401 (exit $ac_status); } >/dev/null && {
20402 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20403 test ! -s conftest.err
20405 ac_header_preproc=yes
20407 echo "$as_me: failed program was
:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20410 ac_header_preproc=no
20413 rm -f conftest.err conftest.$ac_ext
20414 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20415 echo "${ECHO_T}$ac_header_preproc" >&6; }
20417 # So? What about this header?
20418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20420 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20421 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20422 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20423 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20424 ac_header_preproc=yes
20427 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20428 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20429 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20430 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20431 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20432 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20433 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20434 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20435 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20436 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20437 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20438 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20442 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20443 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20444 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20445 echo $ECHO_N "(cached
) $ECHO_C" >&6
20447 eval "$as_ac_Header=\
$ac_header_preproc"
20449 ac_res=`eval echo '${'$as_ac_Header'}'`
20450 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20451 echo "${ECHO_T}$ac_res" >&6; }
20454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20455 cat >>confdefs.h <<_ACEOF
20456 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20461 for ac_header in kerberos/des.h
20463 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20464 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20465 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20466 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20467 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20468 echo $ECHO_N "(cached
) $ECHO_C" >&6
20470 ac_res=`eval echo '${'$as_ac_Header'}'`
20471 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20472 echo "${ECHO_T}$ac_res" >&6; }
20474 # Is the header compilable?
20475 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20476 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20477 cat >conftest.$ac_ext <<_ACEOF
20480 cat confdefs.h >>conftest.$ac_ext
20481 cat >>conftest.$ac_ext <<_ACEOF
20482 /* end confdefs.h. */
20483 $ac_includes_default
20484 #include <$ac_header>
20486 rm -f conftest.$ac_objext
20487 if { (ac_try="$ac_compile"
20488 case "(($ac_try" in
20489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20490 *) ac_try_echo=$ac_try;;
20492 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20493 (eval "$ac_compile") 2>conftest.er1
20495 grep -v '^ *+' conftest.er1 >conftest.err
20497 cat conftest.err >&5
20498 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20499 (exit $ac_status); } && {
20500 test -z "$ac_c_werror_flag" ||
20501 test ! -s conftest.err
20502 } && test -s conftest.$ac_objext; then
20503 ac_header_compiler=yes
20505 echo "$as_me: failed program was
:" >&5
20506 sed 's/^/| /' conftest.$ac_ext >&5
20508 ac_header_compiler=no
20511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20512 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20513 echo "${ECHO_T}$ac_header_compiler" >&6; }
20515 # Is the header present?
20516 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20517 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20518 cat >conftest.$ac_ext <<_ACEOF
20521 cat confdefs.h >>conftest.$ac_ext
20522 cat >>conftest.$ac_ext <<_ACEOF
20523 /* end confdefs.h. */
20524 #include <$ac_header>
20526 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20527 case "(($ac_try" in
20528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529 *) ac_try_echo=$ac_try;;
20531 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20532 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20534 grep -v '^ *+' conftest.er1 >conftest.err
20536 cat conftest.err >&5
20537 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20538 (exit $ac_status); } >/dev/null && {
20539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20540 test ! -s conftest.err
20542 ac_header_preproc=yes
20544 echo "$as_me: failed program was
:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20547 ac_header_preproc=no
20550 rm -f conftest.err conftest.$ac_ext
20551 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20552 echo "${ECHO_T}$ac_header_preproc" >&6; }
20554 # So? What about this header?
20555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20557 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20558 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20559 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20561 ac_header_preproc=yes
20564 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20565 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20566 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20567 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20568 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20569 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20570 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20571 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20572 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20574 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20575 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20579 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20580 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20581 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20582 echo $ECHO_N "(cached
) $ECHO_C" >&6
20584 eval "$as_ac_Header=\
$ac_header_preproc"
20586 ac_res=`eval echo '${'$as_ac_Header'}'`
20587 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20588 echo "${ECHO_T}$ac_res" >&6; }
20591 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20592 cat >>confdefs.h <<_ACEOF
20593 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20609 for ac_header in krb.h
20611 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20612 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20613 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20614 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20615 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20616 echo $ECHO_N "(cached
) $ECHO_C" >&6
20618 ac_res=`eval echo '${'$as_ac_Header'}'`
20619 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20620 echo "${ECHO_T}$ac_res" >&6; }
20622 # Is the header compilable?
20623 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20624 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20625 cat >conftest.$ac_ext <<_ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h. */
20631 $ac_includes_default
20632 #include <$ac_header>
20634 rm -f conftest.$ac_objext
20635 if { (ac_try="$ac_compile"
20636 case "(($ac_try" in
20637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20638 *) ac_try_echo=$ac_try;;
20640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20641 (eval "$ac_compile") 2>conftest.er1
20643 grep -v '^ *+' conftest.er1 >conftest.err
20645 cat conftest.err >&5
20646 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20647 (exit $ac_status); } && {
20648 test -z "$ac_c_werror_flag" ||
20649 test ! -s conftest.err
20650 } && test -s conftest.$ac_objext; then
20651 ac_header_compiler=yes
20653 echo "$as_me: failed program was
:" >&5
20654 sed 's/^/| /' conftest.$ac_ext >&5
20656 ac_header_compiler=no
20659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20660 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20661 echo "${ECHO_T}$ac_header_compiler" >&6; }
20663 # Is the header present?
20664 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20665 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20666 cat >conftest.$ac_ext <<_ACEOF
20669 cat confdefs.h >>conftest.$ac_ext
20670 cat >>conftest.$ac_ext <<_ACEOF
20671 /* end confdefs.h. */
20672 #include <$ac_header>
20674 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20675 case "(($ac_try" in
20676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20677 *) ac_try_echo=$ac_try;;
20679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20680 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20682 grep -v '^ *+' conftest.er1 >conftest.err
20684 cat conftest.err >&5
20685 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20686 (exit $ac_status); } >/dev/null && {
20687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20688 test ! -s conftest.err
20690 ac_header_preproc=yes
20692 echo "$as_me: failed program was
:" >&5
20693 sed 's/^/| /' conftest.$ac_ext >&5
20695 ac_header_preproc=no
20698 rm -f conftest.err conftest.$ac_ext
20699 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20700 echo "${ECHO_T}$ac_header_preproc" >&6; }
20702 # So? What about this header?
20703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20705 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20706 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20707 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20709 ac_header_preproc=yes
20712 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20713 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20714 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20715 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20716 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20717 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20718 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20719 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20720 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20722 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20723 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20727 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20728 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20729 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20730 echo $ECHO_N "(cached
) $ECHO_C" >&6
20732 eval "$as_ac_Header=\
$ac_header_preproc"
20734 ac_res=`eval echo '${'$as_ac_Header'}'`
20735 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20736 echo "${ECHO_T}$ac_res" >&6; }
20739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20740 cat >>confdefs.h <<_ACEOF
20741 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20746 for ac_header in kerberosIV/krb.h
20748 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20749 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20750 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20751 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20752 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20753 echo $ECHO_N "(cached
) $ECHO_C" >&6
20755 ac_res=`eval echo '${'$as_ac_Header'}'`
20756 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20757 echo "${ECHO_T}$ac_res" >&6; }
20759 # Is the header compilable?
20760 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20761 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20762 cat >conftest.$ac_ext <<_ACEOF
20765 cat confdefs.h >>conftest.$ac_ext
20766 cat >>conftest.$ac_ext <<_ACEOF
20767 /* end confdefs.h. */
20768 $ac_includes_default
20769 #include <$ac_header>
20771 rm -f conftest.$ac_objext
20772 if { (ac_try="$ac_compile"
20773 case "(($ac_try" in
20774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775 *) ac_try_echo=$ac_try;;
20777 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20778 (eval "$ac_compile") 2>conftest.er1
20780 grep -v '^ *+' conftest.er1 >conftest.err
20782 cat conftest.err >&5
20783 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20784 (exit $ac_status); } && {
20785 test -z "$ac_c_werror_flag" ||
20786 test ! -s conftest.err
20787 } && test -s conftest.$ac_objext; then
20788 ac_header_compiler=yes
20790 echo "$as_me: failed program was
:" >&5
20791 sed 's/^/| /' conftest.$ac_ext >&5
20793 ac_header_compiler=no
20796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20797 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20798 echo "${ECHO_T}$ac_header_compiler" >&6; }
20800 # Is the header present?
20801 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20802 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20803 cat >conftest.$ac_ext <<_ACEOF
20806 cat confdefs.h >>conftest.$ac_ext
20807 cat >>conftest.$ac_ext <<_ACEOF
20808 /* end confdefs.h. */
20809 #include <$ac_header>
20811 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20812 case "(($ac_try" in
20813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20814 *) ac_try_echo=$ac_try;;
20816 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20817 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20819 grep -v '^ *+' conftest.er1 >conftest.err
20821 cat conftest.err >&5
20822 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20823 (exit $ac_status); } >/dev/null && {
20824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20825 test ! -s conftest.err
20827 ac_header_preproc=yes
20829 echo "$as_me: failed program was
:" >&5
20830 sed 's/^/| /' conftest.$ac_ext >&5
20832 ac_header_preproc=no
20835 rm -f conftest.err conftest.$ac_ext
20836 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20837 echo "${ECHO_T}$ac_header_preproc" >&6; }
20839 # So? What about this header?
20840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20842 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20843 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20844 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20846 ac_header_preproc=yes
20849 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20850 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20851 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20852 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20853 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20854 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20855 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20856 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20857 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20859 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20860 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20864 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20865 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20866 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20867 echo $ECHO_N "(cached
) $ECHO_C" >&6
20869 eval "$as_ac_Header=\
$ac_header_preproc"
20871 ac_res=`eval echo '${'$as_ac_Header'}'`
20872 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20873 echo "${ECHO_T}$ac_res" >&6; }
20876 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20877 cat >>confdefs.h <<_ACEOF
20878 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20883 for ac_header in kerberos/krb.h
20885 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20886 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20887 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20888 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20889 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20890 echo $ECHO_N "(cached
) $ECHO_C" >&6
20892 ac_res=`eval echo '${'$as_ac_Header'}'`
20893 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20894 echo "${ECHO_T}$ac_res" >&6; }
20896 # Is the header compilable?
20897 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20898 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20899 cat >conftest.$ac_ext <<_ACEOF
20902 cat confdefs.h >>conftest.$ac_ext
20903 cat >>conftest.$ac_ext <<_ACEOF
20904 /* end confdefs.h. */
20905 $ac_includes_default
20906 #include <$ac_header>
20908 rm -f conftest.$ac_objext
20909 if { (ac_try="$ac_compile"
20910 case "(($ac_try" in
20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20915 (eval "$ac_compile") 2>conftest.er1
20917 grep -v '^ *+' conftest.er1 >conftest.err
20919 cat conftest.err >&5
20920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20921 (exit $ac_status); } && {
20922 test -z "$ac_c_werror_flag" ||
20923 test ! -s conftest.err
20924 } && test -s conftest.$ac_objext; then
20925 ac_header_compiler=yes
20927 echo "$as_me: failed program was
:" >&5
20928 sed 's/^/| /' conftest.$ac_ext >&5
20930 ac_header_compiler=no
20933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20934 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20935 echo "${ECHO_T}$ac_header_compiler" >&6; }
20937 # Is the header present?
20938 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20939 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20940 cat >conftest.$ac_ext <<_ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h. */
20946 #include <$ac_header>
20948 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20949 case "(($ac_try" in
20950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20951 *) ac_try_echo=$ac_try;;
20953 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20954 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20956 grep -v '^ *+' conftest.er1 >conftest.err
20958 cat conftest.err >&5
20959 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20960 (exit $ac_status); } >/dev/null && {
20961 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20962 test ! -s conftest.err
20964 ac_header_preproc=yes
20966 echo "$as_me: failed program was
:" >&5
20967 sed 's/^/| /' conftest.$ac_ext >&5
20969 ac_header_preproc=no
20972 rm -f conftest.err conftest.$ac_ext
20973 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20974 echo "${ECHO_T}$ac_header_preproc" >&6; }
20976 # So? What about this header?
20977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20979 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20980 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20981 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20982 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20983 ac_header_preproc=yes
20986 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20987 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20988 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20989 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20990 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20991 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20992 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20993 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20994 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20995 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20996 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20997 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21001 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21002 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21003 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21004 echo $ECHO_N "(cached
) $ECHO_C" >&6
21006 eval "$as_ac_Header=\
$ac_header_preproc"
21008 ac_res=`eval echo '${'$as_ac_Header'}'`
21009 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21010 echo "${ECHO_T}$ac_res" >&6; }
21013 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21014 cat >>confdefs.h <<_ACEOF
21015 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21032 for ac_header in com_err.h
21034 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21035 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21036 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21037 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21038 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21039 echo $ECHO_N "(cached
) $ECHO_C" >&6
21041 ac_res=`eval echo '${'$as_ac_Header'}'`
21042 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21043 echo "${ECHO_T}$ac_res" >&6; }
21045 # Is the header compilable?
21046 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21047 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21048 cat >conftest.$ac_ext <<_ACEOF
21051 cat confdefs.h >>conftest.$ac_ext
21052 cat >>conftest.$ac_ext <<_ACEOF
21053 /* end confdefs.h. */
21054 $ac_includes_default
21055 #include <$ac_header>
21057 rm -f conftest.$ac_objext
21058 if { (ac_try="$ac_compile"
21059 case "(($ac_try" in
21060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21061 *) ac_try_echo=$ac_try;;
21063 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21064 (eval "$ac_compile") 2>conftest.er1
21066 grep -v '^ *+' conftest.er1 >conftest.err
21068 cat conftest.err >&5
21069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21070 (exit $ac_status); } && {
21071 test -z "$ac_c_werror_flag" ||
21072 test ! -s conftest.err
21073 } && test -s conftest.$ac_objext; then
21074 ac_header_compiler=yes
21076 echo "$as_me: failed program was
:" >&5
21077 sed 's/^/| /' conftest.$ac_ext >&5
21079 ac_header_compiler=no
21082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21083 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21084 echo "${ECHO_T}$ac_header_compiler" >&6; }
21086 # Is the header present?
21087 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21088 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21089 cat >conftest.$ac_ext <<_ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21095 #include <$ac_header>
21097 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21098 case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21103 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21105 grep -v '^ *+' conftest.er1 >conftest.err
21107 cat conftest.err >&5
21108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21109 (exit $ac_status); } >/dev/null && {
21110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21111 test ! -s conftest.err
21113 ac_header_preproc=yes
21115 echo "$as_me: failed program was
:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21118 ac_header_preproc=no
21121 rm -f conftest.err conftest.$ac_ext
21122 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21123 echo "${ECHO_T}$ac_header_preproc" >&6; }
21125 # So? What about this header?
21126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21128 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21129 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21130 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21132 ac_header_preproc=yes
21135 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21136 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21137 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21138 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21139 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21140 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21141 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21142 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21143 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21145 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21146 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21150 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21151 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21152 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21153 echo $ECHO_N "(cached
) $ECHO_C" >&6
21155 eval "$as_ac_Header=\
$ac_header_preproc"
21157 ac_res=`eval echo '${'$as_ac_Header'}'`
21158 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21159 echo "${ECHO_T}$ac_res" >&6; }
21162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21163 cat >>confdefs.h <<_ACEOF
21164 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21173 # Solaris requires -lintl if you want strerror (which calls dgettext)
21174 # to return localized messages.
21176 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21177 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21178 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21179 echo $ECHO_N "(cached
) $ECHO_C" >&6
21181 ac_check_lib_save_LIBS=$LIBS
21182 LIBS="-lintl $LIBS"
21183 cat >conftest.$ac_ext <<_ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21190 /* Override any GCC internal prototype to avoid an error.
21191 Use char because int might match the return type of a GCC
21192 builtin and then its argument prototype would still apply. */
21200 return dgettext ();
21205 rm -f conftest.$ac_objext conftest$ac_exeext
21206 if { (ac_try="$ac_link"
21207 case "(($ac_try" in
21208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21209 *) ac_try_echo=$ac_try;;
21211 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21212 (eval "$ac_link") 2>conftest.er1
21214 grep -v '^ *+' conftest.er1 >conftest.err
21216 cat conftest.err >&5
21217 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21218 (exit $ac_status); } && {
21219 test -z "$ac_c_werror_flag" ||
21220 test ! -s conftest.err
21221 } && test -s conftest$ac_exeext &&
21222 $as_test_x conftest$ac_exeext; then
21223 ac_cv_lib_intl_dgettext=yes
21225 echo "$as_me: failed program was
:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21228 ac_cv_lib_intl_dgettext=no
21231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21232 conftest$ac_exeext conftest.$ac_ext
21233 LIBS=$ac_check_lib_save_LIBS
21235 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21236 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21237 if test $ac_cv_lib_intl_dgettext = yes; then
21238 cat >>confdefs.h <<_ACEOF
21239 #define HAVE_LIBINTL 1
21242 LIBS="-lintl $LIBS"
21247 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21248 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21249 if test "${emacs_cv_localtime_cache+set}" = set; then
21250 echo $ECHO_N "(cached
) $ECHO_C" >&6
21252 if test x$ac_cv_func_tzset = xyes; then
21253 if test "$cross_compiling" = yes; then
21254 # If we have tzset, assume the worst when cross-compiling.
21255 emacs_cv_localtime_cache=yes
21257 cat >conftest.$ac_ext <<_ACEOF
21260 cat confdefs.h >>conftest.$ac_ext
21261 cat >>conftest.$ac_ext <<_ACEOF
21262 /* end confdefs.h. */
21264 extern char **environ;
21268 for (to = from = environ; (*to = *from); from++)
21269 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21272 char TZ_GMT0[] = "TZ
=GMT0
";
21273 char TZ_PST8[] = "TZ
=PST8
";
21276 time_t now = time ((time_t *) 0);
21277 int hour_GMT0, hour_unset;
21278 if (putenv (TZ_GMT0) != 0)
21280 hour_GMT0 = localtime (&now)->tm_hour;
21282 hour_unset = localtime (&now)->tm_hour;
21283 if (putenv (TZ_PST8) != 0)
21285 if (localtime (&now)->tm_hour == hour_GMT0)
21288 if (localtime (&now)->tm_hour != hour_unset)
21293 rm -f conftest$ac_exeext
21294 if { (ac_try="$ac_link"
21295 case "(($ac_try" in
21296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21297 *) ac_try_echo=$ac_try;;
21299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21300 (eval "$ac_link") 2>&5
21302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21304 { (case "(($ac_try" in
21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21309 (eval "$ac_try") 2>&5
21311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21312 (exit $ac_status); }; }; then
21313 emacs_cv_localtime_cache=no
21315 echo "$as_me: program exited with status
$ac_status" >&5
21316 echo "$as_me: failed program was
:" >&5
21317 sed 's/^/| /' conftest.$ac_ext >&5
21319 ( exit $ac_status )
21320 emacs_cv_localtime_cache=yes
21322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21327 # If we lack tzset, report that localtime does not cache TZ,
21328 # since we can't invalidate the cache if we don't have tzset.
21329 emacs_cv_localtime_cache=no
21332 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21333 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21334 if test $emacs_cv_localtime_cache = yes; then
21336 cat >>confdefs.h <<\_ACEOF
21337 #define LOCALTIME_CACHE 1
21342 if test "x
$HAVE_TIMEVAL" = xyes; then
21344 for ac_func in gettimeofday
21346 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21347 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21348 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21349 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21350 echo $ECHO_N "(cached
) $ECHO_C" >&6
21352 cat >conftest.$ac_ext <<_ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21358 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21359 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21360 #define $ac_func innocuous_$ac_func
21362 /* System header to define __stub macros and hopefully few prototypes,
21363 which can conflict with char $ac_func (); below.
21364 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21365 <limits.h> exists even on freestanding compilers. */
21368 # include <limits.h>
21370 # include <assert.h>
21375 /* Override any GCC internal prototype to avoid an error.
21376 Use char because int might match the return type of a GCC
21377 builtin and then its argument prototype would still apply. */
21382 /* The GNU C library defines this for functions which it implements
21383 to always fail with ENOSYS. Some functions are actually named
21384 something starting with __ and the normal name is an alias. */
21385 #if defined __stub_$ac_func || defined __stub___$ac_func
21392 return $ac_func ();
21397 rm -f conftest.$ac_objext conftest$ac_exeext
21398 if { (ac_try="$ac_link"
21399 case "(($ac_try" in
21400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401 *) ac_try_echo=$ac_try;;
21403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21404 (eval "$ac_link") 2>conftest.er1
21406 grep -v '^ *+' conftest.er1 >conftest.err
21408 cat conftest.err >&5
21409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21410 (exit $ac_status); } && {
21411 test -z "$ac_c_werror_flag" ||
21412 test ! -s conftest.err
21413 } && test -s conftest$ac_exeext &&
21414 $as_test_x conftest$ac_exeext; then
21415 eval "$as_ac_var=yes"
21417 echo "$as_me: failed program was
:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21420 eval "$as_ac_var=no
"
21423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21424 conftest$ac_exeext conftest.$ac_ext
21426 ac_res=`eval echo '${'$as_ac_var'}'`
21427 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21428 echo "${ECHO_T}$ac_res" >&6; }
21429 if test `eval echo '${'$as_ac_var'}'` = yes; then
21430 cat >>confdefs.h <<_ACEOF
21431 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21437 if test $ac_cv_func_gettimeofday = yes; then
21438 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21439 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21440 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21441 echo $ECHO_N "(cached
) $ECHO_C" >&6
21443 cat >conftest.$ac_ext <<_ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h. */
21450 #ifdef TIME_WITH_SYS_TIME
21451 #include <sys/time.h>
21454 #ifdef HAVE_SYS_TIME_H
21455 #include <sys/time.h>
21463 struct timeval time;
21464 gettimeofday (&time, 0);
21469 rm -f conftest.$ac_objext
21470 if { (ac_try="$ac_compile"
21471 case "(($ac_try" in
21472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21473 *) ac_try_echo=$ac_try;;
21475 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21476 (eval "$ac_compile") 2>conftest.er1
21478 grep -v '^ *+' conftest.er1 >conftest.err
21480 cat conftest.err >&5
21481 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21482 (exit $ac_status); } && {
21483 test -z "$ac_c_werror_flag" ||
21484 test ! -s conftest.err
21485 } && test -s conftest.$ac_objext; then
21486 emacs_cv_gettimeofday_two_arguments=yes
21488 echo "$as_me: failed program was
:" >&5
21489 sed 's/^/| /' conftest.$ac_ext >&5
21491 emacs_cv_gettimeofday_two_arguments=no
21494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21496 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21497 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21498 if test $emacs_cv_gettimeofday_two_arguments = no; then
21500 cat >>confdefs.h <<\_ACEOF
21501 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21509 { echo "$as_me:$LINENO: checking
for socket
" >&5
21510 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21511 if test "${ac_cv_func_socket+set}" = set; then
21512 echo $ECHO_N "(cached
) $ECHO_C" >&6
21514 cat >conftest.$ac_ext <<_ACEOF
21517 cat confdefs.h >>conftest.$ac_ext
21518 cat >>conftest.$ac_ext <<_ACEOF
21519 /* end confdefs.h. */
21520 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21522 #define socket innocuous_socket
21524 /* System header to define __stub macros and hopefully few prototypes,
21525 which can conflict with char socket (); below.
21526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21527 <limits.h> exists even on freestanding compilers. */
21530 # include <limits.h>
21532 # include <assert.h>
21537 /* Override any GCC internal prototype to avoid an error.
21538 Use char because int might match the return type of a GCC
21539 builtin and then its argument prototype would still apply. */
21544 /* The GNU C library defines this for functions which it implements
21545 to always fail with ENOSYS. Some functions are actually named
21546 something starting with __ and the normal name is an alias. */
21547 #if defined __stub_socket || defined __stub___socket
21559 rm -f conftest.$ac_objext conftest$ac_exeext
21560 if { (ac_try="$ac_link"
21561 case "(($ac_try" in
21562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21563 *) ac_try_echo=$ac_try;;
21565 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21566 (eval "$ac_link") 2>conftest.er1
21568 grep -v '^ *+' conftest.er1 >conftest.err
21570 cat conftest.err >&5
21571 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21572 (exit $ac_status); } && {
21573 test -z "$ac_c_werror_flag" ||
21574 test ! -s conftest.err
21575 } && test -s conftest$ac_exeext &&
21576 $as_test_x conftest$ac_exeext; then
21577 ac_cv_func_socket=yes
21579 echo "$as_me: failed program was
:" >&5
21580 sed 's/^/| /' conftest.$ac_ext >&5
21582 ac_cv_func_socket=no
21585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21586 conftest$ac_exeext conftest.$ac_ext
21588 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21589 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21590 if test $ac_cv_func_socket = yes; then
21596 if test $ok_so_far = yes; then
21597 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21598 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21599 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21600 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21601 echo $ECHO_N "(cached
) $ECHO_C" >&6
21603 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21604 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21606 # Is the header compilable?
21607 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21608 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21609 cat >conftest.$ac_ext <<_ACEOF
21612 cat confdefs.h >>conftest.$ac_ext
21613 cat >>conftest.$ac_ext <<_ACEOF
21614 /* end confdefs.h. */
21615 $ac_includes_default
21616 #include <netinet/in.h>
21618 rm -f conftest.$ac_objext
21619 if { (ac_try="$ac_compile"
21620 case "(($ac_try" in
21621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21622 *) ac_try_echo=$ac_try;;
21624 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21625 (eval "$ac_compile") 2>conftest.er1
21627 grep -v '^ *+' conftest.er1 >conftest.err
21629 cat conftest.err >&5
21630 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21631 (exit $ac_status); } && {
21632 test -z "$ac_c_werror_flag" ||
21633 test ! -s conftest.err
21634 } && test -s conftest.$ac_objext; then
21635 ac_header_compiler=yes
21637 echo "$as_me: failed program was
:" >&5
21638 sed 's/^/| /' conftest.$ac_ext >&5
21640 ac_header_compiler=no
21643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21644 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21645 echo "${ECHO_T}$ac_header_compiler" >&6; }
21647 # Is the header present?
21648 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21649 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21650 cat >conftest.$ac_ext <<_ACEOF
21653 cat confdefs.h >>conftest.$ac_ext
21654 cat >>conftest.$ac_ext <<_ACEOF
21655 /* end confdefs.h. */
21656 #include <netinet/in.h>
21658 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21659 case "(($ac_try" in
21660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21661 *) ac_try_echo=$ac_try;;
21663 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21664 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21666 grep -v '^ *+' conftest.er1 >conftest.err
21668 cat conftest.err >&5
21669 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21670 (exit $ac_status); } >/dev/null && {
21671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21672 test ! -s conftest.err
21674 ac_header_preproc=yes
21676 echo "$as_me: failed program was
:" >&5
21677 sed 's/^/| /' conftest.$ac_ext >&5
21679 ac_header_preproc=no
21682 rm -f conftest.err conftest.$ac_ext
21683 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21684 echo "${ECHO_T}$ac_header_preproc" >&6; }
21686 # So? What about this header?
21687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21689 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21690 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21691 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21692 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21693 ac_header_preproc=yes
21696 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21697 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21698 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21699 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21700 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21701 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21702 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21703 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21704 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21705 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21706 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21707 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21711 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21712 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21713 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21714 echo $ECHO_N "(cached
) $ECHO_C" >&6
21716 ac_cv_header_netinet_in_h=$ac_header_preproc
21718 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21719 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21722 if test $ac_cv_header_netinet_in_h = yes; then
21730 if test $ok_so_far = yes; then
21731 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21732 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21733 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21734 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21735 echo $ECHO_N "(cached
) $ECHO_C" >&6
21737 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21738 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21740 # Is the header compilable?
21741 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21742 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
21743 cat >conftest.$ac_ext <<_ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h. */
21749 $ac_includes_default
21750 #include <arpa/inet.h>
21752 rm -f conftest.$ac_objext
21753 if { (ac_try="$ac_compile"
21754 case "(($ac_try" in
21755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21756 *) ac_try_echo=$ac_try;;
21758 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21759 (eval "$ac_compile") 2>conftest.er1
21761 grep -v '^ *+' conftest.er1 >conftest.err
21763 cat conftest.err >&5
21764 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21765 (exit $ac_status); } && {
21766 test -z "$ac_c_werror_flag" ||
21767 test ! -s conftest.err
21768 } && test -s conftest.$ac_objext; then
21769 ac_header_compiler=yes
21771 echo "$as_me: failed program was
:" >&5
21772 sed 's/^/| /' conftest.$ac_ext >&5
21774 ac_header_compiler=no
21777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21778 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21779 echo "${ECHO_T}$ac_header_compiler" >&6; }
21781 # Is the header present?
21782 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
21783 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
21784 cat >conftest.$ac_ext <<_ACEOF
21787 cat confdefs.h >>conftest.$ac_ext
21788 cat >>conftest.$ac_ext <<_ACEOF
21789 /* end confdefs.h. */
21790 #include <arpa/inet.h>
21792 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21793 case "(($ac_try" in
21794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795 *) ac_try_echo=$ac_try;;
21797 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21798 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21800 grep -v '^ *+' conftest.er1 >conftest.err
21802 cat conftest.err >&5
21803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21804 (exit $ac_status); } >/dev/null && {
21805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21806 test ! -s conftest.err
21808 ac_header_preproc=yes
21810 echo "$as_me: failed program was
:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21813 ac_header_preproc=no
21816 rm -f conftest.err conftest.$ac_ext
21817 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21818 echo "${ECHO_T}$ac_header_preproc" >&6; }
21820 # So? What about this header?
21821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21823 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21824 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21825 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
21826 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
21827 ac_header_preproc=yes
21830 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
21831 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
21832 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
21833 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
21834 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
21835 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
21836 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21837 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21838 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
21839 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
21840 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
21841 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
21845 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21846 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21847 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21848 echo $ECHO_N "(cached
) $ECHO_C" >&6
21850 ac_cv_header_arpa_inet_h=$ac_header_preproc
21852 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21853 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21856 if test $ac_cv_header_arpa_inet_h = yes; then
21864 if test $ok_so_far = yes; then
21866 cat >>confdefs.h <<\_ACEOF
21867 #define HAVE_INET_SOCKETS 1
21873 for ac_header in sys/ioctl.h
21875 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21876 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
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 ac_res=`eval echo '${'$as_ac_Header'}'`
21883 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21884 echo "${ECHO_T}$ac_res" >&6; }
21886 # Is the header compilable?
21887 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21888 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21889 cat >conftest.$ac_ext <<_ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21895 $ac_includes_default
21896 #include <$ac_header>
21898 rm -f conftest.$ac_objext
21899 if { (ac_try="$ac_compile"
21900 case "(($ac_try" in
21901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21902 *) ac_try_echo=$ac_try;;
21904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21905 (eval "$ac_compile") 2>conftest.er1
21907 grep -v '^ *+' conftest.er1 >conftest.err
21909 cat conftest.err >&5
21910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21911 (exit $ac_status); } && {
21912 test -z "$ac_c_werror_flag" ||
21913 test ! -s conftest.err
21914 } && test -s conftest.$ac_objext; then
21915 ac_header_compiler=yes
21917 echo "$as_me: failed program was
:" >&5
21918 sed 's/^/| /' conftest.$ac_ext >&5
21920 ac_header_compiler=no
21923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21924 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21925 echo "${ECHO_T}$ac_header_compiler" >&6; }
21927 # Is the header present?
21928 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21929 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21930 cat >conftest.$ac_ext <<_ACEOF
21933 cat confdefs.h >>conftest.$ac_ext
21934 cat >>conftest.$ac_ext <<_ACEOF
21935 /* end confdefs.h. */
21936 #include <$ac_header>
21938 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21939 case "(($ac_try" in
21940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21941 *) ac_try_echo=$ac_try;;
21943 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21944 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21946 grep -v '^ *+' conftest.er1 >conftest.err
21948 cat conftest.err >&5
21949 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21950 (exit $ac_status); } >/dev/null && {
21951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21952 test ! -s conftest.err
21954 ac_header_preproc=yes
21956 echo "$as_me: failed program was
:" >&5
21957 sed 's/^/| /' conftest.$ac_ext >&5
21959 ac_header_preproc=no
21962 rm -f conftest.err conftest.$ac_ext
21963 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21964 echo "${ECHO_T}$ac_header_preproc" >&6; }
21966 # So? What about this header?
21967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21969 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21970 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21971 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21973 ac_header_preproc=yes
21976 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21977 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21978 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21979 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21980 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21981 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21982 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21983 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21984 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21986 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21987 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21991 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21992 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21993 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21994 echo $ECHO_N "(cached
) $ECHO_C" >&6
21996 eval "$as_ac_Header=\
$ac_header_preproc"
21998 ac_res=`eval echo '${'$as_ac_Header'}'`
21999 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22000 echo "${ECHO_T}$ac_res" >&6; }
22003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22004 cat >>confdefs.h <<_ACEOF
22005 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22013 if test -f /usr/lpp/X11/bin/smt.exp; then
22015 cat >>confdefs.h <<\_ACEOF
22016 #define HAVE_AIX_SMT_EXP 1
22021 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22022 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22023 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22024 { echo "$as_me:$LINENO: result
: yes" >&5
22025 echo "${ECHO_T}yes" >&6; }
22027 cat >>confdefs.h <<\_ACEOF
22028 #define HAVE_DEV_PTMX 1
22032 { echo "$as_me:$LINENO: result
: no
" >&5
22033 echo "${ECHO_T}no
" >&6; }
22036 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22037 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22038 if test "${ac_cv_type_pid_t+set}" = set; then
22039 echo $ECHO_N "(cached
) $ECHO_C" >&6
22041 cat >conftest.$ac_ext <<_ACEOF
22044 cat confdefs.h >>conftest.$ac_ext
22045 cat >>conftest.$ac_ext <<_ACEOF
22046 /* end confdefs.h. */
22047 $ac_includes_default
22048 typedef pid_t ac__type_new_;
22052 if ((ac__type_new_ *) 0)
22054 if (sizeof (ac__type_new_))
22060 rm -f conftest.$ac_objext
22061 if { (ac_try="$ac_compile"
22062 case "(($ac_try" in
22063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22064 *) ac_try_echo=$ac_try;;
22066 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22067 (eval "$ac_compile") 2>conftest.er1
22069 grep -v '^ *+' conftest.er1 >conftest.err
22071 cat conftest.err >&5
22072 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22073 (exit $ac_status); } && {
22074 test -z "$ac_c_werror_flag" ||
22075 test ! -s conftest.err
22076 } && test -s conftest.$ac_objext; then
22077 ac_cv_type_pid_t=yes
22079 echo "$as_me: failed program was
:" >&5
22080 sed 's/^/| /' conftest.$ac_ext >&5
22082 ac_cv_type_pid_t=no
22085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22087 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22088 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22089 if test $ac_cv_type_pid_t = yes; then
22093 cat >>confdefs.h <<_ACEOF
22100 for ac_header in vfork.h
22102 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22103 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22104 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22105 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22106 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22107 echo $ECHO_N "(cached
) $ECHO_C" >&6
22109 ac_res=`eval echo '${'$as_ac_Header'}'`
22110 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22111 echo "${ECHO_T}$ac_res" >&6; }
22113 # Is the header compilable?
22114 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22115 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22116 cat >conftest.$ac_ext <<_ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h. */
22122 $ac_includes_default
22123 #include <$ac_header>
22125 rm -f conftest.$ac_objext
22126 if { (ac_try="$ac_compile"
22127 case "(($ac_try" in
22128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22129 *) ac_try_echo=$ac_try;;
22131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22132 (eval "$ac_compile") 2>conftest.er1
22134 grep -v '^ *+' conftest.er1 >conftest.err
22136 cat conftest.err >&5
22137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22138 (exit $ac_status); } && {
22139 test -z "$ac_c_werror_flag" ||
22140 test ! -s conftest.err
22141 } && test -s conftest.$ac_objext; then
22142 ac_header_compiler=yes
22144 echo "$as_me: failed program was
:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22147 ac_header_compiler=no
22150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22151 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22152 echo "${ECHO_T}$ac_header_compiler" >&6; }
22154 # Is the header present?
22155 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22156 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22157 cat >conftest.$ac_ext <<_ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h. */
22163 #include <$ac_header>
22165 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22166 case "(($ac_try" in
22167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168 *) ac_try_echo=$ac_try;;
22170 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22171 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22173 grep -v '^ *+' conftest.er1 >conftest.err
22175 cat conftest.err >&5
22176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22177 (exit $ac_status); } >/dev/null && {
22178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22179 test ! -s conftest.err
22181 ac_header_preproc=yes
22183 echo "$as_me: failed program was
:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22186 ac_header_preproc=no
22189 rm -f conftest.err conftest.$ac_ext
22190 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22191 echo "${ECHO_T}$ac_header_preproc" >&6; }
22193 # So? What about this header?
22194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22196 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22197 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22198 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22200 ac_header_preproc=yes
22203 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22204 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22205 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22206 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22207 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22208 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22209 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22210 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22211 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22213 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22214 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22218 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22219 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22220 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22221 echo $ECHO_N "(cached
) $ECHO_C" >&6
22223 eval "$as_ac_Header=\
$ac_header_preproc"
22225 ac_res=`eval echo '${'$as_ac_Header'}'`
22226 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22227 echo "${ECHO_T}$ac_res" >&6; }
22230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22231 cat >>confdefs.h <<_ACEOF
22232 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22241 for ac_func in fork vfork
22243 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22244 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22245 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22246 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22247 echo $ECHO_N "(cached
) $ECHO_C" >&6
22249 cat >conftest.$ac_ext <<_ACEOF
22252 cat confdefs.h >>conftest.$ac_ext
22253 cat >>conftest.$ac_ext <<_ACEOF
22254 /* end confdefs.h. */
22255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22257 #define $ac_func innocuous_$ac_func
22259 /* System header to define __stub macros and hopefully few prototypes,
22260 which can conflict with char $ac_func (); below.
22261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22262 <limits.h> exists even on freestanding compilers. */
22265 # include <limits.h>
22267 # include <assert.h>
22272 /* Override any GCC internal prototype to avoid an error.
22273 Use char because int might match the return type of a GCC
22274 builtin and then its argument prototype would still apply. */
22279 /* The GNU C library defines this for functions which it implements
22280 to always fail with ENOSYS. Some functions are actually named
22281 something starting with __ and the normal name is an alias. */
22282 #if defined __stub_$ac_func || defined __stub___$ac_func
22289 return $ac_func ();
22294 rm -f conftest.$ac_objext conftest$ac_exeext
22295 if { (ac_try="$ac_link"
22296 case "(($ac_try" in
22297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298 *) ac_try_echo=$ac_try;;
22300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22301 (eval "$ac_link") 2>conftest.er1
22303 grep -v '^ *+' conftest.er1 >conftest.err
22305 cat conftest.err >&5
22306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22307 (exit $ac_status); } && {
22308 test -z "$ac_c_werror_flag" ||
22309 test ! -s conftest.err
22310 } && test -s conftest$ac_exeext &&
22311 $as_test_x conftest$ac_exeext; then
22312 eval "$as_ac_var=yes"
22314 echo "$as_me: failed program was
:" >&5
22315 sed 's/^/| /' conftest.$ac_ext >&5
22317 eval "$as_ac_var=no
"
22320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22321 conftest$ac_exeext conftest.$ac_ext
22323 ac_res=`eval echo '${'$as_ac_var'}'`
22324 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22325 echo "${ECHO_T}$ac_res" >&6; }
22326 if test `eval echo '${'$as_ac_var'}'` = yes; then
22327 cat >>confdefs.h <<_ACEOF
22328 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22334 if test "x
$ac_cv_func_fork" = xyes; then
22335 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22336 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22337 if test "${ac_cv_func_fork_works+set}" = set; then
22338 echo $ECHO_N "(cached
) $ECHO_C" >&6
22340 if test "$cross_compiling" = yes; then
22341 ac_cv_func_fork_works=cross
22343 cat >conftest.$ac_ext <<_ACEOF
22346 cat confdefs.h >>conftest.$ac_ext
22347 cat >>conftest.$ac_ext <<_ACEOF
22348 /* end confdefs.h. */
22349 $ac_includes_default
22354 /* By Ruediger Kuhlmann. */
22355 return fork () < 0;
22361 rm -f conftest$ac_exeext
22362 if { (ac_try="$ac_link"
22363 case "(($ac_try" in
22364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365 *) ac_try_echo=$ac_try;;
22367 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22368 (eval "$ac_link") 2>&5
22370 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22372 { (case "(($ac_try" in
22373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22374 *) ac_try_echo=$ac_try;;
22376 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22377 (eval "$ac_try") 2>&5
22379 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22380 (exit $ac_status); }; }; then
22381 ac_cv_func_fork_works=yes
22383 echo "$as_me: program exited with status
$ac_status" >&5
22384 echo "$as_me: failed program was
:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22387 ( exit $ac_status )
22388 ac_cv_func_fork_works=no
22390 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22395 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22396 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22399 ac_cv_func_fork_works=$ac_cv_func_fork
22401 if test "x
$ac_cv_func_fork_works" = xcross; then
22403 *-*-amigaos* | *-*-msdosdjgpp*)
22404 # Override, as these systems have only a dummy fork() stub
22405 ac_cv_func_fork_works=no
22408 ac_cv_func_fork_works=yes
22411 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22412 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22414 ac_cv_func_vfork_works=$ac_cv_func_vfork
22415 if test "x
$ac_cv_func_vfork" = xyes; then
22416 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22417 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22418 if test "${ac_cv_func_vfork_works+set}" = set; then
22419 echo $ECHO_N "(cached
) $ECHO_C" >&6
22421 if test "$cross_compiling" = yes; then
22422 ac_cv_func_vfork_works=cross
22424 cat >conftest.$ac_ext <<_ACEOF
22427 cat confdefs.h >>conftest.$ac_ext
22428 cat >>conftest.$ac_ext <<_ACEOF
22429 /* end confdefs.h. */
22430 /* Thanks to Paul Eggert for this test. */
22431 $ac_includes_default
22432 #include <sys/wait.h>
22433 #ifdef HAVE_VFORK_H
22434 # include <vfork.h>
22436 /* On some sparc systems, changes by the child to local and incoming
22437 argument registers are propagated back to the parent. The compiler
22438 is told about this with #include <vfork.h>, but some compilers
22439 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22440 static variable whose address is put into a register that is
22441 clobbered by the vfork. */
22444 sparc_address_test (int arg)
22446 sparc_address_test (arg) int arg;
22449 static pid_t child;
22467 pid_t parent = getpid ();
22470 sparc_address_test (0);
22475 /* Here is another test for sparc vfork register problems. This
22476 test uses lots of local variables, at least as many local
22477 variables as main has allocated so far including compiler
22478 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22479 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22480 reuse the register of parent for one of the local variables,
22481 since it will think that parent can't possibly be used any more
22482 in this routine. Assigning to the local variable will thus
22483 munge parent in the parent process. */
22485 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22486 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22487 /* Convince the compiler that p..p7 are live; otherwise, it might
22488 use the same hardware register for all 8 local variables. */
22489 if (p != p1 || p != p2 || p != p3 || p != p4
22490 || p != p5 || p != p6 || p != p7)
22493 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22494 from child file descriptors. If the child closes a descriptor
22495 before it execs or exits, this munges the parent's descriptor
22496 as well. Test for this by closing stdout in the child. */
22497 _exit(close(fileno(stdout)) != 0);
22502 while (wait(&status) != child)
22505 /* Was there some problem with vforking? */
22508 /* Did the child fail? (This shouldn't happen.) */
22511 /* Did the vfork/compiler bug occur? */
22512 || parent != getpid()
22514 /* Did the file descriptor bug occur? */
22515 || fstat(fileno(stdout), &st) != 0
22520 rm -f conftest$ac_exeext
22521 if { (ac_try="$ac_link"
22522 case "(($ac_try" in
22523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22524 *) ac_try_echo=$ac_try;;
22526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22527 (eval "$ac_link") 2>&5
22529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22530 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22531 { (case "(($ac_try" in
22532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22533 *) ac_try_echo=$ac_try;;
22535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22536 (eval "$ac_try") 2>&5
22538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22539 (exit $ac_status); }; }; then
22540 ac_cv_func_vfork_works=yes
22542 echo "$as_me: program exited with status
$ac_status" >&5
22543 echo "$as_me: failed program was
:" >&5
22544 sed 's/^/| /' conftest.$ac_ext >&5
22546 ( exit $ac_status )
22547 ac_cv_func_vfork_works=no
22549 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22554 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22555 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22558 if test "x
$ac_cv_func_fork_works" = xcross; then
22559 ac_cv_func_vfork_works=$ac_cv_func_vfork
22560 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22561 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22564 if test "x
$ac_cv_func_vfork_works" = xyes; then
22566 cat >>confdefs.h <<\_ACEOF
22567 #define HAVE_WORKING_VFORK 1
22572 cat >>confdefs.h <<\_ACEOF
22577 if test "x
$ac_cv_func_fork_works" = xyes; then
22579 cat >>confdefs.h <<\_ACEOF
22580 #define HAVE_WORKING_FORK 1
22586 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22587 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22588 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22589 echo $ECHO_N "(cached
) $ECHO_C" >&6
22591 cat >conftest.$ac_ext <<_ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h. */
22597 #include <langinfo.h>
22601 char* cs = nl_langinfo(CODESET);
22606 rm -f conftest.$ac_objext conftest$ac_exeext
22607 if { (ac_try="$ac_link"
22608 case "(($ac_try" in
22609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22610 *) ac_try_echo=$ac_try;;
22612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22613 (eval "$ac_link") 2>conftest.er1
22615 grep -v '^ *+' conftest.er1 >conftest.err
22617 cat conftest.err >&5
22618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22619 (exit $ac_status); } && {
22620 test -z "$ac_c_werror_flag" ||
22621 test ! -s conftest.err
22622 } && test -s conftest$ac_exeext &&
22623 $as_test_x conftest$ac_exeext; then
22624 emacs_cv_langinfo_codeset=yes
22626 echo "$as_me: failed program was
:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22629 emacs_cv_langinfo_codeset=no
22632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22633 conftest$ac_exeext conftest.$ac_ext
22636 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22637 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22638 if test $emacs_cv_langinfo_codeset = yes; then
22640 cat >>confdefs.h <<\_ACEOF
22641 #define HAVE_LANGINFO_CODESET 1
22646 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22647 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22648 if test "${ac_cv_type_size_t+set}" = set; then
22649 echo $ECHO_N "(cached
) $ECHO_C" >&6
22651 cat >conftest.$ac_ext <<_ACEOF
22654 cat confdefs.h >>conftest.$ac_ext
22655 cat >>conftest.$ac_ext <<_ACEOF
22656 /* end confdefs.h. */
22657 $ac_includes_default
22658 typedef size_t ac__type_new_;
22662 if ((ac__type_new_ *) 0)
22664 if (sizeof (ac__type_new_))
22670 rm -f conftest.$ac_objext
22671 if { (ac_try="$ac_compile"
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_compile") 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); } && {
22684 test -z "$ac_c_werror_flag" ||
22685 test ! -s conftest.err
22686 } && test -s conftest.$ac_objext; then
22687 ac_cv_type_size_t=yes
22689 echo "$as_me: failed program was
:" >&5
22690 sed 's/^/| /' conftest.$ac_ext >&5
22692 ac_cv_type_size_t=no
22695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22697 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22698 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22699 if test $ac_cv_type_size_t = yes; then
22701 cat >>confdefs.h <<_ACEOF
22702 #define HAVE_SIZE_T 1
22709 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22710 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22711 if test "${ac_cv_type_mbstate_t+set}" = set; then
22712 echo $ECHO_N "(cached
) $ECHO_C" >&6
22714 cat >conftest.$ac_ext <<_ACEOF
22717 cat confdefs.h >>conftest.$ac_ext
22718 cat >>conftest.$ac_ext <<_ACEOF
22719 /* end confdefs.h. */
22720 $ac_includes_default
22721 # include <wchar.h>
22725 mbstate_t x; return sizeof x;
22730 rm -f conftest.$ac_objext
22731 if { (ac_try="$ac_compile"
22732 case "(($ac_try" in
22733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22734 *) ac_try_echo=$ac_try;;
22736 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22737 (eval "$ac_compile") 2>conftest.er1
22739 grep -v '^ *+' conftest.er1 >conftest.err
22741 cat conftest.err >&5
22742 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22743 (exit $ac_status); } && {
22744 test -z "$ac_c_werror_flag" ||
22745 test ! -s conftest.err
22746 } && test -s conftest.$ac_objext; then
22747 ac_cv_type_mbstate_t=yes
22749 echo "$as_me: failed program was
:" >&5
22750 sed 's/^/| /' conftest.$ac_ext >&5
22752 ac_cv_type_mbstate_t=no
22755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22757 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
22758 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22759 if test $ac_cv_type_mbstate_t = yes; then
22761 cat >>confdefs.h <<\_ACEOF
22762 #define HAVE_MBSTATE_T 1
22767 cat >>confdefs.h <<\_ACEOF
22768 #define mbstate_t int
22773 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
22774 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
22775 if test "${emacs_cv_c_restrict+set}" = set; then
22776 echo $ECHO_N "(cached
) $ECHO_C" >&6
22778 cat >conftest.$ac_ext <<_ACEOF
22781 cat confdefs.h >>conftest.$ac_ext
22782 cat >>conftest.$ac_ext <<_ACEOF
22783 /* end confdefs.h. */
22784 void fred (int *restrict x);
22793 rm -f conftest.$ac_objext
22794 if { (ac_try="$ac_compile"
22795 case "(($ac_try" in
22796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22797 *) ac_try_echo=$ac_try;;
22799 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22800 (eval "$ac_compile") 2>conftest.er1
22802 grep -v '^ *+' conftest.er1 >conftest.err
22804 cat conftest.err >&5
22805 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22806 (exit $ac_status); } && {
22807 test -z "$ac_c_werror_flag" ||
22808 test ! -s conftest.err
22809 } && test -s conftest.$ac_objext; then
22810 emacs_cv_c_restrict=yes
22812 echo "$as_me: failed program was
:" >&5
22813 sed 's/^/| /' conftest.$ac_ext >&5
22815 cat >conftest.$ac_ext <<_ACEOF
22818 cat confdefs.h >>conftest.$ac_ext
22819 cat >>conftest.$ac_ext <<_ACEOF
22820 /* end confdefs.h. */
22821 void fred (int *__restrict x);
22830 rm -f conftest.$ac_objext
22831 if { (ac_try="$ac_compile"
22832 case "(($ac_try" in
22833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22834 *) ac_try_echo=$ac_try;;
22836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22837 (eval "$ac_compile") 2>conftest.er1
22839 grep -v '^ *+' conftest.er1 >conftest.err
22841 cat conftest.err >&5
22842 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22843 (exit $ac_status); } && {
22844 test -z "$ac_c_werror_flag" ||
22845 test ! -s conftest.err
22846 } && test -s conftest.$ac_objext; then
22847 emacs_cv_c_restrict=__restrict
22849 echo "$as_me: failed program was
:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22852 emacs_cv_c_restrict=no
22855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22860 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
22861 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22862 case "$emacs_cv_c_restrict" in
22863 yes) emacs_restrict=restrict;;
22864 no) emacs_restrict="";;
22865 *) emacs_restrict="$emacs_cv_c_restrict";;
22867 if test "$emacs_restrict" != __restrict; then
22869 cat >>confdefs.h <<_ACEOF
22870 #define __restrict $emacs_restrict
22875 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
22876 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
22877 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22878 echo $ECHO_N "(cached
) $ECHO_C" >&6
22880 cat >conftest.$ac_ext <<_ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h. */
22886 void fred (int x[__restrict]);
22895 rm -f conftest.$ac_objext
22896 if { (ac_try="$ac_compile"
22897 case "(($ac_try" in
22898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22899 *) ac_try_echo=$ac_try;;
22901 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22902 (eval "$ac_compile") 2>conftest.er1
22904 grep -v '^ *+' conftest.er1 >conftest.err
22906 cat conftest.err >&5
22907 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22908 (exit $ac_status); } && {
22909 test -z "$ac_c_werror_flag" ||
22910 test ! -s conftest.err
22911 } && test -s conftest.$ac_objext; then
22912 emacs_cv_c_restrict_arr=yes
22914 echo "$as_me: failed program was
:" >&5
22915 sed 's/^/| /' conftest.$ac_ext >&5
22917 emacs_cv_c_restrict_arr=no
22920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22922 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
22923 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22924 if test "$emacs_cv_c_restrict_arr" = yes; then
22926 cat >>confdefs.h <<\_ACEOF
22927 #define __restrict_arr __restrict
22934 # Set up the CFLAGS for real compilation, so we can substitute it.
22935 CFLAGS="$REAL_CFLAGS"
22936 CPPFLAGS="$REAL_CPPFLAGS"
22938 #### Find out which version of Emacs this is.
22939 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22940 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
22941 if test x"${version}" = x; then
22942 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
22943 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
22944 { (exit 1); exit 1; }; }
22947 ### Specify what sort of things we'll be editing into Makefile and config.h.
22948 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22984 cat >>confdefs.h <<_ACEOF
22985 #define EMACS_CONFIGURATION "${canonical}"
22989 cat >>confdefs.h <<_ACEOF
22990 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22994 cat >>confdefs.h <<_ACEOF
22995 #define config_machfile "${machfile}"
22999 cat >>confdefs.h <<_ACEOF
23000 #define config_opsysfile "${opsysfile}"
23004 cat >>confdefs.h <<_ACEOF
23005 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23009 cat >>confdefs.h <<_ACEOF
23010 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23014 cat >>confdefs.h <<_ACEOF
23015 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23019 cat >>confdefs.h <<_ACEOF
23020 #define UNEXEC_SRC ${UNEXEC_SRC}
23024 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23026 cat >>confdefs.h <<\_ACEOF
23027 #define HAVE_X_WINDOWS 1
23031 if test "${USE_X_TOOLKIT}" != "none
" ; then
23033 cat >>confdefs.h <<\_ACEOF
23034 #define USE_X_TOOLKIT 1
23038 if test "${HAVE_X11}" = "yes" ; then
23040 cat >>confdefs.h <<\_ACEOF
23045 if test "${HAVE_XFREE386}" = "yes" ; then
23047 cat >>confdefs.h <<\_ACEOF
23048 #define HAVE_XFREE386 1
23052 if test "${HAVE_MENUS}" = "yes" ; then
23054 cat >>confdefs.h <<\_ACEOF
23055 #define HAVE_MENUS 1
23059 if test "${GNU_MALLOC}" = "yes" ; then
23061 cat >>confdefs.h <<\_ACEOF
23062 #define GNU_MALLOC 1
23066 if test "${REL_ALLOC}" = "yes" ; then
23068 cat >>confdefs.h <<\_ACEOF
23069 #define REL_ALLOC 1
23074 { echo "$as_me:$LINENO: checking
for Gpm_Open
in -lgpm" >&5
23075 echo $ECHO_N "checking
for Gpm_Open
in -lgpm...
$ECHO_C" >&6; }
23076 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
23077 echo $ECHO_N "(cached
) $ECHO_C" >&6
23079 ac_check_lib_save_LIBS=$LIBS
23081 cat >conftest.$ac_ext <<_ACEOF
23084 cat confdefs.h >>conftest.$ac_ext
23085 cat >>conftest.$ac_ext <<_ACEOF
23086 /* end confdefs.h. */
23088 /* Override any GCC internal prototype to avoid an error.
23089 Use char because int might match the return type of a GCC
23090 builtin and then its argument prototype would still apply. */
23098 return Gpm_Open ();
23103 rm -f conftest.$ac_objext conftest$ac_exeext
23104 if { (ac_try="$ac_link"
23105 case "(($ac_try" in
23106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23107 *) ac_try_echo=$ac_try;;
23109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23110 (eval "$ac_link") 2>conftest.er1
23112 grep -v '^ *+' conftest.er1 >conftest.err
23114 cat conftest.err >&5
23115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23116 (exit $ac_status); } && {
23117 test -z "$ac_c_werror_flag" ||
23118 test ! -s conftest.err
23119 } && test -s conftest$ac_exeext &&
23120 $as_test_x conftest$ac_exeext; then
23121 ac_cv_lib_gpm_Gpm_Open=yes
23123 echo "$as_me: failed program was
:" >&5
23124 sed 's/^/| /' conftest.$ac_ext >&5
23126 ac_cv_lib_gpm_Gpm_Open=no
23129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23130 conftest$ac_exeext conftest.$ac_ext
23131 LIBS=$ac_check_lib_save_LIBS
23133 { echo "$as_me:$LINENO: result
: $ac_cv_lib_gpm_Gpm_Open" >&5
23134 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
23135 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
23145 #### Report on what we decided to do.
23146 #### Report GTK as a toolkit, even if it doesn't use Xt.
23147 #### It makes printing result more understandable as using GTK sets
23148 #### toolkit_scroll_bars to yes by default.
23149 if test "${HAVE_GTK}" = "yes"; then
23154 Configured
for \
`${canonical}'.
23156 Where should the build process find the source code? ${srcdir}
23157 What operating system and machine description files should Emacs use?
23158 \`${opsysfile}' and \`${machfile}'
23159 What compiler should emacs be built with?
${CC} ${CFLAGS}
23160 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23161 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23162 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23163 What window system should Emacs use?
${window_system}
23164 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23166 if test -n "${x_includes}"; then
23167 echo " Where
do we
find X Windows header files?
${x_includes}"
23169 echo " Where
do we
find X Windows header files? Standard
dirs"
23171 if test -n "${x_libraries}"; then
23172 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23174 echo " Where
do we
find X Windows libraries? Standard
dirs"
23177 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23178 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23179 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23180 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23181 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23182 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23183 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23186 if test $USE_XASSERTS = yes; then
23187 echo " Compiling with asserts turned on.
"
23188 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23192 if test "$USE_X_TOOLKIT" = GTK; then
23193 case "$canonical" in
23195 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23196 will probably get a crash on startup. If this happens
, please use another
23197 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23204 # Remove any trailing slashes in these variables.
23205 test "${prefix}" != NONE &&
23206 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23207 test "${exec_prefix}" != NONE &&
23208 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23210 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23211 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23212 ## from Makefile.c can correctly provide the arg `-traditional' to the
23215 cat >conftest.$ac_ext <<_ACEOF
23218 cat confdefs.h >>conftest.$ac_ext
23219 cat >>conftest.$ac_ext <<_ACEOF
23220 /* end confdefs.h. */
23223 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23224 $EGREP "yes..
yes" >/dev/null 2>&1; then
23225 CPP_NEED_TRADITIONAL=no
23227 CPP_NEED_TRADITIONAL=yes
23232 ac_config_files="$ac_config_files Makefile lib-src
/Makefile.c
:lib-src
/Makefile.
in oldXMenu
/Makefile man
/Makefile lwlib
/Makefile src
/Makefile.c
:src
/Makefile.
in lisp
/Makefile lispref
/Makefile lispintro
/Makefile leim
/Makefile
"
23234 ac_config_commands="$ac_config_commands default
"
23236 cat >confcache <<\_ACEOF
23237 # This file is a shell script that caches the results of configure
23238 # tests run on this system so they can be shared between configure
23239 # scripts and configure runs, see configure's option --config-cache.
23240 # It is not useful on other systems. If it contains results you don't
23241 # want to keep, you may remove or edit it.
23243 # config.status only pays attention to the cache file if you give it
23244 # the --recheck option to rerun configure.
23246 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23247 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23248 # following values.
23252 # The following way of writing the cache mishandles newlines in values,
23253 # but we know of no workaround that is simple, portable, and efficient.
23254 # So, we kill variables containing newlines.
23255 # Ultrix sh set writes to stderr and can't be redirected directly,
23256 # and sets the high bit in the cache file unless we assign to the vars.
23258 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23259 eval ac_val=\$$ac_var
23263 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23264 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23267 _ | IFS | as_nl) ;; #(
23268 *) $as_unset $ac_var ;;
23274 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23275 *${as_nl}ac_space=\ *)
23276 # `set' does not quote correctly, so add quotes (double-quote
23277 # substitution turns \\\\ into \\, and sed turns \\ into \).
23280 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23283 # `set' quotes correctly as required by POSIX, so do not add quotes.
23284 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23293 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23295 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23297 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23298 if test -w "$cache_file"; then
23299 test "x
$cache_file" != "x
/dev
/null
" &&
23300 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23301 echo "$as_me: updating cache
$cache_file" >&6;}
23302 cat confcache >$cache_file
23304 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23305 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23310 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23311 # Let make expand exec_prefix.
23312 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23314 DEFS=-DHAVE_CONFIG_H
23318 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23319 # 1. Remove the extension, and $U if already installed.
23320 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23321 ac_i=`echo "$ac_i" | sed "$ac_script"`
23322 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23323 # will be set to the directory where LIBOBJS objects are built.
23324 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23325 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23327 LIBOBJS=$ac_libobjs
23329 LTLIBOBJS=$ac_ltlibobjs
23333 : ${CONFIG_STATUS=./config.status}
23334 ac_clean_files_save=$ac_clean_files
23335 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23336 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23337 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23338 cat >$CONFIG_STATUS <<_ACEOF
23340 # Generated by $as_me.
23341 # Run this file to recreate the current configuration.
23342 # Compiler output produced by configure, useful for debugging
23343 # configure, is in config.log if it exists.
23346 ac_cs_recheck=false
23348 SHELL=\${CONFIG_SHELL-$SHELL}
23351 cat >>$CONFIG_STATUS <<\_ACEOF
23352 ## --------------------- ##
23353 ## M4sh Initialization. ##
23354 ## --------------------- ##
23356 # Be more Bourne compatible
23357 DUALCASE=1; export DUALCASE # for MKS sh
23358 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23361 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23362 # is contrary to our usage. Disable this feature.
23363 alias -g '${1+"$@"}'='"$@
"'
23364 setopt NO_GLOB_SUBST
23366 case `(set -o) 2>/dev/null` in
23367 *posix*) set -o posix ;;
23376 # Avoid depending upon Character Ranges.
23377 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23378 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23379 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23380 as_cr_digits='0123456789'
23381 as_cr_alnum=$as_cr_Letters$as_cr_digits
23383 # The user is always right.
23384 if test "${PATH_SEPARATOR+set}" != set; then
23385 echo "#! /bin/sh" >conf$$.sh
23386 echo "exit 0" >>conf$$.sh
23388 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23396 # Support unset when possible.
23397 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23405 # We need space, tab and new line, in precisely that order. Quoting is
23406 # there to prevent editors from complaining about space-tab.
23407 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23408 # splitting by setting IFS to empty value.)
23413 # Find who we are. Look in the path if we contain no directory separator.
23415 *[\\/]* ) as_myself
=$0 ;;
23416 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23417 for as_dir
in $PATH
23420 test -z "$as_dir" && as_dir
=.
23421 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23427 # We did not find ourselves, most probably we were run as `sh COMMAND'
23428 # in which case we are not to be found in the path.
23429 if test "x$as_myself" = x
; then
23432 if test ! -f "$as_myself"; then
23433 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23434 { (exit 1); exit 1; }
23437 # Work around bugs in pre-3.0 UWIN ksh.
23438 for as_var
in ENV MAIL MAILPATH
23439 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23447 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23448 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23449 LC_TELEPHONE LC_TIME
23451 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23452 eval $as_var=C
; export $as_var
23454 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23458 # Required to use basename.
23459 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23460 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23466 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23467 as_basename
=basename
23473 # Name of the executable.
23474 as_me
=`$as_basename -- "$0" ||
23475 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23476 X"$0" : 'X\(//\)$' \| \
23477 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23479 sed '/^.*\/\([^/][^/]*\)\/*$/{
23498 as_lineno_1
=$LINENO
23499 as_lineno_2
=$LINENO
23500 test "x$as_lineno_1" != "x$as_lineno_2" &&
23501 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23503 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23504 # uniformly replaced by the line number. The first 'sed' inserts a
23505 # line-number line after each line using $LINENO; the second 'sed'
23506 # does the real work. The second script uses 'N' to pair each
23507 # line-number line with the line containing $LINENO, and appends
23508 # trailing '-' during substitution so that $LINENO is not a special
23509 # case at line end.
23510 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23511 # scripts with optimization help from Paolo Bonzini. Blame Lee
23512 # E. McMahon (1931-1989) for sed's syntax. :-)
23524 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23527 ' >$as_me.lineno
&&
23528 chmod +x
"$as_me.lineno" ||
23529 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23530 { (exit 1); exit 1; }; }
23532 # Don't try to exec as it changes $[0], causing all sort of problems
23533 # (the dirname of $[0] is not the place where we might find the
23534 # original and so on. Autoconf is especially sensitive to this).
23535 .
"./$as_me.lineno"
23536 # Exit status is that of the last command.
23541 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23547 ECHO_C
= ECHO_N
= ECHO_T
=
23548 case `echo -n x` in
23550 case `echo 'x\c'` in
23551 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23558 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23559 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23565 rm -f conf$$ conf$$.exe conf$$.
file
23566 if test -d conf$$.dir
; then
23567 rm -f conf$$.dir
/conf$$.
file
23573 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23575 # ... but there are two gotchas:
23576 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23577 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23578 # In both cases, we have to default to `cp -p'.
23579 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23581 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23586 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23587 rmdir conf$$.dir
2>/dev
/null
23589 if mkdir
-p .
2>/dev
/null
; then
23592 test -d .
/-p && rmdir .
/-p
23596 if test -x / >/dev
/null
2>&1; then
23597 as_test_x
='test -x'
23599 if ls -dL / >/dev
/null
2>&1; then
23606 if test -d "$1"; then
23612 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23613 ???[sx]*):;;*)false;;esac;fi
23617 as_executable_p
=$as_test_x
23619 # Sed expression to map a string onto a valid CPP name.
23620 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23622 # Sed expression to map a string onto a valid variable name.
23623 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23628 # Save the log message, to keep $[0] and so on meaningful, and to
23629 # report actual input values of CONFIG_FILES etc. instead of their
23630 # values after options handling.
23632 This file was extended by $as_me, which was
23633 generated by GNU Autoconf 2.61. Invocation command line was
23635 CONFIG_FILES = $CONFIG_FILES
23636 CONFIG_HEADERS = $CONFIG_HEADERS
23637 CONFIG_LINKS = $CONFIG_LINKS
23638 CONFIG_COMMANDS = $CONFIG_COMMANDS
23641 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23646 cat >>$CONFIG_STATUS <<_ACEOF
23647 # Files that config.status was made for.
23648 config_files="$ac_config_files"
23649 config_headers="$ac_config_headers"
23650 config_commands="$ac_config_commands"
23654 cat >>$CONFIG_STATUS <<\_ACEOF
23656 \`$as_me' instantiates files from templates according to the
23657 current configuration.
23659 Usage: $0 [OPTIONS] [FILE]...
23661 -h, --help print this help, then exit
23662 -V, --version print version number and configuration settings, then exit
23663 -q, --quiet do not print progress messages
23664 -d, --debug don't remove temporary files
23665 --recheck update $as_me by reconfiguring in the same conditions
23666 --file=FILE[:TEMPLATE]
23667 instantiate the configuration file FILE
23668 --header=FILE[:TEMPLATE]
23669 instantiate the configuration header FILE
23671 Configuration files:
23674 Configuration headers:
23677 Configuration commands:
23680 Report bugs to <bug-autoconf@gnu.org>."
23683 cat >>$CONFIG_STATUS <<_ACEOF
23686 configured by $0, generated by GNU Autoconf 2.61,
23687 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23689 Copyright (C) 2006 Free Software Foundation, Inc.
23690 This config.status script is free software; the Free Software Foundation
23691 gives unlimited permission to copy, distribute and modify it."
23698 cat >>$CONFIG_STATUS <<\_ACEOF
23699 # If no file are specified by the user, then we need to provide default
23700 # value. By we need to know if files were specified by the user.
23706 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23707 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23718 # Handling of the options.
23719 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23721 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23722 echo "$ac_cs_version"; exit ;;
23723 --debug |
--debu |
--deb |
--de |
--d |
-d )
23725 --file |
--fil |
--fi |
--f )
23727 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23728 ac_need_defaults
=false
;;
23729 --header |
--heade |
--head |
--hea )
23731 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23732 ac_need_defaults
=false
;;
23734 # Conflict between --help and --header
23735 { echo "$as_me: error: ambiguous option: $1
23736 Try \`$0 --help' for more information." >&2
23737 { (exit 1); exit 1; }; };;
23738 --help |
--hel |
-h )
23739 echo "$ac_cs_usage"; exit ;;
23740 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23741 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23744 # This is an error.
23745 -*) { echo "$as_me: error: unrecognized option: $1
23746 Try \`$0 --help' for more information." >&2
23747 { (exit 1); exit 1; }; } ;;
23749 *) ac_config_targets
="$ac_config_targets $1"
23750 ac_need_defaults
=false
;;
23756 ac_configure_extra_args
=
23758 if $ac_cs_silent; then
23760 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23764 cat >>$CONFIG_STATUS <<_ACEOF
23765 if \$ac_cs_recheck; then
23766 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23767 CONFIG_SHELL=$SHELL
23768 export CONFIG_SHELL
23769 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23773 cat >>$CONFIG_STATUS <<\_ACEOF
23777 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23778 ## Running $as_me. ##
23784 cat >>$CONFIG_STATUS <<_ACEOF
23788 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23792 cat >>$CONFIG_STATUS <<\_ACEOF
23794 # Handling of arguments.
23795 for ac_config_target
in $ac_config_targets
23797 case $ac_config_target in
23798 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23799 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23800 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23801 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23802 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23803 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23804 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23805 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23806 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23807 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23808 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23809 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23811 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23812 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23813 { (exit 1); exit 1; }; };;
23818 # If the user did not use the arguments to specify the items to instantiate,
23819 # then the envvar interface is used. Set only those that are not.
23820 # We use the long form for the default assignment because of an extremely
23821 # bizarre bug on SunOS 4.1.3.
23822 if $ac_need_defaults; then
23823 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23824 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23825 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23828 # Have a temporary directory for convenience. Make it in the build tree
23829 # simply because there is no reason against having it here, and in addition,
23830 # creating and moving files from /tmp can sometimes cause problems.
23831 # Hook for its removal unless debugging.
23832 # Note that there is a small window in which the directory will not be cleaned:
23833 # after its creation but before its name has been assigned to `$tmp'.
23837 trap 'exit_status=$?
23838 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23840 trap '{ (exit 1); exit 1; }' 1 2 13 15
23842 # Create a (secure) tmp directory for tmp files.
23845 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23846 test -n "$tmp" && test -d "$tmp"
23849 tmp
=.
/conf$$
-$RANDOM
23850 (umask 077 && mkdir
"$tmp")
23853 echo "$me: cannot create a temporary directory in ." >&2
23854 { (exit 1); exit 1; }
23858 # Set up the sed scripts for CONFIG_FILES section.
23861 # No need to generate the scripts if there are no CONFIG_FILES.
23862 # This happens for instance when ./config.status config.h
23863 if test -n "$CONFIG_FILES"; then
23870 for ac_last_try
in false false false false false
:; do
23871 cat >conf$
$subs.
sed <<_ACEOF
23872 SHELL!$SHELL$ac_delim
23873 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23874 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23875 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23876 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23877 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23878 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23879 exec_prefix!$exec_prefix$ac_delim
23880 prefix!$prefix$ac_delim
23881 program_transform_name!$program_transform_name$ac_delim
23882 bindir!$bindir$ac_delim
23883 sbindir!$sbindir$ac_delim
23884 libexecdir!$libexecdir$ac_delim
23885 datarootdir!$datarootdir$ac_delim
23886 datadir!$datadir$ac_delim
23887 sysconfdir!$sysconfdir$ac_delim
23888 sharedstatedir!$sharedstatedir$ac_delim
23889 localstatedir!$localstatedir$ac_delim
23890 includedir!$includedir$ac_delim
23891 oldincludedir!$oldincludedir$ac_delim
23892 docdir!$docdir$ac_delim
23893 infodir!$infodir$ac_delim
23894 htmldir!$htmldir$ac_delim
23895 dvidir!$dvidir$ac_delim
23896 pdfdir!$pdfdir$ac_delim
23897 psdir!$psdir$ac_delim
23898 libdir!$libdir$ac_delim
23899 localedir!$localedir$ac_delim
23900 mandir!$mandir$ac_delim
23901 DEFS!$DEFS$ac_delim
23902 ECHO_C!$ECHO_C$ac_delim
23903 ECHO_N!$ECHO_N$ac_delim
23904 ECHO_T!$ECHO_T$ac_delim
23905 LIBS!$LIBS$ac_delim
23906 build_alias!$build_alias$ac_delim
23907 host_alias!$host_alias$ac_delim
23908 target_alias!$target_alias$ac_delim
23909 MAINT!$MAINT$ac_delim
23910 build!$build$ac_delim
23911 build_cpu!$build_cpu$ac_delim
23912 build_vendor!$build_vendor$ac_delim
23913 build_os!$build_os$ac_delim
23914 host!$host$ac_delim
23915 host_cpu!$host_cpu$ac_delim
23916 host_vendor!$host_vendor$ac_delim
23917 host_os!$host_os$ac_delim
23919 CFLAGS!$CFLAGS$ac_delim
23920 LDFLAGS!$LDFLAGS$ac_delim
23921 CPPFLAGS!$CPPFLAGS$ac_delim
23922 ac_ct_CC!$ac_ct_CC$ac_delim
23923 EXEEXT!$EXEEXT$ac_delim
23924 OBJEXT!$OBJEXT$ac_delim
23926 GREP!$GREP$ac_delim
23927 EGREP!$EGREP$ac_delim
23928 LN_S!$LN_S$ac_delim
23929 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23930 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23931 INSTALL_DATA!$INSTALL_DATA$ac_delim
23932 RANLIB!$RANLIB$ac_delim
23933 INSTALL_INFO!$INSTALL_INFO$ac_delim
23934 GZIP_PROG!$GZIP_PROG$ac_delim
23935 LIBSOUND!$LIBSOUND$ac_delim
23936 PKG_CONFIG!$PKG_CONFIG$ac_delim
23937 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23938 ALSA_LIBS!$ALSA_LIBS$ac_delim
23939 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23940 SET_MAKE!$SET_MAKE$ac_delim
23941 XMKMF!$XMKMF$ac_delim
23942 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23943 GTK_LIBS!$GTK_LIBS$ac_delim
23944 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23945 XFT_LIBS!$XFT_LIBS$ac_delim
23946 ALLOCA!$ALLOCA$ac_delim
23947 liblockfile!$liblockfile$ac_delim
23948 LIBOBJS!$LIBOBJS$ac_delim
23949 NEED_SETGID!$NEED_SETGID$ac_delim
23950 KMEM_GROUP!$KMEM_GROUP$ac_delim
23951 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23952 GETOPT_H!$GETOPT_H$ac_delim
23953 GETOPTOBJS!$GETOPTOBJS$ac_delim
23954 version!$version$ac_delim
23955 configuration!$configuration$ac_delim
23956 canonical!$canonical$ac_delim
23957 srcdir!$srcdir$ac_delim
23958 lispdir!$lispdir$ac_delim
23959 locallisppath!$locallisppath$ac_delim
23960 lisppath!$lisppath$ac_delim
23961 x_default_search_path!$x_default_search_path$ac_delim
23962 etcdir!$etcdir$ac_delim
23963 archlibdir!$archlibdir$ac_delim
23964 bitmapdir!$bitmapdir$ac_delim
23965 gamedir!$gamedir$ac_delim
23966 gameuser!$gameuser$ac_delim
23967 c_switch_system!$c_switch_system$ac_delim
23968 c_switch_machine!$c_switch_machine$ac_delim
23971 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23973 elif $ac_last_try; then
23974 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23975 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23976 { (exit 1); exit 1; }; }
23978 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23982 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23983 if test -n "$ac_eof"; then
23984 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23985 ac_eof
=`expr $ac_eof + 1`
23988 cat >>$CONFIG_STATUS <<_ACEOF
23989 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23990 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23993 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23994 s/^/s,@/; s/!/@,|#_!!_#|/
23997 s/'"$ac_delim"'$/,g/; t
23999 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24000 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24001 rm -f conf$
$subs.
sed
24002 cat >>$CONFIG_STATUS <<_ACEOF
24008 for ac_last_try
in false false false false false
:; do
24009 cat >conf$
$subs.
sed <<_ACEOF
24010 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24011 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24012 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24013 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24014 machfile!$machfile$ac_delim
24015 opsysfile!$opsysfile$ac_delim
24016 carbon_appdir!$carbon_appdir$ac_delim
24017 LIBGPM!$LIBGPM$ac_delim
24018 LTLIBOBJS!$LTLIBOBJS$ac_delim
24021 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
24023 elif $ac_last_try; then
24024 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24025 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24026 { (exit 1); exit 1; }; }
24028 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24032 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24033 if test -n "$ac_eof"; then
24034 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24035 ac_eof
=`expr $ac_eof + 1`
24038 cat >>$CONFIG_STATUS <<_ACEOF
24039 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24040 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24043 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24044 s/^/s,@/; s/!/@,|#_!!_#|/
24047 s/'"$ac_delim"'$/,g/; t
24049 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24050 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24051 rm -f conf$
$subs.
sed
24052 cat >>$CONFIG_STATUS <<_ACEOF
24059 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24060 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24061 # trailing colons and then remove the whole line if VPATH becomes empty
24062 # (actually we leave an empty line to preserve line numbers).
24063 if test "x$srcdir" = x.
; then
24064 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24065 s/:*\$(srcdir):*/:/
24066 s/:*\${srcdir}:*/:/
24068 s/^\([^=]*=[ ]*\):*/\1/
24074 cat >>$CONFIG_STATUS <<\_ACEOF
24075 fi # test -n "$CONFIG_FILES"
24078 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24081 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24083 case $ac_mode$ac_tag in
24085 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24086 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24087 { (exit 1); exit 1; }; };;
24088 :[FH
]-) ac_tag
=-:-;;
24089 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24106 -) ac_f
="$tmp/stdin";;
24107 *) # Look for the file first in the build tree, then in the source tree
24108 # (if the path is not absolute). The absolute path cannot be DOS-style,
24109 # because $ac_f cannot contain `:'.
24113 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24115 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24116 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24117 { (exit 1); exit 1; }; };;
24119 ac_file_inputs
="$ac_file_inputs $ac_f"
24122 # Let's still pretend it is `configure' which instantiates (i.e., don't
24123 # use $as_me), people would be surprised to read:
24124 # /* config.h. Generated by config.status. */
24125 configure_input
="Generated from "`IFS=:
24126 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24127 if test x
"$ac_file" != x-
; then
24128 configure_input
="$ac_file. $configure_input"
24129 { echo "$as_me:$LINENO: creating $ac_file" >&5
24130 echo "$as_me: creating $ac_file" >&6;}
24134 *:-:* |
*:-) cat >"$tmp/stdin";;
24139 ac_dir
=`$as_dirname -- "$ac_file" ||
24140 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24141 X"$ac_file" : 'X\(//\)[^/]' \| \
24142 X"$ac_file" : 'X\(//\)$' \| \
24143 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24149 /^X\(\/\/\)[^/].*/{
24164 -*) as_dir
=.
/$as_dir;;
24166 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24170 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24171 *) as_qdir
=$as_dir;;
24173 as_dirs
="'$as_qdir' $as_dirs"
24174 as_dir
=`$as_dirname -- "$as_dir" ||
24175 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24176 X"$as_dir" : 'X\(//\)[^/]' \| \
24177 X"$as_dir" : 'X\(//\)$' \| \
24178 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24184 /^X\(\/\/\)[^/].*/{
24197 test -d "$as_dir" && break
24199 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24200 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24201 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24202 { (exit 1); exit 1; }; }; }
24206 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24208 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24209 # A ".." for each directory in $ac_dir_suffix.
24210 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24211 case $ac_top_builddir_sub in
24212 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24213 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24216 ac_abs_top_builddir
=$ac_pwd
24217 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24218 # for backward compatibility:
24219 ac_top_builddir
=$ac_top_build_prefix
24222 .
) # We are building in place.
24224 ac_top_srcdir
=$ac_top_builddir_sub
24225 ac_abs_top_srcdir
=$ac_pwd ;;
24226 [\\/]* | ?
:[\\/]* ) # Absolute name.
24227 ac_srcdir
=$srcdir$ac_dir_suffix;
24228 ac_top_srcdir
=$srcdir
24229 ac_abs_top_srcdir
=$srcdir ;;
24230 *) # Relative name.
24231 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24232 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24233 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24235 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24245 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24246 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24250 cat >>$CONFIG_STATUS <<\_ACEOF
24251 # If the template does not know about datarootdir, expand it.
24252 # FIXME: This hack should be removed a few years after 2.60.
24253 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24255 case `sed -n '/datarootdir/ {
24264 ' $ac_file_inputs` in
24265 *datarootdir
*) ac_datarootdir_seen
=yes;;
24266 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24267 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24268 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24270 cat >>$CONFIG_STATUS <<_ACEOF
24271 ac_datarootdir_hack='
24272 s&@datadir@&$datadir&g
24273 s&@docdir@&$docdir&g
24274 s&@infodir@&$infodir&g
24275 s&@localedir@&$localedir&g
24276 s&@mandir@&$mandir&g
24277 s&\\\${datarootdir}&$datarootdir&g' ;;
24281 # Neutralize VPATH when `$srcdir' = `.'.
24282 # Shell code in configure.ac might set extrasub.
24283 # FIXME: do we really want to maintain this feature?
24284 cat >>$CONFIG_STATUS <<_ACEOF
24288 cat >>$CONFIG_STATUS <<\_ACEOF
24290 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24291 s
&@configure_input@
&$configure_input&;t t
24292 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24293 s
&@srcdir@
&$ac_srcdir&;t t
24294 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24295 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24296 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24297 s
&@builddir@
&$ac_builddir&;t t
24298 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24299 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24300 s
&@INSTALL@
&$ac_INSTALL&;t t
24301 $ac_datarootdir_hack
24302 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24304 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24305 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24306 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24307 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24308 which seems to be undefined. Please make sure it is defined." >&5
24309 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24310 which seems to be undefined. Please make sure it is defined." >&2;}
24314 -) cat "$tmp/out"; rm -f "$tmp/out";;
24315 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24324 # Transform confdefs.h into a sed script `conftest.defines', that
24325 # substitutes the proper values into config.h.in to produce config.h.
24326 rm -f conftest.defines conftest.
tail
24327 # First, append a space to every undef/define line, to ease matching.
24328 echo 's/$/ /' >conftest.defines
24329 # Then, protect against being on the right side of a sed subst, or in
24330 # an unquoted here document, in config.status. If some macros were
24331 # called several times there might be several #defines for the same
24332 # symbol, which is useless. But do not sort them, since the last
24333 # AC_DEFINE must be honored.
24334 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24335 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24336 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24337 # PARAMS is the parameter list in the macro definition--in most cases, it's
24338 # just an empty string.
24339 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24340 ac_dB
='\\)[ (].*,\\1define\\2'
24348 s/^[ ]*#[ ]*define[ ][ ]*//
24353 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24354 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24355 ' >>conftest.defines
24357 # Remove the space that was appended to ease matching.
24358 # Then replace #undef with comments. This is necessary, for
24359 # example, in the case of _POSIX_SOURCE, which is predefined and required
24360 # on some systems where configure will not decide to define it.
24361 # (The regexp can be short, since the line contains either #define or #undef.)
24363 s,^[ #]*u.*,/* & */,' >>conftest.defines
24365 # Break up conftest.defines:
24366 ac_max_sed_lines
=50
24368 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24369 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24370 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24372 ac_in
='$ac_file_inputs'
24373 ac_out
='"$tmp/out1"'
24374 ac_nxt
='"$tmp/out2"'
24378 # Write a here document:
24379 cat >>$CONFIG_STATUS <<_ACEOF
24380 # First, check the format of the line:
24381 cat >"\$tmp/defines.sed" <<\\CEOF
24382 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24383 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24387 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24389 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24390 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24391 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24392 grep . conftest.
tail >/dev
/null ||
break
24393 rm -f conftest.defines
24394 mv conftest.
tail conftest.defines
24396 rm -f conftest.defines conftest.
tail
24398 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24399 cat >>$CONFIG_STATUS <<\_ACEOF
24400 if test x
"$ac_file" != x-
; then
24401 echo "/* $configure_input */" >"$tmp/config.h"
24402 cat "$ac_result" >>"$tmp/config.h"
24403 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24404 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24405 echo "$as_me: $ac_file is unchanged" >&6;}
24408 mv "$tmp/config.h" $ac_file
24411 echo "/* $configure_input */"
24417 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24418 echo "$as_me: executing $ac_file commands" >&6;}
24423 case $ac_file$ac_mode in
24426 ### Make the necessary directories, if they don't exist.
24427 for dir
in etc lisp
; do
24428 test -d ${dir} || mkdir
${dir}
24431 # Build src/Makefile from ${srcdir}/src/Makefile.c
24432 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24433 # This must be done after src/config.h is built, since we rely on that file.
24435 # Now get this: Some word that is part of the ${srcdir} directory name
24436 # or the ${configuration} value might, just might, happen to be an
24437 # identifier like `sun4' or `i386' or something, and be predefined by
24438 # the C preprocessor to some helpful value like 1, or maybe the empty
24439 # string. Needless to say consequent macro substitutions are less
24440 # than conducive to the makefile finding the correct directory.
24441 undefs
="`echo $top_srcdir $configuration $canonical |
24442 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24443 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24446 echo creating src
/epaths.h
24447 ${MAKE-make} epaths-force
24449 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24450 # `..' to `. .' unless invoked with -traditional
24452 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24453 CPPFLAGS
="$CPPFLAGS -traditional"
24456 echo creating lib-src
/Makefile
24458 rm -f junk.c junk1.c junk2.c
24459 sed -e '/start of cpp stuff/q' \
24460 < Makefile.c
> junk1.c
24461 sed -e '1,/start of cpp stuff/d'\
24462 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24463 < Makefile.c
> junk.c
24464 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24465 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24466 cat junk1.c junk2.c
> Makefile.new
24467 rm -f junk.c junk1.c junk2.c
24468 chmod 444 Makefile.new
24469 mv -f Makefile.new Makefile
24472 echo creating src
/Makefile
24474 rm -f junk.c junk1.c junk2.c
24475 sed -e '/start of cpp stuff/q' \
24476 < Makefile.c
> junk1.c
24477 sed -e '1,/start of cpp stuff/d'\
24478 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24479 < Makefile.c
> junk.c
24480 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24481 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24482 cat junk1.c junk2.c
> Makefile.new
24483 rm -f junk.c junk1.c junk2.c
24484 chmod 444 Makefile.new
24485 mv -f Makefile.new Makefile
24488 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24489 echo creating src
/.gdbinit
24490 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24493 # This is how we know whether to re-run configure in certain cases.
24494 touch src
/config.stamp
24502 { (exit 0); exit 0; }
24504 chmod +x
$CONFIG_STATUS
24505 ac_clean_files
=$ac_clean_files_save
24508 # configure is writing to config.log, and then calls config.status.
24509 # config.status does its own redirection, appending to config.log.
24510 # Unfortunately, on DOS this fails, as config.log is still kept open
24511 # by configure, so config.status won't be able to write to it; its
24512 # output is simply discarded. So we exec the FD to /dev/null,
24513 # effectively closing config.log, so it can be properly (re)opened and
24514 # appended to by config.status. When coming back to configure, we
24515 # need to make the FD available again.
24516 if test "$no_create" != yes; then
24518 ac_config_status_args
=
24519 test "$silent" = yes &&
24520 ac_config_status_args
="$ac_config_status_args --quiet"
24522 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24524 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24525 # would make configure fail if this is the last instruction.
24526 $ac_cs_success ||
{ (exit 1); exit 1; }