2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo Please tell bug-autoconf@gnu.org about your system
,
416 echo including any error possibly output before this message.
417 echo This can
help us improve future autoconf versions.
418 echo Configuration will now proceed without shell functions.
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="src/lisp.h"
580 ac_config_libobj_dir
=src
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
628 program_transform_name
708 x_default_search_path
725 ac_precious_vars
='build_alias
737 # Initialize some variables set by options.
739 ac_init_version
=false
740 # The variables have the same names as the options, with
741 # dashes changed to underlines.
749 program_transform_name
=s
,x
,x
,
757 # Installation directory options.
758 # These are left unexpanded so users can "make install exec_prefix=/foo"
759 # and all the variables that are supposed to be based on exec_prefix
760 # by default will actually change.
761 # Use braces instead of parens because sh, perl, etc. also accept them.
762 # (The list follows the same order as the GNU Coding Standards.)
763 bindir
='${exec_prefix}/bin'
764 sbindir
='${exec_prefix}/sbin'
765 libexecdir
='${exec_prefix}/libexec'
766 datarootdir
='${prefix}/share'
767 datadir
='${datarootdir}'
768 sysconfdir
='${prefix}/etc'
769 sharedstatedir
='${prefix}/com'
770 localstatedir
='${prefix}/var'
771 includedir
='${prefix}/include'
772 oldincludedir
='/usr/include'
773 docdir
='${datarootdir}/doc/${PACKAGE}'
774 infodir
='${datarootdir}/info'
779 libdir
='${exec_prefix}/lib'
780 localedir
='${datarootdir}/locale'
781 mandir
='${datarootdir}/man'
787 # If the previous option needs an argument, assign it.
788 if test -n "$ac_prev"; then
789 eval $ac_prev=\
$ac_option
795 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
799 # Accept the important Cygnus configure options, so we can diagnose typos.
801 case $ac_dashdash$ac_option in
805 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
807 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
810 -build |
--build |
--buil |
--bui |
--bu)
811 ac_prev
=build_alias
;;
812 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
813 build_alias
=$ac_optarg ;;
815 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
816 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
817 ac_prev
=cache_file
;;
818 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
819 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
820 cache_file
=$ac_optarg ;;
823 cache_file
=config.cache
;;
825 -datadir |
--datadir |
--datadi |
--datad)
827 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
828 datadir
=$ac_optarg ;;
830 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
831 |
--dataroo |
--dataro |
--datar)
832 ac_prev
=datarootdir
;;
833 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
834 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
835 datarootdir
=$ac_optarg ;;
837 -disable-* |
--disable-*)
838 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
839 # Reject names that are not valid shell variable names.
840 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
841 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
842 { (exit 1); exit 1; }; }
843 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
844 eval enable_
$ac_feature=no
;;
846 -docdir |
--docdir |
--docdi |
--doc |
--do)
848 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
851 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
853 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
856 -enable-* |
--enable-*)
857 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
858 # Reject names that are not valid shell variable names.
859 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
860 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
861 { (exit 1); exit 1; }; }
862 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
863 eval enable_
$ac_feature=\
$ac_optarg ;;
865 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
866 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
867 |
--exec |
--exe |
--ex)
868 ac_prev
=exec_prefix
;;
869 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
870 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
871 |
--exec=* |
--exe=* |
--ex=*)
872 exec_prefix
=$ac_optarg ;;
874 -gas |
--gas |
--ga |
--g)
875 # Obsolete; use --with-gas.
878 -help |
--help |
--hel |
--he |
-h)
880 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
881 ac_init_help
=recursive
;;
882 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
883 ac_init_help
=short
;;
885 -host |
--host |
--hos |
--ho)
886 ac_prev
=host_alias
;;
887 -host=* |
--host=* |
--hos=* |
--ho=*)
888 host_alias
=$ac_optarg ;;
890 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
892 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
894 htmldir
=$ac_optarg ;;
896 -includedir |
--includedir |
--includedi |
--included |
--include \
897 |
--includ |
--inclu |
--incl |
--inc)
898 ac_prev
=includedir
;;
899 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
900 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
901 includedir
=$ac_optarg ;;
903 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
905 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
906 infodir
=$ac_optarg ;;
908 -libdir |
--libdir |
--libdi |
--libd)
910 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
913 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
914 |
--libexe |
--libex |
--libe)
915 ac_prev
=libexecdir
;;
916 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
917 |
--libexe=* |
--libex=* |
--libe=*)
918 libexecdir
=$ac_optarg ;;
920 -localedir |
--localedir |
--localedi |
--localed |
--locale)
922 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
923 localedir
=$ac_optarg ;;
925 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
926 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
927 ac_prev
=localstatedir
;;
928 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
929 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
930 localstatedir
=$ac_optarg ;;
932 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
934 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
938 # Obsolete; use --without-fp.
941 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
942 |
--no-cr |
--no-c |
-n)
945 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
946 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
949 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
950 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
951 |
--oldin |
--oldi |
--old |
--ol |
--o)
952 ac_prev
=oldincludedir
;;
953 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
954 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
955 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
956 oldincludedir
=$ac_optarg ;;
958 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
960 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
963 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
964 |
--program-pre |
--program-pr |
--program-p)
965 ac_prev
=program_prefix
;;
966 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
967 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
968 program_prefix
=$ac_optarg ;;
970 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
971 |
--program-suf |
--program-su |
--program-s)
972 ac_prev
=program_suffix
;;
973 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
974 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
975 program_suffix
=$ac_optarg ;;
977 -program-transform-name |
--program-transform-name \
978 |
--program-transform-nam |
--program-transform-na \
979 |
--program-transform-n |
--program-transform- \
980 |
--program-transform |
--program-transfor \
981 |
--program-transfo |
--program-transf \
982 |
--program-trans |
--program-tran \
983 |
--progr-tra |
--program-tr |
--program-t)
984 ac_prev
=program_transform_name
;;
985 -program-transform-name=* |
--program-transform-name=* \
986 |
--program-transform-nam=* |
--program-transform-na=* \
987 |
--program-transform-n=* |
--program-transform-=* \
988 |
--program-transform=* |
--program-transfor=* \
989 |
--program-transfo=* |
--program-transf=* \
990 |
--program-trans=* |
--program-tran=* \
991 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
992 program_transform_name
=$ac_optarg ;;
994 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
996 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
999 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1001 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1004 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1005 |
-silent |
--silent |
--silen |
--sile |
--sil)
1008 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1010 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1012 sbindir
=$ac_optarg ;;
1014 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1015 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1016 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1018 ac_prev
=sharedstatedir
;;
1019 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1020 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1021 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1023 sharedstatedir
=$ac_optarg ;;
1025 -site |
--site |
--sit)
1027 -site=* |
--site=* |
--sit=*)
1030 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1032 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1033 srcdir
=$ac_optarg ;;
1035 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1036 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1037 ac_prev
=sysconfdir
;;
1038 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1039 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1040 sysconfdir
=$ac_optarg ;;
1042 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1043 ac_prev
=target_alias
;;
1044 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1045 target_alias
=$ac_optarg ;;
1047 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1050 -version |
--version |
--versio |
--versi |
--vers |
-V)
1051 ac_init_version
=: ;;
1054 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1055 # Reject names that are not valid shell variable names.
1056 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1057 { echo "$as_me: error: invalid package name: $ac_package" >&2
1058 { (exit 1); exit 1; }; }
1059 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1060 eval with_
$ac_package=\
$ac_optarg ;;
1062 -without-* |
--without-*)
1063 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1066 { echo "$as_me: error: invalid package name: $ac_package" >&2
1067 { (exit 1); exit 1; }; }
1068 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1069 eval with_
$ac_package=no
;;
1072 # Obsolete; use --with-x.
1075 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1076 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1077 ac_prev
=x_includes
;;
1078 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1079 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1080 x_includes
=$ac_optarg ;;
1082 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1083 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1084 ac_prev
=x_libraries
;;
1085 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1086 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1087 x_libraries
=$ac_optarg ;;
1089 -*) { echo "$as_me: error: unrecognized option: $ac_option
1090 Try \`$0 --help' for more information." >&2
1091 { (exit 1); exit 1; }; }
1095 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1098 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1099 { (exit 1); exit 1; }; }
1100 eval $ac_envvar=\
$ac_optarg
1101 export $ac_envvar ;;
1104 # FIXME: should be removed in autoconf 3.0.
1105 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1106 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1107 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1108 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1114 if test -n "$ac_prev"; then
1115 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1116 { echo "$as_me: error: missing argument to $ac_option" >&2
1117 { (exit 1); exit 1; }; }
1120 # Be sure to have absolute directory names.
1121 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1122 datadir sysconfdir sharedstatedir localstatedir includedir \
1123 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1124 libdir localedir mandir
1126 eval ac_val
=\$
$ac_var
1128 [\\/$
]* | ?
:[\\/]* ) continue;;
1129 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1131 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1132 { (exit 1); exit 1; }; }
1135 # There might be people who depend on the old broken behavior: `$host'
1136 # used to hold the argument of --host etc.
1137 # FIXME: To remove some day.
1140 target
=$target_alias
1142 # FIXME: To remove some day.
1143 if test "x$host_alias" != x
; then
1144 if test "x$build_alias" = x
; then
1145 cross_compiling
=maybe
1146 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1147 If a cross compiler is detected then cross compile mode will be used." >&2
1148 elif test "x$build_alias" != "x$host_alias"; then
1154 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1156 test "$silent" = yes && exec 6>/dev
/null
1159 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1160 ac_ls_di
=`ls -di .` &&
1161 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1162 { echo "$as_me: error: Working directory cannot be determined" >&2
1163 { (exit 1); exit 1; }; }
1164 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1165 { echo "$as_me: error: pwd does not report name of working directory" >&2
1166 { (exit 1); exit 1; }; }
1169 # Find the source files, if location was not specified.
1170 if test -z "$srcdir"; then
1171 ac_srcdir_defaulted
=yes
1172 # Try the directory containing this script, then the parent directory.
1173 ac_confdir
=`$as_dirname -- "$0" ||
1174 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1175 X"$0" : 'X\(//\)[^/]' \| \
1176 X"$0" : 'X\(//\)$' \| \
1177 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1197 if test ! -r "$srcdir/$ac_unique_file"; then
1201 ac_srcdir_defaulted
=no
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1205 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1206 { (exit 1); exit 1; }; }
1208 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1210 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1211 { (exit 1); exit 1; }; }
1213 # When building in place, set srcdir=.
1214 if test "$ac_abs_confdir" = "$ac_pwd"; then
1217 # Remove unnecessary trailing slashes from srcdir.
1218 # Double slashes in file names in object file debugging info
1219 # mess up M-x gdb in Emacs.
1221 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1223 for ac_var
in $ac_precious_vars; do
1224 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1225 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1226 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1227 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1231 # Report the --help message.
1233 if test "$ac_init_help" = "long"; then
1234 # Omit some internal or obsolete options to make the list less imposing.
1235 # This message is too long to be a string in the A/UX 3.1 sh.
1237 \`configure' configures this package to adapt to many kinds of systems.
1239 Usage: $0 [OPTION]... [VAR=VALUE]...
1241 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1242 VAR=VALUE. See below for descriptions of some of the useful variables.
1244 Defaults for the options are specified in brackets.
1247 -h, --help display this help and exit
1248 --help=short display options specific to this package
1249 --help=recursive display the short help of all the included packages
1250 -V, --version display version information and exit
1251 -q, --quiet, --silent do not print \`checking...' messages
1252 --cache-file=FILE cache test results in FILE [disabled]
1253 -C, --config-cache alias for \`--cache-file=config.cache'
1254 -n, --no-create do not create output files
1255 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1257 Installation directories:
1258 --prefix=PREFIX install architecture-independent files in PREFIX
1259 [$ac_default_prefix]
1260 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1263 By default, \`make install' will install all the files in
1264 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1265 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1266 for instance \`--prefix=\$HOME'.
1268 For better control, use the options below.
1270 Fine tuning of the installation directories:
1271 --bindir=DIR user executables [EPREFIX/bin]
1272 --sbindir=DIR system admin executables [EPREFIX/sbin]
1273 --libexecdir=DIR program executables [EPREFIX/libexec]
1274 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1275 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1276 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1277 --libdir=DIR object code libraries [EPREFIX/lib]
1278 --includedir=DIR C header files [PREFIX/include]
1279 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1280 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1281 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1282 --infodir=DIR info documentation [DATAROOTDIR/info]
1283 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1284 --mandir=DIR man documentation [DATAROOTDIR/man]
1285 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1286 --htmldir=DIR html documentation [DOCDIR]
1287 --dvidir=DIR dvi documentation [DOCDIR]
1288 --pdfdir=DIR pdf documentation [DOCDIR]
1289 --psdir=DIR ps documentation [DOCDIR]
1295 --program-prefix=PREFIX prepend PREFIX to installed program names
1296 --program-suffix=SUFFIX append SUFFIX to installed program names
1297 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1300 --x-includes=DIR X include files are
in DIR
1301 --x-libraries=DIR X library files are
in DIR
1304 --build=BUILD configure
for building on BUILD
[guessed
]
1305 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1309 if test -n "$ac_init_help"; then
1314 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1315 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1316 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1317 specify
install directory
for Emacs.app on Mac OS X
1318 --enable-asserts compile code with asserts enabled
1319 --enable-maintainer-mode enable make rules and dependencies not useful
1320 (and sometimes confusing
) to the casual installer
1321 --enable-locallisppath=PATH
1322 directories Emacs should search
for lisp files
1323 specific to this site
1324 --disable-largefile omit support
for large files
1327 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1328 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1329 --without-gcc don
't use GCC to compile Emacs if GCC is found
1330 --without-pop don't support POP
mail retrieval with movemail
1331 --with-kerberos support Kerberos-authenticated POP
1332 --with-kerberos5 support Kerberos version
5 authenticated POP
1333 --with-hesiod support Hesiod to get the POP server
host
1334 --without-sound don
't compile with sound support
1335 --with-x-toolkit=KIT use an X toolkit
1336 (KIT = yes/lucid/athena/motif/gtk/no)
1337 --with-xpm use -lXpm for displaying XPM images
1338 --with-jpeg use -ljpeg for displaying JPEG images
1339 --with-tiff use -ltiff for displaying TIFF images
1340 --with-gif use -lungif for displaying GIF images
1341 --with-png use -lpng for displaying PNG images
1342 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1343 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1344 --without-toolkit-scroll-bars
1345 don't use Motif or Xaw3d scroll bars
1346 --without-xim don
't use X11 XIM
1347 --without-carbon don't use Carbon GUI on Mac OS X
1348 --with-x use the X Window System
1350 Some influential environment variables
:
1351 CC C compiler
command
1352 CFLAGS C compiler flags
1353 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1354 nonstandard directory
<lib dir
>
1355 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1356 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1357 you have headers
in a nonstandard directory
<include dir
>
1359 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1361 Use these variables to override the choices made by
`configure' or to help
1362 it to find libraries and programs with nonstandard names/locations.
1368 if test "$ac_init_help" = "recursive"; then
1369 # If there are subdirs, report their specific --help.
1370 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1371 test -d "$ac_dir" || continue
1375 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1378 # A ".." for each directory in $ac_dir_suffix.
1379 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1380 case $ac_top_builddir_sub in
1381 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1382 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1385 ac_abs_top_builddir=$ac_pwd
1386 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1387 # for backward compatibility:
1388 ac_top_builddir=$ac_top_build_prefix
1391 .) # We are building in place.
1393 ac_top_srcdir=$ac_top_builddir_sub
1394 ac_abs_top_srcdir=$ac_pwd ;;
1395 [\\/]* | ?:[\\/]* ) # Absolute name.
1396 ac_srcdir=$srcdir$ac_dir_suffix;
1397 ac_top_srcdir=$srcdir
1398 ac_abs_top_srcdir=$srcdir ;;
1400 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1401 ac_top_srcdir=$ac_top_build_prefix$srcdir
1402 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406 cd "$ac_dir" || { ac_status=$?; continue; }
1407 # Check for guested configure.
1408 if test -f "$ac_srcdir/configure.gnu"; then
1410 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1411 elif test -f "$ac_srcdir/configure"; then
1413 $SHELL "$ac_srcdir/configure" --help=recursive
1415 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 cd "$ac_pwd" || { ac_status=$?; break; }
1421 test -n "$ac_init_help" && exit $ac_status
1422 if $ac_init_version; then
1425 generated by GNU Autoconf 2.61
1427 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1428 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1429 This configure script is free software; the Free Software Foundation
1430 gives unlimited permission to copy, distribute and modify it.
1434 cat >config.log <<_ACEOF
1435 This file contains any messages produced by compilers while
1436 running configure, to aid debugging if configure makes a mistake.
1438 It was created by $as_me, which was
1439 generated by GNU Autoconf 2.61. Invocation command line was
1451 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1452 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1453 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1454 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1455 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1457 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1458 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1460 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1461 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1462 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1463 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1464 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1465 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1466 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1474 test -z "$as_dir" && as_dir=.
1475 echo "PATH: $as_dir"
1491 # Keep a trace of the command line.
1492 # Strip out --no-create and --no-recursion so they do not pile up.
1493 # Strip out --silent because we don't want to record it for future runs.
1494 # Also quote any args containing shell meta-characters.
1495 # Make two passes to allow for proper duplicate-argument suppression.
1499 ac_must_keep_next=false
1505 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1507 | -silent | --silent | --silen | --sile | --sil)
1510 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1513 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1515 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1516 if test $ac_must_keep_next = true; then
1517 ac_must_keep_next=false # Got value, back to normal.
1520 *=* | --config-cache | -C | -disable-* | --disable-* \
1521 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1522 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1523 | -with-* | --with-* | -without-* | --without-* | --x)
1524 case "$ac_configure_args0 " in
1525 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1528 -* ) ac_must_keep_next=true ;;
1531 ac_configure_args="$ac_configure_args '$ac_arg'"
1536 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1537 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1539 # When interrupted or exit'd, cleanup temporary files, and complete
1540 # config.log. We remove comments because anyway the quotes in there
1541 # would cause problems or look ugly.
1542 # WARNING: Use '\'' to represent an apostrophe within the trap.
1543 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1544 trap 'exit_status=$?
1545 # Save into config.log some information that might help in debugging.
1550 ## ---------------- ##
1551 ## Cache variables. ##
1552 ## ---------------- ##
1555 # The following way of writing the cache mishandles newlines in values,
1557 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1558 eval ac_val=\$$ac_var
1562 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1563 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1566 _ | IFS | as_nl) ;; #(
1567 *) $as_unset $ac_var ;;
1572 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1573 *${as_nl}ac_space=\ *)
1575 "s/'\''/'\''\\\\'\'''\''/g;
1576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1579 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1587 ## ----------------- ##
1588 ## Output variables. ##
1589 ## ----------------- ##
1592 for ac_var in $ac_subst_vars
1594 eval ac_val=\$$ac_var
1596 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1598 echo "$ac_var='\''$ac_val'\''"
1602 if test -n "$ac_subst_files"; then
1604 ## ------------------- ##
1605 ## File substitutions. ##
1606 ## ------------------- ##
1609 for ac_var in $ac_subst_files
1611 eval ac_val=\$$ac_var
1613 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 echo "$ac_var='\''$ac_val'\''"
1620 if test -s confdefs.h; then
1630 test "$ac_signal" != 0 &&
1631 echo "$as_me: caught signal $ac_signal"
1632 echo "$as_me: exit $exit_status"
1634 rm -f core *.core core.conftest.* &&
1635 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1638 for ac_signal in 1 2 13 15; do
1639 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1643 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1644 rm -f -r conftest* confdefs.h
1646 # Predefined preprocessor variables.
1648 cat >>confdefs.h <<_ACEOF
1649 #define PACKAGE_NAME "$PACKAGE_NAME"
1653 cat >>confdefs.h <<_ACEOF
1654 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1658 cat >>confdefs.h <<_ACEOF
1659 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1663 cat >>confdefs.h <<_ACEOF
1664 #define PACKAGE_STRING "$PACKAGE_STRING"
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1673 # Let the site file select an alternate cache file if it wants to.
1674 # Prefer explicitly selected file to automatically selected ones.
1675 if test -n "$CONFIG_SITE"; then
1676 set x "$CONFIG_SITE"
1677 elif test "x$prefix" != xNONE; then
1678 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1680 set x "$ac_default_prefix/share/config.site" \
1681 "$ac_default_prefix/etc/config.site"
1686 if test -r "$ac_site_file"; then
1687 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1688 echo "$as_me: loading site script $ac_site_file" >&6;}
1689 sed 's/^/| /' "$ac_site_file" >&5
1694 if test -r "$cache_file"; then
1695 # Some versions of bash will fail to source /dev/null (special
1696 # files actually), so we avoid doing that.
1697 if test -f "$cache_file"; then
1698 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1699 echo "$as_me: loading cache $cache_file" >&6;}
1701 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1702 *) . "./$cache_file";;
1706 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1707 echo "$as_me: creating cache $cache_file" >&6;}
1711 ac_header_list="$ac_header_list sys/time.h"
1712 ac_header_list="$ac_header_list unistd.h"
1713 ac_func_list="$ac_func_list alarm"
1714 # Check that the precious variables saved in the cache have kept the same
1716 ac_cache_corrupted=false
1717 for ac_var in $ac_precious_vars; do
1718 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1719 eval ac_new_set=\$ac_env_${ac_var}_set
1720 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1721 eval ac_new_val=\$ac_env_${ac_var}_value
1722 case $ac_old_set,$ac_new_set in
1724 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1725 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1726 ac_cache_corrupted=: ;;
1728 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1729 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1730 ac_cache_corrupted=: ;;
1733 if test "x$ac_old_val" != "x$ac_new_val"; then
1734 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1735 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1736 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1737 echo "$as_me: former value
: $ac_old_val" >&2;}
1738 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1739 echo "$as_me: current value
: $ac_new_val" >&2;}
1740 ac_cache_corrupted=:
1743 # Pass precious variables to config.status.
1744 if test "$ac_new_set" = set; then
1746 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1747 *) ac_arg=$ac_var=$ac_new_val ;;
1749 case " $ac_configure_args " in
1750 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1751 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1755 if $ac_cache_corrupted; then
1756 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1757 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1758 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1759 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1760 { (exit 1); exit 1; }; }
1780 ac_cpp='$CPP $CPPFLAGS'
1781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1786 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1789 test "$program_prefix" != NONE &&
1790 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1791 # Use a double $ so make ignores it.
1792 test "$program_suffix" != NONE &&
1793 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1794 # Double any \ or $. echo might interpret backslashes.
1795 # By default was `s
,x
,x
', remove it if useless.
1796 cat <<\_ACEOF >conftest.sed
1797 s/[\\$]/&&/g;s/;s,x,x,$//
1799 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1803 lispdir='${datadir}/emacs
/${version}/lisp
'
1804 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1805 '${datadir}/emacs
/site-lisp
'
1806 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1807 etcdir='${datadir}/emacs
/${version}/etc
'
1808 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1809 docdir='${datadir}/emacs
/${version}/etc
'
1810 gamedir='${localstatedir}/games
/emacs
'
1815 # Check whether --with-gcc was given.
1816 if test "${with_gcc+set}" = set; then
1821 # Check whether --with-pop was given.
1822 if test "${with_pop+set}" = set; then
1823 withval=$with_pop; if test "$withval" = yes; then
1824 cat >>confdefs.h <<\_ACEOF
1825 #define MAIL_USE_POP 1
1831 cat >>confdefs.h <<\_ACEOF
1832 #define MAIL_USE_POP 1
1839 # Check whether --with-kerberos was given.
1840 if test "${with_kerberos+set}" = set; then
1841 withval=$with_kerberos; if test "$withval" = yes; then
1842 cat >>confdefs.h <<\_ACEOF
1851 # Check whether --with-kerberos5 was given.
1852 if test "${with_kerberos5+set}" = set; then
1853 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1854 if test "${with_kerberos+set}" != set; then
1856 cat >>confdefs.h <<\_ACEOF
1862 cat >>confdefs.h <<\_ACEOF
1870 # Check whether --with-hesiod was given.
1871 if test "${with_hesiod+set}" = set; then
1872 withval=$with_hesiod; if test "$withval" = yes; then
1874 cat >>confdefs.h <<\_ACEOF
1883 # Check whether --with-sound was given.
1884 if test "${with_sound+set}" = set; then
1885 withval=$with_sound;
1890 # Check whether --with-x-toolkit was given.
1891 if test "${with_x_toolkit+set}" = set; then
1892 withval=$with_x_toolkit; case "${withval}" in
1893 y | ye | yes ) val=athena ;;
1895 l | lu | luc | luci | lucid ) val=lucid ;;
1896 a | at | ath | athe | athen | athena ) val=athena ;;
1897 m | mo | mot | moti | motif ) val=motif ;;
1898 g | gt | gtk ) val=gtk ;;
1900 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1901 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1902 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1903 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1904 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1905 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1906 { (exit 1); exit 1; }; }
1914 # Check whether --with-xpm was given.
1915 if test "${with_xpm+set}" = set; then
1920 # Check whether --with-jpeg was given.
1921 if test "${with_jpeg+set}" = set; then
1926 # Check whether --with-tiff was given.
1927 if test "${with_tiff+set}" = set; then
1932 # Check whether --with-gif was given.
1933 if test "${with_gif+set}" = set; then
1938 # Check whether --with-png was given.
1939 if test "${with_png+set}" = set; then
1944 # Check whether --with-gtk was given.
1945 if test "${with_gtk+set}" = set; then
1950 # Check whether --with-pkg-config-prog was given.
1951 if test "${with_pkg_config_prog+set}" = set; then
1952 withval=$with_pkg_config_prog;
1956 # Check whether --with-toolkit-scroll-bars was given.
1957 if test "${with_toolkit_scroll_bars+set}" = set; then
1958 withval=$with_toolkit_scroll_bars;
1962 # Check whether --with-xim was given.
1963 if test "${with_xim+set}" = set; then
1968 # Check whether --with-carbon was given.
1969 if test "${with_carbon+set}" = set; then
1970 withval=$with_carbon;
1973 # Check whether --enable-carbon-app was given.
1974 if test "${enable_carbon_app+set}" = set; then
1975 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1979 # Check whether --enable-asserts was given.
1980 if test "${enable_asserts+set}" = set; then
1981 enableval=$enable_asserts; USE_XASSERTS=$enableval
1987 # Check whether --enable-maintainer-mode was given.
1988 if test "${enable_maintainer_mode+set}" = set; then
1989 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1991 USE_MAINTAINER_MODE=no
1994 if test $USE_MAINTAINER_MODE = yes; then
2001 # Check whether --enable-locallisppath was given.
2002 if test "${enable_locallisppath+set}" = set; then
2003 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2005 elif test "${enableval}" != "yes"; then
2006 locallisppath=${enableval}
2011 #### Make srcdir absolute, if it isn't already. It
's important to
2012 #### avoid running the path through pwd unnecessarily, since pwd can
2013 #### give you automounter prefixes, which can go away. We do all this
2014 #### so Emacs can find its files when run uninstalled.
2015 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2020 ## We may be able to use the $PWD environment variable to make this
2021 ## absolute. But sometimes PWD is inaccurate.
2022 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2023 ## but that tested only for a well-formed and valid PWD,
2024 ## it did not object when PWD was well-formed and valid but just wrong.
2025 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2029 srcdir
="`(cd ${srcdir}; pwd)`"
2032 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2035 #### Check if the source directory already has a configured system in it.
2036 if test `pwd` != `(cd ${srcdir} && pwd)` \
2037 && test -f "${srcdir}/src/config.h" ; then
2038 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2039 as a build directory right now; it has been configured in its own
2040 right. To configure in another directory as well, you MUST
2041 use GNU make. If you do not have GNU make, then you must
2042 now do \`make distclean' in ${srcdir},
2043 and then run $0 again." >&5
2044 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2045 as a build directory right now; it has been configured in its own
2046 right. To configure in another directory as well, you MUST
2047 use GNU make. If you do not have GNU make, then you must
2048 now do \`make distclean' in ${srcdir},
2049 and then run $0 again." >&2;}
2052 #### Given the configuration name, set machfile and opsysfile to the
2053 #### names of the m/*.h and s/*.h files we should use.
2055 ### Canonicalize the configuration name.
2058 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2059 if test -f "$ac_dir/install-sh"; then
2061 ac_install_sh
="$ac_aux_dir/install-sh -c"
2063 elif test -f "$ac_dir/install.sh"; then
2065 ac_install_sh
="$ac_aux_dir/install.sh -c"
2067 elif test -f "$ac_dir/shtool"; then
2069 ac_install_sh
="$ac_aux_dir/shtool install -c"
2073 if test -z "$ac_aux_dir"; then
2074 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2075 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2076 { (exit 1); exit 1; }; }
2079 # These three variables are undocumented and unsupported,
2080 # and are intended to be withdrawn in a future Autoconf release.
2081 # They can cause serious problems if a builder's source tree is in a directory
2082 # whose full name contains unusual characters.
2083 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2084 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2085 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2088 # Make sure we can run config.sub.
2089 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2090 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2091 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2092 { (exit 1); exit 1; }; }
2094 { echo "$as_me:$LINENO: checking build system type" >&5
2095 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2096 if test "${ac_cv_build+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 ac_build_alias
=$build_alias
2100 test "x$ac_build_alias" = x
&&
2101 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2102 test "x$ac_build_alias" = x
&&
2103 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2104 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2105 { (exit 1); exit 1; }; }
2106 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2112 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2113 echo "${ECHO_T}$ac_cv_build" >&6; }
2114 case $ac_cv_build in
2116 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2117 echo "$as_me: error: invalid value of canonical build" >&2;}
2118 { (exit 1); exit 1; }; };;
2121 ac_save_IFS
=$IFS; IFS
='-'
2127 # Remember, the first character of IFS is used to create $*,
2128 # except with old shells:
2131 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2134 { echo "$as_me:$LINENO: checking host system type" >&5
2135 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2136 if test "${ac_cv_host+set}" = set; then
2137 echo $ECHO_N "(cached) $ECHO_C" >&6
2139 if test "x$host_alias" = x
; then
2140 ac_cv_host
=$ac_cv_build
2142 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2143 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2144 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2145 { (exit 1); exit 1; }; }
2149 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2150 echo "${ECHO_T}$ac_cv_host" >&6; }
2153 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2154 echo "$as_me: error: invalid value of canonical host" >&2;}
2155 { (exit 1); exit 1; }; };;
2158 ac_save_IFS
=$IFS; IFS
='-'
2164 # Remember, the first character of IFS is used to create $*,
2165 # except with old shells:
2168 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2172 configuration
=${host_alias-$host}
2176 ### If you add support for a new configuration, add code to this
2177 ### switch statement to recognize your configuration name and select
2178 ### the appropriate operating system and machine description files.
2180 ### You would hope that you could choose an m/*.h file pretty much
2181 ### based on the machine portion of the configuration name, and an s-
2182 ### file based on the operating system portion. However, it turns out
2183 ### that each m/*.h file is pretty manufacturer-specific - for
2184 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2185 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2186 ### machines. So we basically have to have a special case for each
2187 ### configuration name.
2189 ### As far as handling version numbers on operating systems is
2190 ### concerned, make sure things will fail in a fixable way. If
2191 ### /etc/MACHINES doesn't say anything about version numbers, be
2192 ### prepared to handle anything reasonably. If version numbers
2193 ### matter, be sure /etc/MACHINES says something about it.
2195 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2196 ### "System V Release 4"; he writes, "The old convention encouraged
2197 ### confusion between `system' and `release' levels'."
2199 machine
='' opsys
='' unported
=no
2200 case "${canonical}" in
2205 case "${canonical}" in
2206 alpha
*-*-freebsd*) machine
=alpha
;;
2207 ia64-
*-freebsd*) machine
=ia64
;;
2208 sparc64-
*-freebsd*) machine
=sparc
;;
2209 powerpc-
*-freebsd*) machine
=macppc
;;
2210 i
[3456]86-*-freebsd*) machine
=intel386
;;
2211 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2218 if test -f /usr
/lib
/crti.o
; then
2220 cat >>confdefs.h
<<\_ACEOF
2226 case "${canonical}" in
2227 alpha
*-*-netbsd*) machine
=alpha
;;
2228 i
[3456]86-*-netbsd*) machine
=intel386
;;
2230 # This is somewhat bogus.
2231 machine
=hp9000s300
;;
2232 mips-
*-netbsd*) machine
=pmax
;;
2233 mipsel-
*-netbsd*) machine
=pmax
;;
2234 mipseb-
*-netbsd*) machine
=pmax
;;
2235 ns32k-
*-netbsd*) machine
=ns32000
;;
2236 powerpc-
*-netbsd*) machine
=macppc
;;
2237 sparc
*-*-netbsd*) machine
=sparc
;;
2238 vax-
*-netbsd*) machine
=vax
;;
2239 arm-
*-netbsd*) machine
=arm
;;
2240 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2241 hppa-
*-netbsd*) machine
=hp800
;;
2242 shle-
*-netbsd*) machine
=sh3el
;;
2249 case "${canonical}" in
2250 alpha
*-*-openbsd*) machine
=alpha
;;
2251 arm-
*-openbsd*) machine
=arm
;;
2252 hppa-
*-openbsd*) machine
=hp9000s300
;;
2253 i386-
*-openbsd*) machine
=intel386
;;
2254 m68k-
*-openbsd*) machine
=hp9000s300
;;
2255 m88k-
*-openbsd*) machine
=aviion
;;
2256 mips64-
*-openbsd*) machine
=mips64
;;
2257 powerpc-
*-openbsd*) machine
=macppc
;;
2258 sh-
*-openbsd*) machine
=sh3el
;;
2259 sparc
*-*-openbsd*) machine
=sparc
;;
2260 vax-
*-openbsd*) machine
=vax
;;
2261 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2268 case "${canonical}" in
2269 i
[3456]86-*-lynxos*) machine
=intel386
;;
2270 powerpc-
*-lynxos*) machine
=powerpc
;;
2275 arm-acorn-riscix1.1
* )
2276 machine
=acorn opsys
=riscix1-1
2278 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2279 ## This name is riscix12 instead of riscix1.2
2280 ## to avoid a file name conflict on MSDOS.
2281 machine
=acorn opsys
=riscix12
2287 case "${canonical}" in
2288 i
[345]86-*-bsdi*) machine
=intel386
;;
2289 sparc-
*-bsdi*) machine
=sparc
;;
2290 powerpc-
*-bsdi*) machine
=macppc
;;
2292 case "${canonical}" in
2293 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2294 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2295 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2296 *-*-bsdi3* ) opsys
=bsdos3
;;
2297 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2302 ## Strictly speaking, we need the version of the alliant operating
2303 ## system to choose the right machine file, but currently the
2304 ## configuration name doesn't tell us enough to choose the right
2305 ## one; we need to give alliants their own operating system name to
2306 ## do this right. When someone cares, they can help us.
2308 machine
=alliant4 opsys
=bsd4-2
2311 machine
=alliant-2800 opsys
=bsd4-3
2314 ## Alpha (DEC) machines.
2316 machine
=alpha opsys
=osf1
2317 # This is needed to find X11R6.1 libraries for certain tests.
2318 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2319 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2320 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2321 # due to non-traditional preprocessing with the current compiler
2322 # defaults. OSF 4 can also have that compiler version, and there
2323 # seems always to have been a usable /usr/bin/cpp.
2324 NON_GNU_CPP
=/usr
/bin
/cpp
2325 case "${canonical}" in
2326 alpha
*-dec-osf[5-9]*)
2331 alpha
*-*-linux-gnu* )
2332 machine
=alpha opsys
=gnu-linux
2336 machine
=arm opsys
=gnu-linux
2341 machine
=altos opsys
=usg5-2
2346 machine
=amdahl opsys
=usg5-2-2
2349 ## Apollo, Domain/OS
2351 machine
=apollo opsys
=bsd4-3
2354 ## Apple Darwin / Mac OS X
2356 case "${canonical}" in
2357 i
[3456]86-* ) machine
=intel386
;;
2358 powerpc-
* ) machine
=powermac
;;
2362 # Define CPP as follows to make autoconf work correctly.
2363 CPP
="${CC-cc} -E -no-cpp-precomp"
2364 # Use fink packages if available.
2365 if test -d /sw
/include
&& test -d /sw
/lib
; then
2366 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2367 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2368 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2372 ## AT&T 3b2, 3b5, 3b15, 3b20
2374 machine
=att3b opsys
=usg5-2-2
2377 ## AT&T 3b1 - The Mighty Unix PC!
2379 machine
=7300 opsys
=usg5-2-2
2384 machine
=ibmrs6000 opsys
=aix3-2
2389 machine
=dpx2 opsys
=usg5-3
2394 machine
=sps7 opsys
=usg5-2
2397 ## CCI 5/32, 6/32 -- see "Tahoe".
2400 ## I don't know what configuration name to use for this; config.sub
2401 ## doesn't seem to know anything about it. Hey, Celerity users, get
2402 ## in touch with us!
2403 celerity-celerity-bsd
* )
2404 machine
=celerity opsys
=bsd4-2
2408 ## What operating systems does this chip run that Emacs has been
2412 ## We'll use the catch-all code at the bottom to guess the
2413 ## operating system.
2417 mips-compaq-nonstopux
* )
2418 machine
=nonstopux opsys
=nonstopux
2422 *-convex-bsd* |
*-convex-convexos* )
2423 machine
=convex opsys
=bsd4-3
2424 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2425 NON_GNU_CPP
="cc -E -P"
2429 i
[3456]86-cubix-sysv* )
2430 machine
=intel386 opsys
=usg5-3
2434 cydra
*-cydrome-sysv* )
2435 machine
=cydra5 opsys
=usg5-3
2438 ## Data General AViiON Machines
2439 ## DG changed naming conventions with the release of 5.4.4.10, they
2440 ## dropped the initial 5.4 but left the intervening R. Because of the
2441 ## R this shouldn't conflict with older versions of the OS (which I
2442 ## think were named like dgux4.*). In addition, DG new AViiONs series
2443 ## uses either Motorola M88k or Intel Pentium CPUs.
2444 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2445 machine
=aviion opsys
=dgux4
2447 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2448 ## This name is dgux5-4-3 instead of dgux5-4r3
2449 ## to avoid a file name conflict on MSDOS.
2450 machine
=aviion opsys
=dgux5-4-3
2452 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2453 machine
=aviion opsys
=dgux5-4r2
2456 machine
=aviion opsys
=dgux
2459 ## Data General AViiON Intel (x86) Machines
2460 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2461 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2462 i
[345]86-dg-dguxR4* )
2463 machine
=aviion-intel opsys
=dgux4
2467 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2468 machine
=pmax opsys
=bsd4-2
2470 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2471 machine
=pmax opsys
=bsd4-3
2474 machine
=pmax opsys
=ultrix4-3
2477 machine
=pmax opsys
=osf1
2479 mips-dec-mach_bsd4.3
* )
2480 machine
=pmax opsys
=mach-bsd4-3
2483 ## Motorola Delta machines
2484 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2485 machine
=delta opsys
=usg5-3
2486 if test -z "`type gnucc | grep 'not found'`"
2488 if test -s /etc
/167config
2489 then CC
="gnucc -m68040"
2490 else CC
="gnucc -m68881"
2493 if test -z "`type gcc | grep 'not found'`"
2499 m88k-motorola-sysv4
* )
2500 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2501 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2502 # I hope there are not other 4.0 versions for this machine
2503 # which really need usg5-4 instead.
2504 machine
=delta88k opsys
=usg5-4-2
2506 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2507 machine
=delta88k opsys
=usg5-3
2512 machine
=dual opsys
=usg5-2
2514 m68
*-dual-uniplus* )
2515 machine
=dual opsys
=unipl5-2
2520 machine
=elxsi opsys
=usg5-2
2525 machine
=ns16000 opsys
=umax
2528 ## The GEC 63 - apparently, this port isn't really finished yet.
2529 # I'm sure we finished off the last of the machines, though. -- fx
2531 ## Gould Power Node and NP1
2533 machine
=gould opsys
=bsd4-2
2536 machine
=gould opsys
=bsd4-3
2539 machine
=gould-np1 opsys
=bsd4-3
2542 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2543 ## as far as Emacs is concerned).
2545 # Build needs to be different on 7.0 and later releases
2546 case "`uname -r`" in
2547 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2548 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2550 NON_GNU_CPP
="/lib/cpp"
2552 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2554 machine
=nh3000 opsys
=cxux
2556 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2557 powerpc-harris-powerunix
)
2558 machine
=nh6000 opsys
=powerunix
2559 NON_GNU_CPP
="cc -Xo -E -P"
2561 ## SR2001/SR2201 running HI-UX/MPP
2562 hppa1.1
-hitachi-hiuxmpp* )
2563 machine
=sr2k opsys
=hiuxmpp
2565 hppa1.1
-hitachi-hiuxwe2* )
2566 machine
=sr2k opsys
=hiuxwe2
2569 xps
*-honeywell-sysv* )
2570 machine
=xps100 opsys
=usg5-2
2573 ## HP 9000 series 200 or 300
2575 machine
=hp9000s300 opsys
=bsd4-3
2577 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2579 case "`uname -r`" in
2580 ## Someone's system reports A.B8.05 for this.
2581 ## I wonder what other possibilities there are.
2582 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2583 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2584 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2585 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2586 *) machine
=hp9000s300 opsys
=hpux
;;
2590 ## HP 9000 series 700 and 800, running HP/UX
2592 machine
=hp800 opsys
=hpux
2595 machine
=hp800 opsys
=hpux8
2597 hppa
*-hp-hpux9shr* )
2598 machine
=hp800 opsys
=hpux9shr
2601 machine
=hp800 opsys
=hpux9
2603 hppa
*-hp-hpux10.2
* )
2604 machine
=hp800 opsys
=hpux10-20
2607 machine
=hp800 opsys
=hpux10
2609 hppa
*-hp-hpux1[1-9]* )
2610 machine
=hp800 opsys
=hpux11
2611 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2614 hppa
*-*-linux-gnu* )
2615 machine
=hp800 opsys
=gnu-linux
2618 ## HP 9000 series 700 and 800, running HP/UX
2620 ## Cross-compilation? Nah!
2621 case "`uname -r`" in
2622 ## Someone's system reports A.B8.05 for this.
2623 ## I wonder what other possibilities there are.
2624 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2625 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2626 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2627 *) machine
=hp800 opsys
=hpux10
;;
2631 machine
=hp800 opsys
=nextstep
2636 machine
=orion opsys
=bsd4-2
2638 clipper-orion-bsd
* )
2639 machine
=orion105 opsys
=bsd4-2
2643 i
[3456]86-ibm-aix1.1
* )
2644 machine
=ibmps2-aix opsys
=usg5-2-2
2646 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2647 machine
=ibmps2-aix opsys
=usg5-3
2650 machine
=ibm370aix opsys
=usg5-3
2653 machine
=ibms390 opsys
=gnu-linux
2655 s390x-
*-linux-gnu* )
2656 machine
=ibms390x opsys
=gnu-linux
2658 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2659 machine
=ibmrs6000 opsys
=aix3-1
2661 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2662 machine
=ibmrs6000 opsys
=aix3-2-5
2664 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2665 machine
=ibmrs6000 opsys
=aix4-1
2667 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2668 machine
=ibmrs6000 opsys
=aix4-2
2670 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2671 machine
=ibmrs6000 opsys
=aix4-2
2673 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2674 machine
=ibmrs6000 opsys
=aix4-2
2676 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2677 machine
=ibmrs6000 opsys
=aix4
2679 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2680 machine
=ibmrs6000 opsys
=aix4-1
2682 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2683 machine
=ibmrs6000 opsys
=aix3-2
2686 machine
=ibmrt opsys
=bsd4-3
2689 machine
=ibmrt opsys
=bsd4-2
2692 machine
=ibmrt opsys
=bsd4-3
2695 machine
=ibmrt opsys
=bsd4-2
2698 machine
=ibmrt opsys
=bsd4-3
2701 machine
=ibmrt opsys
=bsd4-3
2704 machine
=ibmrt-aix opsys
=usg5-2-2
2707 ## Integrated Solutions `Optimum V'
2709 machine
=isi-ov opsys
=bsd4-2
2712 machine
=isi-ov opsys
=bsd4-3
2715 ## Intel 386 machines where we do care about the manufacturer
2716 i
[3456]86-intsys-sysv* )
2717 machine
=is386 opsys
=usg5-2-2
2721 i
[3456]86-prime-sysv* )
2722 machine
=i386 opsys
=usg5-3
2725 ## Sequent Symmetry running Dynix
2726 i
[3456]86-sequent-bsd* )
2727 machine
=symmetry opsys
=bsd4-3
2730 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2731 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2732 machine
=sequent-ptx opsys
=ptx4
2733 NON_GNU_CPP
=/lib
/cpp
2736 ## Sequent Symmetry running DYNIX/ptx
2737 ## Use the old cpp rather than the newer ANSI one.
2738 i
[3456]86-sequent-ptx* )
2739 machine
=sequent-ptx opsys
=ptx
2740 NON_GNU_CPP
="/lib/cpp"
2743 ## ncr machine running svr4.3.
2744 i
[3456]86-ncr-sysv4.3
)
2745 machine
=ncr386 opsys
=usg5-4-3
2748 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2749 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2750 i
[3456]86-ncr-sysv* )
2751 machine
=ncr386 opsys
=usg5-4-2
2754 ## Intel Paragon OSF/1
2756 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2761 machine
=i860 opsys
=usg5-4
2762 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2763 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2766 ## Macintosh PowerPC
2767 powerpc
*-*-linux-gnu* )
2768 machine
=macppc opsys
=gnu-linux
2771 ## Masscomp machines
2772 m68
*-masscomp-rtu* )
2773 machine
=masscomp opsys
=rtu
2776 ## Megatest machines
2777 m68
*-megatest-bsd* )
2778 machine
=mega68 opsys
=bsd4-2
2781 ## Workstations sold by MIPS
2782 ## This is not necessarily all workstations using the MIPS processor -
2783 ## Irises are produced by SGI, and DECstations by DEC.
2785 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2786 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2787 ## it gives for choosing between the alternatives seems to be "Use
2788 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2789 ## the BSD world." I'll assume that these are instructions for
2790 ## handling two odd situations, and that every other situation
2791 ## should use mips.h and usg5-2-2, they being listed first.
2794 ## Fall through to the general code at the bottom to decide on the OS.
2796 mips-mips-riscos4
* )
2797 machine
=mips4 opsys
=bsd4-3
2798 NON_GNU_CC
="cc -systype bsd43"
2799 NON_GNU_CPP
="cc -systype bsd43 -E"
2801 mips-mips-riscos5
* )
2802 machine
=mips4 opsys
=riscos5
2803 NON_GNU_CC
="cc -systype bsd43"
2804 NON_GNU_CPP
="cc -systype bsd43 -E"
2807 machine
=mips opsys
=bsd4-3
2810 machine
=mips opsys
=usg5-2-2
2814 m68
*-next-* | m68k-
*-nextstep* )
2815 machine
=m68k opsys
=nextstep
2818 ## The complete machine from National Semiconductor
2820 machine
=ns32000 opsys
=usg5-2
2824 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2825 machine
=tower32 opsys
=usg5-2-2
2827 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2828 machine
=tower32v3 opsys
=usg5-3
2833 machine
=ews4800 opsys
=ux4800
2836 ## Nixdorf Targon 31
2837 m68
*-nixdorf-sysv* )
2838 machine
=targon31 opsys
=usg5-2-2
2843 machine
=nu opsys
=usg5-2
2848 machine
=plexus opsys
=usg5-2
2852 ## I don't really have any idea what sort of processor the Pyramid has,
2853 ## so I'm assuming it is its own architecture.
2854 pyramid-pyramid-bsd
* )
2855 machine
=pyramid opsys
=bsd4-2
2859 ns32k-sequent-bsd4.2
* )
2860 machine
=sequent opsys
=bsd4-2
2862 ns32k-sequent-bsd4.3
* )
2863 machine
=sequent opsys
=bsd4-3
2867 mips-siemens-sysv
* | mips-sni-sysv
*)
2868 machine
=mips-siemens opsys
=usg5-4
2869 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2870 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2873 ## Silicon Graphics machines
2874 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2876 machine
=irist opsys
=iris3-5
2878 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2879 machine
=irist opsys
=iris3-6
2883 machine
=iris4d opsys
=irix3-3
2886 machine
=iris4d opsys
=irix4-0
2889 machine
=iris4d opsys
=irix6-5
2890 # Without defining _LANGUAGE_C, things get masked out in the headers
2891 # so that, for instance, grepping for `free' in stdlib.h fails and
2892 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2893 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2894 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2897 machine
=iris4d opsys
=irix6-0
2898 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2899 # but presumably it does no harm.
2900 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2901 # -32 probably isn't necessary in later v.6s -- anyone know which?
2902 NON_GCC_TEST_OPTIONS
=-32
2904 mips-sgi-irix5.
[01]* )
2905 machine
=iris4d opsys
=irix5-0
2907 mips-sgi-irix5
* | mips-sgi-irix
* )
2908 machine
=iris4d opsys
=irix5-2
2913 machine
=news opsys
=bsd4-2
2916 machine
=news opsys
=bsd4-3
2918 m68
*-sony-newsos3* | m68
*-sony-news3*)
2919 machine
=news opsys
=bsd4-3
2921 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2922 machine
=news-risc opsys
=bsd4-3
2924 mips-sony-newsos6
* )
2925 machine
=news-r6 opsys
=newsos6
2928 machine
=news-risc opsys
=newsos5
2933 machine
=stride opsys
=usg5-2
2937 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2938 machine
=sparc opsys
=gnu-linux
2941 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2942 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2943 | rs6000-
*-solaris2*)
2944 case "${canonical}" in
2945 m68
*-sunos1* ) machine
=sun1
;;
2946 m68
*-sunos2* ) machine
=sun2
;;
2947 m68
* ) machine
=sun3
;;
2948 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2949 i
[3456]86-*-* ) machine
=intel386
;;
2950 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2951 powerpcle
* ) machine
=powerpcle
;;
2952 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2953 sparc
* ) machine
=sparc
;;
2956 case "${canonical}" in
2957 ## The Sun386 didn't get past 4.0.
2958 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2959 *-sunos4.0
* ) opsys
=sunos4-0
;;
2960 *-sunos4.1.
[3-9]*noshare
)
2961 ## This name is sunos413 instead of sunos4-1-3
2962 ## to avoid a file name conflict on MSDOS.
2964 NON_GNU_CPP
=/usr
/lib
/cpp
2965 NON_GCC_TEST_OPTIONS
=-Bstatic
2966 GCC_TEST_OPTIONS
=-static
2968 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2970 NON_GNU_CPP
=/usr
/lib
/cpp
2972 *-sunos4* |
*-sunos )
2974 NON_GCC_TEST_OPTIONS
=-Bstatic
2975 GCC_TEST_OPTIONS
=-static
2977 *-sunos5.3
* |
*-solaris2.3
* )
2979 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2981 *-sunos5.4
* |
*-solaris2.4
* )
2983 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2986 *-sunos5.5
* |
*-solaris2.5
* )
2988 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2991 *-sunos5.6
* |
*-solaris2.6
* )
2993 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2996 *-sunos5* |
*-solaris* )
2998 ## FIXME: make this into a proper fix that checks the compiler type,
2999 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3000 if [ "x$CC" = x
/opt
/SUNWspro
/bin
/cc
]; then
3001 ## -Xs prevents spurious whitespace.
3002 NON_GNU_CPP
="/opt/SUNWspro/bin/cc -E -Xs"
3004 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3009 ## Watch out for a compiler that we know will not work.
3010 case "${canonical}" in
3011 *-solaris* |
*-sunos5* )
3012 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3013 ## /usr/ucb/cc doesn't work;
3014 ## we should find some other compiler that does work.
3022 machine
=sparc opsys
=nextstep
3026 m68
*-tadpole-sysv* )
3027 machine
=tad68k opsys
=usg5-3
3031 tahoe-tahoe-bsd4.2
* )
3032 machine
=tahoe opsys
=bsd4-2
3034 tahoe-tahoe-bsd4.3
* )
3035 machine
=tahoe opsys
=bsd4-3
3038 ## Tandem Integrity S2
3040 machine
=tandem-s2 opsys
=usg5-3
3044 m88k-tektronix-sysv3
* )
3045 machine
=tekxd88 opsys
=usg5-3
3048 ## Tektronix 16000 box (6130?)
3049 ns16k-tektronix-bsd
* )
3050 machine
=ns16000 opsys
=bsd4-2
3053 ## src/m/tek4300.h hints that this is a m68k machine.
3054 m68
*-tektronix-bsd* )
3055 machine
=tek4300 opsys
=bsd4-3
3059 ## We seem to have lost the machine-description file titan.h!
3061 machine
=titan opsys
=usg5-3
3064 ## Ustation E30 (SS5E)
3065 m68
*-unisys-uniplus* )
3066 machine
=ustation opsystem
=unipl5-2
3072 case "${canonical}" in
3073 *-bsd4.1
* ) opsys
=bsd4-1
;;
3074 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3075 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3076 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3077 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3078 *-vms* ) opsys
=vms
;;
3084 ns16k-whitechapel-
* )
3086 ## We don't know what sort of OS runs on these; we'll let the
3087 ## operating system guessing code below try.
3092 machine
=wicat opsys
=usg5-2
3097 machine
=ia64 opsys
=gnu-linux
3100 ## Intel 386 machines where we don't care about the manufacturer
3103 case "${canonical}" in
3104 *-cygwin ) opsys
=cygwin
;;
3105 *-darwin* ) opsys
=darwin
3106 CPP
="${CC-cc} -E -no-cpp-precomp"
3108 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3109 *-isc2.2
* ) opsys
=isc2-2
;;
3110 *-isc4.0
* ) opsys
=isc4-0
;;
3111 *-isc4.
* ) opsys
=isc4-1
3112 GCC_TEST_OPTIONS
=-posix
3113 NON_GCC_TEST_OPTIONS
=-Xp
3115 *-isc* ) opsys
=isc3-0
;;
3116 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3117 *-esix* ) opsys
=esix
;;
3118 *-xenix* ) opsys
=xenix
;;
3119 *-linux-gnu* ) opsys
=gnu-linux
;;
3120 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3121 *-sco3.2v5
* ) opsys
=sco5
3122 NON_GNU_CPP
=/lib
/cpp
3123 # Prevent -belf from being passed to $CPP.
3124 # /lib/cpp does not accept it.
3125 OVERRIDE_CPPFLAGS
=" "
3127 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3128 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3129 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3130 *-386bsd* ) opsys
=386bsd
;;
3131 *-nextstep* ) opsys
=nextstep
;;
3132 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3136 ## m68k Linux-based GNU system
3138 machine
=m68k opsys
=gnu-linux
3141 ## Mips Linux-based GNU system
3142 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3143 machine
=mips opsys
=gnu-linux
3147 sparc-fujitsu-sysv4
* )
3148 machine
=sparc opsys
=uxpds
3149 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3154 f301-fujitsu-uxpv4.1
)
3155 machine
=f301 opsys
=uxpv
3158 ## AMD x86-64 Linux-based GNU system
3159 x86_64-
*-linux-gnu* )
3160 machine
=amdx86-64 opsys
=gnu-linux
3163 ## Tensilica Xtensa Linux-based GNU system
3164 xtensa-
*-linux-gnu* )
3165 machine
=xtensa opsys
=gnu-linux
3173 ### If the code above didn't choose an operating system, just choose
3174 ### an operating system based on the configuration name. You really
3175 ### only want to use this when you have no idea what the right
3176 ### operating system is; if you know what operating systems a machine
3177 ### runs, it's cleaner to make it explicit in the case statement
3179 if test x
"${opsys}" = x
; then
3180 case "${canonical}" in
3181 *-gnu* ) opsys
=gnu
;;
3182 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3183 *-bsd4.2
) opsys
=bsd4-2
;;
3184 *-bsd4.3
) opsys
=bsd4-3
;;
3185 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3186 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3187 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3188 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3189 *-sysv4.2uw
* ) opsys
=unixware
;;
3190 *-sysv5uw* ) opsys
=unixware
;;
3191 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3192 *-sysv4.1
* |
*-sysvr4.1
* )
3193 NON_GNU_CPP
=/usr
/lib
/cpp
3195 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3196 if [ x
$NON_GNU_CPP = x
]; then
3197 if [ -f /usr
/ccs
/lib
/cpp
]; then
3198 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3200 NON_GNU_CPP
=/lib
/cpp
3204 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3213 if test $unported = yes; then
3214 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3215 Check \`etc/MACHINES' for recognized configuration names." >&5
3216 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3217 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3218 { (exit 1); exit 1; }; }
3221 machfile
="m/${machine}.h"
3222 opsysfile
="s/${opsys}.h"
3225 #### Choose a compiler.
3226 test -n "$CC" && cc_specified
=yes
3228 # Save the value of CFLAGS that the user specified.
3229 SPECIFIED_CFLAGS
="$CFLAGS"
3232 "yes" ) CC
="gcc" GCC
=yes ;;
3233 "no" ) : ${CC=cc} ;;
3237 ac_cpp
='$CPP $CPPFLAGS'
3238 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3239 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3240 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3241 if test -n "$ac_tool_prefix"; then
3242 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3243 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3246 if test "${ac_cv_prog_CC+set}" = set; then
3247 echo $ECHO_N "(cached) $ECHO_C" >&6
3249 if test -n "$CC"; then
3250 ac_cv_prog_CC
="$CC" # Let the user override the test.
3252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3256 test -z "$as_dir" && as_dir
=.
3257 for ac_exec_ext
in '' $ac_executable_extensions; do
3258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 if test -n "$CC"; then
3271 { echo "$as_me:$LINENO: result: $CC" >&5
3272 echo "${ECHO_T}$CC" >&6; }
3274 { echo "$as_me:$LINENO: result: no" >&5
3275 echo "${ECHO_T}no" >&6; }
3280 if test -z "$ac_cv_prog_CC"; then
3282 # Extract the first word of "gcc", so it can be a program name with args.
3283 set dummy gcc
; ac_word
=$2
3284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3286 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3289 if test -n "$ac_ct_CC"; then
3290 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3296 test -z "$as_dir" && as_dir
=.
3297 for ac_exec_ext
in '' $ac_executable_extensions; do
3298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3299 ac_cv_prog_ac_ct_CC
="gcc"
3300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3310 if test -n "$ac_ct_CC"; then
3311 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3312 echo "${ECHO_T}$ac_ct_CC" >&6; }
3314 { echo "$as_me:$LINENO: result: no" >&5
3315 echo "${ECHO_T}no" >&6; }
3318 if test "x$ac_ct_CC" = x
; then
3321 case $cross_compiling:$ac_tool_warned in
3323 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3324 whose name does not start with the host triplet. If you think this
3325 configuration is useful to you, please write to autoconf@gnu.org." >&5
3326 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3327 whose name does not start with the host triplet. If you think this
3328 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3329 ac_tool_warned
=yes ;;
3337 if test -z "$CC"; then
3338 if test -n "$ac_tool_prefix"; then
3339 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3340 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3341 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3343 if test "${ac_cv_prog_CC+set}" = set; then
3344 echo $ECHO_N "(cached) $ECHO_C" >&6
3346 if test -n "$CC"; then
3347 ac_cv_prog_CC
="$CC" # Let the user override the test.
3349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3353 test -z "$as_dir" && as_dir
=.
3354 for ac_exec_ext
in '' $ac_executable_extensions; do
3355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3356 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3367 if test -n "$CC"; then
3368 { echo "$as_me:$LINENO: result: $CC" >&5
3369 echo "${ECHO_T}$CC" >&6; }
3371 { echo "$as_me:$LINENO: result: no" >&5
3372 echo "${ECHO_T}no" >&6; }
3378 if test -z "$CC"; then
3379 # Extract the first word of "cc", so it can be a program name with args.
3380 set dummy cc
; ac_word
=$2
3381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3383 if test "${ac_cv_prog_CC+set}" = set; then
3384 echo $ECHO_N "(cached) $ECHO_C" >&6
3386 if test -n "$CC"; then
3387 ac_cv_prog_CC
="$CC" # Let the user override the test.
3390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3394 test -z "$as_dir" && as_dir
=.
3395 for ac_exec_ext
in '' $ac_executable_extensions; do
3396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3398 ac_prog_rejected
=yes
3402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3409 if test $ac_prog_rejected = yes; then
3410 # We found a bogon in the path, so make sure we never use it.
3411 set dummy
$ac_cv_prog_CC
3413 if test $# != 0; then
3414 # We chose a different compiler from the bogus one.
3415 # However, it has the same basename, so the bogon will be chosen
3416 # first if we set CC to just the basename; use the full file name.
3418 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3424 if test -n "$CC"; then
3425 { echo "$as_me:$LINENO: result: $CC" >&5
3426 echo "${ECHO_T}$CC" >&6; }
3428 { echo "$as_me:$LINENO: result: no" >&5
3429 echo "${ECHO_T}no" >&6; }
3434 if test -z "$CC"; then
3435 if test -n "$ac_tool_prefix"; then
3436 for ac_prog
in cl.exe
3438 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3439 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3440 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3442 if test "${ac_cv_prog_CC+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 if test -n "$CC"; then
3446 ac_cv_prog_CC
="$CC" # Let the user override the test.
3448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3452 test -z "$as_dir" && as_dir
=.
3453 for ac_exec_ext
in '' $ac_executable_extensions; do
3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3455 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3466 if test -n "$CC"; then
3467 { echo "$as_me:$LINENO: result: $CC" >&5
3468 echo "${ECHO_T}$CC" >&6; }
3470 { echo "$as_me:$LINENO: result: no" >&5
3471 echo "${ECHO_T}no" >&6; }
3475 test -n "$CC" && break
3478 if test -z "$CC"; then
3480 for ac_prog
in cl.exe
3482 # Extract the first word of "$ac_prog", so it can be a program name with args.
3483 set dummy
$ac_prog; ac_word
=$2
3484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3486 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3487 echo $ECHO_N "(cached) $ECHO_C" >&6
3489 if test -n "$ac_ct_CC"; then
3490 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3492 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3496 test -z "$as_dir" && as_dir
=.
3497 for ac_exec_ext
in '' $ac_executable_extensions; do
3498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3499 ac_cv_prog_ac_ct_CC
="$ac_prog"
3500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3510 if test -n "$ac_ct_CC"; then
3511 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3512 echo "${ECHO_T}$ac_ct_CC" >&6; }
3514 { echo "$as_me:$LINENO: result: no" >&5
3515 echo "${ECHO_T}no" >&6; }
3519 test -n "$ac_ct_CC" && break
3522 if test "x$ac_ct_CC" = x
; then
3525 case $cross_compiling:$ac_tool_warned in
3527 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3528 whose name does not start with the host triplet. If you think this
3529 configuration is useful to you, please write to autoconf@gnu.org." >&5
3530 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3531 whose name does not start with the host triplet. If you think this
3532 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3533 ac_tool_warned
=yes ;;
3542 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3543 See \`config.log' for more details." >&5
3544 echo "$as_me: error: no acceptable C compiler found in \$PATH
3545 See \`config.log' for more details." >&2;}
3546 { (exit 1); exit 1; }; }
3548 # Provide some information about the compiler.
3549 echo "$as_me:$LINENO: checking for C compiler version" >&5
3550 ac_compiler
=`set X $ac_compile; echo $2`
3551 { (ac_try
="$ac_compiler --version >&5"
3553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3557 (eval "$ac_compiler --version >&5") 2>&5
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }
3561 { (ac_try="$ac_compiler -v >&5"
3563 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3564 *) ac_try_echo
=$ac_try;;
3566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3567 (eval "$ac_compiler -v >&5") 2>&5
3569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3570 (exit $ac_status); }
3571 { (ac_try
="$ac_compiler -V >&5"
3573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3577 (eval "$ac_compiler -V >&5") 2>&5
3579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580 (exit $ac_status); }
3582 cat >conftest.$ac_ext <<_ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3597 ac_clean_files_save=$ac_clean_files
3598 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3599 # Try to create an executable without -o first, disregard a.out.
3600 # It will help us diagnose broken compilers, and finding out an intuition
3602 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3603 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3604 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3606 # List of possible output files, starting from the most likely.
3607 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3608 # only as a last resort. b.out is created by i960 compilers.
3609 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3611 # The IRIX 6 linker writes into existing files which may not be
3612 # executable, retaining their permissions. Remove them first so a
3613 # subsequent execution test works.
3615 for ac_file in $ac_files
3618 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3619 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3624 if { (ac_try="$ac_link_default"
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_link_default") 2>&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633 (exit $ac_status); }; then
3634 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3635 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3636 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3637 # so that the user can short-circuit this test for compilers unknown to
3639 for ac_file
in $ac_files ''
3641 test -f "$ac_file" ||
continue
3643 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3646 # We found the default executable, but exeext='' is most
3650 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3652 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3654 # We set ac_cv_exeext here because the later test for it is not
3655 # safe: cross compilers may not add the suffix if given an `-o'
3656 # argument, so we may need to know it at that point already.
3657 # Even if this section looks crufty: it has the advantage of
3664 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3670 { echo "$as_me:$LINENO: result: $ac_file" >&5
3671 echo "${ECHO_T}$ac_file" >&6; }
3672 if test -z "$ac_file"; then
3673 echo "$as_me: failed program was:" >&5
3674 sed 's/^/| /' conftest.
$ac_ext >&5
3676 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3677 See \`config.log' for more details." >&5
3678 echo "$as_me: error: C compiler cannot create executables
3679 See \`config.log' for more details." >&2;}
3680 { (exit 77); exit 77; }; }
3683 ac_exeext
=$ac_cv_exeext
3685 # Check that the compiler produces executables we can run. If not, either
3686 # the compiler is broken, or we cross compile.
3687 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3688 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3689 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3690 # If not cross compiling, check that we can run a simple program.
3691 if test "$cross_compiling" != yes; then
3692 if { ac_try
='./$ac_file'
3693 { (case "(($ac_try" in
3694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3695 *) ac_try_echo=$ac_try;;
3697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3698 (eval "$ac_try") 2>&5
3700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3701 (exit $ac_status); }; }; then
3704 if test "$cross_compiling" = maybe; then
3707 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3708 If you meant to cross compile, use \`--host'.
3709 See \`config.log' for more details.
" >&5
3710 echo "$as_me: error
: cannot run C compiled programs.
3711 If you meant to cross compile
, use \
`--host'.
3712 See \`config.log
' for more details." >&2;}
3713 { (exit 1); exit 1; }; }
3717 { echo "$as_me:$LINENO: result: yes" >&5
3718 echo "${ECHO_T}yes" >&6; }
3720 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3721 ac_clean_files=$ac_clean_files_save
3722 # Check that the compiler produces executables we can run. If not, either
3723 # the compiler is broken, or we cross compile.
3724 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3725 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3726 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3727 echo "${ECHO_T}$cross_compiling" >&6; }
3729 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3730 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3731 if { (ac_try="$ac_link"
3733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3737 (eval "$ac_link") 2>&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); }; then
3741 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3742 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3743 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3745 for ac_file
in conftest.exe conftest conftest.
*; do
3746 test -f "$ac_file" ||
continue
3748 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3749 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3755 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3756 See \`config.log' for more details." >&5
3757 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3758 See \`config.log' for more details." >&2;}
3759 { (exit 1); exit 1; }; }
3762 rm -f conftest
$ac_cv_exeext
3763 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3764 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3766 rm -f conftest.
$ac_ext
3767 EXEEXT
=$ac_cv_exeext
3769 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3770 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3771 if test "${ac_cv_objext+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 cat >conftest.
$ac_ext <<_ACEOF
3777 cat confdefs.h
>>conftest.
$ac_ext
3778 cat >>conftest.
$ac_ext <<_ACEOF
3779 /* end confdefs.h. */
3789 rm -f conftest.o conftest.obj
3790 if { (ac_try
="$ac_compile"
3792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_compile") 2>&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3799 (exit $ac_status); }; then
3800 for ac_file in conftest.o conftest.obj conftest.*; do
3801 test -f "$ac_file" || continue;
3803 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3804 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3809 echo "$as_me: failed program was:" >&5
3810 sed 's/^/| /' conftest.$ac_ext >&5
3812 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3813 See \`config.log
' for more details." >&5
3814 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3815 See \`config.log' for more details.
" >&2;}
3816 { (exit 1); exit 1; }; }
3819 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3821 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3822 echo "${ECHO_T}$ac_cv_objext" >&6; }
3823 OBJEXT=$ac_cv_objext
3825 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3826 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3827 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3828 echo $ECHO_N "(cached
) $ECHO_C" >&6
3830 cat >conftest.$ac_ext <<_ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h. */
3848 rm -f conftest.$ac_objext
3849 if { (ac_try="$ac_compile"
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3854 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3855 (eval "$ac_compile") 2>conftest.er1
3857 grep -v '^ *+' conftest.er1 >conftest.err
3859 cat conftest.err >&5
3860 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3861 (exit $ac_status); } && {
3862 test -z "$ac_c_werror_flag" ||
3863 test ! -s conftest.err
3864 } && test -s conftest.$ac_objext; then
3867 echo "$as_me: failed program was
:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3874 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3877 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3878 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3879 GCC=`test $ac_compiler_gnu = yes && echo yes`
3880 ac_test_CFLAGS=${CFLAGS+set}
3881 ac_save_CFLAGS=$CFLAGS
3882 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3883 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3884 if test "${ac_cv_prog_cc_g+set}" = set; then
3885 echo $ECHO_N "(cached
) $ECHO_C" >&6
3887 ac_save_c_werror_flag=$ac_c_werror_flag
3888 ac_c_werror_flag=yes
3891 cat >conftest.$ac_ext <<_ACEOF
3894 cat confdefs.h >>conftest.$ac_ext
3895 cat >>conftest.$ac_ext <<_ACEOF
3896 /* end confdefs.h. */
3906 rm -f conftest.$ac_objext
3907 if { (ac_try="$ac_compile"
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3912 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3913 (eval "$ac_compile") 2>conftest.er1
3915 grep -v '^ *+' conftest.er1 >conftest.err
3917 cat conftest.err >&5
3918 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3919 (exit $ac_status); } && {
3920 test -z "$ac_c_werror_flag" ||
3921 test ! -s conftest.err
3922 } && test -s conftest.$ac_objext; then
3925 echo "$as_me: failed program was
:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3929 cat >conftest.$ac_ext <<_ACEOF
3932 cat confdefs.h >>conftest.$ac_ext
3933 cat >>conftest.$ac_ext <<_ACEOF
3934 /* end confdefs.h. */
3944 rm -f conftest.$ac_objext
3945 if { (ac_try="$ac_compile"
3947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948 *) ac_try_echo=$ac_try;;
3950 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3951 (eval "$ac_compile") 2>conftest.er1
3953 grep -v '^ *+' conftest.er1 >conftest.err
3955 cat conftest.err >&5
3956 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3957 (exit $ac_status); } && {
3958 test -z "$ac_c_werror_flag" ||
3959 test ! -s conftest.err
3960 } && test -s conftest.$ac_objext; then
3963 echo "$as_me: failed program was
:" >&5
3964 sed 's/^/| /' conftest.$ac_ext >&5
3966 ac_c_werror_flag=$ac_save_c_werror_flag
3968 cat >conftest.$ac_ext <<_ACEOF
3971 cat confdefs.h >>conftest.$ac_ext
3972 cat >>conftest.$ac_ext <<_ACEOF
3973 /* end confdefs.h. */
3983 rm -f conftest.$ac_objext
3984 if { (ac_try="$ac_compile"
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3989 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3990 (eval "$ac_compile") 2>conftest.er1
3992 grep -v '^ *+' conftest.er1 >conftest.err
3994 cat conftest.err >&5
3995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3996 (exit $ac_status); } && {
3997 test -z "$ac_c_werror_flag" ||
3998 test ! -s conftest.err
3999 } && test -s conftest.$ac_objext; then
4002 echo "$as_me: failed program was
:" >&5
4003 sed 's/^/| /' conftest.$ac_ext >&5
4008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4015 ac_c_werror_flag=$ac_save_c_werror_flag
4017 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4018 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4019 if test "$ac_test_CFLAGS" = set; then
4020 CFLAGS=$ac_save_CFLAGS
4021 elif test $ac_cv_prog_cc_g = yes; then
4022 if test "$GCC" = yes; then
4028 if test "$GCC" = yes; then
4034 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4035 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4036 if test "${ac_cv_prog_cc_c89+set}" = set; then
4037 echo $ECHO_N "(cached
) $ECHO_C" >&6
4039 ac_cv_prog_cc_c89=no
4041 cat >conftest.$ac_ext <<_ACEOF
4044 cat confdefs.h >>conftest.$ac_ext
4045 cat >>conftest.$ac_ext <<_ACEOF
4046 /* end confdefs.h. */
4049 #include <sys/types.h>
4050 #include <sys/stat.h>
4051 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4052 struct buf { int x; };
4053 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4054 static char *e (p, i)
4060 static char *f (char * (*g) (char **, int), char **p, ...)
4065 s = g (p, va_arg (v,int));
4070 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4071 function prototypes and stuff, but not '\xHH' hex character constants.
4072 These don't provoke an error unfortunately, instead are silently treated
4073 as 'x'. The following induces an error, until -std is added to get
4074 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4075 array size at least. It's necessary to write '\x00'==0 to get something
4076 that's true only with -std. */
4077 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4079 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4080 inside strings and character constants. */
4082 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4084 int test (int i, double x);
4085 struct s1 {int (*f) (int a);};
4086 struct s2 {int (*f) (double a);};
4087 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4093 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4098 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4099 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4101 CC="$ac_save_CC $ac_arg"
4102 rm -f conftest.$ac_objext
4103 if { (ac_try="$ac_compile"
4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4108 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4109 (eval "$ac_compile") 2>conftest.er1
4111 grep -v '^ *+' conftest.er1 >conftest.err
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4115 (exit $ac_status); } && {
4116 test -z "$ac_c_werror_flag" ||
4117 test ! -s conftest.err
4118 } && test -s conftest.$ac_objext; then
4119 ac_cv_prog_cc_c89=$ac_arg
4121 echo "$as_me: failed program was
:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4127 rm -f core conftest.err conftest.$ac_objext
4128 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4130 rm -f conftest.$ac_ext
4135 case "x
$ac_cv_prog_cc_c89" in
4137 { echo "$as_me:$LINENO: result
: none needed
" >&5
4138 echo "${ECHO_T}none needed
" >&6; } ;;
4140 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4141 echo "${ECHO_T}unsupported
" >&6; } ;;
4143 CC="$CC $ac_cv_prog_cc_c89"
4144 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4145 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4150 ac_cpp='$CPP $CPPFLAGS'
4151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4156 # On Suns, sometimes $CPP names a directory.
4157 if test -n "$CPP" && test -d "$CPP"; then
4161 #### Some systems specify a CPP to use unless we are using GCC.
4162 #### Now that we know whether we are using GCC, we can decide whether
4163 #### to use that one.
4164 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4169 #### Some systems specify a CC to use unless we are using GCC.
4170 #### Now that we know whether we are using GCC, we can decide whether
4171 #### to use that one.
4172 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4173 test x$cc_specified != xyes
4178 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4180 CC="$CC $GCC_TEST_OPTIONS"
4183 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4185 CC="$CC $NON_GCC_TEST_OPTIONS"
4190 ac_cpp='$CPP $CPPFLAGS'
4191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4194 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4195 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4196 # On Suns, sometimes $CPP names a directory.
4197 if test -n "$CPP" && test -d "$CPP"; then
4200 if test -z "$CPP"; then
4201 if test "${ac_cv_prog_CPP+set}" = set; then
4202 echo $ECHO_N "(cached
) $ECHO_C" >&6
4204 # Double quotes because CPP needs to be expanded
4205 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4208 for ac_c_preproc_warn_flag in '' yes
4210 # Use a header file that comes with gcc, so configuring glibc
4211 # with a fresh cross-compiler works.
4212 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4213 # <limits.h> exists even on freestanding compilers.
4214 # On the NeXT, cc -E runs the code through the compiler's parser,
4215 # not just through cpp. "Syntax error
" is here to catch this case.
4216 cat >conftest.$ac_ext <<_ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4223 # include <limits.h>
4225 # include <assert.h>
4229 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4232 *) ac_try_echo=$ac_try;;
4234 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4235 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4237 grep -v '^ *+' conftest.er1 >conftest.err
4239 cat conftest.err >&5
4240 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4241 (exit $ac_status); } >/dev/null && {
4242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4243 test ! -s conftest.err
4247 echo "$as_me: failed program was
:" >&5
4248 sed 's/^/| /' conftest.$ac_ext >&5
4250 # Broken: fails on valid input.
4254 rm -f conftest.err conftest.$ac_ext
4256 # OK, works on sane cases. Now check whether nonexistent headers
4257 # can be detected and how.
4258 cat >conftest.$ac_ext <<_ACEOF
4261 cat confdefs.h >>conftest.$ac_ext
4262 cat >>conftest.$ac_ext <<_ACEOF
4263 /* end confdefs.h. */
4264 #include <ac_nonexistent.h>
4266 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4271 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4274 grep -v '^ *+' conftest.er1 >conftest.err
4276 cat conftest.err >&5
4277 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4278 (exit $ac_status); } >/dev/null && {
4279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4280 test ! -s conftest.err
4282 # Broken: success on invalid input.
4285 echo "$as_me: failed program was
:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4288 # Passes both tests.
4293 rm -f conftest.err conftest.$ac_ext
4296 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4297 rm -f conftest.err conftest.$ac_ext
4298 if $ac_preproc_ok; then
4310 { echo "$as_me:$LINENO: result
: $CPP" >&5
4311 echo "${ECHO_T}$CPP" >&6; }
4313 for ac_c_preproc_warn_flag in '' yes
4315 # Use a header file that comes with gcc, so configuring glibc
4316 # with a fresh cross-compiler works.
4317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4318 # <limits.h> exists even on freestanding compilers.
4319 # On the NeXT, cc -E runs the code through the compiler's parser,
4320 # not just through cpp. "Syntax error
" is here to catch this case.
4321 cat >conftest.$ac_ext <<_ACEOF
4324 cat confdefs.h >>conftest.$ac_ext
4325 cat >>conftest.$ac_ext <<_ACEOF
4326 /* end confdefs.h. */
4328 # include <limits.h>
4330 # include <assert.h>
4334 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4339 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4340 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4342 grep -v '^ *+' conftest.er1 >conftest.err
4344 cat conftest.err >&5
4345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4346 (exit $ac_status); } >/dev/null && {
4347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4348 test ! -s conftest.err
4352 echo "$as_me: failed program was
:" >&5
4353 sed 's/^/| /' conftest.$ac_ext >&5
4355 # Broken: fails on valid input.
4359 rm -f conftest.err conftest.$ac_ext
4361 # OK, works on sane cases. Now check whether nonexistent headers
4362 # can be detected and how.
4363 cat >conftest.$ac_ext <<_ACEOF
4366 cat confdefs.h >>conftest.$ac_ext
4367 cat >>conftest.$ac_ext <<_ACEOF
4368 /* end confdefs.h. */
4369 #include <ac_nonexistent.h>
4371 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4374 *) ac_try_echo=$ac_try;;
4376 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4377 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4379 grep -v '^ *+' conftest.er1 >conftest.err
4381 cat conftest.err >&5
4382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4383 (exit $ac_status); } >/dev/null && {
4384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4385 test ! -s conftest.err
4387 # Broken: success on invalid input.
4390 echo "$as_me: failed program was
:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 # Passes both tests.
4398 rm -f conftest.err conftest.$ac_ext
4401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4402 rm -f conftest.err conftest.$ac_ext
4403 if $ac_preproc_ok; then
4406 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4407 See \
`config.log' for more details." >&5
4408 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4409 See \`config.log
' for more details." >&2;}
4410 { (exit 1); exit 1; }; }
4414 ac_cpp='$CPP $CPPFLAGS'
4415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4416 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4420 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4421 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4422 if test "${ac_cv_path_GREP+set}" = set; then
4423 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 # Extract the first word of "grep ggrep" to use in msg output
4426 if test -z "$GREP"; then
4427 set dummy grep ggrep; ac_prog_name=$2
4428 if test "${ac_cv_path_GREP+set}" = set; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 ac_path_GREP_found=false
4432 # Loop through the user's path and
test for each of PROGNAME-LIST
4433 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4434 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4437 test -z "$as_dir" && as_dir
=.
4438 for ac_prog
in grep ggrep
; do
4439 for ac_exec_ext
in '' $ac_executable_extensions; do
4440 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4441 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4442 # Check for GNU ac_path_GREP and select it if it is found.
4443 # Check for GNU $ac_path_GREP
4444 case `"$ac_path_GREP" --version 2>&1` in
4446 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4449 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4452 cat "conftest.in" "conftest.in" >"conftest.tmp"
4453 mv "conftest.tmp" "conftest.in"
4454 cp "conftest.in" "conftest.nl"
4455 echo 'GREP' >> "conftest.nl"
4456 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4457 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4458 ac_count
=`expr $ac_count + 1`
4459 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4460 # Best one so far, save it but keep looking for a better one
4461 ac_cv_path_GREP
="$ac_path_GREP"
4462 ac_path_GREP_max
=$ac_count
4464 # 10*(2^10) chars as input seems more than enough
4465 test $ac_count -gt 10 && break
4467 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4471 $ac_path_GREP_found && break 3
4481 GREP
="$ac_cv_path_GREP"
4482 if test -z "$GREP"; then
4483 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4484 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4485 { (exit 1); exit 1; }; }
4489 ac_cv_path_GREP
=$GREP
4494 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4495 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4496 GREP
="$ac_cv_path_GREP"
4499 { echo "$as_me:$LINENO: checking for egrep" >&5
4500 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4501 if test "${ac_cv_path_EGREP+set}" = set; then
4502 echo $ECHO_N "(cached) $ECHO_C" >&6
4504 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4505 then ac_cv_path_EGREP
="$GREP -E"
4507 # Extract the first word of "egrep" to use in msg output
4508 if test -z "$EGREP"; then
4509 set dummy
egrep; ac_prog_name
=$2
4510 if test "${ac_cv_path_EGREP+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 ac_path_EGREP_found
=false
4514 # Loop through the user's path and test for each of PROGNAME-LIST
4515 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4516 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4519 test -z "$as_dir" && as_dir
=.
4520 for ac_prog
in egrep; do
4521 for ac_exec_ext
in '' $ac_executable_extensions; do
4522 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4523 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4524 # Check for GNU ac_path_EGREP and select it if it is found.
4525 # Check for GNU $ac_path_EGREP
4526 case `"$ac_path_EGREP" --version 2>&1` in
4528 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4531 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4534 cat "conftest.in" "conftest.in" >"conftest.tmp"
4535 mv "conftest.tmp" "conftest.in"
4536 cp "conftest.in" "conftest.nl"
4537 echo 'EGREP' >> "conftest.nl"
4538 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4539 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4540 ac_count
=`expr $ac_count + 1`
4541 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4542 # Best one so far, save it but keep looking for a better one
4543 ac_cv_path_EGREP
="$ac_path_EGREP"
4544 ac_path_EGREP_max
=$ac_count
4546 # 10*(2^10) chars as input seems more than enough
4547 test $ac_count -gt 10 && break
4549 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4553 $ac_path_EGREP_found && break 3
4563 EGREP
="$ac_cv_path_EGREP"
4564 if test -z "$EGREP"; then
4565 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4566 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4567 { (exit 1); exit 1; }; }
4571 ac_cv_path_EGREP
=$EGREP
4577 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4578 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4579 EGREP
="$ac_cv_path_EGREP"
4583 { echo "$as_me:$LINENO: checking for AIX" >&5
4584 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4585 cat >conftest.
$ac_ext <<_ACEOF
4588 cat confdefs.h
>>conftest.
$ac_ext
4589 cat >>conftest.
$ac_ext <<_ACEOF
4590 /* end confdefs.h. */
4596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4597 $EGREP "yes" >/dev
/null
2>&1; then
4598 { echo "$as_me:$LINENO: result: yes" >&5
4599 echo "${ECHO_T}yes" >&6; }
4600 cat >>confdefs.h
<<\_ACEOF
4601 #define _ALL_SOURCE 1
4605 { echo "$as_me:$LINENO: result: no" >&5
4606 echo "${ECHO_T}no" >&6; }
4612 cat >>confdefs.h
<<\_ACEOF
4613 #define _GNU_SOURCE 1
4618 ### Use -Wno-pointer-sign if the compiler supports it
4619 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4620 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4621 SAVE_CFLAGS
="$CFLAGS"
4622 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4623 cat >conftest.
$ac_ext <<_ACEOF
4626 cat confdefs.h
>>conftest.
$ac_ext
4627 cat >>conftest.
$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4638 rm -f conftest.
$ac_objext
4639 if { (ac_try
="$ac_compile"
4641 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645 (eval "$ac_compile") 2>conftest.er1
4647 grep -v '^ *+' conftest.er1 >conftest.err
4649 cat conftest.err >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } && {
4652 test -z "$ac_c_werror_flag" ||
4653 test ! -s conftest.err
4654 } && test -s conftest.$ac_objext; then
4657 echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 if test $has_option = yes; then
4665 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4667 { echo "$as_me:$LINENO: result: $has_option" >&5
4668 echo "${ECHO_T}$has_option" >&6; }
4669 CFLAGS="$SAVE_CFLAGS"
4673 #### Some other nice autoconf tests.
4675 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4676 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4678 if test "$LN_S" = "ln -s"; then
4679 { echo "$as_me:$LINENO: result: yes" >&5
4680 echo "${ECHO_T}yes" >&6; }
4682 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4683 echo "${ECHO_T}no, using $LN_S" >&6; }
4687 ac_cpp='$CPP $CPPFLAGS'
4688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4692 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4693 # On Suns, sometimes $CPP names a directory.
4694 if test -n "$CPP" && test -d "$CPP"; then
4697 if test -z "$CPP"; then
4698 if test "${ac_cv_prog_CPP+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 # Double quotes because CPP needs to be expanded
4702 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4705 for ac_c_preproc_warn_flag in '' yes
4707 # Use a header file that comes with gcc, so configuring glibc
4708 # with a fresh cross-compiler works.
4709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4710 # <limits.h> exists even on freestanding compilers.
4711 # On the NeXT, cc -E runs the code through the compiler's parser,
4712 # not just through cpp. "Syntax error" is here to catch this case.
4713 cat >conftest.$ac_ext <<_ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4720 # include <limits.h>
4722 # include <assert.h>
4726 if { (ac_try="$ac_cpp conftest.$ac_ext"
4728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4729 *) ac_try_echo
=$ac_try;;
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4734 grep -v '^ *+' conftest.er1
>conftest.err
4736 cat conftest.err
>&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } >/dev
/null
&& {
4739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4740 test ! -s conftest.err
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.
$ac_ext >&5
4747 # Broken: fails on valid input.
4751 rm -f conftest.err conftest.
$ac_ext
4753 # OK, works on sane cases. Now check whether nonexistent headers
4754 # can be detected and how.
4755 cat >conftest.
$ac_ext <<_ACEOF
4758 cat confdefs.h
>>conftest.
$ac_ext
4759 cat >>conftest.
$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 #include <ac_nonexistent.h>
4763 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4771 grep -v '^ *+' conftest.er1 >conftest.err
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } >/dev/null && {
4776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4777 test ! -s conftest.err
4779 # Broken: success on invalid input.
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4785 # Passes both tests.
4790 rm -f conftest.err conftest.$ac_ext
4793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4794 rm -f conftest.err conftest.
$ac_ext
4795 if $ac_preproc_ok; then
4807 { echo "$as_me:$LINENO: result: $CPP" >&5
4808 echo "${ECHO_T}$CPP" >&6; }
4810 for ac_c_preproc_warn_flag
in '' yes
4812 # Use a header file that comes with gcc, so configuring glibc
4813 # with a fresh cross-compiler works.
4814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4815 # <limits.h> exists even on freestanding compilers.
4816 # On the NeXT, cc -E runs the code through the compiler's parser,
4817 # not just through cpp. "Syntax error" is here to catch this case.
4818 cat >conftest.
$ac_ext <<_ACEOF
4821 cat confdefs.h
>>conftest.
$ac_ext
4822 cat >>conftest.
$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4825 # include <limits.h>
4827 # include <assert.h>
4831 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4839 grep -v '^ *+' conftest.er1 >conftest.err
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } >/dev/null && {
4844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 # Broken: fails on valid input.
4856 rm -f conftest.err conftest.$ac_ext
4858 # OK, works on sane cases. Now check whether nonexistent headers
4859 # can be detected and how.
4860 cat >conftest.$ac_ext <<_ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <ac_nonexistent.h>
4868 if { (ac_try="$ac_cpp conftest.$ac_ext"
4870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4871 *) ac_try_echo
=$ac_try;;
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4876 grep -v '^ *+' conftest.er1
>conftest.err
4878 cat conftest.err
>&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } >/dev
/null
&& {
4881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4882 test ! -s conftest.err
4884 # Broken: success on invalid input.
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.
$ac_ext >&5
4890 # Passes both tests.
4895 rm -f conftest.err conftest.
$ac_ext
4898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4899 rm -f conftest.err conftest.
$ac_ext
4900 if $ac_preproc_ok; then
4903 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4904 See \`config.log' for more details." >&5
4905 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4906 See \`config.log' for more details." >&2;}
4907 { (exit 1); exit 1; }; }
4911 ac_cpp
='$CPP $CPPFLAGS'
4912 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4916 # Find a good install program. We prefer a C program (faster),
4917 # so one script is as good as another. But avoid the broken or
4918 # incompatible versions:
4919 # SysV /etc/install, /usr/sbin/install
4920 # SunOS /usr/etc/install
4921 # IRIX /sbin/install
4923 # AmigaOS /C/install, which installs bootblocks on floppy discs
4924 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4925 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4926 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4927 # OS/2's system install, which has a completely different semantic
4928 # ./install, which can be erroneously created by make from ./install.sh.
4929 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4930 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4931 if test -z "$INSTALL"; then
4932 if test "${ac_cv_path_install+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4939 test -z "$as_dir" && as_dir
=.
4940 # Account for people who put trailing slashes in PATH elements.
4942 .
/ | .
// |
/cC
/* | \
4943 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4944 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4947 # OSF1 and SCO ODT 3.0 have their own names for install.
4948 # Don't use installbsd from OSF since it installs stuff as root
4950 for ac_prog
in ginstall scoinst
install; do
4951 for ac_exec_ext
in '' $ac_executable_extensions; do
4952 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4953 if test $ac_prog = install &&
4954 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4955 # AIX install. It has an incompatible calling convention.
4957 elif test $ac_prog = install &&
4958 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4959 # program-specific install script used by HP pwplus--don't use.
4962 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4975 if test "${ac_cv_path_install+set}" = set; then
4976 INSTALL
=$ac_cv_path_install
4978 # As a last resort, use the slow shell script. Don't cache a
4979 # value for INSTALL within a source directory, because that will
4980 # break other packages using the cache if that directory is
4981 # removed, or if the value is a relative name.
4982 INSTALL
=$ac_install_sh
4985 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4986 echo "${ECHO_T}$INSTALL" >&6; }
4988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4989 # It thinks the first close brace ends the variable substitution.
4990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4994 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4996 if test "x$RANLIB" = x
; then
4997 if test -n "$ac_tool_prefix"; then
4998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4999 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5002 if test "${ac_cv_prog_RANLIB+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 if test -n "$RANLIB"; then
5006 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5012 test -z "$as_dir" && as_dir
=.
5013 for ac_exec_ext
in '' $ac_executable_extensions; do
5014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 RANLIB
=$ac_cv_prog_RANLIB
5026 if test -n "$RANLIB"; then
5027 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5028 echo "${ECHO_T}$RANLIB" >&6; }
5030 { echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6; }
5036 if test -z "$ac_cv_prog_RANLIB"; then
5037 ac_ct_RANLIB
=$RANLIB
5038 # Extract the first word of "ranlib", so it can be a program name with args.
5039 set dummy ranlib
; ac_word
=$2
5040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5042 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 if test -n "$ac_ct_RANLIB"; then
5046 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5052 test -z "$as_dir" && as_dir
=.
5053 for ac_exec_ext
in '' $ac_executable_extensions; do
5054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5066 if test -n "$ac_ct_RANLIB"; then
5067 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5068 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5070 { echo "$as_me:$LINENO: result: no" >&5
5071 echo "${ECHO_T}no" >&6; }
5074 if test "x$ac_ct_RANLIB" = x
; then
5077 case $cross_compiling:$ac_tool_warned in
5079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5080 whose name does not start with the host triplet. If you think this
5081 configuration is useful to you, please write to autoconf@gnu.org." >&5
5082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5083 whose name does not start with the host triplet. If you think this
5084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5085 ac_tool_warned
=yes ;;
5087 RANLIB
=$ac_ct_RANLIB
5090 RANLIB
="$ac_cv_prog_RANLIB"
5094 # Extract the first word of "install-info", so it can be a program name with args.
5095 set dummy install-info
; ac_word
=$2
5096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5098 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 case $INSTALL_INFO in
5103 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5110 test -z "$as_dir" && as_dir
=.
5111 for ac_exec_ext
in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5125 if test -n "$INSTALL_INFO"; then
5126 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5127 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5129 { echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6; }
5134 # Extract the first word of "install-info", so it can be a program name with args.
5135 set dummy install-info
; ac_word
=$2
5136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 case $INSTALL_INFO in
5143 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5147 for as_dir
in /usr
/sbin
5150 test -z "$as_dir" && as_dir
=.
5151 for ac_exec_ext
in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5165 if test -n "$INSTALL_INFO"; then
5166 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5167 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5169 { echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6; }
5174 # Extract the first word of "install-info", so it can be a program name with args.
5175 set dummy install-info
; ac_word
=$2
5176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5178 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 case $INSTALL_INFO in
5183 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5190 test -z "$as_dir" && as_dir
=.
5191 for ac_exec_ext
in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5205 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5206 if test -n "$INSTALL_INFO"; then
5207 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5208 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5210 { echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6; }
5215 # Extract the first word of "gzip", so it can be a program name with args.
5216 set dummy
gzip; ac_word
=$2
5217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5219 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5231 test -z "$as_dir" && as_dir
=.
5232 for ac_exec_ext
in '' $ac_executable_extensions; do
5233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5246 if test -n "$GZIP_PROG"; then
5247 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5248 echo "${ECHO_T}$GZIP_PROG" >&6; }
5250 { echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6; }
5257 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5259 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5262 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5264 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5268 late_LDFLAGS
=$LDFLAGS
5269 if test "$GCC" = yes; then
5270 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5272 LDFLAGS
="$LDFLAGS -znocombreloc"
5275 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5276 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5277 cat >conftest.
$ac_ext <<_ACEOF
5280 rm -f conftest.
$ac_objext conftest
$ac_exeext
5281 if { (ac_try
="$ac_link"
5283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5284 *) ac_try_echo=$ac_try;;
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287 (eval "$ac_link") 2>conftest.er1
5289 grep -v '^ *+' conftest.er1 >conftest.err
5291 cat conftest.err >&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); } && {
5294 test -z "$ac_c_werror_flag" ||
5295 test ! -s conftest.err
5296 } && test -s conftest$ac_exeext &&
5297 $as_test_x conftest$ac_exeext; then
5298 { echo "$as_me:$LINENO: result: yes" >&5
5299 echo "${ECHO_T}yes" >&6; }
5301 echo "$as_me: failed program was:" >&5
5302 sed 's/^/| /' conftest.$ac_ext >&5
5304 LDFLAGS=$late_LDFLAGS
5305 { echo "$as_me:$LINENO: result: no" >&5
5306 echo "${ECHO_T}no" >&6; }
5309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5310 conftest$ac_exeext conftest.$ac_ext
5312 #### Extract some information from the operating system and machine files.
5314 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5315 - which libraries the lib-src programs will want, and
5316 - whether the GNU malloc routines are usable..." >&5
5317 echo "$as_me: checking the machine- and system-dependent files to find out
5318 - which libraries the lib-src programs will want, and
5319 - whether the GNU malloc routines are usable..." >&6;}
5321 ### First figure out CFLAGS (which we use for running the compiler here)
5322 ### and REAL_CFLAGS (which we use for real compilation).
5323 ### The two are the same except on a few systems, where they are made
5324 ### different to work around various lossages. For example,
5325 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5326 ### as implying static linking.
5328 ### If the CFLAGS env var is specified, we use that value
5329 ### instead of the default.
5331 ### It's not important that this name contain the PID; you can't run
5332 ### two configures in the same directory and have anything work
5334 tempcname="conftest.c"
5337 #include "'${srcdir}'/src/'${opsysfile}'"
5338 #include "'${srcdir}'/src/'${machfile}'"
5339 #ifndef LIBS_MACHINE
5340 #define LIBS_MACHINE
5345 #ifndef C_SWITCH_SYSTEM
5346 #define C_SWITCH_SYSTEM
5348 #ifndef C_SWITCH_MACHINE
5349 #define C_SWITCH_MACHINE
5351 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5352 configure___ c_switch_system=C_SWITCH_SYSTEM
5353 configure___ c_switch_machine=C_SWITCH_MACHINE
5356 #define LIB_X11_LIB -lX11
5359 #ifndef LIBX11_MACHINE
5360 #define LIBX11_MACHINE
5363 #ifndef LIBX11_SYSTEM
5364 #define LIBX11_SYSTEM
5366 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5369 configure___ unexec=UNEXEC
5371 configure___ unexec=unexec.o
5374 #ifdef SYSTEM_MALLOC
5375 configure___ system_malloc=yes
5377 configure___ system_malloc=no
5380 #ifdef USE_MMAP_FOR_BUFFERS
5381 configure___ use_mmap_for_buffers=yes
5383 configure___ use_mmap_for_buffers=no
5386 #ifndef C_DEBUG_SWITCH
5387 #define C_DEBUG_SWITCH -g
5390 #ifndef C_OPTIMIZE_SWITCH
5392 #define C_OPTIMIZE_SWITCH -O2
5394 #define C_OPTIMIZE_SWITCH -O
5398 #ifndef C_WARNINGS_SWITCH
5399 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5402 #ifndef LD_SWITCH_MACHINE
5403 #define LD_SWITCH_MACHINE
5406 #ifndef LD_SWITCH_SYSTEM
5407 #define LD_SWITCH_SYSTEM
5410 #ifndef LD_SWITCH_X_SITE_AUX
5411 #define LD_SWITCH_X_SITE_AUX
5414 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5415 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5417 #ifdef THIS_IS_CONFIGURE
5419 /* Get the CFLAGS for tests in configure. */
5421 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5423 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5426 #else /* not THIS_IS_CONFIGURE */
5428 /* Get the CFLAGS for real compilation. */
5430 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5432 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5435 #endif /* not THIS_IS_CONFIGURE */
5438 # The value of CPP is a quoted variable reference, so we need to do this
5439 # to get its actual value...
5440 CPP=`eval "echo $CPP"`
5441 eval `${CPP} -Isrc ${tempcname} \
5442 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5443 if test "x$SPECIFIED_CFLAGS" = x; then
5444 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5445 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5447 REAL_CFLAGS="$CFLAGS"
5451 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5453 ### Make sure subsequent tests use flags consistent with the build flags.
5455 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5456 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5458 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5463 # Check whether --enable-largefile was given.
5464 if test "${enable_largefile+set}" = set; then
5465 enableval=$enable_largefile;
5468 if test "$enable_largefile" != no; then
5470 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5471 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5472 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5473 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 ac_cv_sys_largefile_CC=no
5476 if test "$GCC" != yes; then
5479 # IRIX 6.2 and later do not support large files by default,
5480 # so use the C compiler's -n32 option if that helps.
5481 cat >conftest.$ac_ext <<_ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 #include <sys/types.h>
5488 /* Check that off_t can represent 2**63 - 1 correctly.
5489 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5490 since some C++ compilers masquerading as C compilers
5491 incorrectly reject 9223372036854775807. */
5492 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5493 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5494 && LARGE_OFF_T % 2147483647 == 1)
5504 rm -f conftest.$ac_objext
5505 if { (ac_try="$ac_compile"
5507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5508 *) ac_try_echo
=$ac_try;;
5510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5511 (eval "$ac_compile") 2>conftest.er1
5513 grep -v '^ *+' conftest.er1
>conftest.err
5515 cat conftest.err
>&5
5516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5517 (exit $ac_status); } && {
5518 test -z "$ac_c_werror_flag" ||
5519 test ! -s conftest.err
5520 } && test -s conftest.
$ac_objext; then
5523 echo "$as_me: failed program was:" >&5
5524 sed 's/^/| /' conftest.
$ac_ext >&5
5529 rm -f core conftest.err conftest.
$ac_objext
5531 rm -f conftest.
$ac_objext
5532 if { (ac_try
="$ac_compile"
5534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5538 (eval "$ac_compile") 2>conftest.er1
5540 grep -v '^ *+' conftest.er1 >conftest.err
5542 cat conftest.err >&5
5543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544 (exit $ac_status); } && {
5545 test -z "$ac_c_werror_flag" ||
5546 test ! -s conftest.err
5547 } && test -s conftest.$ac_objext; then
5548 ac_cv_sys_largefile_CC=' -n32'; break
5550 echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5556 rm -f core conftest.err conftest.$ac_objext
5560 rm -f conftest.$ac_ext
5563 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5564 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5565 if test "$ac_cv_sys_largefile_CC" != no; then
5566 CC=$CC$ac_cv_sys_largefile_CC
5569 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5570 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5571 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 cat >conftest.$ac_ext <<_ACEOF
5578 cat confdefs.h >>conftest.$ac_ext
5579 cat >>conftest.$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 #include <sys/types.h>
5582 /* Check that off_t can represent 2**63 - 1 correctly.
5583 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5584 since some C++ compilers masquerading as C compilers
5585 incorrectly reject 9223372036854775807. */
5586 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5587 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5588 && LARGE_OFF_T % 2147483647 == 1)
5598 rm -f conftest.$ac_objext
5599 if { (ac_try="$ac_compile"
5601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5602 *) ac_try_echo
=$ac_try;;
5604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5605 (eval "$ac_compile") 2>conftest.er1
5607 grep -v '^ *+' conftest.er1
>conftest.err
5609 cat conftest.err
>&5
5610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5611 (exit $ac_status); } && {
5612 test -z "$ac_c_werror_flag" ||
5613 test ! -s conftest.err
5614 } && test -s conftest.
$ac_objext; then
5615 ac_cv_sys_file_offset_bits
=no
; break
5617 echo "$as_me: failed program was:" >&5
5618 sed 's/^/| /' conftest.
$ac_ext >&5
5623 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5624 cat >conftest.
$ac_ext <<_ACEOF
5627 cat confdefs.h
>>conftest.
$ac_ext
5628 cat >>conftest.
$ac_ext <<_ACEOF
5629 /* end confdefs.h. */
5630 #define _FILE_OFFSET_BITS 64
5631 #include <sys/types.h>
5632 /* Check that off_t can represent 2**63 - 1 correctly.
5633 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5634 since some C++ compilers masquerading as C compilers
5635 incorrectly reject 9223372036854775807. */
5636 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5637 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5638 && LARGE_OFF_T % 2147483647 == 1)
5648 rm -f conftest.
$ac_objext
5649 if { (ac_try
="$ac_compile"
5651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655 (eval "$ac_compile") 2>conftest.er1
5657 grep -v '^ *+' conftest.er1 >conftest.err
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } && {
5662 test -z "$ac_c_werror_flag" ||
5663 test ! -s conftest.err
5664 } && test -s conftest.$ac_objext; then
5665 ac_cv_sys_file_offset_bits=64; break
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5674 ac_cv_sys_file_offset_bits=unknown
5678 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5679 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5680 case $ac_cv_sys_file_offset_bits in #(
5683 cat >>confdefs.h <<_ACEOF
5684 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5689 if test $ac_cv_sys_file_offset_bits = unknown; then
5690 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5691 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5692 if test "${ac_cv_sys_large_files+set}" = set; then
5693 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 cat >conftest.$ac_ext <<_ACEOF
5699 cat confdefs.h >>conftest.$ac_ext
5700 cat >>conftest.$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 #include <sys/types.h>
5703 /* Check that off_t can represent 2**63 - 1 correctly.
5704 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5705 since some C++ compilers masquerading as C compilers
5706 incorrectly reject 9223372036854775807. */
5707 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5708 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5709 && LARGE_OFF_T % 2147483647 == 1)
5719 rm -f conftest.$ac_objext
5720 if { (ac_try="$ac_compile"
5722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5723 *) ac_try_echo
=$ac_try;;
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_compile") 2>conftest.er1
5728 grep -v '^ *+' conftest.er1
>conftest.err
5730 cat conftest.err
>&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } && {
5733 test -z "$ac_c_werror_flag" ||
5734 test ! -s conftest.err
5735 } && test -s conftest.
$ac_objext; then
5736 ac_cv_sys_large_files
=no
; break
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.
$ac_ext >&5
5744 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5745 cat >conftest.
$ac_ext <<_ACEOF
5748 cat confdefs.h
>>conftest.
$ac_ext
5749 cat >>conftest.
$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751 #define _LARGE_FILES 1
5752 #include <sys/types.h>
5753 /* Check that off_t can represent 2**63 - 1 correctly.
5754 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5755 since some C++ compilers masquerading as C compilers
5756 incorrectly reject 9223372036854775807. */
5757 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5758 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5759 && LARGE_OFF_T % 2147483647 == 1)
5769 rm -f conftest.
$ac_objext
5770 if { (ac_try
="$ac_compile"
5772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_compile") 2>conftest.er1
5778 grep -v '^ *+' conftest.er1 >conftest.err
5780 cat conftest.err >&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); } && {
5783 test -z "$ac_c_werror_flag" ||
5784 test ! -s conftest.err
5785 } && test -s conftest.$ac_objext; then
5786 ac_cv_sys_large_files=1; break
5788 echo "$as_me: failed program was:" >&5
5789 sed 's/^/| /' conftest.$ac_ext >&5
5794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5795 ac_cv_sys_large_files=unknown
5799 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5800 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5801 case $ac_cv_sys_large_files in #(
5804 cat >>confdefs.h <<_ACEOF
5805 #define _LARGE_FILES $ac_cv_sys_large_files
5815 ### The standard library on x86-64 GNU/Linux distributions can
5816 ### be located in either /usr/lib64 or /usr/lib.
5817 case "${canonical}" in
5818 x86_64-*-linux-gnu* )
5819 if test -d /usr/lib64; then
5821 cat >>confdefs.h <<\_ACEOF
5822 #define HAVE_X86_64_LIB64_DIR 1
5831 if test "${with_sound}" != "no"; then
5832 # Sound support for GNU/Linux and the free BSDs.
5833 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5834 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5835 if test "${ac_cv_header_stdc+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5838 cat >conftest.$ac_ext <<_ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5857 rm -f conftest.$ac_objext
5858 if { (ac_try="$ac_compile"
5860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5861 *) ac_try_echo
=$ac_try;;
5863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5864 (eval "$ac_compile") 2>conftest.er1
5866 grep -v '^ *+' conftest.er1
>conftest.err
5868 cat conftest.err
>&5
5869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5870 (exit $ac_status); } && {
5871 test -z "$ac_c_werror_flag" ||
5872 test ! -s conftest.err
5873 } && test -s conftest.
$ac_objext; then
5874 ac_cv_header_stdc
=yes
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.
$ac_ext >&5
5879 ac_cv_header_stdc
=no
5882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5884 if test $ac_cv_header_stdc = yes; then
5885 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5886 cat >conftest.
$ac_ext <<_ACEOF
5889 cat confdefs.h
>>conftest.
$ac_ext
5890 cat >>conftest.
$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5896 $EGREP "memchr" >/dev
/null
2>&1; then
5899 ac_cv_header_stdc
=no
5905 if test $ac_cv_header_stdc = yes; then
5906 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5907 cat >conftest.
$ac_ext <<_ACEOF
5910 cat confdefs.h
>>conftest.
$ac_ext
5911 cat >>conftest.
$ac_ext <<_ACEOF
5912 /* end confdefs.h. */
5916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5917 $EGREP "free" >/dev
/null
2>&1; then
5920 ac_cv_header_stdc
=no
5926 if test $ac_cv_header_stdc = yes; then
5927 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5928 if test "$cross_compiling" = yes; then
5931 cat >conftest.
$ac_ext <<_ACEOF
5934 cat confdefs.h
>>conftest.
$ac_ext
5935 cat >>conftest.
$ac_ext <<_ACEOF
5936 /* end confdefs.h. */
5939 #if ((' ' & 0x0FF) == 0x020)
5940 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5941 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5943 # define ISLOWER(c) \
5944 (('a' <= (c) && (c) <= 'i') \
5945 || ('j' <= (c) && (c) <= 'r') \
5946 || ('s' <= (c) && (c) <= 'z'))
5947 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5950 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5955 for (i = 0; i < 256; i++)
5956 if (XOR (islower (i), ISLOWER (i))
5957 || toupper (i) != TOUPPER (i))
5962 rm -f conftest
$ac_exeext
5963 if { (ac_try
="$ac_link"
5965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_link") 2>&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5973 { (case "(($ac_try" in
5974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5975 *) ac_try_echo
=$ac_try;;
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_try") 2>&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; }; then
5984 echo "$as_me: program exited with status $ac_status" >&5
5985 echo "$as_me: failed program was:" >&5
5986 sed 's/^/| /' conftest.
$ac_ext >&5
5989 ac_cv_header_stdc
=no
5991 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5997 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5998 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5999 if test $ac_cv_header_stdc = yes; then
6001 cat >>confdefs.h
<<\_ACEOF
6002 #define STDC_HEADERS 1
6007 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6017 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6018 inttypes.h stdint.h unistd.h
6020 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6021 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6023 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6024 echo $ECHO_N "(cached) $ECHO_C" >&6
6026 cat >conftest.
$ac_ext <<_ACEOF
6029 cat confdefs.h
>>conftest.
$ac_ext
6030 cat >>conftest.
$ac_ext <<_ACEOF
6031 /* end confdefs.h. */
6032 $ac_includes_default
6034 #include <$ac_header>
6036 rm -f conftest.
$ac_objext
6037 if { (ac_try
="$ac_compile"
6039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6040 *) ac_try_echo=$ac_try;;
6042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6043 (eval "$ac_compile") 2>conftest.er1
6045 grep -v '^ *+' conftest.er1 >conftest.err
6047 cat conftest.err >&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); } && {
6050 test -z "$ac_c_werror_flag" ||
6051 test ! -s conftest.err
6052 } && test -s conftest.$ac_objext; then
6053 eval "$as_ac_Header=yes"
6055 echo "$as_me: failed program was:" >&5
6056 sed 's/^/| /' conftest.$ac_ext >&5
6058 eval "$as_ac_Header=no"
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063 ac_res=`eval echo '${'$as_ac_Header'}'`
6064 { echo "$as_me:$LINENO: result: $ac_res" >&5
6065 echo "${ECHO_T}$ac_res" >&6; }
6066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6067 cat >>confdefs.h <<_ACEOF
6068 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6079 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6081 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 ac_res=`eval echo '${'$as_ac_Header'}'`
6089 { echo "$as_me:$LINENO: result: $ac_res" >&5
6090 echo "${ECHO_T}$ac_res" >&6; }
6092 # Is the header compilable?
6093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6095 cat >conftest.$ac_ext <<_ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6101 $ac_includes_default
6102 #include <$ac_header>
6104 rm -f conftest.$ac_objext
6105 if { (ac_try="$ac_compile"
6107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6108 *) ac_try_echo
=$ac_try;;
6110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6111 (eval "$ac_compile") 2>conftest.er1
6113 grep -v '^ *+' conftest.er1
>conftest.err
6115 cat conftest.err
>&5
6116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6117 (exit $ac_status); } && {
6118 test -z "$ac_c_werror_flag" ||
6119 test ! -s conftest.err
6120 } && test -s conftest.
$ac_objext; then
6121 ac_header_compiler
=yes
6123 echo "$as_me: failed program was:" >&5
6124 sed 's/^/| /' conftest.
$ac_ext >&5
6126 ac_header_compiler
=no
6129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6131 echo "${ECHO_T}$ac_header_compiler" >&6; }
6133 # Is the header present?
6134 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6136 cat >conftest.
$ac_ext <<_ACEOF
6139 cat confdefs.h
>>conftest.
$ac_ext
6140 cat >>conftest.
$ac_ext <<_ACEOF
6141 /* end confdefs.h. */
6142 #include <$ac_header>
6144 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6152 grep -v '^ *+' conftest.er1 >conftest.err
6154 cat conftest.err >&5
6155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156 (exit $ac_status); } >/dev/null && {
6157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6158 test ! -s conftest.err
6160 ac_header_preproc=yes
6162 echo "$as_me: failed program was:" >&5
6163 sed 's/^/| /' conftest.$ac_ext >&5
6165 ac_header_preproc=no
6168 rm -f conftest.err conftest.$ac_ext
6169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6170 echo "${ECHO_T}$ac_header_preproc" >&6; }
6172 # So? What about this header?
6173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6179 ac_header_preproc=yes
6182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6200 echo $ECHO_N "(cached) $ECHO_C" >&6
6202 eval "$as_ac_Header=\$ac_header_preproc"
6204 ac_res=`eval echo '${'$as_ac_Header'}'`
6205 { echo "$as_me:$LINENO: result: $ac_res" >&5
6206 echo "${ECHO_T}$ac_res" >&6; }
6209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6210 cat >>confdefs.h <<_ACEOF
6211 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6218 # Emulation library used on NetBSD.
6219 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6220 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6221 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 ac_check_lib_save_LIBS=$LIBS
6225 LIBS="-lossaudio $LIBS"
6226 cat >conftest.$ac_ext <<_ACEOF
6229 cat confdefs.h >>conftest.$ac_ext
6230 cat >>conftest.$ac_ext <<_ACEOF
6231 /* end confdefs.h. */
6233 /* Override any GCC internal prototype to avoid an error.
6234 Use char because int might match the return type of a GCC
6235 builtin and then its argument prototype would still apply. */
6243 return _oss_ioctl ();
6248 rm -f conftest.$ac_objext conftest$ac_exeext
6249 if { (ac_try="$ac_link"
6251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6252 *) ac_try_echo
=$ac_try;;
6254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6255 (eval "$ac_link") 2>conftest.er1
6257 grep -v '^ *+' conftest.er1
>conftest.err
6259 cat conftest.err
>&5
6260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6261 (exit $ac_status); } && {
6262 test -z "$ac_c_werror_flag" ||
6263 test ! -s conftest.err
6264 } && test -s conftest
$ac_exeext &&
6265 $as_test_x conftest
$ac_exeext; then
6266 ac_cv_lib_ossaudio__oss_ioctl
=yes
6268 echo "$as_me: failed program was:" >&5
6269 sed 's/^/| /' conftest.
$ac_ext >&5
6271 ac_cv_lib_ossaudio__oss_ioctl
=no
6274 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6275 conftest
$ac_exeext conftest.
$ac_ext
6276 LIBS
=$ac_check_lib_save_LIBS
6278 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6279 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6280 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6289 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6290 if test "X${with_pkg_config_prog}" != X
; then
6291 PKG_CONFIG
="${with_pkg_config_prog}"
6296 if test -z "$PKG_CONFIG"; then
6297 # Extract the first word of "pkg-config", so it can be a program name with args.
6298 set dummy pkg-config
; ac_word
=$2
6299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6301 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6313 test -z "$as_dir" && as_dir
=.
6314 for ac_exec_ext
in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6317 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6324 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6328 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6329 if test -n "$PKG_CONFIG"; then
6330 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6331 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6333 { echo "$as_me:$LINENO: result: no" >&5
6334 echo "${ECHO_T}no" >&6; }
6340 if test "$PKG_CONFIG" = "no" ; then
6343 PKG_CONFIG_MIN_VERSION
=0.9.0
6344 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6345 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6346 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6348 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6349 { echo "$as_me:$LINENO: result: yes" >&5
6350 echo "${ECHO_T}yes" >&6; }
6353 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6354 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6355 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6356 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6357 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6359 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6360 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6361 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6362 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6363 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6365 { echo "$as_me:$LINENO: result: no" >&5
6366 echo "${ECHO_T}no" >&6; }
6369 ## If we have a custom action on failure, don't print errors, but
6370 ## do set a variable so people can do so.
6371 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6378 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6379 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6383 if test $succeeded = yes; then
6389 if test $HAVE_ALSA = yes; then
6390 SAVE_CFLAGS
="$CFLAGS"
6391 SAVE_LDFLAGS
="$LDFLAGS"
6392 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6393 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6394 cat >conftest.
$ac_ext <<_ACEOF
6397 cat confdefs.h
>>conftest.
$ac_ext
6398 cat >>conftest.
$ac_ext <<_ACEOF
6399 /* end confdefs.h. */
6400 #include <asoundlib.h>
6404 snd_lib_error_set_handler (0);
6409 rm -f conftest.
$ac_objext
6410 if { (ac_try
="$ac_compile"
6412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6413 *) ac_try_echo=$ac_try;;
6415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6416 (eval "$ac_compile") 2>conftest.er1
6418 grep -v '^ *+' conftest.er1 >conftest.err
6420 cat conftest.err >&5
6421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6422 (exit $ac_status); } && {
6423 test -z "$ac_c_werror_flag" ||
6424 test ! -s conftest.err
6425 } && test -s conftest.$ac_objext; then
6426 emacs_alsa_normal=yes
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6431 emacs_alsa_normal=no
6434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6435 if test "$emacs_alsa_normal" != yes; then
6436 cat >conftest.$ac_ext <<_ACEOF
6439 cat confdefs.h >>conftest.$ac_ext
6440 cat >>conftest.$ac_ext <<_ACEOF
6441 /* end confdefs.h. */
6442 #include <alsa/asoundlib.h>
6446 snd_lib_error_set_handler (0);
6451 rm -f conftest.$ac_objext
6452 if { (ac_try="$ac_compile"
6454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6455 *) ac_try_echo
=$ac_try;;
6457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6458 (eval "$ac_compile") 2>conftest.er1
6460 grep -v '^ *+' conftest.er1
>conftest.err
6462 cat conftest.err
>&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); } && {
6465 test -z "$ac_c_werror_flag" ||
6466 test ! -s conftest.err
6467 } && test -s conftest.
$ac_objext; then
6468 emacs_alsa_subdir
=yes
6470 echo "$as_me: failed program was:" >&5
6471 sed 's/^/| /' conftest.
$ac_ext >&5
6473 emacs_alsa_subdir
=no
6476 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6477 if test "$emacs_alsa_subdir" != yes; then
6478 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6479 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6480 { (exit 1); exit 1; }; }
6482 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6485 CFLAGS
="$SAVE_CFLAGS"
6486 LDFLAGS
="$SAVE_LDFLAGS"
6487 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6488 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6490 cat >>confdefs.h
<<\_ACEOF
6523 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6524 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6525 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6526 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6529 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6530 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6533 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6534 echo $ECHO_N "(cached) $ECHO_C" >&6
6536 ac_res
=`eval echo '${'$as_ac_Header'}'`
6537 { echo "$as_me:$LINENO: result: $ac_res" >&5
6538 echo "${ECHO_T}$ac_res" >&6; }
6540 # Is the header compilable?
6541 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6542 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6543 cat >conftest.
$ac_ext <<_ACEOF
6546 cat confdefs.h
>>conftest.
$ac_ext
6547 cat >>conftest.
$ac_ext <<_ACEOF
6548 /* end confdefs.h. */
6549 $ac_includes_default
6550 #include <$ac_header>
6552 rm -f conftest.
$ac_objext
6553 if { (ac_try
="$ac_compile"
6555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_compile") 2>conftest.er1
6561 grep -v '^ *+' conftest.er1 >conftest.err
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } && {
6566 test -z "$ac_c_werror_flag" ||
6567 test ! -s conftest.err
6568 } && test -s conftest.$ac_objext; then
6569 ac_header_compiler=yes
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 ac_header_compiler=no
6577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6579 echo "${ECHO_T}$ac_header_compiler" >&6; }
6581 # Is the header present?
6582 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6583 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6584 cat >conftest.$ac_ext <<_ACEOF
6587 cat confdefs.h >>conftest.$ac_ext
6588 cat >>conftest.$ac_ext <<_ACEOF
6589 /* end confdefs.h. */
6590 #include <$ac_header>
6592 if { (ac_try="$ac_cpp conftest.$ac_ext"
6594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6595 *) ac_try_echo
=$ac_try;;
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6600 grep -v '^ *+' conftest.er1
>conftest.err
6602 cat conftest.err
>&5
6603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6604 (exit $ac_status); } >/dev
/null
&& {
6605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6606 test ! -s conftest.err
6608 ac_header_preproc
=yes
6610 echo "$as_me: failed program was:" >&5
6611 sed 's/^/| /' conftest.
$ac_ext >&5
6613 ac_header_preproc
=no
6616 rm -f conftest.err conftest.
$ac_ext
6617 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6618 echo "${ECHO_T}$ac_header_preproc" >&6; }
6620 # So? What about this header?
6621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6624 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6627 ac_header_preproc
=yes
6630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6635 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6637 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6641 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6645 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6646 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6647 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 eval "$as_ac_Header=\$ac_header_preproc"
6652 ac_res
=`eval echo '${'$as_ac_Header'}'`
6653 { echo "$as_me:$LINENO: result: $ac_res" >&5
6654 echo "${ECHO_T}$ac_res" >&6; }
6657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6658 cat >>confdefs.h
<<_ACEOF
6659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6667 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6668 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6669 cat >conftest.
$ac_ext <<_ACEOF
6672 cat confdefs.h
>>conftest.
$ac_ext
6673 cat >>conftest.
$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6675 #include <sys/personality.h>
6679 personality (PER_LINUX32)
6684 rm -f conftest.
$ac_objext
6685 if { (ac_try
="$ac_compile"
6687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6688 *) ac_try_echo=$ac_try;;
6690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6691 (eval "$ac_compile") 2>conftest.er1
6693 grep -v '^ *+' conftest.er1 >conftest.err
6695 cat conftest.err >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } && {
6698 test -z "$ac_c_werror_flag" ||
6699 test ! -s conftest.err
6700 } && test -s conftest.$ac_objext; then
6701 emacs_cv_personality_linux32=yes
6703 echo "$as_me: failed program was:" >&5
6704 sed 's/^/| /' conftest.$ac_ext >&5
6706 emacs_cv_personality_linux32=no
6709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6710 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6711 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6713 if test $emacs_cv_personality_linux32 = yes; then
6715 cat >>confdefs.h <<\_ACEOF
6716 #define HAVE_PERSONALITY_LINUX32 1
6722 for ac_header in term.h
6724 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6730 cat >conftest.$ac_ext <<_ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h. */
6736 #include <$ac_header>
6738 if { (ac_try="$ac_cpp conftest.$ac_ext"
6740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6741 *) ac_try_echo
=$ac_try;;
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6746 grep -v '^ *+' conftest.er1
>conftest.err
6748 cat conftest.err
>&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } >/dev
/null
&& {
6751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6752 test ! -s conftest.err
6754 eval "$as_ac_Header=yes"
6756 echo "$as_me: failed program was:" >&5
6757 sed 's/^/| /' conftest.
$ac_ext >&5
6759 eval "$as_ac_Header=no"
6762 rm -f conftest.err conftest.
$ac_ext
6764 ac_res
=`eval echo '${'$as_ac_Header'}'`
6765 { echo "$as_me:$LINENO: result: $ac_res" >&5
6766 echo "${ECHO_T}$ac_res" >&6; }
6767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6768 cat >>confdefs.h
<<_ACEOF
6769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6776 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6777 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6778 if test "${ac_cv_header_stdc+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 cat >conftest.
$ac_ext <<_ACEOF
6784 cat confdefs.h
>>conftest.
$ac_ext
6785 cat >>conftest.
$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6800 rm -f conftest.
$ac_objext
6801 if { (ac_try
="$ac_compile"
6803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6804 *) ac_try_echo=$ac_try;;
6806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6807 (eval "$ac_compile") 2>conftest.er1
6809 grep -v '^ *+' conftest.er1 >conftest.err
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } && {
6814 test -z "$ac_c_werror_flag" ||
6815 test ! -s conftest.err
6816 } && test -s conftest.$ac_objext; then
6817 ac_cv_header_stdc=yes
6819 echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6822 ac_cv_header_stdc=no
6825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6827 if test $ac_cv_header_stdc = yes; then
6828 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6829 cat >conftest.$ac_ext <<_ACEOF
6832 cat confdefs.h >>conftest.$ac_ext
6833 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */
6838 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6839 $EGREP "memchr" >/dev/null 2>&1; then
6842 ac_cv_header_stdc=no
6848 if test $ac_cv_header_stdc = yes; then
6849 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6850 cat >conftest.$ac_ext <<_ACEOF
6853 cat confdefs.h >>conftest.$ac_ext
6854 cat >>conftest.$ac_ext <<_ACEOF
6855 /* end confdefs.h. */
6859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6860 $EGREP "free" >/dev/null 2>&1; then
6863 ac_cv_header_stdc=no
6869 if test $ac_cv_header_stdc = yes; then
6870 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6871 if test "$cross_compiling" = yes; then
6874 cat >conftest.$ac_ext <<_ACEOF
6877 cat confdefs.h >>conftest.$ac_ext
6878 cat >>conftest.$ac_ext <<_ACEOF
6879 /* end confdefs.h. */
6882 #if ((' ' & 0x0FF) == 0x020)
6883 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6884 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6886 # define ISLOWER(c) \
6887 (('a' <= (c) && (c) <= 'i') \
6888 || ('j' <= (c) && (c) <= 'r') \
6889 || ('s' <= (c) && (c) <= 'z'))
6890 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6893 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6898 for (i = 0; i < 256; i++)
6899 if (XOR (islower (i), ISLOWER (i))
6900 || toupper (i) != TOUPPER (i))
6905 rm -f conftest$ac_exeext
6906 if { (ac_try="$ac_link"
6908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6909 *) ac_try_echo
=$ac_try;;
6911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6912 (eval "$ac_link") 2>&5
6914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6915 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6916 { (case "(($ac_try" in
6917 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_try") 2>&5
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); }; }; then
6927 echo "$as_me: program exited with status $ac_status" >&5
6928 echo "$as_me: failed program was:" >&5
6929 sed 's/^/| /' conftest.$ac_ext >&5
6932 ac_cv_header_stdc=no
6934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6940 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6941 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6942 if test $ac_cv_header_stdc = yes; then
6944 cat >>confdefs.h <<\_ACEOF
6945 #define STDC_HEADERS 1
6950 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6951 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6952 if test "${ac_cv_header_time+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 cat >conftest.$ac_ext <<_ACEOF
6958 cat confdefs.h >>conftest.$ac_ext
6959 cat >>conftest.$ac_ext <<_ACEOF
6960 /* end confdefs.h. */
6961 #include <sys/types.h>
6962 #include <sys/time.h>
6968 if ((struct tm *) 0)
6974 rm -f conftest.$ac_objext
6975 if { (ac_try="$ac_compile"
6977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6978 *) ac_try_echo
=$ac_try;;
6980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6981 (eval "$ac_compile") 2>conftest.er1
6983 grep -v '^ *+' conftest.er1
>conftest.err
6985 cat conftest.err
>&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } && {
6988 test -z "$ac_c_werror_flag" ||
6989 test ! -s conftest.err
6990 } && test -s conftest.
$ac_objext; then
6991 ac_cv_header_time
=yes
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.
$ac_ext >&5
6996 ac_cv_header_time
=no
6999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7001 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7002 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7003 if test $ac_cv_header_time = yes; then
7005 cat >>confdefs.h
<<\_ACEOF
7006 #define TIME_WITH_SYS_TIME 1
7011 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7012 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7013 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7014 echo $ECHO_N "(cached) $ECHO_C" >&6
7016 cat >conftest.
$ac_ext <<_ACEOF
7019 cat confdefs.h
>>conftest.
$ac_ext
7020 cat >>conftest.
$ac_ext <<_ACEOF
7021 /* end confdefs.h. */
7022 $ac_includes_default
7034 rm -f conftest.
$ac_objext
7035 if { (ac_try
="$ac_compile"
7037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7038 *) ac_try_echo=$ac_try;;
7040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7041 (eval "$ac_compile") 2>conftest.er1
7043 grep -v '^ *+' conftest.er1 >conftest.err
7045 cat conftest.err >&5
7046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047 (exit $ac_status); } && {
7048 test -z "$ac_c_werror_flag" ||
7049 test ! -s conftest.err
7050 } && test -s conftest.$ac_objext; then
7051 ac_cv_have_decl_sys_siglist=yes
7053 echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7056 ac_cv_have_decl_sys_siglist=no
7059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7061 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7062 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7063 if test $ac_cv_have_decl_sys_siglist = yes; then
7065 cat >>confdefs.h <<_ACEOF
7066 #define HAVE_DECL_SYS_SIGLIST 1
7071 cat >>confdefs.h <<_ACEOF
7072 #define HAVE_DECL_SYS_SIGLIST 0
7079 if test $ac_cv_have_decl_sys_siglist != yes; then
7080 # For Tru64, at least:
7081 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7082 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7083 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7084 echo $ECHO_N "(cached) $ECHO_C" >&6
7086 cat >conftest.$ac_ext <<_ACEOF
7089 cat confdefs.h >>conftest.$ac_ext
7090 cat >>conftest.$ac_ext <<_ACEOF
7091 /* end confdefs.h. */
7092 $ac_includes_default
7096 #ifndef __sys_siglist
7097 (void) __sys_siglist;
7104 rm -f conftest.$ac_objext
7105 if { (ac_try="$ac_compile"
7107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7108 *) ac_try_echo
=$ac_try;;
7110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7111 (eval "$ac_compile") 2>conftest.er1
7113 grep -v '^ *+' conftest.er1
>conftest.err
7115 cat conftest.err
>&5
7116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7117 (exit $ac_status); } && {
7118 test -z "$ac_c_werror_flag" ||
7119 test ! -s conftest.err
7120 } && test -s conftest.
$ac_objext; then
7121 ac_cv_have_decl___sys_siglist
=yes
7123 echo "$as_me: failed program was:" >&5
7124 sed 's/^/| /' conftest.
$ac_ext >&5
7126 ac_cv_have_decl___sys_siglist
=no
7129 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7131 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7132 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7133 if test $ac_cv_have_decl___sys_siglist = yes; then
7135 cat >>confdefs.h
<<_ACEOF
7136 #define HAVE_DECL___SYS_SIGLIST 1
7141 cat >>confdefs.h
<<_ACEOF
7142 #define HAVE_DECL___SYS_SIGLIST 0
7149 if test $ac_cv_have_decl___sys_siglist = yes; then
7151 cat >>confdefs.h
<<\_ACEOF
7152 #define sys_siglist __sys_siglist
7157 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7158 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7159 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 cat >conftest.
$ac_ext <<_ACEOF
7165 cat confdefs.h
>>conftest.
$ac_ext
7166 cat >>conftest.
$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7168 #include <sys/types.h>
7169 #include <sys/wait.h>
7171 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7174 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7182 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7187 rm -f conftest.
$ac_objext
7188 if { (ac_try
="$ac_compile"
7190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7191 *) ac_try_echo=$ac_try;;
7193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7194 (eval "$ac_compile") 2>conftest.er1
7196 grep -v '^ *+' conftest.er1 >conftest.err
7198 cat conftest.err >&5
7199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7200 (exit $ac_status); } && {
7201 test -z "$ac_c_werror_flag" ||
7202 test ! -s conftest.err
7203 } && test -s conftest.$ac_objext; then
7204 ac_cv_header_sys_wait_h=yes
7206 echo "$as_me: failed program was:" >&5
7207 sed 's/^/| /' conftest.$ac_ext >&5
7209 ac_cv_header_sys_wait_h=no
7212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7214 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7215 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7216 if test $ac_cv_header_sys_wait_h = yes; then
7218 cat >>confdefs.h <<\_ACEOF
7219 #define HAVE_SYS_WAIT_H 1
7225 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7226 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7227 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7228 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 cat >conftest.$ac_ext <<_ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h. */
7236 #ifdef TIME_WITH_SYS_TIME
7237 #include <sys/time.h>
7240 #ifdef HAVE_SYS_TIME_H
7241 #include <sys/time.h>
7252 static struct utimbuf x; x.actime = x.modtime;
7257 rm -f conftest.$ac_objext
7258 if { (ac_try="$ac_compile"
7260 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7261 *) ac_try_echo
=$ac_try;;
7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264 (eval "$ac_compile") 2>conftest.er1
7266 grep -v '^ *+' conftest.er1
>conftest.err
7268 cat conftest.err
>&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } && {
7271 test -z "$ac_c_werror_flag" ||
7272 test ! -s conftest.err
7273 } && test -s conftest.
$ac_objext; then
7274 emacs_cv_struct_utimbuf
=yes
7276 echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.
$ac_ext >&5
7279 emacs_cv_struct_utimbuf
=no
7282 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7284 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7285 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7286 if test $emacs_cv_struct_utimbuf = yes; then
7288 cat >>confdefs.h
<<\_ACEOF
7289 #define HAVE_STRUCT_UTIMBUF 1
7294 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7295 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7296 if test "${ac_cv_type_signal+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7299 cat >conftest.
$ac_ext <<_ACEOF
7302 cat confdefs.h
>>conftest.
$ac_ext
7303 cat >>conftest.
$ac_ext <<_ACEOF
7304 /* end confdefs.h. */
7305 #include <sys/types.h>
7311 return *(signal (0, 0)) (0) == 1;
7316 rm -f conftest.
$ac_objext
7317 if { (ac_try
="$ac_compile"
7319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7320 *) ac_try_echo=$ac_try;;
7322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7323 (eval "$ac_compile") 2>conftest.er1
7325 grep -v '^ *+' conftest.er1 >conftest.err
7327 cat conftest.err >&5
7328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7329 (exit $ac_status); } && {
7330 test -z "$ac_c_werror_flag" ||
7331 test ! -s conftest.err
7332 } && test -s conftest.$ac_objext; then
7333 ac_cv_type_signal=int
7335 echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7338 ac_cv_type_signal=void
7341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7344 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7346 cat >>confdefs.h <<_ACEOF
7347 #define RETSIGTYPE $ac_cv_type_signal
7352 { echo "$as_me:$LINENO: checking for speed_t" >&5
7353 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7354 if test "${emacs_cv_speed_t+set}" = set; then
7355 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 cat >conftest.$ac_ext <<_ACEOF
7360 cat confdefs.h >>conftest.$ac_ext
7361 cat >>conftest.$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7363 #include <termios.h>
7372 rm -f conftest.$ac_objext
7373 if { (ac_try="$ac_compile"
7375 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7376 *) ac_try_echo
=$ac_try;;
7378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7379 (eval "$ac_compile") 2>conftest.er1
7381 grep -v '^ *+' conftest.er1
>conftest.err
7383 cat conftest.err
>&5
7384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385 (exit $ac_status); } && {
7386 test -z "$ac_c_werror_flag" ||
7387 test ! -s conftest.err
7388 } && test -s conftest.
$ac_objext; then
7389 emacs_cv_speed_t
=yes
7391 echo "$as_me: failed program was:" >&5
7392 sed 's/^/| /' conftest.
$ac_ext >&5
7397 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7399 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7400 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7401 if test $emacs_cv_speed_t = yes; then
7403 cat >>confdefs.h
<<\_ACEOF
7404 #define HAVE_SPEED_T 1
7409 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7410 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7411 if test "${emacs_cv_struct_timeval+set}" = set; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7414 cat >conftest.
$ac_ext <<_ACEOF
7417 cat confdefs.h
>>conftest.
$ac_ext
7418 cat >>conftest.
$ac_ext <<_ACEOF
7419 /* end confdefs.h. */
7420 #ifdef TIME_WITH_SYS_TIME
7421 #include <sys/time.h>
7424 #ifdef HAVE_SYS_TIME_H
7425 #include <sys/time.h>
7433 static struct timeval x; x.tv_sec = x.tv_usec;
7438 rm -f conftest.
$ac_objext
7439 if { (ac_try
="$ac_compile"
7441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_compile") 2>conftest.er1
7447 grep -v '^ *+' conftest.er1 >conftest.err
7449 cat conftest.err >&5
7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7451 (exit $ac_status); } && {
7452 test -z "$ac_c_werror_flag" ||
7453 test ! -s conftest.err
7454 } && test -s conftest.$ac_objext; then
7455 emacs_cv_struct_timeval=yes
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.$ac_ext >&5
7460 emacs_cv_struct_timeval=no
7463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7466 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7467 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7468 if test $emacs_cv_struct_timeval = yes; then
7470 cat >>confdefs.h <<\_ACEOF
7471 #define HAVE_TIMEVAL 1
7476 { echo "$as_me:$LINENO: checking for struct exception" >&5
7477 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7478 if test "${emacs_cv_struct_exception+set}" = set; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 cat >conftest.$ac_ext <<_ACEOF
7484 cat confdefs.h >>conftest.$ac_ext
7485 cat >>conftest.$ac_ext <<_ACEOF
7486 /* end confdefs.h. */
7491 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7496 rm -f conftest.$ac_objext
7497 if { (ac_try="$ac_compile"
7499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7500 *) ac_try_echo
=$ac_try;;
7502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7503 (eval "$ac_compile") 2>conftest.er1
7505 grep -v '^ *+' conftest.er1
>conftest.err
7507 cat conftest.err
>&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } && {
7510 test -z "$ac_c_werror_flag" ||
7511 test ! -s conftest.err
7512 } && test -s conftest.
$ac_objext; then
7513 emacs_cv_struct_exception
=yes
7515 echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.
$ac_ext >&5
7518 emacs_cv_struct_exception
=no
7521 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7523 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7524 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7525 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7526 if test $emacs_cv_struct_exception != yes; then
7528 cat >>confdefs.h
<<\_ACEOF
7529 #define NO_MATHERR 1
7535 for ac_header
in sys
/socket.h
7537 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7538 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7541 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7542 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 ac_res
=`eval echo '${'$as_ac_Header'}'`
7545 { echo "$as_me:$LINENO: result: $ac_res" >&5
7546 echo "${ECHO_T}$ac_res" >&6; }
7548 # Is the header compilable?
7549 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7550 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7551 cat >conftest.
$ac_ext <<_ACEOF
7554 cat confdefs.h
>>conftest.
$ac_ext
7555 cat >>conftest.
$ac_ext <<_ACEOF
7556 /* end confdefs.h. */
7557 $ac_includes_default
7558 #include <$ac_header>
7560 rm -f conftest.
$ac_objext
7561 if { (ac_try
="$ac_compile"
7563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7564 *) ac_try_echo=$ac_try;;
7566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7567 (eval "$ac_compile") 2>conftest.er1
7569 grep -v '^ *+' conftest.er1 >conftest.err
7571 cat conftest.err >&5
7572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7573 (exit $ac_status); } && {
7574 test -z "$ac_c_werror_flag" ||
7575 test ! -s conftest.err
7576 } && test -s conftest.$ac_objext; then
7577 ac_header_compiler=yes
7579 echo "$as_me: failed program was:" >&5
7580 sed 's/^/| /' conftest.$ac_ext >&5
7582 ac_header_compiler=no
7585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7587 echo "${ECHO_T}$ac_header_compiler" >&6; }
7589 # Is the header present?
7590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7592 cat >conftest.$ac_ext <<_ACEOF
7595 cat confdefs.h >>conftest.$ac_ext
7596 cat >>conftest.$ac_ext <<_ACEOF
7597 /* end confdefs.h. */
7598 #include <$ac_header>
7600 if { (ac_try="$ac_cpp conftest.$ac_ext"
7602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7603 *) ac_try_echo
=$ac_try;;
7605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7608 grep -v '^ *+' conftest.er1
>conftest.err
7610 cat conftest.err
>&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } >/dev
/null
&& {
7613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7614 test ! -s conftest.err
7616 ac_header_preproc
=yes
7618 echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.
$ac_ext >&5
7621 ac_header_preproc
=no
7624 rm -f conftest.err conftest.
$ac_ext
7625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7626 echo "${ECHO_T}$ac_header_preproc" >&6; }
7628 # So? What about this header?
7629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7635 ac_header_preproc
=yes
7638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7655 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7658 eval "$as_ac_Header=\$ac_header_preproc"
7660 ac_res
=`eval echo '${'$as_ac_Header'}'`
7661 { echo "$as_me:$LINENO: result: $ac_res" >&5
7662 echo "${ECHO_T}$ac_res" >&6; }
7665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7666 cat >>confdefs.h
<<_ACEOF
7667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7675 for ac_header
in net
/if.h
7677 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7680 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7681 echo $ECHO_N "(cached) $ECHO_C" >&6
7683 cat >conftest.
$ac_ext <<_ACEOF
7686 cat confdefs.h
>>conftest.
$ac_ext
7687 cat >>conftest.
$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7689 $ac_includes_default
7690 #if HAVE_SYS_SOCKET_H
7691 #include <sys/socket.h>
7694 #include <$ac_header>
7696 rm -f conftest.
$ac_objext
7697 if { (ac_try
="$ac_compile"
7699 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_compile") 2>conftest.er1
7705 grep -v '^ *+' conftest.er1 >conftest.err
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } && {
7710 test -z "$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7712 } && test -s conftest.$ac_objext; then
7713 eval "$as_ac_Header=yes"
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7718 eval "$as_ac_Header=no"
7721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7723 ac_res=`eval echo '${'$as_ac_Header'}'`
7724 { echo "$as_me:$LINENO: result: $ac_res" >&5
7725 echo "${ECHO_T}$ac_res" >&6; }
7726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7727 cat >>confdefs.h <<_ACEOF
7728 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7736 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7737 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7738 if test "${ac_cv_struct_tm+set}" = set; then
7739 echo $ECHO_N "(cached) $ECHO_C" >&6
7741 cat >conftest.$ac_ext <<_ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7747 #include <sys/types.h>
7754 int *p = &tm.tm_sec;
7760 rm -f conftest.$ac_objext
7761 if { (ac_try="$ac_compile"
7763 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7764 *) ac_try_echo
=$ac_try;;
7766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7767 (eval "$ac_compile") 2>conftest.er1
7769 grep -v '^ *+' conftest.er1
>conftest.err
7771 cat conftest.err
>&5
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); } && {
7774 test -z "$ac_c_werror_flag" ||
7775 test ! -s conftest.err
7776 } && test -s conftest.
$ac_objext; then
7777 ac_cv_struct_tm
=time.h
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.
$ac_ext >&5
7782 ac_cv_struct_tm
=sys
/time.h
7785 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7787 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7788 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7789 if test $ac_cv_struct_tm = sys
/time.h
; then
7791 cat >>confdefs.h
<<\_ACEOF
7792 #define TM_IN_SYS_TIME 1
7797 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7798 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7799 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 cat >conftest.
$ac_ext <<_ACEOF
7805 cat confdefs.h
>>conftest.
$ac_ext
7806 cat >>conftest.
$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 #include <sys/types.h>
7809 #include <$ac_cv_struct_tm>
7815 static struct tm ac_aggr;
7816 if (ac_aggr.tm_zone)
7822 rm -f conftest.
$ac_objext
7823 if { (ac_try
="$ac_compile"
7825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7826 *) ac_try_echo=$ac_try;;
7828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7829 (eval "$ac_compile") 2>conftest.er1
7831 grep -v '^ *+' conftest.er1 >conftest.err
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } && {
7836 test -z "$ac_c_werror_flag" ||
7837 test ! -s conftest.err
7838 } && test -s conftest.$ac_objext; then
7839 ac_cv_member_struct_tm_tm_zone=yes
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7844 cat >conftest.$ac_ext <<_ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7850 #include <sys/types.h>
7851 #include <$ac_cv_struct_tm>
7857 static struct tm ac_aggr;
7858 if (sizeof ac_aggr.tm_zone)
7864 rm -f conftest.$ac_objext
7865 if { (ac_try="$ac_compile"
7867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7868 *) ac_try_echo
=$ac_try;;
7870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7871 (eval "$ac_compile") 2>conftest.er1
7873 grep -v '^ *+' conftest.er1
>conftest.err
7875 cat conftest.err
>&5
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); } && {
7878 test -z "$ac_c_werror_flag" ||
7879 test ! -s conftest.err
7880 } && test -s conftest.
$ac_objext; then
7881 ac_cv_member_struct_tm_tm_zone
=yes
7883 echo "$as_me: failed program was:" >&5
7884 sed 's/^/| /' conftest.
$ac_ext >&5
7886 ac_cv_member_struct_tm_tm_zone
=no
7889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7892 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7894 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7895 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7896 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7898 cat >>confdefs.h
<<_ACEOF
7899 #define HAVE_STRUCT_TM_TM_ZONE 1
7905 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7907 cat >>confdefs.h
<<\_ACEOF
7908 #define HAVE_TM_ZONE 1
7912 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7913 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7914 if test "${ac_cv_have_decl_tzname+set}" = set; then
7915 echo $ECHO_N "(cached) $ECHO_C" >&6
7917 cat >conftest.
$ac_ext <<_ACEOF
7920 cat confdefs.h
>>conftest.
$ac_ext
7921 cat >>conftest.
$ac_ext <<_ACEOF
7922 /* end confdefs.h. */
7936 rm -f conftest.
$ac_objext
7937 if { (ac_try
="$ac_compile"
7939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7940 *) ac_try_echo=$ac_try;;
7942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7943 (eval "$ac_compile") 2>conftest.er1
7945 grep -v '^ *+' conftest.er1 >conftest.err
7947 cat conftest.err >&5
7948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && {
7950 test -z "$ac_c_werror_flag" ||
7951 test ! -s conftest.err
7952 } && test -s conftest.$ac_objext; then
7953 ac_cv_have_decl_tzname=yes
7955 echo "$as_me: failed program was:" >&5
7956 sed 's/^/| /' conftest.$ac_ext >&5
7958 ac_cv_have_decl_tzname=no
7961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7963 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7964 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7965 if test $ac_cv_have_decl_tzname = yes; then
7967 cat >>confdefs.h <<_ACEOF
7968 #define HAVE_DECL_TZNAME 1
7973 cat >>confdefs.h <<_ACEOF
7974 #define HAVE_DECL_TZNAME 0
7981 { echo "$as_me:$LINENO: checking for tzname" >&5
7982 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7983 if test "${ac_cv_var_tzname+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7986 cat >conftest.$ac_ext <<_ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7993 #if !HAVE_DECL_TZNAME
7994 extern char *tzname[];
8000 return tzname[0][0];
8005 rm -f conftest.$ac_objext conftest$ac_exeext
8006 if { (ac_try="$ac_link"
8008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8009 *) ac_try_echo
=$ac_try;;
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_link") 2>conftest.er1
8014 grep -v '^ *+' conftest.er1
>conftest.err
8016 cat conftest.err
>&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } && {
8019 test -z "$ac_c_werror_flag" ||
8020 test ! -s conftest.err
8021 } && test -s conftest
$ac_exeext &&
8022 $as_test_x conftest
$ac_exeext; then
8023 ac_cv_var_tzname
=yes
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.
$ac_ext >&5
8031 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8032 conftest
$ac_exeext conftest.
$ac_ext
8034 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8035 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8036 if test $ac_cv_var_tzname = yes; then
8038 cat >>confdefs.h
<<\_ACEOF
8039 #define HAVE_TZNAME 1
8045 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8046 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8047 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8048 echo $ECHO_N "(cached) $ECHO_C" >&6
8050 cat >conftest.
$ac_ext <<_ACEOF
8053 cat confdefs.h
>>conftest.
$ac_ext
8054 cat >>conftest.
$ac_ext <<_ACEOF
8055 /* end confdefs.h. */
8061 static struct tm ac_aggr;
8062 if (ac_aggr.tm_gmtoff)
8068 rm -f conftest.
$ac_objext
8069 if { (ac_try
="$ac_compile"
8071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_compile") 2>conftest.er1
8077 grep -v '^ *+' conftest.er1 >conftest.err
8079 cat conftest.err >&5
8080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081 (exit $ac_status); } && {
8082 test -z "$ac_c_werror_flag" ||
8083 test ! -s conftest.err
8084 } && test -s conftest.$ac_objext; then
8085 ac_cv_member_struct_tm_tm_gmtoff=yes
8087 echo "$as_me: failed program was:" >&5
8088 sed 's/^/| /' conftest.$ac_ext >&5
8090 cat >conftest.$ac_ext <<_ACEOF
8093 cat confdefs.h >>conftest.$ac_ext
8094 cat >>conftest.$ac_ext <<_ACEOF
8095 /* end confdefs.h. */
8101 static struct tm ac_aggr;
8102 if (sizeof ac_aggr.tm_gmtoff)
8108 rm -f conftest.$ac_objext
8109 if { (ac_try="$ac_compile"
8111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8112 *) ac_try_echo
=$ac_try;;
8114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8115 (eval "$ac_compile") 2>conftest.er1
8117 grep -v '^ *+' conftest.er1
>conftest.err
8119 cat conftest.err
>&5
8120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8121 (exit $ac_status); } && {
8122 test -z "$ac_c_werror_flag" ||
8123 test ! -s conftest.err
8124 } && test -s conftest.
$ac_objext; then
8125 ac_cv_member_struct_tm_tm_gmtoff
=yes
8127 echo "$as_me: failed program was:" >&5
8128 sed 's/^/| /' conftest.
$ac_ext >&5
8130 ac_cv_member_struct_tm_tm_gmtoff
=no
8133 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8138 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8139 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8140 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8142 cat >>confdefs.h
<<\_ACEOF
8143 #define HAVE_TM_GMTOFF 1
8148 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8149 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8150 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8153 cat >conftest.
$ac_ext <<_ACEOF
8156 cat confdefs.h
>>conftest.
$ac_ext
8157 cat >>conftest.
$ac_ext <<_ACEOF
8158 /* end confdefs.h. */
8159 $ac_includes_default
8160 #if HAVE_SYS_SOCKET_H
8161 #include <sys/socket.h>
8170 static struct ifreq ac_aggr;
8171 if (ac_aggr.ifr_flags)
8177 rm -f conftest.
$ac_objext
8178 if { (ac_try
="$ac_compile"
8180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8181 *) ac_try_echo=$ac_try;;
8183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8184 (eval "$ac_compile") 2>conftest.er1
8186 grep -v '^ *+' conftest.er1 >conftest.err
8188 cat conftest.err >&5
8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8190 (exit $ac_status); } && {
8191 test -z "$ac_c_werror_flag" ||
8192 test ! -s conftest.err
8193 } && test -s conftest.$ac_objext; then
8194 ac_cv_member_struct_ifreq_ifr_flags=yes
8196 echo "$as_me: failed program was:" >&5
8197 sed 's/^/| /' conftest.$ac_ext >&5
8199 cat >conftest.$ac_ext <<_ACEOF
8202 cat confdefs.h >>conftest.$ac_ext
8203 cat >>conftest.$ac_ext <<_ACEOF
8204 /* end confdefs.h. */
8205 $ac_includes_default
8206 #if HAVE_SYS_SOCKET_H
8207 #include <sys/socket.h>
8216 static struct ifreq ac_aggr;
8217 if (sizeof ac_aggr.ifr_flags)
8223 rm -f conftest.$ac_objext
8224 if { (ac_try="$ac_compile"
8226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8227 *) ac_try_echo
=$ac_try;;
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_compile") 2>conftest.er1
8232 grep -v '^ *+' conftest.er1
>conftest.err
8234 cat conftest.err
>&5
8235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8236 (exit $ac_status); } && {
8237 test -z "$ac_c_werror_flag" ||
8238 test ! -s conftest.err
8239 } && test -s conftest.
$ac_objext; then
8240 ac_cv_member_struct_ifreq_ifr_flags
=yes
8242 echo "$as_me: failed program was:" >&5
8243 sed 's/^/| /' conftest.
$ac_ext >&5
8245 ac_cv_member_struct_ifreq_ifr_flags
=no
8248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8253 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8254 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8255 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8257 cat >>confdefs.h
<<_ACEOF
8258 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8263 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8264 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8265 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8266 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 cat >conftest.
$ac_ext <<_ACEOF
8271 cat confdefs.h
>>conftest.
$ac_ext
8272 cat >>conftest.
$ac_ext <<_ACEOF
8273 /* end confdefs.h. */
8274 $ac_includes_default
8275 #if HAVE_SYS_SOCKET_H
8276 #include <sys/socket.h>
8285 static struct ifreq ac_aggr;
8286 if (ac_aggr.ifr_hwaddr)
8292 rm -f conftest.
$ac_objext
8293 if { (ac_try
="$ac_compile"
8295 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8296 *) ac_try_echo=$ac_try;;
8298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8299 (eval "$ac_compile") 2>conftest.er1
8301 grep -v '^ *+' conftest.er1 >conftest.err
8303 cat conftest.err >&5
8304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8305 (exit $ac_status); } && {
8306 test -z "$ac_c_werror_flag" ||
8307 test ! -s conftest.err
8308 } && test -s conftest.$ac_objext; then
8309 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8311 echo "$as_me: failed program was:" >&5
8312 sed 's/^/| /' conftest.$ac_ext >&5
8314 cat >conftest.$ac_ext <<_ACEOF
8317 cat confdefs.h >>conftest.$ac_ext
8318 cat >>conftest.$ac_ext <<_ACEOF
8319 /* end confdefs.h. */
8320 $ac_includes_default
8321 #if HAVE_SYS_SOCKET_H
8322 #include <sys/socket.h>
8331 static struct ifreq ac_aggr;
8332 if (sizeof ac_aggr.ifr_hwaddr)
8338 rm -f conftest.$ac_objext
8339 if { (ac_try="$ac_compile"
8341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8342 *) ac_try_echo
=$ac_try;;
8344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8345 (eval "$ac_compile") 2>conftest.er1
8347 grep -v '^ *+' conftest.er1
>conftest.err
8349 cat conftest.err
>&5
8350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8351 (exit $ac_status); } && {
8352 test -z "$ac_c_werror_flag" ||
8353 test ! -s conftest.err
8354 } && test -s conftest.
$ac_objext; then
8355 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8357 echo "$as_me: failed program was:" >&5
8358 sed 's/^/| /' conftest.
$ac_ext >&5
8360 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8368 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8369 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8370 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8372 cat >>confdefs.h
<<_ACEOF
8373 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8378 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8379 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8380 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8383 cat >conftest.
$ac_ext <<_ACEOF
8386 cat confdefs.h
>>conftest.
$ac_ext
8387 cat >>conftest.
$ac_ext <<_ACEOF
8388 /* end confdefs.h. */
8389 $ac_includes_default
8390 #if HAVE_SYS_SOCKET_H
8391 #include <sys/socket.h>
8400 static struct ifreq ac_aggr;
8401 if (ac_aggr.ifr_netmask)
8407 rm -f conftest.
$ac_objext
8408 if { (ac_try
="$ac_compile"
8410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8411 *) ac_try_echo=$ac_try;;
8413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8414 (eval "$ac_compile") 2>conftest.er1
8416 grep -v '^ *+' conftest.er1 >conftest.err
8418 cat conftest.err >&5
8419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8420 (exit $ac_status); } && {
8421 test -z "$ac_c_werror_flag" ||
8422 test ! -s conftest.err
8423 } && test -s conftest.$ac_objext; then
8424 ac_cv_member_struct_ifreq_ifr_netmask=yes
8426 echo "$as_me: failed program was:" >&5
8427 sed 's/^/| /' conftest.$ac_ext >&5
8429 cat >conftest.$ac_ext <<_ACEOF
8432 cat confdefs.h >>conftest.$ac_ext
8433 cat >>conftest.$ac_ext <<_ACEOF
8434 /* end confdefs.h. */
8435 $ac_includes_default
8436 #if HAVE_SYS_SOCKET_H
8437 #include <sys/socket.h>
8446 static struct ifreq ac_aggr;
8447 if (sizeof ac_aggr.ifr_netmask)
8453 rm -f conftest.$ac_objext
8454 if { (ac_try="$ac_compile"
8456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8457 *) ac_try_echo
=$ac_try;;
8459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8460 (eval "$ac_compile") 2>conftest.er1
8462 grep -v '^ *+' conftest.er1
>conftest.err
8464 cat conftest.err
>&5
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); } && {
8467 test -z "$ac_c_werror_flag" ||
8468 test ! -s conftest.err
8469 } && test -s conftest.
$ac_objext; then
8470 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8472 echo "$as_me: failed program was:" >&5
8473 sed 's/^/| /' conftest.
$ac_ext >&5
8475 ac_cv_member_struct_ifreq_ifr_netmask
=no
8478 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8483 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8484 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8485 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8487 cat >>confdefs.h
<<_ACEOF
8488 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8493 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8494 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8495 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8496 echo $ECHO_N "(cached) $ECHO_C" >&6
8498 cat >conftest.
$ac_ext <<_ACEOF
8501 cat confdefs.h
>>conftest.
$ac_ext
8502 cat >>conftest.
$ac_ext <<_ACEOF
8503 /* end confdefs.h. */
8504 $ac_includes_default
8505 #if HAVE_SYS_SOCKET_H
8506 #include <sys/socket.h>
8515 static struct ifreq ac_aggr;
8516 if (ac_aggr.ifr_broadaddr)
8522 rm -f conftest.
$ac_objext
8523 if { (ac_try
="$ac_compile"
8525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8526 *) ac_try_echo=$ac_try;;
8528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8529 (eval "$ac_compile") 2>conftest.er1
8531 grep -v '^ *+' conftest.er1 >conftest.err
8533 cat conftest.err >&5
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); } && {
8536 test -z "$ac_c_werror_flag" ||
8537 test ! -s conftest.err
8538 } && test -s conftest.$ac_objext; then
8539 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8541 echo "$as_me: failed program was:" >&5
8542 sed 's/^/| /' conftest.$ac_ext >&5
8544 cat >conftest.$ac_ext <<_ACEOF
8547 cat confdefs.h >>conftest.$ac_ext
8548 cat >>conftest.$ac_ext <<_ACEOF
8549 /* end confdefs.h. */
8550 $ac_includes_default
8551 #if HAVE_SYS_SOCKET_H
8552 #include <sys/socket.h>
8561 static struct ifreq ac_aggr;
8562 if (sizeof ac_aggr.ifr_broadaddr)
8568 rm -f conftest.$ac_objext
8569 if { (ac_try="$ac_compile"
8571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8572 *) ac_try_echo
=$ac_try;;
8574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8575 (eval "$ac_compile") 2>conftest.er1
8577 grep -v '^ *+' conftest.er1
>conftest.err
8579 cat conftest.err
>&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } && {
8582 test -z "$ac_c_werror_flag" ||
8583 test ! -s conftest.err
8584 } && test -s conftest.
$ac_objext; then
8585 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8587 echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.
$ac_ext >&5
8590 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8593 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8596 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8598 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8599 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8600 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8602 cat >>confdefs.h
<<_ACEOF
8603 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8608 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8609 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8610 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8613 cat >conftest.
$ac_ext <<_ACEOF
8616 cat confdefs.h
>>conftest.
$ac_ext
8617 cat >>conftest.
$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8619 $ac_includes_default
8620 #if HAVE_SYS_SOCKET_H
8621 #include <sys/socket.h>
8630 static struct ifreq ac_aggr;
8631 if (ac_aggr.ifr_addr)
8637 rm -f conftest.
$ac_objext
8638 if { (ac_try
="$ac_compile"
8640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8644 (eval "$ac_compile") 2>conftest.er1
8646 grep -v '^ *+' conftest.er1 >conftest.err
8648 cat conftest.err >&5
8649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8650 (exit $ac_status); } && {
8651 test -z "$ac_c_werror_flag" ||
8652 test ! -s conftest.err
8653 } && test -s conftest.$ac_objext; then
8654 ac_cv_member_struct_ifreq_ifr_addr=yes
8656 echo "$as_me: failed program was:" >&5
8657 sed 's/^/| /' conftest.$ac_ext >&5
8659 cat >conftest.$ac_ext <<_ACEOF
8662 cat confdefs.h >>conftest.$ac_ext
8663 cat >>conftest.$ac_ext <<_ACEOF
8664 /* end confdefs.h. */
8665 $ac_includes_default
8666 #if HAVE_SYS_SOCKET_H
8667 #include <sys/socket.h>
8676 static struct ifreq ac_aggr;
8677 if (sizeof ac_aggr.ifr_addr)
8683 rm -f conftest.$ac_objext
8684 if { (ac_try="$ac_compile"
8686 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8687 *) ac_try_echo
=$ac_try;;
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8692 grep -v '^ *+' conftest.er1
>conftest.err
8694 cat conftest.err
>&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.
$ac_objext; then
8700 ac_cv_member_struct_ifreq_ifr_addr
=yes
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.
$ac_ext >&5
8705 ac_cv_member_struct_ifreq_ifr_addr
=no
8708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8711 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8713 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8714 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8715 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8717 cat >>confdefs.h
<<_ACEOF
8718 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8726 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8727 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8728 if test "$ac_cv_prog_cc_c89" != no
; then
8729 { echo "$as_me:$LINENO: result: yes" >&5
8730 echo "${ECHO_T}yes" >&6; }
8732 cat >>confdefs.h
<<\_ACEOF
8733 #define PROTOTYPES 1
8737 cat >>confdefs.h
<<\_ACEOF
8738 #define __PROTOTYPES 1
8742 { echo "$as_me:$LINENO: result: no" >&5
8743 echo "${ECHO_T}no" >&6; }
8746 { echo "$as_me:$LINENO: checking for working volatile" >&5
8747 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8748 if test "${ac_cv_c_volatile+set}" = set; then
8749 echo $ECHO_N "(cached) $ECHO_C" >&6
8751 cat >conftest.
$ac_ext <<_ACEOF
8754 cat confdefs.h
>>conftest.
$ac_ext
8755 cat >>conftest.
$ac_ext <<_ACEOF
8756 /* end confdefs.h. */
8763 int * volatile y = (int *) 0;
8769 rm -f conftest.
$ac_objext
8770 if { (ac_try
="$ac_compile"
8772 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8773 *) ac_try_echo=$ac_try;;
8775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8776 (eval "$ac_compile") 2>conftest.er1
8778 grep -v '^ *+' conftest.er1 >conftest.err
8780 cat conftest.err >&5
8781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8782 (exit $ac_status); } && {
8783 test -z "$ac_c_werror_flag" ||
8784 test ! -s conftest.err
8785 } && test -s conftest.$ac_objext; then
8786 ac_cv_c_volatile=yes
8788 echo "$as_me: failed program was:" >&5
8789 sed 's/^/| /' conftest.$ac_ext >&5
8794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8796 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8797 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8798 if test $ac_cv_c_volatile = no; then
8800 cat >>confdefs.h <<\_ACEOF
8806 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8807 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8808 if test "${ac_cv_c_const+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8811 cat >conftest.$ac_ext <<_ACEOF
8814 cat confdefs.h >>conftest.$ac_ext
8815 cat >>conftest.$ac_ext <<_ACEOF
8816 /* end confdefs.h. */
8821 /* FIXME: Include the comments suggested by Paul. */
8823 /* Ultrix mips cc rejects this. */
8824 typedef int charset[2];
8826 /* SunOS 4.1.1 cc rejects this. */
8827 char const *const *pcpcc;
8829 /* NEC SVR4.0.2 mips cc rejects this. */
8830 struct point {int x, y;};
8831 static struct point const zero = {0,0};
8832 /* AIX XL C 1.02.0.0 rejects this.
8833 It does not let you subtract one const X* pointer from another in
8834 an arm of an if-expression whose if-part is not a constant
8836 const char *g = "string";
8837 pcpcc = &g + (g ? g-g : 0);
8838 /* HPUX 7.0 cc rejects these. */
8840 ppc = (char**) pcpcc;
8841 pcpcc = (char const *const *) ppc;
8842 { /* SCO 3.2v4 cc rejects this. */
8844 char const *s = 0 ? (char *) 0 : (char const *) 0;
8849 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8851 const int *foo = &x[0];
8854 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8855 typedef const int *iptr;
8859 { /* AIX XL C 1.02.0.0 rejects this saying
8860 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8861 struct s { int j; const int *ap[3]; };
8862 struct s *b; b->j = 5;
8864 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8868 return !cs[0] && !zero.x;
8875 rm -f conftest.$ac_objext
8876 if { (ac_try="$ac_compile"
8878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8879 *) ac_try_echo
=$ac_try;;
8881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8882 (eval "$ac_compile") 2>conftest.er1
8884 grep -v '^ *+' conftest.er1
>conftest.err
8886 cat conftest.err
>&5
8887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8888 (exit $ac_status); } && {
8889 test -z "$ac_c_werror_flag" ||
8890 test ! -s conftest.err
8891 } && test -s conftest.
$ac_objext; then
8894 echo "$as_me: failed program was:" >&5
8895 sed 's/^/| /' conftest.
$ac_ext >&5
8900 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8902 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8903 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8904 if test $ac_cv_c_const = no
; then
8906 cat >>confdefs.h
<<\_ACEOF
8912 { echo "$as_me:$LINENO: checking for void * support" >&5
8913 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8914 if test "${emacs_cv_void_star+set}" = set; then
8915 echo $ECHO_N "(cached) $ECHO_C" >&6
8917 cat >conftest.
$ac_ext <<_ACEOF
8920 cat confdefs.h
>>conftest.
$ac_ext
8921 cat >>conftest.
$ac_ext <<_ACEOF
8922 /* end confdefs.h. */
8932 rm -f conftest.
$ac_objext
8933 if { (ac_try
="$ac_compile"
8935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8936 *) ac_try_echo=$ac_try;;
8938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8939 (eval "$ac_compile") 2>conftest.er1
8941 grep -v '^ *+' conftest.er1 >conftest.err
8943 cat conftest.err >&5
8944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8945 (exit $ac_status); } && {
8946 test -z "$ac_c_werror_flag" ||
8947 test ! -s conftest.err
8948 } && test -s conftest.$ac_objext; then
8949 emacs_cv_void_star=yes
8951 echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8954 emacs_cv_void_star=no
8957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8959 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8960 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8961 if test $emacs_cv_void_star = yes; then
8962 cat >>confdefs.h <<\_ACEOF
8963 #define POINTER_TYPE void
8967 cat >>confdefs.h <<\_ACEOF
8968 #define POINTER_TYPE char
8977 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8978 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8979 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8980 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 cat >conftest.make <<\_ACEOF
8986 @echo '@@@%%%=$(MAKE)=@@@%%%'
8988 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8989 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8991 eval ac_cv_prog_make_${ac_make}_set=yes;;
8993 eval ac_cv_prog_make_${ac_make}_set=no;;
8997 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8998 { echo "$as_me:$LINENO: result: yes" >&5
8999 echo "${ECHO_T}yes" >&6; }
9002 { echo "$as_me:$LINENO: result: no" >&5
9003 echo "${ECHO_T}no" >&6; }
9004 SET_MAKE="MAKE=${MAKE-make}"
9008 { echo "$as_me:$LINENO: checking for long file names" >&5
9009 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9010 if test "${ac_cv_sys_long_file_names+set}" = set; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9013 ac_cv_sys_long_file_names=yes
9014 # Test for long file names in all the places we know might matter:
9015 # . the current directory, where building will happen
9016 # $prefix/lib where we will be installing things
9017 # $exec_prefix/lib likewise
9018 # $TMPDIR if set, where it might want to write temporary files
9019 # /tmp where it might want to write temporary files
9022 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9023 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9024 # in the usual case where exec_prefix is '${prefix}'.
9026 . | /* | ?:[\\/]*) ;; #(
9029 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9030 ac_xdir=$ac_dir/cf$$
9031 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9032 ac_tf1=$ac_xdir/conftest9012345
9033 ac_tf2=$ac_xdir/conftest9012346
9034 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9035 ac_cv_sys_long_file_names=no
9036 rm -f -r "$ac_xdir" 2>/dev/null
9037 test $ac_cv_sys_long_file_names = no && break
9040 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9041 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9042 if test $ac_cv_sys_long_file_names = yes; then
9044 cat >>confdefs.h <<\_ACEOF
9045 #define HAVE_LONG_FILE_NAMES 1
9051 #### Choose a window system.
9053 { echo "$as_me:$LINENO: checking for X" >&5
9054 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9057 # Check whether --with-x was given.
9058 if test "${with_x+set}" = set; then
9062 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9063 if test "x$with_x" = xno; then
9064 # The user explicitly disabled X.
9067 case $x_includes,$x_libraries in #(
9068 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9069 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9070 { (exit 1); exit 1; }; };; #(
9071 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9072 echo $ECHO_N "(cached) $ECHO_C" >&6
9074 # One or both of the vars are not set, and there is no cached value.
9075 ac_x_includes=no ac_x_libraries=no
9076 rm -f -r conftest.dir
9077 if mkdir conftest.dir; then
9079 cat >Imakefile <<'_ACEOF'
9081 @echo incroot='${INCROOT}'
9083 @echo usrlibdir='${USRLIBDIR}'
9085 @echo libdir='${LIBDIR}'
9087 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9088 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9089 for ac_var in incroot usrlibdir libdir; do
9090 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9092 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9093 for ac_extension in a so sl; do
9094 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9095 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9096 ac_im_usrlibdir=$ac_im_libdir; break
9099 # Screen out bogus values from the imake configuration. They are
9100 # bogus both because they are the default anyway, and because
9101 # using them would break gcc on systems where it needs fixed includes.
9102 case $ac_im_incroot in
9103 /usr/include) ac_x_includes= ;;
9104 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9106 case $ac_im_usrlibdir in
9108 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9112 rm -f -r conftest.dir
9115 # Standard set of common directories for X headers.
9116 # Check X11 before X11Rn because it is often a symlink to the current release.
9128 /usr/local/X11/include
9129 /usr/local/X11R6/include
9130 /usr/local/X11R5/include
9131 /usr/local/X11R4/include
9133 /usr/local/include/X11
9134 /usr/local/include/X11R6
9135 /usr/local/include/X11R5
9136 /usr/local/include/X11R4
9140 /usr/XFree86/include/X11
9144 /usr/unsupported/include
9146 /usr/local/x11r5/include
9147 /usr/lpp/Xamples/include
9149 /usr/openwin/include
9150 /usr/openwin/share/include'
9152 if test "$ac_x_includes" = no; then
9153 # Guess where to find include files, by looking for Xlib.h.
9154 # First, try using that file with no special directory specified.
9155 cat >conftest.$ac_ext <<_ACEOF
9158 cat confdefs.h >>conftest.$ac_ext
9159 cat >>conftest.$ac_ext <<_ACEOF
9160 /* end confdefs.h. */
9161 #include <X11/Xlib.h>
9163 if { (ac_try="$ac_cpp conftest.$ac_ext"
9165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9166 *) ac_try_echo
=$ac_try;;
9168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9171 grep -v '^ *+' conftest.er1
>conftest.err
9173 cat conftest.err
>&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } >/dev
/null
&& {
9176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9177 test ! -s conftest.err
9179 # We can compile using X headers with no special include directory.
9182 echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.
$ac_ext >&5
9185 for ac_dir
in $ac_x_header_dirs; do
9186 if test -r "$ac_dir/X11/Xlib.h"; then
9187 ac_x_includes
=$ac_dir
9193 rm -f conftest.err conftest.
$ac_ext
9194 fi # $ac_x_includes = no
9196 if test "$ac_x_libraries" = no
; then
9197 # Check for the libraries.
9198 # See if we find them without any special options.
9199 # Don't add to $LIBS permanently.
9202 cat >conftest.
$ac_ext <<_ACEOF
9205 cat confdefs.h
>>conftest.
$ac_ext
9206 cat >>conftest.
$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9208 #include <X11/Xlib.h>
9217 rm -f conftest.
$ac_objext conftest
$ac_exeext
9218 if { (ac_try
="$ac_link"
9220 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9221 *) ac_try_echo=$ac_try;;
9223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9224 (eval "$ac_link") 2>conftest.er1
9226 grep -v '^ *+' conftest.er1 >conftest.err
9228 cat conftest.err >&5
9229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9230 (exit $ac_status); } && {
9231 test -z "$ac_c_werror_flag" ||
9232 test ! -s conftest.err
9233 } && test -s conftest$ac_exeext &&
9234 $as_test_x conftest$ac_exeext; then
9236 # We can link X programs with no special library path.
9239 echo "$as_me: failed program was:" >&5
9240 sed 's/^/| /' conftest.$ac_ext >&5
9243 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9245 # Don't even attempt the hair of trying to link an X program!
9246 for ac_extension in a so sl; do
9247 if test -r "$ac_dir/libX11.$ac_extension"; then
9248 ac_x_libraries=$ac_dir
9255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9256 conftest$ac_exeext conftest.$ac_ext
9257 fi # $ac_x_libraries = no
9259 case $ac_x_includes,$ac_x_libraries in #(
9261 # Didn't find X, or a directory has "'" in its name.
9262 ac_cv_have_x="have_x=no";; #(
9264 # Record where we found X for the cache.
9265 ac_cv_have_x="have_x=yes\
9266 ac_x_includes='$ac_x_includes'\
9267 ac_x_libraries='$ac_x_libraries'"
9273 eval "$ac_cv_have_x"
9276 if test "$have_x" != yes; then
9277 { echo "$as_me:$LINENO: result: $have_x" >&5
9278 echo "${ECHO_T}$have_x" >&6; }
9281 # If each of the values was on the command line, it overrides each guess.
9282 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9283 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9284 # Update the cache value to reflect the command line values.
9285 ac_cv_have_x="have_x=yes\
9286 ac_x_includes='$x_includes'\
9287 ac_x_libraries='$x_libraries'"
9288 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9289 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9292 if test "$no_x" = yes; then
9298 if test "${x_libraries}" != NONE; then
9299 if test -n "${x_libraries}"; then
9300 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9301 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9303 x_default_search_path=""
9304 x_search_path=${x_libraries}
9305 if test -z "${x_search_path}"; then
9306 x_search_path=/usr/lib
9308 for x_library in `echo ${x_search_path}: | \
9309 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9311 ${x_library}/X11/%L/%T/%N%C%S:\
9312 ${x_library}/X11/%l/%T/%N%C%S:\
9313 ${x_library}/X11/%T/%N%C%S:\
9314 ${x_library}/X11/%L/%T/%N%S:\
9315 ${x_library}/X11/%l/%T/%N%S:\
9316 ${x_library}/X11/%T/%N%S"
9317 if test x"${x_default_search_path}" = x; then
9318 x_default_search_path=${x_search_path}
9320 x_default_search_path="${x_search_path}:${x_default_search_path}"
9324 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9325 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9328 if test x"${x_includes}" = x; then
9329 bitmapdir=/usr/include/X11/bitmaps
9331 # accumulate include directories that have X11 bitmap subdirectories
9333 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9334 if test -d "${bmd}/X11/bitmaps"; then
9335 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9337 if test -d "${bmd}/bitmaps"; then
9338 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9341 if test ${bmd_acc} != "dummyval"; then
9342 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9347 if test "${with_carbon}" != no; then
9348 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9349 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9350 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9351 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9352 echo $ECHO_N "(cached) $ECHO_C" >&6
9354 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9355 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9357 # Is the header compilable?
9358 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9359 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9360 cat >conftest.$ac_ext <<_ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9366 $ac_includes_default
9367 #include <Carbon/Carbon.h>
9369 rm -f conftest.$ac_objext
9370 if { (ac_try="$ac_compile"
9372 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9373 *) ac_try_echo
=$ac_try;;
9375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9376 (eval "$ac_compile") 2>conftest.er1
9378 grep -v '^ *+' conftest.er1
>conftest.err
9380 cat conftest.err
>&5
9381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9382 (exit $ac_status); } && {
9383 test -z "$ac_c_werror_flag" ||
9384 test ! -s conftest.err
9385 } && test -s conftest.
$ac_objext; then
9386 ac_header_compiler
=yes
9388 echo "$as_me: failed program was:" >&5
9389 sed 's/^/| /' conftest.
$ac_ext >&5
9391 ac_header_compiler
=no
9394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9396 echo "${ECHO_T}$ac_header_compiler" >&6; }
9398 # Is the header present?
9399 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9400 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9401 cat >conftest.
$ac_ext <<_ACEOF
9404 cat confdefs.h
>>conftest.
$ac_ext
9405 cat >>conftest.
$ac_ext <<_ACEOF
9406 /* end confdefs.h. */
9407 #include <Carbon/Carbon.h>
9409 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9412 *) ac_try_echo=$ac_try;;
9414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9417 grep -v '^ *+' conftest.er1 >conftest.err
9419 cat conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 (exit $ac_status); } >/dev/null && {
9422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9423 test ! -s conftest.err
9425 ac_header_preproc=yes
9427 echo "$as_me: failed program was:" >&5
9428 sed 's/^/| /' conftest.$ac_ext >&5
9430 ac_header_preproc=no
9433 rm -f conftest.err conftest.$ac_ext
9434 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9435 echo "${ECHO_T}$ac_header_preproc" >&6; }
9437 # So? What about this header?
9438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9440 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9441 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9442 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9443 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9444 ac_header_preproc=yes
9447 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9448 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9449 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9450 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9452 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9454 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9455 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9456 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9457 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9458 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9462 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9463 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9464 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9467 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9469 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9470 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9473 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9479 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9480 if test "${with_carbon+set}" != set \
9481 && test "${carbon_appdir_x+set}" != set; then
9482 for var in with_x with_x_toolkit with_gtk with_xim \
9483 with_xpm with_jpeg with_tiff with_gif with_png; do
9484 if eval test \"\${$var+set}\" = set; then
9491 if test "${HAVE_CARBON}" = yes; then
9495 case "${window_system}" in
9499 case "${with_x_toolkit}" in
9500 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9501 motif ) USE_X_TOOLKIT=MOTIF ;;
9503 USE_X_TOOLKIT=none ;;
9504 no ) USE_X_TOOLKIT=none ;;
9505 * ) USE_X_TOOLKIT=maybe ;;
9515 ### If we're using X11, we should use the X menu package.
9518 yes ) HAVE_MENUS=yes ;;
9521 if test "${opsys}" = "hpux9"; then
9522 case "${x_libraries}" in
9524 opsysfile="s/hpux9-x11r4.h"
9529 if test "${opsys}" = "hpux9shr"; then
9530 case "${x_libraries}" in
9532 opsysfile="s/hpux9shxr4.h"
9537 ### Compute the unexec source name from the object name.
9538 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9540 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9541 # Assume not, until told otherwise.
9544 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9545 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9546 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 cat >conftest.$ac_ext <<_ACEOF
9552 cat confdefs.h >>conftest.$ac_ext
9553 cat >>conftest.$ac_ext <<_ACEOF
9554 /* end confdefs.h. */
9555 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9557 #define malloc_get_state innocuous_malloc_get_state
9559 /* System header to define __stub macros and hopefully few prototypes,
9560 which can conflict with char malloc_get_state (); below.
9561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9562 <limits.h> exists even on freestanding compilers. */
9565 # include <limits.h>
9567 # include <assert.h>
9570 #undef malloc_get_state
9572 /* Override any GCC internal prototype to avoid an error.
9573 Use char because int might match the return type of a GCC
9574 builtin and then its argument prototype would still apply. */
9578 char malloc_get_state ();
9579 /* The GNU C library defines this for functions which it implements
9580 to always fail with ENOSYS. Some functions are actually named
9581 something starting with __ and the normal name is an alias. */
9582 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9589 return malloc_get_state ();
9594 rm -f conftest.$ac_objext conftest$ac_exeext
9595 if { (ac_try="$ac_link"
9597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9598 *) ac_try_echo
=$ac_try;;
9600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9601 (eval "$ac_link") 2>conftest.er1
9603 grep -v '^ *+' conftest.er1
>conftest.err
9605 cat conftest.err
>&5
9606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9607 (exit $ac_status); } && {
9608 test -z "$ac_c_werror_flag" ||
9609 test ! -s conftest.err
9610 } && test -s conftest
$ac_exeext &&
9611 $as_test_x conftest
$ac_exeext; then
9612 ac_cv_func_malloc_get_state
=yes
9614 echo "$as_me: failed program was:" >&5
9615 sed 's/^/| /' conftest.
$ac_ext >&5
9617 ac_cv_func_malloc_get_state
=no
9620 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9621 conftest
$ac_exeext conftest.
$ac_ext
9623 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9624 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9625 if test $ac_cv_func_malloc_get_state = yes; then
9631 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9632 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9633 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9634 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 cat >conftest.
$ac_ext <<_ACEOF
9639 cat confdefs.h
>>conftest.
$ac_ext
9640 cat >>conftest.
$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9642 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9644 #define malloc_set_state innocuous_malloc_set_state
9646 /* System header to define __stub macros and hopefully few prototypes,
9647 which can conflict with char malloc_set_state (); below.
9648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9649 <limits.h> exists even on freestanding compilers. */
9652 # include <limits.h>
9654 # include <assert.h>
9657 #undef malloc_set_state
9659 /* Override any GCC internal prototype to avoid an error.
9660 Use char because int might match the return type of a GCC
9661 builtin and then its argument prototype would still apply. */
9665 char malloc_set_state ();
9666 /* The GNU C library defines this for functions which it implements
9667 to always fail with ENOSYS. Some functions are actually named
9668 something starting with __ and the normal name is an alias. */
9669 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9676 return malloc_set_state ();
9681 rm -f conftest.
$ac_objext conftest
$ac_exeext
9682 if { (ac_try
="$ac_link"
9684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_link") 2>conftest.er1
9690 grep -v '^ *+' conftest.er1 >conftest.err
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest$ac_exeext &&
9698 $as_test_x conftest$ac_exeext; then
9699 ac_cv_func_malloc_set_state=yes
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 ac_cv_func_malloc_set_state=no
9707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9708 conftest$ac_exeext conftest.$ac_ext
9710 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9711 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9712 if test $ac_cv_func_malloc_set_state = yes; then
9718 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9719 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9720 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 cat >conftest.$ac_ext <<_ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9729 extern void (* __after_morecore_hook)();
9733 __after_morecore_hook = 0
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (ac_try="$ac_link"
9741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9742 *) ac_try_echo
=$ac_try;;
9744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745 (eval "$ac_link") 2>conftest.er1
9747 grep -v '^ *+' conftest.er1
>conftest.err
9749 cat conftest.err
>&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } && {
9752 test -z "$ac_c_werror_flag" ||
9753 test ! -s conftest.err
9754 } && test -s conftest
$ac_exeext &&
9755 $as_test_x conftest
$ac_exeext; then
9756 emacs_cv_var___after_morecore_hook
=yes
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.
$ac_ext >&5
9761 emacs_cv_var___after_morecore_hook
=no
9764 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9765 conftest
$ac_exeext conftest.
$ac_ext
9767 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9768 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9769 if test $emacs_cv_var___after_morecore_hook = no
; then
9772 if test "${system_malloc}" = "yes"; then
9775 (The GNU allocators don't work with this system configuration.)"
9777 if test "$doug_lea_malloc" = "yes" ; then
9778 if test "$GNU_MALLOC" = yes ; then
9780 (Using Doug Lea's new malloc from the GNU C Library.)"
9783 cat >>confdefs.h
<<\_ACEOF
9784 #define DOUG_LEA_MALLOC 1
9789 if test x
"${REL_ALLOC}" = x
; then
9790 REL_ALLOC
=${GNU_MALLOC}
9796 for ac_header
in stdlib.h unistd.h
9798 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9799 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9800 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9801 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9802 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 ac_res
=`eval echo '${'$as_ac_Header'}'`
9806 { echo "$as_me:$LINENO: result: $ac_res" >&5
9807 echo "${ECHO_T}$ac_res" >&6; }
9809 # Is the header compilable?
9810 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9812 cat >conftest.
$ac_ext <<_ACEOF
9815 cat confdefs.h
>>conftest.
$ac_ext
9816 cat >>conftest.
$ac_ext <<_ACEOF
9817 /* end confdefs.h. */
9818 $ac_includes_default
9819 #include <$ac_header>
9821 rm -f conftest.
$ac_objext
9822 if { (ac_try
="$ac_compile"
9824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_compile") 2>conftest.er1
9830 grep -v '^ *+' conftest.er1 >conftest.err
9832 cat conftest.err >&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } && {
9835 test -z "$ac_c_werror_flag" ||
9836 test ! -s conftest.err
9837 } && test -s conftest.$ac_objext; then
9838 ac_header_compiler=yes
9840 echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9843 ac_header_compiler=no
9846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9848 echo "${ECHO_T}$ac_header_compiler" >&6; }
9850 # Is the header present?
9851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9853 cat >conftest.$ac_ext <<_ACEOF
9856 cat confdefs.h >>conftest.$ac_ext
9857 cat >>conftest.$ac_ext <<_ACEOF
9858 /* end confdefs.h. */
9859 #include <$ac_header>
9861 if { (ac_try="$ac_cpp conftest.$ac_ext"
9863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9864 *) ac_try_echo
=$ac_try;;
9866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9869 grep -v '^ *+' conftest.er1
>conftest.err
9871 cat conftest.err
>&5
9872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9873 (exit $ac_status); } >/dev
/null
&& {
9874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9875 test ! -s conftest.err
9877 ac_header_preproc
=yes
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.
$ac_ext >&5
9882 ac_header_preproc
=no
9885 rm -f conftest.err conftest.
$ac_ext
9886 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9887 echo "${ECHO_T}$ac_header_preproc" >&6; }
9889 # So? What about this header?
9890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9892 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9893 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9894 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9895 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9896 ac_header_preproc
=yes
9899 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9900 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9902 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9904 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9905 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9906 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9908 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9909 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9910 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9916 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9917 echo $ECHO_N "(cached) $ECHO_C" >&6
9919 eval "$as_ac_Header=\$ac_header_preproc"
9921 ac_res
=`eval echo '${'$as_ac_Header'}'`
9922 { echo "$as_me:$LINENO: result: $ac_res" >&5
9923 echo "${ECHO_T}$ac_res" >&6; }
9926 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9927 cat >>confdefs.h
<<_ACEOF
9928 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9936 for ac_func
in getpagesize
9938 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9939 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9940 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9941 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 cat >conftest.
$ac_ext <<_ACEOF
9947 cat confdefs.h
>>conftest.
$ac_ext
9948 cat >>conftest.
$ac_ext <<_ACEOF
9949 /* end confdefs.h. */
9950 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9952 #define $ac_func innocuous_$ac_func
9954 /* System header to define __stub macros and hopefully few prototypes,
9955 which can conflict with char $ac_func (); below.
9956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9957 <limits.h> exists even on freestanding compilers. */
9960 # include <limits.h>
9962 # include <assert.h>
9967 /* Override any GCC internal prototype to avoid an error.
9968 Use char because int might match the return type of a GCC
9969 builtin and then its argument prototype would still apply. */
9974 /* The GNU C library defines this for functions which it implements
9975 to always fail with ENOSYS. Some functions are actually named
9976 something starting with __ and the normal name is an alias. */
9977 #if defined __stub_$ac_func || defined __stub___$ac_func
9989 rm -f conftest.
$ac_objext conftest
$ac_exeext
9990 if { (ac_try
="$ac_link"
9992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9993 *) ac_try_echo=$ac_try;;
9995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996 (eval "$ac_link") 2>conftest.er1
9998 grep -v '^ *+' conftest.er1 >conftest.err
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } && {
10003 test -z "$ac_c_werror_flag" ||
10004 test ! -s conftest.err
10005 } && test -s conftest$ac_exeext &&
10006 $as_test_x conftest$ac_exeext; then
10007 eval "$as_ac_var=yes"
10009 echo "$as_me: failed program was:" >&5
10010 sed 's/^/| /' conftest.$ac_ext >&5
10012 eval "$as_ac_var=no"
10015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10016 conftest$ac_exeext conftest.$ac_ext
10018 ac_res=`eval echo '${'$as_ac_var'}'`
10019 { echo "$as_me:$LINENO: result: $ac_res" >&5
10020 echo "${ECHO_T}$ac_res" >&6; }
10021 if test `eval echo '${'$as_ac_var'}'` = yes; then
10022 cat >>confdefs.h <<_ACEOF
10023 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10029 { echo "$as_me:$LINENO: checking for working mmap" >&5
10030 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10031 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 if test "$cross_compiling" = yes; then
10035 ac_cv_func_mmap_fixed_mapped=no
10037 cat >conftest.$ac_ext <<_ACEOF
10040 cat confdefs.h >>conftest.$ac_ext
10041 cat >>conftest.$ac_ext <<_ACEOF
10042 /* end confdefs.h. */
10043 $ac_includes_default
10044 /* malloc might have been renamed as rpl_malloc. */
10047 /* Thanks to Mike Haertel and Jim Avera for this test.
10048 Here is a matrix of mmap possibilities:
10049 mmap private not fixed
10050 mmap private fixed at somewhere currently unmapped
10051 mmap private fixed at somewhere already mapped
10052 mmap shared not fixed
10053 mmap shared fixed at somewhere currently unmapped
10054 mmap shared fixed at somewhere already mapped
10055 For private mappings, we should verify that changes cannot be read()
10056 back from the file, nor mmap's back from the file at a different
10057 address. (There have been systems where private was not correctly
10058 implemented like the infamous i386 svr4.0, and systems where the
10059 VM page cache was not coherent with the file system buffer cache
10060 like early versions of FreeBSD and possibly contemporary NetBSD.)
10061 For shared mappings, we should conversely verify that changes get
10062 propagated back to all the places they're supposed to be.
10064 Grep wants private fixed already mapped.
10065 The main things grep needs to know about mmap are:
10066 * does it exist and is it safe to write into the mmap'd area
10067 * how to use it (BSD variants) */
10070 #include <sys/mman.h>
10072 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10076 /* This mess was copied from the GNU getpagesize.h. */
10077 #ifndef HAVE_GETPAGESIZE
10078 /* Assume that all systems that can run configure have sys/param.h. */
10079 # ifndef HAVE_SYS_PARAM_H
10080 # define HAVE_SYS_PARAM_H 1
10083 # ifdef _SC_PAGESIZE
10084 # define getpagesize() sysconf(_SC_PAGESIZE)
10085 # else /* no _SC_PAGESIZE */
10086 # ifdef HAVE_SYS_PARAM_H
10087 # include <sys/param.h>
10088 # ifdef EXEC_PAGESIZE
10089 # define getpagesize() EXEC_PAGESIZE
10090 # else /* no EXEC_PAGESIZE */
10092 # define getpagesize() NBPG * CLSIZE
10095 # endif /* no CLSIZE */
10096 # else /* no NBPG */
10098 # define getpagesize() NBPC
10099 # else /* no NBPC */
10101 # define getpagesize() PAGESIZE
10102 # endif /* PAGESIZE */
10103 # endif /* no NBPC */
10104 # endif /* no NBPG */
10105 # endif /* no EXEC_PAGESIZE */
10106 # else /* no HAVE_SYS_PARAM_H */
10107 # define getpagesize() 8192 /* punt totally */
10108 # endif /* no HAVE_SYS_PARAM_H */
10109 # endif /* no _SC_PAGESIZE */
10111 #endif /* no HAVE_GETPAGESIZE */
10116 char *data, *data2, *data3;
10120 pagesize = getpagesize ();
10122 /* First, make a file with some known garbage in it. */
10123 data = (char *) malloc (pagesize);
10126 for (i = 0; i < pagesize; ++i)
10127 *(data + i) = rand ();
10129 fd = creat ("conftest.mmap", 0600);
10132 if (write (fd, data, pagesize) != pagesize)
10136 /* Next, try to mmap the file at a fixed address which already has
10137 something else allocated at it. If we can, also make sure that
10138 we see the same garbage. */
10139 fd = open ("conftest.mmap", O_RDWR);
10142 data2 = (char *) malloc (2 * pagesize);
10145 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10146 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10147 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10149 for (i = 0; i < pagesize; ++i)
10150 if (*(data + i) != *(data2 + i))
10153 /* Finally, make sure that changes to the mapped area do not
10154 percolate back to the file as seen by read(). (This is a bug on
10155 some variants of i386 svr4.0.) */
10156 for (i = 0; i < pagesize; ++i)
10157 *(data2 + i) = *(data2 + i) + 1;
10158 data3 = (char *) malloc (pagesize);
10161 if (read (fd, data3, pagesize) != pagesize)
10163 for (i = 0; i < pagesize; ++i)
10164 if (*(data + i) != *(data3 + i))
10170 rm -f conftest$ac_exeext
10171 if { (ac_try="$ac_link"
10172 case "(($ac_try" in
10173 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10174 *) ac_try_echo
=$ac_try;;
10176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10177 (eval "$ac_link") 2>&5
10179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10180 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10181 { (case "(($ac_try" in
10182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_try") 2>&5
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); }; }; then
10190 ac_cv_func_mmap_fixed_mapped=yes
10192 echo "$as_me: program exited with status $ac_status" >&5
10193 echo "$as_me: failed program was:" >&5
10194 sed 's/^/| /' conftest.$ac_ext >&5
10196 ( exit $ac_status )
10197 ac_cv_func_mmap_fixed_mapped=no
10199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10204 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10205 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10206 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10208 cat >>confdefs.h <<\_ACEOF
10209 #define HAVE_MMAP 1
10213 rm -f conftest.mmap
10215 if test $use_mmap_for_buffers = yes; then
10219 LIBS="$libsrc_libs $LIBS"
10222 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10223 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10224 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10225 echo $ECHO_N "(cached) $ECHO_C" >&6
10227 ac_check_lib_save_LIBS=$LIBS
10228 LIBS="-ldnet $LIBS"
10229 cat >conftest.$ac_ext <<_ACEOF
10232 cat confdefs.h >>conftest.$ac_ext
10233 cat >>conftest.$ac_ext <<_ACEOF
10234 /* end confdefs.h. */
10236 /* Override any GCC internal prototype to avoid an error.
10237 Use char because int might match the return type of a GCC
10238 builtin and then its argument prototype would still apply. */
10246 return dnet_ntoa ();
10251 rm -f conftest.$ac_objext conftest$ac_exeext
10252 if { (ac_try="$ac_link"
10253 case "(($ac_try" in
10254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10255 *) ac_try_echo
=$ac_try;;
10257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10258 (eval "$ac_link") 2>conftest.er1
10260 grep -v '^ *+' conftest.er1
>conftest.err
10262 cat conftest.err
>&5
10263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10264 (exit $ac_status); } && {
10265 test -z "$ac_c_werror_flag" ||
10266 test ! -s conftest.err
10267 } && test -s conftest
$ac_exeext &&
10268 $as_test_x conftest
$ac_exeext; then
10269 ac_cv_lib_dnet_dnet_ntoa
=yes
10271 echo "$as_me: failed program was:" >&5
10272 sed 's/^/| /' conftest.
$ac_ext >&5
10274 ac_cv_lib_dnet_dnet_ntoa
=no
10277 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10278 conftest
$ac_exeext conftest.
$ac_ext
10279 LIBS
=$ac_check_lib_save_LIBS
10281 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10282 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10283 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10284 cat >>confdefs.h
<<_ACEOF
10285 #define HAVE_LIBDNET 1
10288 LIBS
="-ldnet $LIBS"
10293 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10294 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10295 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10298 ac_check_lib_save_LIBS
=$LIBS
10299 LIBS
="-lXbsd $LIBS"
10300 cat >conftest.
$ac_ext <<_ACEOF
10303 cat confdefs.h
>>conftest.
$ac_ext
10304 cat >>conftest.
$ac_ext <<_ACEOF
10305 /* end confdefs.h. */
10316 rm -f conftest.
$ac_objext conftest
$ac_exeext
10317 if { (ac_try
="$ac_link"
10318 case "(($ac_try" in
10319 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10320 *) ac_try_echo=$ac_try;;
10322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10323 (eval "$ac_link") 2>conftest.er1
10325 grep -v '^ *+' conftest.er1 >conftest.err
10327 cat conftest.err >&5
10328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10329 (exit $ac_status); } && {
10330 test -z "$ac_c_werror_flag" ||
10331 test ! -s conftest.err
10332 } && test -s conftest$ac_exeext &&
10333 $as_test_x conftest$ac_exeext; then
10334 ac_cv_lib_Xbsd_main=yes
10336 echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10339 ac_cv_lib_Xbsd_main=no
10342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10343 conftest$ac_exeext conftest.$ac_ext
10344 LIBS=$ac_check_lib_save_LIBS
10346 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10347 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10348 if test $ac_cv_lib_Xbsd_main = yes; then
10349 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10354 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10355 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10356 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 ac_check_lib_save_LIBS=$LIBS
10360 LIBS="-lpthreads $LIBS"
10361 cat >conftest.$ac_ext <<_ACEOF
10364 cat confdefs.h >>conftest.$ac_ext
10365 cat >>conftest.$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10368 /* Override any GCC internal prototype to avoid an error.
10369 Use char because int might match the return type of a GCC
10370 builtin and then its argument prototype would still apply. */
10378 return cma_open ();
10383 rm -f conftest.$ac_objext conftest$ac_exeext
10384 if { (ac_try="$ac_link"
10385 case "(($ac_try" in
10386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10387 *) ac_try_echo
=$ac_try;;
10389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10390 (eval "$ac_link") 2>conftest.er1
10392 grep -v '^ *+' conftest.er1
>conftest.err
10394 cat conftest.err
>&5
10395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } && {
10397 test -z "$ac_c_werror_flag" ||
10398 test ! -s conftest.err
10399 } && test -s conftest
$ac_exeext &&
10400 $as_test_x conftest
$ac_exeext; then
10401 ac_cv_lib_pthreads_cma_open
=yes
10403 echo "$as_me: failed program was:" >&5
10404 sed 's/^/| /' conftest.
$ac_ext >&5
10406 ac_cv_lib_pthreads_cma_open
=no
10409 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10410 conftest
$ac_exeext conftest.
$ac_ext
10411 LIBS
=$ac_check_lib_save_LIBS
10413 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10414 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10415 if test $ac_cv_lib_pthreads_cma_open = yes; then
10416 cat >>confdefs.h
<<_ACEOF
10417 #define HAVE_LIBPTHREADS 1
10420 LIBS
="-lpthreads $LIBS"
10425 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10426 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10427 if test -d /usr
/X386
/include
; then
10429 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10433 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10434 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10439 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10440 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10441 if test "${gdb_cv_bigtoc+set}" = set; then
10442 echo $ECHO_N "(cached) $ECHO_C" >&6
10446 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10447 *) gdb_cv_bigtoc
=-bbigtoc ;;
10450 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10451 cat >conftest.
$ac_ext <<_ACEOF
10454 cat confdefs.h
>>conftest.
$ac_ext
10455 cat >>conftest.
$ac_ext <<_ACEOF
10456 /* end confdefs.h. */
10466 rm -f conftest.
$ac_objext conftest
$ac_exeext
10467 if { (ac_try
="$ac_link"
10468 case "(($ac_try" in
10469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473 (eval "$ac_link") 2>conftest.er1
10475 grep -v '^ *+' conftest.er1 >conftest.err
10477 cat conftest.err >&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } && {
10480 test -z "$ac_c_werror_flag" ||
10481 test ! -s conftest.err
10482 } && test -s conftest$ac_exeext &&
10483 $as_test_x conftest$ac_exeext; then
10486 echo "$as_me: failed program was:" >&5
10487 sed 's/^/| /' conftest.$ac_ext >&5
10492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10493 conftest$ac_exeext conftest.$ac_ext
10496 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10497 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10501 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10502 # used for the tests that follow. We set them back to REAL_CFLAGS and
10503 # REAL_CPPFLAGS later on.
10505 REAL_CPPFLAGS="$CPPFLAGS"
10507 if test "${HAVE_X11}" = "yes"; then
10508 DEFS="$C_SWITCH_X_SITE $DEFS"
10509 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10511 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10512 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10514 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10515 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10516 # but it's more convenient here to set LD_RUN_PATH
10517 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10518 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10519 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10523 if test "${opsys}" = "gnu-linux"; then
10524 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10525 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10526 cat >conftest.$ac_ext <<_ACEOF
10529 cat confdefs.h >>conftest.$ac_ext
10530 cat >>conftest.$ac_ext <<_ACEOF
10531 /* end confdefs.h. */
10536 XOpenDisplay ("foo");
10541 rm -f conftest.$ac_objext conftest$ac_exeext
10542 if { (ac_try="$ac_link"
10543 case "(($ac_try" in
10544 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10545 *) ac_try_echo
=$ac_try;;
10547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10548 (eval "$ac_link") 2>conftest.er1
10550 grep -v '^ *+' conftest.er1
>conftest.err
10552 cat conftest.err
>&5
10553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10554 (exit $ac_status); } && {
10555 test -z "$ac_c_werror_flag" ||
10556 test ! -s conftest.err
10557 } && test -s conftest
$ac_exeext &&
10558 $as_test_x conftest
$ac_exeext; then
10559 xlinux_first_failure
=no
10561 echo "$as_me: failed program was:" >&5
10562 sed 's/^/| /' conftest.
$ac_ext >&5
10564 xlinux_first_failure
=yes
10567 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10568 conftest
$ac_exeext conftest.
$ac_ext
10569 if test "${xlinux_first_failure}" = "yes"; then
10570 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10571 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10572 OLD_CPPFLAGS
="$CPPFLAGS"
10574 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10575 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10576 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10577 LIBS
="$LIBS -b i486-linuxaout"
10578 cat >conftest.
$ac_ext <<_ACEOF
10581 cat confdefs.h
>>conftest.
$ac_ext
10582 cat >>conftest.
$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10588 XOpenDisplay ("foo");
10593 rm -f conftest.
$ac_objext conftest
$ac_exeext
10594 if { (ac_try
="$ac_link"
10595 case "(($ac_try" in
10596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10597 *) ac_try_echo=$ac_try;;
10599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10600 (eval "$ac_link") 2>conftest.er1
10602 grep -v '^ *+' conftest.er1 >conftest.err
10604 cat conftest.err >&5
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } && {
10607 test -z "$ac_c_werror_flag" ||
10608 test ! -s conftest.err
10609 } && test -s conftest$ac_exeext &&
10610 $as_test_x conftest$ac_exeext; then
10611 xlinux_second_failure=no
10613 echo "$as_me: failed program was:" >&5
10614 sed 's/^/| /' conftest.$ac_ext >&5
10616 xlinux_second_failure=yes
10619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10620 conftest$ac_exeext conftest.$ac_ext
10621 if test "${xlinux_second_failure}" = "yes"; then
10622 # If we get the same failure with -b, there is no use adding -b.
10623 # So take it out. This plays safe.
10624 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10625 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10626 CPPFLAGS="$OLD_CPPFLAGS"
10628 { echo "$as_me:$LINENO: result: no" >&5
10629 echo "${ECHO_T}no" >&6; }
10631 { echo "$as_me:$LINENO: result: yes" >&5
10632 echo "${ECHO_T}yes" >&6; }
10635 { echo "$as_me:$LINENO: result: no" >&5
10636 echo "${ECHO_T}no" >&6; }
10640 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10641 # header files included from there.
10642 { echo "$as_me:$LINENO: checking for Xkb" >&5
10643 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10644 cat >conftest.$ac_ext <<_ACEOF
10647 cat confdefs.h >>conftest.$ac_ext
10648 cat >>conftest.$ac_ext <<_ACEOF
10649 /* end confdefs.h. */
10650 #include <X11/Xlib.h>
10651 #include <X11/XKBlib.h>
10655 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10660 rm -f conftest.$ac_objext conftest$ac_exeext
10661 if { (ac_try="$ac_link"
10662 case "(($ac_try" in
10663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10664 *) ac_try_echo
=$ac_try;;
10666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10667 (eval "$ac_link") 2>conftest.er1
10669 grep -v '^ *+' conftest.er1
>conftest.err
10671 cat conftest.err
>&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } && {
10674 test -z "$ac_c_werror_flag" ||
10675 test ! -s conftest.err
10676 } && test -s conftest
$ac_exeext &&
10677 $as_test_x conftest
$ac_exeext; then
10680 echo "$as_me: failed program was:" >&5
10681 sed 's/^/| /' conftest.
$ac_ext >&5
10686 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10687 conftest
$ac_exeext conftest.
$ac_ext
10688 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10689 echo "${ECHO_T}$emacs_xkb" >&6; }
10690 if test $emacs_xkb = yes; then
10692 cat >>confdefs.h
<<\_ACEOF
10693 #define HAVE_XKBGETKEYBOARD 1
10702 for ac_func
in XrmSetDatabase XScreenResourceString \
10703 XScreenNumberOfScreen XSetWMProtocols
10705 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10708 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10711 cat >conftest.
$ac_ext <<_ACEOF
10714 cat confdefs.h
>>conftest.
$ac_ext
10715 cat >>conftest.
$ac_ext <<_ACEOF
10716 /* end confdefs.h. */
10717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10719 #define $ac_func innocuous_$ac_func
10721 /* System header to define __stub macros and hopefully few prototypes,
10722 which can conflict with char $ac_func (); below.
10723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10724 <limits.h> exists even on freestanding compilers. */
10727 # include <limits.h>
10729 # include <assert.h>
10734 /* Override any GCC internal prototype to avoid an error.
10735 Use char because int might match the return type of a GCC
10736 builtin and then its argument prototype would still apply. */
10741 /* The GNU C library defines this for functions which it implements
10742 to always fail with ENOSYS. Some functions are actually named
10743 something starting with __ and the normal name is an alias. */
10744 #if defined __stub_$ac_func || defined __stub___$ac_func
10751 return $ac_func ();
10756 rm -f conftest.
$ac_objext conftest
$ac_exeext
10757 if { (ac_try
="$ac_link"
10758 case "(($ac_try" in
10759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 (eval "$ac_link") 2>conftest.er1
10765 grep -v '^ *+' conftest.er1 >conftest.err
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } && {
10770 test -z "$ac_c_werror_flag" ||
10771 test ! -s conftest.err
10772 } && test -s conftest$ac_exeext &&
10773 $as_test_x conftest$ac_exeext; then
10774 eval "$as_ac_var=yes"
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10779 eval "$as_ac_var=no"
10782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10783 conftest$ac_exeext conftest.$ac_ext
10785 ac_res=`eval echo '${'$as_ac_var'}'`
10786 { echo "$as_me:$LINENO: result: $ac_res" >&5
10787 echo "${ECHO_T}$ac_res" >&6; }
10788 if test `eval echo '${'$as_ac_var'}'` = yes; then
10789 cat >>confdefs.h <<_ACEOF
10790 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10798 if test "${window_system}" = "x11"; then
10799 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10800 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10801 if test "${emacs_cv_x11_version_6+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
10804 cat >conftest.$ac_ext <<_ACEOF
10807 cat confdefs.h >>conftest.$ac_ext
10808 cat >>conftest.$ac_ext <<_ACEOF
10809 /* end confdefs.h. */
10810 #include <X11/Xlib.h>
10814 #if XlibSpecificationRelease < 6
10822 rm -f conftest.$ac_objext conftest$ac_exeext
10823 if { (ac_try="$ac_link"
10824 case "(($ac_try" in
10825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10826 *) ac_try_echo
=$ac_try;;
10828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829 (eval "$ac_link") 2>conftest.er1
10831 grep -v '^ *+' conftest.er1
>conftest.err
10833 cat conftest.err
>&5
10834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } && {
10836 test -z "$ac_c_werror_flag" ||
10837 test ! -s conftest.err
10838 } && test -s conftest
$ac_exeext &&
10839 $as_test_x conftest
$ac_exeext; then
10840 emacs_cv_x11_version_6
=yes
10842 echo "$as_me: failed program was:" >&5
10843 sed 's/^/| /' conftest.
$ac_ext >&5
10845 emacs_cv_x11_version_6
=no
10848 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10849 conftest
$ac_exeext conftest.
$ac_ext
10852 if test $emacs_cv_x11_version_6 = yes; then
10853 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10854 echo "${ECHO_T}6 or newer" >&6; }
10856 cat >>confdefs.h
<<\_ACEOF
10857 #define HAVE_X11R6 1
10861 { echo "$as_me:$LINENO: result: before 6" >&5
10862 echo "${ECHO_T}before 6" >&6; }
10866 if test "${window_system}" = "x11"; then
10867 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10868 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10869 if test "${emacs_cv_x11_version_5+set}" = set; then
10870 echo $ECHO_N "(cached) $ECHO_C" >&6
10872 cat >conftest.
$ac_ext <<_ACEOF
10875 cat confdefs.h
>>conftest.
$ac_ext
10876 cat >>conftest.
$ac_ext <<_ACEOF
10877 /* end confdefs.h. */
10878 #include <X11/Xlib.h>
10882 #if XlibSpecificationRelease < 5
10890 rm -f conftest.
$ac_objext conftest
$ac_exeext
10891 if { (ac_try
="$ac_link"
10892 case "(($ac_try" in
10893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10897 (eval "$ac_link") 2>conftest.er1
10899 grep -v '^ *+' conftest.er1 >conftest.err
10901 cat conftest.err >&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest$ac_exeext &&
10907 $as_test_x conftest$ac_exeext; then
10908 emacs_cv_x11_version_5=yes
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10913 emacs_cv_x11_version_5=no
10916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10917 conftest$ac_exeext conftest.$ac_ext
10920 if test $emacs_cv_x11_version_5 = yes; then
10921 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10922 echo "${ECHO_T}5 or newer" >&6; }
10925 cat >>confdefs.h <<\_ACEOF
10926 #define HAVE_X11R5 1
10931 { echo "$as_me:$LINENO: result: before 5" >&5
10932 echo "${ECHO_T}before 5" >&6; }
10937 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10940 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10941 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10942 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10943 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10944 { (exit 1); exit 1; }; };
10948 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10950 if test "X${with_pkg_config_prog}" != X; then
10951 PKG_CONFIG="${with_pkg_config_prog}"
10956 if test -z "$PKG_CONFIG"; then
10957 # Extract the first word of "pkg-config", so it can be a program name with args.
10958 set dummy pkg-config; ac_word=$2
10959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10961 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10964 case $PKG_CONFIG in
10966 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10970 for as_dir in $PATH
10973 test -z "$as_dir" && as_dir=.
10974 for ac_exec_ext in '' $ac_executable_extensions; do
10975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10976 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10984 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10988 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10989 if test -n "$PKG_CONFIG"; then
10990 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10991 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10993 { echo "$as_me:$LINENO: result: no" >&5
10994 echo "${ECHO_T}no" >&6; }
11000 if test "$PKG_CONFIG" = "no" ; then
11001 { { echo "$as_me:$LINENO: error:
11002 *** 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
11003 echo "$as_me: error:
11004 *** 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;}
11005 { (exit 1); exit 1; }; }
11007 PKG_CONFIG_MIN_VERSION=0.9.0
11008 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11009 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11010 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11012 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11013 { echo "$as_me:$LINENO: result: yes" >&5
11014 echo "${ECHO_T}yes" >&6; }
11017 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11018 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11019 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11020 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11021 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11023 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11024 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11025 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11026 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11027 echo "${ECHO_T}$GTK_LIBS" >&6; }
11029 { echo "$as_me:$LINENO: result: no" >&5
11030 echo "${ECHO_T}no" >&6; }
11033 ## If we have a custom action on failure, don't print errors, but
11034 ## do set a variable so people can do so.
11035 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11036 echo $GTK_PKG_ERRORS
11042 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11043 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11047 if test $succeeded = yes; then
11050 { { 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
11051 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;}
11052 { (exit 1); exit 1; }; }
11057 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11058 CFLAGS="$CFLAGS $GTK_CFLAGS"
11059 LIBS="$GTK_LIBS $LIBS"
11062 for ac_func in gtk_main
11064 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11065 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11067 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 cat >conftest.$ac_ext <<_ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11078 #define $ac_func innocuous_$ac_func
11080 /* System header to define __stub macros and hopefully few prototypes,
11081 which can conflict with char $ac_func (); below.
11082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11083 <limits.h> exists even on freestanding compilers. */
11086 # include <limits.h>
11088 # include <assert.h>
11093 /* Override any GCC internal prototype to avoid an error.
11094 Use char because int might match the return type of a GCC
11095 builtin and then its argument prototype would still apply. */
11100 /* The GNU C library defines this for functions which it implements
11101 to always fail with ENOSYS. Some functions are actually named
11102 something starting with __ and the normal name is an alias. */
11103 #if defined __stub_$ac_func || defined __stub___$ac_func
11110 return $ac_func ();
11115 rm -f conftest.$ac_objext conftest$ac_exeext
11116 if { (ac_try="$ac_link"
11117 case "(($ac_try" in
11118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11119 *) ac_try_echo
=$ac_try;;
11121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11122 (eval "$ac_link") 2>conftest.er1
11124 grep -v '^ *+' conftest.er1
>conftest.err
11126 cat conftest.err
>&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } && {
11129 test -z "$ac_c_werror_flag" ||
11130 test ! -s conftest.err
11131 } && test -s conftest
$ac_exeext &&
11132 $as_test_x conftest
$ac_exeext; then
11133 eval "$as_ac_var=yes"
11135 echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.
$ac_ext >&5
11138 eval "$as_ac_var=no"
11141 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11142 conftest
$ac_exeext conftest.
$ac_ext
11144 ac_res
=`eval echo '${'$as_ac_var'}'`
11145 { echo "$as_me:$LINENO: result: $ac_res" >&5
11146 echo "${ECHO_T}$ac_res" >&6; }
11147 if test `eval echo '${'$as_ac_var'}'` = yes; then
11148 cat >>confdefs.h
<<_ACEOF
11149 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11155 if test "${GTK_COMPILES}" != "yes"; then
11156 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11157 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11158 { (exit 1); exit 1; }; };
11163 cat >>confdefs.h
<<\_ACEOF
11169 if test "$with_toolkit_scroll_bars" != no
; then
11170 with_toolkit_scroll_bars
=yes
11173 HAVE_GTK_MULTIDISPLAY
=no
11175 for ac_func
in gdk_display_open
11177 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11180 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11181 echo $ECHO_N "(cached) $ECHO_C" >&6
11183 cat >conftest.
$ac_ext <<_ACEOF
11186 cat confdefs.h
>>conftest.
$ac_ext
11187 cat >>conftest.
$ac_ext <<_ACEOF
11188 /* end confdefs.h. */
11189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11191 #define $ac_func innocuous_$ac_func
11193 /* System header to define __stub macros and hopefully few prototypes,
11194 which can conflict with char $ac_func (); below.
11195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11196 <limits.h> exists even on freestanding compilers. */
11199 # include <limits.h>
11201 # include <assert.h>
11206 /* Override any GCC internal prototype to avoid an error.
11207 Use char because int might match the return type of a GCC
11208 builtin and then its argument prototype would still apply. */
11213 /* The GNU C library defines this for functions which it implements
11214 to always fail with ENOSYS. Some functions are actually named
11215 something starting with __ and the normal name is an alias. */
11216 #if defined __stub_$ac_func || defined __stub___$ac_func
11223 return $ac_func ();
11228 rm -f conftest.
$ac_objext conftest
$ac_exeext
11229 if { (ac_try
="$ac_link"
11230 case "(($ac_try" in
11231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11232 *) ac_try_echo=$ac_try;;
11234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11235 (eval "$ac_link") 2>conftest.er1
11237 grep -v '^ *+' conftest.er1 >conftest.err
11239 cat conftest.err >&5
11240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11241 (exit $ac_status); } && {
11242 test -z "$ac_c_werror_flag" ||
11243 test ! -s conftest.err
11244 } && test -s conftest$ac_exeext &&
11245 $as_test_x conftest$ac_exeext; then
11246 eval "$as_ac_var=yes"
11248 echo "$as_me: failed program was:" >&5
11249 sed 's/^/| /' conftest.$ac_ext >&5
11251 eval "$as_ac_var=no"
11254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11255 conftest$ac_exeext conftest.$ac_ext
11257 ac_res=`eval echo '${'$as_ac_var'}'`
11258 { echo "$as_me:$LINENO: result: $ac_res" >&5
11259 echo "${ECHO_T}$ac_res" >&6; }
11260 if test `eval echo '${'$as_ac_var'}'` = yes; then
11261 cat >>confdefs.h <<_ACEOF
11262 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11264 HAVE_GTK_MULTIDISPLAY=yes
11268 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11270 cat >>confdefs.h <<\_ACEOF
11271 #define HAVE_GTK_MULTIDISPLAY 1
11275 HAVE_GTK_FILE_SELECTION=no
11277 for ac_func in gtk_file_selection_new
11279 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 cat >conftest.$ac_ext <<_ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11293 #define $ac_func innocuous_$ac_func
11295 /* System header to define __stub macros and hopefully few prototypes,
11296 which can conflict with char $ac_func (); below.
11297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11298 <limits.h> exists even on freestanding compilers. */
11301 # include <limits.h>
11303 # include <assert.h>
11308 /* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11315 /* The GNU C library defines this for functions which it implements
11316 to always fail with ENOSYS. Some functions are actually named
11317 something starting with __ and the normal name is an alias. */
11318 #if defined __stub_$ac_func || defined __stub___$ac_func
11325 return $ac_func ();
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (ac_try="$ac_link"
11332 case "(($ac_try" in
11333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11334 *) ac_try_echo
=$ac_try;;
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_link") 2>conftest.er1
11339 grep -v '^ *+' conftest.er1
>conftest.err
11341 cat conftest.err
>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } && {
11344 test -z "$ac_c_werror_flag" ||
11345 test ! -s conftest.err
11346 } && test -s conftest
$ac_exeext &&
11347 $as_test_x conftest
$ac_exeext; then
11348 eval "$as_ac_var=yes"
11350 echo "$as_me: failed program was:" >&5
11351 sed 's/^/| /' conftest.
$ac_ext >&5
11353 eval "$as_ac_var=no"
11356 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11357 conftest
$ac_exeext conftest.
$ac_ext
11359 ac_res
=`eval echo '${'$as_ac_var'}'`
11360 { echo "$as_me:$LINENO: result: $ac_res" >&5
11361 echo "${ECHO_T}$ac_res" >&6; }
11362 if test `eval echo '${'$as_ac_var'}'` = yes; then
11363 cat >>confdefs.h
<<_ACEOF
11364 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11366 HAVE_GTK_FILE_SELECTION
=yes
11371 HAVE_GTK_FILE_CHOOSER
=no
11373 for ac_func
in gtk_file_chooser_dialog_new
11375 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11378 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11379 echo $ECHO_N "(cached) $ECHO_C" >&6
11381 cat >conftest.
$ac_ext <<_ACEOF
11384 cat confdefs.h
>>conftest.
$ac_ext
11385 cat >>conftest.
$ac_ext <<_ACEOF
11386 /* end confdefs.h. */
11387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11389 #define $ac_func innocuous_$ac_func
11391 /* System header to define __stub macros and hopefully few prototypes,
11392 which can conflict with char $ac_func (); below.
11393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11394 <limits.h> exists even on freestanding compilers. */
11397 # include <limits.h>
11399 # include <assert.h>
11404 /* Override any GCC internal prototype to avoid an error.
11405 Use char because int might match the return type of a GCC
11406 builtin and then its argument prototype would still apply. */
11411 /* The GNU C library defines this for functions which it implements
11412 to always fail with ENOSYS. Some functions are actually named
11413 something starting with __ and the normal name is an alias. */
11414 #if defined __stub_$ac_func || defined __stub___$ac_func
11421 return $ac_func ();
11426 rm -f conftest.
$ac_objext conftest
$ac_exeext
11427 if { (ac_try
="$ac_link"
11428 case "(($ac_try" in
11429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11430 *) ac_try_echo=$ac_try;;
11432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433 (eval "$ac_link") 2>conftest.er1
11435 grep -v '^ *+' conftest.er1 >conftest.err
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } && {
11440 test -z "$ac_c_werror_flag" ||
11441 test ! -s conftest.err
11442 } && test -s conftest$ac_exeext &&
11443 $as_test_x conftest$ac_exeext; then
11444 eval "$as_ac_var=yes"
11446 echo "$as_me: failed program was:" >&5
11447 sed 's/^/| /' conftest.$ac_ext >&5
11449 eval "$as_ac_var=no"
11452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11453 conftest$ac_exeext conftest.$ac_ext
11455 ac_res=`eval echo '${'$as_ac_var'}'`
11456 { echo "$as_me:$LINENO: result: $ac_res" >&5
11457 echo "${ECHO_T}$ac_res" >&6; }
11458 if test `eval echo '${'$as_ac_var'}'` = yes; then
11459 cat >>confdefs.h <<_ACEOF
11460 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11462 HAVE_GTK_FILE_CHOOSER=yes
11467 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11468 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11470 cat >>confdefs.h <<\_ACEOF
11471 #define HAVE_GTK_FILE_BOTH 1
11476 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11477 HAVE_GTK_AND_PTHREAD=no
11479 for ac_header in pthread.h
11481 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11485 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11488 ac_res=`eval echo '${'$as_ac_Header'}'`
11489 { echo "$as_me:$LINENO: result: $ac_res" >&5
11490 echo "${ECHO_T}$ac_res" >&6; }
11492 # Is the header compilable?
11493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11495 cat >conftest.$ac_ext <<_ACEOF
11498 cat confdefs.h >>conftest.$ac_ext
11499 cat >>conftest.$ac_ext <<_ACEOF
11500 /* end confdefs.h. */
11501 $ac_includes_default
11502 #include <$ac_header>
11504 rm -f conftest.$ac_objext
11505 if { (ac_try="$ac_compile"
11506 case "(($ac_try" in
11507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11508 *) ac_try_echo
=$ac_try;;
11510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11511 (eval "$ac_compile") 2>conftest.er1
11513 grep -v '^ *+' conftest.er1
>conftest.err
11515 cat conftest.err
>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); } && {
11518 test -z "$ac_c_werror_flag" ||
11519 test ! -s conftest.err
11520 } && test -s conftest.
$ac_objext; then
11521 ac_header_compiler
=yes
11523 echo "$as_me: failed program was:" >&5
11524 sed 's/^/| /' conftest.
$ac_ext >&5
11526 ac_header_compiler
=no
11529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11531 echo "${ECHO_T}$ac_header_compiler" >&6; }
11533 # Is the header present?
11534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11536 cat >conftest.
$ac_ext <<_ACEOF
11539 cat confdefs.h
>>conftest.
$ac_ext
11540 cat >>conftest.
$ac_ext <<_ACEOF
11541 /* end confdefs.h. */
11542 #include <$ac_header>
11544 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11545 case "(($ac_try" in
11546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11552 grep -v '^ *+' conftest.er1 >conftest.err
11554 cat conftest.err >&5
11555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11556 (exit $ac_status); } >/dev/null && {
11557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11558 test ! -s conftest.err
11560 ac_header_preproc=yes
11562 echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11565 ac_header_preproc=no
11568 rm -f conftest.err conftest.$ac_ext
11569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11570 echo "${ECHO_T}$ac_header_preproc" >&6; }
11572 # So? What about this header?
11573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11579 ac_header_preproc=yes
11582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11600 echo $ECHO_N "(cached) $ECHO_C" >&6
11602 eval "$as_ac_Header=\$ac_header_preproc"
11604 ac_res=`eval echo '${'$as_ac_Header'}'`
11605 { echo "$as_me:$LINENO: result: $ac_res" >&5
11606 echo "${ECHO_T}$ac_res" >&6; }
11609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11610 cat >>confdefs.h <<_ACEOF
11611 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11618 if test "$ac_cv_header_pthread_h"; then
11619 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11620 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11621 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11624 ac_check_lib_save_LIBS=$LIBS
11625 LIBS="-lpthread $LIBS"
11626 cat >conftest.$ac_ext <<_ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11633 /* Override any GCC internal prototype to avoid an error.
11634 Use char because int might match the return type of a GCC
11635 builtin and then its argument prototype would still apply. */
11639 char pthread_self ();
11643 return pthread_self ();
11648 rm -f conftest.$ac_objext conftest$ac_exeext
11649 if { (ac_try="$ac_link"
11650 case "(($ac_try" in
11651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11652 *) ac_try_echo
=$ac_try;;
11654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11655 (eval "$ac_link") 2>conftest.er1
11657 grep -v '^ *+' conftest.er1
>conftest.err
11659 cat conftest.err
>&5
11660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11661 (exit $ac_status); } && {
11662 test -z "$ac_c_werror_flag" ||
11663 test ! -s conftest.err
11664 } && test -s conftest
$ac_exeext &&
11665 $as_test_x conftest
$ac_exeext; then
11666 ac_cv_lib_pthread_pthread_self
=yes
11668 echo "$as_me: failed program was:" >&5
11669 sed 's/^/| /' conftest.
$ac_ext >&5
11671 ac_cv_lib_pthread_pthread_self
=no
11674 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11675 conftest
$ac_exeext conftest.
$ac_ext
11676 LIBS
=$ac_check_lib_save_LIBS
11678 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11679 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11680 if test $ac_cv_lib_pthread_pthread_self = yes; then
11681 HAVE_GTK_AND_PTHREAD
=yes
11685 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11686 GTK_LIBS
="$GTK_LIBS -lpthread"
11688 cat >>confdefs.h
<<\_ACEOF
11689 #define HAVE_GTK_AND_PTHREAD 1
11696 ### Link with -lXft if available to work around a bug.
11698 if test "${HAVE_GTK}" = "yes"; then
11699 if test "X${with_pkg_config_prog}" != X
; then
11700 PKG_CONFIG
="${with_pkg_config_prog}"
11706 if test -z "$PKG_CONFIG"; then
11707 # Extract the first word of "pkg-config", so it can be a program name with args.
11708 set dummy pkg-config
; ac_word
=$2
11709 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11710 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11711 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11714 case $PKG_CONFIG in
11716 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11720 for as_dir
in $PATH
11723 test -z "$as_dir" && as_dir
=.
11724 for ac_exec_ext
in '' $ac_executable_extensions; do
11725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11726 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11734 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11738 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11739 if test -n "$PKG_CONFIG"; then
11740 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11741 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11743 { echo "$as_me:$LINENO: result: no" >&5
11744 echo "${ECHO_T}no" >&6; }
11750 if test "$PKG_CONFIG" = "no" ; then
11753 PKG_CONFIG_MIN_VERSION
=0.9.0
11754 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11755 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11756 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11758 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11759 { echo "$as_me:$LINENO: result: yes" >&5
11760 echo "${ECHO_T}yes" >&6; }
11763 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11764 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11765 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11766 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11767 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11769 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11770 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11771 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11772 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11773 echo "${ECHO_T}$XFT_LIBS" >&6; }
11775 { echo "$as_me:$LINENO: result: no" >&5
11776 echo "${ECHO_T}no" >&6; }
11779 ## If we have a custom action on failure, don't print errors, but
11780 ## do set a variable so people can do so.
11781 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11788 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11789 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11793 if test $succeeded = yes; then
11799 if test "$HAVE_XFT" != no
; then
11800 OLD_CFLAGS
="$CPPFLAGS"
11801 OLD_CPPFLAGS
="$CFLAGS"
11803 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11804 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11805 LIBS
="$XFT_LIBS $LIBS"
11806 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11807 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11808 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11809 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11812 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11813 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11815 # Is the header compilable?
11816 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11817 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11818 cat >conftest.
$ac_ext <<_ACEOF
11821 cat confdefs.h
>>conftest.
$ac_ext
11822 cat >>conftest.
$ac_ext <<_ACEOF
11823 /* end confdefs.h. */
11824 $ac_includes_default
11825 #include <X11/Xft/Xft.h>
11827 rm -f conftest.
$ac_objext
11828 if { (ac_try
="$ac_compile"
11829 case "(($ac_try" in
11830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11831 *) ac_try_echo=$ac_try;;
11833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11834 (eval "$ac_compile") 2>conftest.er1
11836 grep -v '^ *+' conftest.er1 >conftest.err
11838 cat conftest.err >&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); } && {
11841 test -z "$ac_c_werror_flag" ||
11842 test ! -s conftest.err
11843 } && test -s conftest.$ac_objext; then
11844 ac_header_compiler=yes
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 ac_header_compiler=no
11852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11854 echo "${ECHO_T}$ac_header_compiler" >&6; }
11856 # Is the header present?
11857 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11858 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11859 cat >conftest.$ac_ext <<_ACEOF
11862 cat confdefs.h >>conftest.$ac_ext
11863 cat >>conftest.$ac_ext <<_ACEOF
11864 /* end confdefs.h. */
11865 #include <X11/Xft/Xft.h>
11867 if { (ac_try="$ac_cpp conftest.$ac_ext"
11868 case "(($ac_try" in
11869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11870 *) ac_try_echo
=$ac_try;;
11872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11875 grep -v '^ *+' conftest.er1
>conftest.err
11877 cat conftest.err
>&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); } >/dev
/null
&& {
11880 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11881 test ! -s conftest.err
11883 ac_header_preproc
=yes
11885 echo "$as_me: failed program was:" >&5
11886 sed 's/^/| /' conftest.
$ac_ext >&5
11888 ac_header_preproc
=no
11891 rm -f conftest.err conftest.
$ac_ext
11892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11893 echo "${ECHO_T}$ac_header_preproc" >&6; }
11895 # So? What about this header?
11896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11898 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11899 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11900 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11901 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11902 ac_header_preproc
=yes
11905 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11906 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11907 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11908 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11909 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11910 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11911 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11912 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11913 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11914 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11915 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11916 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11920 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11921 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11922 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11923 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
11927 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11928 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11931 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11932 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11933 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11934 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11935 echo $ECHO_N "(cached) $ECHO_C" >&6
11937 ac_check_lib_save_LIBS
=$LIBS
11938 LIBS
="-lXft $XFT_LIBS $LIBS"
11939 cat >conftest.
$ac_ext <<_ACEOF
11942 cat confdefs.h
>>conftest.
$ac_ext
11943 cat >>conftest.
$ac_ext <<_ACEOF
11944 /* end confdefs.h. */
11946 /* Override any GCC internal prototype to avoid an error.
11947 Use char because int might match the return type of a GCC
11948 builtin and then its argument prototype would still apply. */
11952 char XftFontOpen ();
11956 return XftFontOpen ();
11961 rm -f conftest.
$ac_objext conftest
$ac_exeext
11962 if { (ac_try
="$ac_link"
11963 case "(($ac_try" in
11964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_link") 2>conftest.er1
11970 grep -v '^ *+' conftest.er1 >conftest.err
11972 cat conftest.err >&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } && {
11975 test -z "$ac_c_werror_flag" ||
11976 test ! -s conftest.err
11977 } && test -s conftest$ac_exeext &&
11978 $as_test_x conftest$ac_exeext; then
11979 ac_cv_lib_Xft_XftFontOpen=yes
11981 echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11984 ac_cv_lib_Xft_XftFontOpen=no
11987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11988 conftest$ac_exeext conftest.$ac_ext
11989 LIBS=$ac_check_lib_save_LIBS
11991 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11992 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11993 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12001 if test "${HAVE_XFT}" = "yes"; then
12003 cat >>confdefs.h <<\_ACEOF
12008 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12010 CFLAGS="$OLD_CPPFLAGS"
12011 CFLAGS="$OLD_CFLAGS"
12017 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12018 if test x"${HAVE_X11R5}" = xyes; then
12019 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12020 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12021 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12024 cat >conftest.$ac_ext <<_ACEOF
12027 cat confdefs.h >>conftest.$ac_ext
12028 cat >>conftest.$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12031 #include <X11/Intrinsic.h>
12032 #include <X11/Xaw/Simple.h>
12041 rm -f conftest.$ac_objext conftest$ac_exeext
12042 if { (ac_try="$ac_link"
12043 case "(($ac_try" in
12044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12045 *) ac_try_echo
=$ac_try;;
12047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12048 (eval "$ac_link") 2>conftest.er1
12050 grep -v '^ *+' conftest.er1
>conftest.err
12052 cat conftest.err
>&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } && {
12055 test -z "$ac_c_werror_flag" ||
12056 test ! -s conftest.err
12057 } && test -s conftest
$ac_exeext &&
12058 $as_test_x conftest
$ac_exeext; then
12059 emacs_cv_x11_version_5_with_xaw
=yes
12061 echo "$as_me: failed program was:" >&5
12062 sed 's/^/| /' conftest.
$ac_ext >&5
12064 emacs_cv_x11_version_5_with_xaw
=no
12067 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12068 conftest
$ac_exeext conftest.
$ac_ext
12071 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12072 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12073 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12074 USE_X_TOOLKIT
=LUCID
12076 if test x
"${USE_X_TOOLKIT}" = xLUCID
; then
12077 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12078 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12079 { (exit 1); exit 1; }; }
12081 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12082 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12091 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12093 if test "${USE_X_TOOLKIT}" != "none"; then
12094 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12095 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12096 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12099 cat >conftest.
$ac_ext <<_ACEOF
12102 cat confdefs.h
>>conftest.
$ac_ext
12103 cat >>conftest.
$ac_ext <<_ACEOF
12104 /* end confdefs.h. */
12105 #include <X11/Intrinsic.h>
12109 #if XtSpecificationRelease < 6
12117 rm -f conftest.
$ac_objext conftest
$ac_exeext
12118 if { (ac_try
="$ac_link"
12119 case "(($ac_try" in
12120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12121 *) ac_try_echo=$ac_try;;
12123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12124 (eval "$ac_link") 2>conftest.er1
12126 grep -v '^ *+' conftest.er1 >conftest.err
12128 cat conftest.err >&5
12129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12130 (exit $ac_status); } && {
12131 test -z "$ac_c_werror_flag" ||
12132 test ! -s conftest.err
12133 } && test -s conftest$ac_exeext &&
12134 $as_test_x conftest$ac_exeext; then
12135 emacs_cv_x11_toolkit_version_6=yes
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12140 emacs_cv_x11_toolkit_version_6=no
12143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12144 conftest$ac_exeext conftest.$ac_ext
12147 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12148 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12149 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12150 echo "${ECHO_T}6 or newer" >&6; }
12152 cat >>confdefs.h <<\_ACEOF
12153 #define HAVE_X11XTR6 1
12157 { echo "$as_me:$LINENO: result: before 6" >&5
12158 echo "${ECHO_T}before 6" >&6; }
12162 if test x$HAVE_X11XTR6 = xyes; then
12163 LIBS="-lXt -lSM -lICE $LIBS"
12168 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12169 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12170 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 ac_check_lib_save_LIBS=$LIBS
12175 cat >conftest.$ac_ext <<_ACEOF
12178 cat confdefs.h >>conftest.$ac_ext
12179 cat >>conftest.$ac_ext <<_ACEOF
12180 /* end confdefs.h. */
12182 /* Override any GCC internal prototype to avoid an error.
12183 Use char because int might match the return type of a GCC
12184 builtin and then its argument prototype would still apply. */
12188 char XmuConvertStandardSelection ();
12192 return XmuConvertStandardSelection ();
12197 rm -f conftest.$ac_objext conftest$ac_exeext
12198 if { (ac_try="$ac_link"
12199 case "(($ac_try" in
12200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12201 *) ac_try_echo
=$ac_try;;
12203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12204 (eval "$ac_link") 2>conftest.er1
12206 grep -v '^ *+' conftest.er1
>conftest.err
12208 cat conftest.err
>&5
12209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12210 (exit $ac_status); } && {
12211 test -z "$ac_c_werror_flag" ||
12212 test ! -s conftest.err
12213 } && test -s conftest
$ac_exeext &&
12214 $as_test_x conftest
$ac_exeext; then
12215 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.
$ac_ext >&5
12220 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12223 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12224 conftest
$ac_exeext conftest.
$ac_ext
12225 LIBS
=$ac_check_lib_save_LIBS
12227 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12228 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12229 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12230 cat >>confdefs.h
<<_ACEOF
12231 #define HAVE_LIBXMU 1
12238 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12241 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12242 if test "${HAVE_X11}" = "yes"; then
12243 if test "${USE_X_TOOLKIT}" != "none"; then
12245 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12246 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12247 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12248 echo $ECHO_N "(cached) $ECHO_C" >&6
12250 ac_check_lib_save_LIBS
=$LIBS
12251 LIBS
="-lXext $LIBS"
12252 cat >conftest.
$ac_ext <<_ACEOF
12255 cat confdefs.h
>>conftest.
$ac_ext
12256 cat >>conftest.
$ac_ext <<_ACEOF
12257 /* end confdefs.h. */
12259 /* Override any GCC internal prototype to avoid an error.
12260 Use char because int might match the return type of a GCC
12261 builtin and then its argument prototype would still apply. */
12265 char XShapeQueryExtension ();
12269 return XShapeQueryExtension ();
12274 rm -f conftest.
$ac_objext conftest
$ac_exeext
12275 if { (ac_try
="$ac_link"
12276 case "(($ac_try" in
12277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12278 *) ac_try_echo=$ac_try;;
12280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12281 (eval "$ac_link") 2>conftest.er1
12283 grep -v '^ *+' conftest.er1 >conftest.err
12285 cat conftest.err >&5
12286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287 (exit $ac_status); } && {
12288 test -z "$ac_c_werror_flag" ||
12289 test ! -s conftest.err
12290 } && test -s conftest$ac_exeext &&
12291 $as_test_x conftest$ac_exeext; then
12292 ac_cv_lib_Xext_XShapeQueryExtension=yes
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12297 ac_cv_lib_Xext_XShapeQueryExtension=no
12300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12301 conftest$ac_exeext conftest.$ac_ext
12302 LIBS=$ac_check_lib_save_LIBS
12304 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12305 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12306 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12307 cat >>confdefs.h <<_ACEOF
12308 #define HAVE_LIBXEXT 1
12311 LIBS="-lXext $LIBS"
12318 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12319 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12320 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12321 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12322 echo $ECHO_N "(cached) $ECHO_C" >&6
12324 cat >conftest.$ac_ext <<_ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h. */
12334 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12337 Motif version prior to 2.1.
12343 rm -f conftest.$ac_objext
12344 if { (ac_try="$ac_compile"
12345 case "(($ac_try" in
12346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12347 *) ac_try_echo
=$ac_try;;
12349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12350 (eval "$ac_compile") 2>conftest.er1
12352 grep -v '^ *+' conftest.er1
>conftest.err
12354 cat conftest.err
>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); } && {
12357 test -z "$ac_c_werror_flag" ||
12358 test ! -s conftest.err
12359 } && test -s conftest.
$ac_objext; then
12360 emacs_cv_motif_version_2_1
=yes
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.
$ac_ext >&5
12365 emacs_cv_motif_version_2_1
=no
12368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12370 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12371 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12372 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12373 if test $emacs_cv_motif_version_2_1 = yes; then
12376 cat >>confdefs.h
<<\_ACEOF
12377 #define HAVE_MOTIF_2_1 1
12380 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12381 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12382 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 ac_check_lib_save_LIBS
=$LIBS
12387 cat >conftest.
$ac_ext <<_ACEOF
12390 cat confdefs.h
>>conftest.
$ac_ext
12391 cat >>conftest.
$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12394 /* Override any GCC internal prototype to avoid an error.
12395 Use char because int might match the return type of a GCC
12396 builtin and then its argument prototype would still apply. */
12400 char XpCreateContext ();
12404 return XpCreateContext ();
12409 rm -f conftest.
$ac_objext conftest
$ac_exeext
12410 if { (ac_try
="$ac_link"
12411 case "(($ac_try" in
12412 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12413 *) ac_try_echo=$ac_try;;
12415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12416 (eval "$ac_link") 2>conftest.er1
12418 grep -v '^ *+' conftest.er1 >conftest.err
12420 cat conftest.err >&5
12421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); } && {
12423 test -z "$ac_c_werror_flag" ||
12424 test ! -s conftest.err
12425 } && test -s conftest$ac_exeext &&
12426 $as_test_x conftest$ac_exeext; then
12427 ac_cv_lib_Xp_XpCreateContext=yes
12429 echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12432 ac_cv_lib_Xp_XpCreateContext=no
12435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12436 conftest$ac_exeext conftest.$ac_ext
12437 LIBS=$ac_check_lib_save_LIBS
12439 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12440 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12441 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12445 if test ${HAVE_LIBXP} = yes; then
12447 cat >>confdefs.h <<\_ACEOF
12448 #define HAVE_LIBXP 1
12453 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12454 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12455 if test "${emacs_cv_lesstif+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 # We put this in CFLAGS temporarily to precede other -I options
12459 # that might be in CFLAGS temporarily.
12460 # We put this in CPPFLAGS where it precedes the other -I options.
12461 OLD_CPPFLAGS=$CPPFLAGS
12463 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12464 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12465 cat >conftest.$ac_ext <<_ACEOF
12468 cat confdefs.h >>conftest.$ac_ext
12469 cat >>conftest.$ac_ext <<_ACEOF
12470 /* end confdefs.h. */
12471 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12480 rm -f conftest.$ac_objext
12481 if { (ac_try="$ac_compile"
12482 case "(($ac_try" in
12483 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12484 *) ac_try_echo
=$ac_try;;
12486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12487 (eval "$ac_compile") 2>conftest.er1
12489 grep -v '^ *+' conftest.er1
>conftest.err
12491 cat conftest.err
>&5
12492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493 (exit $ac_status); } && {
12494 test -z "$ac_c_werror_flag" ||
12495 test ! -s conftest.err
12496 } && test -s conftest.
$ac_objext; then
12497 emacs_cv_lesstif
=yes
12499 echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.
$ac_ext >&5
12502 emacs_cv_lesstif
=no
12505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12507 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12508 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12509 if test $emacs_cv_lesstif = yes; then
12510 # Make sure this -I option remains in CPPFLAGS after it is set
12511 # back to REAL_CPPFLAGS.
12512 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12513 # have those other -I options anyway. Ultimately, having this
12514 # directory ultimately in CPPFLAGS will be enough.
12515 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12516 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12519 CPPFLAGS
=$OLD_CPPFLAGS
12524 ### Is -lXaw3d available?
12526 if test "${HAVE_X11}" = "yes"; then
12527 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12528 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12529 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12530 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12531 echo $ECHO_N "(cached) $ECHO_C" >&6
12533 cat >conftest.
$ac_ext <<_ACEOF
12536 cat confdefs.h
>>conftest.
$ac_ext
12537 cat >>conftest.
$ac_ext <<_ACEOF
12538 /* end confdefs.h. */
12539 #include <X11/Xaw3d/Scrollbar.h>
12541 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12542 case "(($ac_try" in
12543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12549 grep -v '^ *+' conftest.er1 >conftest.err
12551 cat conftest.err >&5
12552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12553 (exit $ac_status); } >/dev/null && {
12554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12555 test ! -s conftest.err
12557 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12559 echo "$as_me: failed program was:" >&5
12560 sed 's/^/| /' conftest.$ac_ext >&5
12562 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12565 rm -f conftest.err conftest.$ac_ext
12567 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12568 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12569 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12570 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12571 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12572 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12573 echo $ECHO_N "(cached) $ECHO_C" >&6
12575 ac_check_lib_save_LIBS=$LIBS
12576 LIBS="-lXaw3d $LIBS"
12577 cat >conftest.$ac_ext <<_ACEOF
12580 cat confdefs.h >>conftest.$ac_ext
12581 cat >>conftest.$ac_ext <<_ACEOF
12582 /* end confdefs.h. */
12584 /* Override any GCC internal prototype to avoid an error.
12585 Use char because int might match the return type of a GCC
12586 builtin and then its argument prototype would still apply. */
12590 char XawScrollbarSetThumb ();
12594 return XawScrollbarSetThumb ();
12599 rm -f conftest.$ac_objext conftest$ac_exeext
12600 if { (ac_try="$ac_link"
12601 case "(($ac_try" in
12602 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12603 *) ac_try_echo
=$ac_try;;
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_link") 2>conftest.er1
12608 grep -v '^ *+' conftest.er1
>conftest.err
12610 cat conftest.err
>&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && {
12613 test -z "$ac_c_werror_flag" ||
12614 test ! -s conftest.err
12615 } && test -s conftest
$ac_exeext &&
12616 $as_test_x conftest
$ac_exeext; then
12617 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12619 echo "$as_me: failed program was:" >&5
12620 sed 's/^/| /' conftest.
$ac_ext >&5
12622 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12625 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12626 conftest
$ac_exeext conftest.
$ac_ext
12627 LIBS
=$ac_check_lib_save_LIBS
12629 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12630 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12631 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12638 if test "${HAVE_XAW3D}" = "yes"; then
12640 cat >>confdefs.h
<<\_ACEOF
12641 #define HAVE_XAW3D 1
12650 USE_TOOLKIT_SCROLL_BARS
=no
12651 if test "${with_toolkit_scroll_bars}" != "no"; then
12652 if test "${USE_X_TOOLKIT}" != "none"; then
12653 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12654 cat >>confdefs.h
<<\_ACEOF
12655 #define USE_TOOLKIT_SCROLL_BARS 1
12659 USE_TOOLKIT_SCROLL_BARS
=yes
12660 elif test "${HAVE_XAW3D}" = "yes"; then
12661 cat >>confdefs.h
<<\_ACEOF
12662 #define USE_TOOLKIT_SCROLL_BARS 1
12665 USE_TOOLKIT_SCROLL_BARS
=yes
12667 elif test "${HAVE_GTK}" = "yes"; then
12668 cat >>confdefs.h
<<\_ACEOF
12669 #define USE_TOOLKIT_SCROLL_BARS 1
12672 USE_TOOLKIT_SCROLL_BARS
=yes
12673 elif test "${HAVE_CARBON}" = "yes"; then
12674 cat >>confdefs.h
<<\_ACEOF
12675 #define USE_TOOLKIT_SCROLL_BARS 1
12678 USE_TOOLKIT_SCROLL_BARS
=yes
12682 cat >conftest.
$ac_ext <<_ACEOF
12685 cat confdefs.h
>>conftest.
$ac_ext
12686 cat >>conftest.
$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12689 #include <X11/Xlib.h>
12690 #include <X11/Xresource.h>
12699 rm -f conftest.
$ac_objext
12700 if { (ac_try
="$ac_compile"
12701 case "(($ac_try" in
12702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12703 *) ac_try_echo=$ac_try;;
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706 (eval "$ac_compile") 2>conftest.er1
12708 grep -v '^ *+' conftest.er1 >conftest.err
12710 cat conftest.err >&5
12711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712 (exit $ac_status); } && {
12713 test -z "$ac_c_werror_flag" ||
12714 test ! -s conftest.err
12715 } && test -s conftest.$ac_objext; then
12718 cat >>confdefs.h <<\_ACEOF
12723 echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12732 if test "${with_xim}" != "no"; then
12734 cat >>confdefs.h <<\_ACEOF
12741 if test "${HAVE_XIM}" != "no"; then
12742 late_CFLAGS=$CFLAGS
12743 if test "$GCC" = yes; then
12744 CFLAGS="$CFLAGS --pedantic-errors"
12746 cat >conftest.$ac_ext <<_ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h. */
12753 #include <X11/Xlib.h>
12754 #include <X11/Xresource.h>
12763 XPointer *client_data;
12765 /* If we're not using GCC, it's probably not XFree86, and this is
12766 probably right, but we can't use something like --pedantic-errors. */
12767 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12768 char*, XIMProc, XPointer*);
12770 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12776 rm -f conftest.$ac_objext
12777 if { (ac_try="$ac_compile"
12778 case "(($ac_try" in
12779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12780 *) ac_try_echo
=$ac_try;;
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_compile") 2>conftest.er1
12785 grep -v '^ *+' conftest.er1
>conftest.err
12787 cat conftest.err
>&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } && {
12790 test -z "$ac_c_werror_flag" ||
12791 test ! -s conftest.err
12792 } && test -s conftest.
$ac_objext; then
12793 emacs_cv_arg6_star
=yes
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.
$ac_ext >&5
12801 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12803 if test "$emacs_cv_arg6_star" = yes; then
12804 cat >>confdefs.h
<<\_ACEOF
12805 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12809 cat >>confdefs.h
<<\_ACEOF
12810 #define XRegisterIMInstantiateCallback_arg6 XPointer
12814 CFLAGS
=$late_CFLAGS
12817 ### Use -lXpm if available, unless `--with-xpm=no'.
12819 if test "${HAVE_X11}" = "yes"; then
12820 if test "${with_xpm}" != "no"; then
12821 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12822 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12823 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12824 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12825 echo $ECHO_N "(cached) $ECHO_C" >&6
12827 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12828 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12830 # Is the header compilable?
12831 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12832 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12833 cat >conftest.
$ac_ext <<_ACEOF
12836 cat confdefs.h
>>conftest.
$ac_ext
12837 cat >>conftest.
$ac_ext <<_ACEOF
12838 /* end confdefs.h. */
12839 $ac_includes_default
12840 #include <X11/xpm.h>
12842 rm -f conftest.
$ac_objext
12843 if { (ac_try
="$ac_compile"
12844 case "(($ac_try" in
12845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_compile") 2>conftest.er1
12851 grep -v '^ *+' conftest.er1 >conftest.err
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } && {
12856 test -z "$ac_c_werror_flag" ||
12857 test ! -s conftest.err
12858 } && test -s conftest.$ac_objext; then
12859 ac_header_compiler=yes
12861 echo "$as_me: failed program was:" >&5
12862 sed 's/^/| /' conftest.$ac_ext >&5
12864 ac_header_compiler=no
12867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12869 echo "${ECHO_T}$ac_header_compiler" >&6; }
12871 # Is the header present?
12872 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12873 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12874 cat >conftest.$ac_ext <<_ACEOF
12877 cat confdefs.h >>conftest.$ac_ext
12878 cat >>conftest.$ac_ext <<_ACEOF
12879 /* end confdefs.h. */
12880 #include <X11/xpm.h>
12882 if { (ac_try="$ac_cpp conftest.$ac_ext"
12883 case "(($ac_try" in
12884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12885 *) ac_try_echo
=$ac_try;;
12887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12890 grep -v '^ *+' conftest.er1
>conftest.err
12892 cat conftest.err
>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } >/dev
/null
&& {
12895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12896 test ! -s conftest.err
12898 ac_header_preproc
=yes
12900 echo "$as_me: failed program was:" >&5
12901 sed 's/^/| /' conftest.
$ac_ext >&5
12903 ac_header_preproc
=no
12906 rm -f conftest.err conftest.
$ac_ext
12907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12908 echo "${ECHO_T}$ac_header_preproc" >&6; }
12910 # So? What about this header?
12911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12913 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12914 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12915 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12916 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12917 ac_header_preproc
=yes
12920 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12921 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12922 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12923 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12924 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12925 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12926 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12927 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12928 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12929 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12931 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12935 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12936 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12937 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12940 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12942 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12943 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12946 if test $ac_cv_header_X11_xpm_h = yes; then
12947 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12948 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12949 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
12952 ac_check_lib_save_LIBS
=$LIBS
12953 LIBS
="-lXpm -lX11 $LIBS"
12954 cat >conftest.
$ac_ext <<_ACEOF
12957 cat confdefs.h
>>conftest.
$ac_ext
12958 cat >>conftest.
$ac_ext <<_ACEOF
12959 /* end confdefs.h. */
12961 /* Override any GCC internal prototype to avoid an error.
12962 Use char because int might match the return type of a GCC
12963 builtin and then its argument prototype would still apply. */
12967 char XpmReadFileToPixmap ();
12971 return XpmReadFileToPixmap ();
12976 rm -f conftest.
$ac_objext conftest
$ac_exeext
12977 if { (ac_try
="$ac_link"
12978 case "(($ac_try" in
12979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12980 *) ac_try_echo=$ac_try;;
12982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12983 (eval "$ac_link") 2>conftest.er1
12985 grep -v '^ *+' conftest.er1 >conftest.err
12987 cat conftest.err >&5
12988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12989 (exit $ac_status); } && {
12990 test -z "$ac_c_werror_flag" ||
12991 test ! -s conftest.err
12992 } && test -s conftest$ac_exeext &&
12993 $as_test_x conftest$ac_exeext; then
12994 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12996 echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12999 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13003 conftest$ac_exeext conftest.$ac_ext
13004 LIBS=$ac_check_lib_save_LIBS
13006 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13007 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13008 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13015 if test "${HAVE_XPM}" = "yes"; then
13016 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13017 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13018 cat >conftest.$ac_ext <<_ACEOF
13021 cat confdefs.h >>conftest.$ac_ext
13022 cat >>conftest.$ac_ext <<_ACEOF
13023 /* end confdefs.h. */
13024 #include "X11/xpm.h"
13025 #ifndef XpmReturnAllocPixels
13026 no_return_alloc_pixels
13030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13031 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13039 if test "${HAVE_XPM}" = "yes"; then
13040 { echo "$as_me:$LINENO: result: yes" >&5
13041 echo "${ECHO_T}yes" >&6; }
13043 { echo "$as_me:$LINENO: result: no" >&5
13044 echo "${ECHO_T}no" >&6; }
13049 if test "${HAVE_XPM}" = "yes"; then
13051 cat >>confdefs.h <<\_ACEOF
13058 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13060 if test "${HAVE_X11}" = "yes"; then
13061 if test "${with_jpeg}" != "no"; then
13062 if test "${ac_cv_header_jerror_h+set}" = set; then
13063 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13064 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13065 if test "${ac_cv_header_jerror_h+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13068 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13069 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13071 # Is the header compilable?
13072 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13073 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13074 cat >conftest.$ac_ext <<_ACEOF
13077 cat confdefs.h >>conftest.$ac_ext
13078 cat >>conftest.$ac_ext <<_ACEOF
13079 /* end confdefs.h. */
13080 $ac_includes_default
13081 #include <jerror.h>
13083 rm -f conftest.$ac_objext
13084 if { (ac_try="$ac_compile"
13085 case "(($ac_try" in
13086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13087 *) ac_try_echo=$ac_try;;
13089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13090 (eval "$ac_compile") 2>conftest.er1
13092 grep -v '^
*+' conftest.er1 >conftest.err
13094 cat conftest.err >&5
13095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13096 (exit $ac_status); } && {
13097 test -z "$ac_c_werror_flag" ||
13098 test ! -s conftest.err
13099 } && test -s conftest.$ac_objext; then
13100 ac_header_compiler=yes
13102 echo "$as_me: failed program was:" >&5
13103 sed 's
/^
/|
/' conftest.$ac_ext >&5
13105 ac_header_compiler=no
13108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13110 echo "${ECHO_T}$ac_header_compiler" >&6; }
13112 # Is the header present?
13113 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13114 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13115 cat >conftest.$ac_ext <<_ACEOF
13118 cat confdefs.h >>conftest.$ac_ext
13119 cat >>conftest.$ac_ext <<_ACEOF
13120 /* end confdefs.h. */
13121 #include <jerror.h>
13123 if { (ac_try="$ac_cpp conftest.$ac_ext"
13124 case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13131 grep -v '^
*+' conftest.er1 >conftest.err
13133 cat conftest.err >&5
13134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135 (exit $ac_status); } >/dev/null && {
13136 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13137 test ! -s conftest.err
13139 ac_header_preproc=yes
13141 echo "$as_me: failed program was:" >&5
13142 sed 's
/^
/|
/' conftest.$ac_ext >&5
13144 ac_header_preproc=no
13147 rm -f conftest.err conftest.$ac_ext
13148 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13149 echo "${ECHO_T}$ac_header_preproc" >&6; }
13151 # So? What about this header?
13152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13154 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13155 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13156 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13157 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13158 ac_header_preproc=yes
13161 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13162 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13163 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13164 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13165 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13166 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13168 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13170 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13172 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13176 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13177 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13178 if test "${ac_cv_header_jerror_h+set}" = set; then
13179 echo $ECHO_N "(cached) $ECHO_C" >&6
13181 ac_cv_header_jerror_h=$ac_header_preproc
13183 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13184 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13187 if test $ac_cv_header_jerror_h = yes; then
13188 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13189 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13190 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 ac_check_lib_save_LIBS=$LIBS
13194 LIBS="-ljpeg $LIBS"
13195 cat >conftest.$ac_ext <<_ACEOF
13198 cat confdefs.h >>conftest.$ac_ext
13199 cat >>conftest.$ac_ext <<_ACEOF
13200 /* end confdefs.h. */
13202 /* Override any GCC internal prototype to avoid an error.
13203 Use char because int might match the return type of a GCC
13204 builtin and then its argument prototype would still apply. */
13208 char jpeg_destroy_compress ();
13212 return jpeg_destroy_compress ();
13217 rm -f conftest.$ac_objext conftest$ac_exeext
13218 if { (ac_try="$ac_link"
13219 case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_link") 2>conftest.er1
13226 grep -v '^
*+' conftest.er1 >conftest.err
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } && {
13231 test -z "$ac_c_werror_flag" ||
13232 test ! -s conftest.err
13233 } && test -s conftest$ac_exeext &&
13234 $as_test_x conftest$ac_exeext; then
13235 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13237 echo "$as_me: failed program was:" >&5
13238 sed 's
/^
/|
/' conftest.$ac_ext >&5
13240 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13243 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13244 conftest$ac_exeext conftest.$ac_ext
13245 LIBS=$ac_check_lib_save_LIBS
13247 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13248 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13249 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13259 if test "${HAVE_JPEG}" = "yes"; then
13260 cat >>confdefs.h <<\_ACEOF
13261 #define HAVE_JPEG 1
13264 cat >conftest.$ac_ext <<_ACEOF
13267 cat confdefs.h >>conftest.$ac_ext
13268 cat >>conftest.$ac_ext <<_ACEOF
13269 /* end confdefs.h. */
13270 #include <jpeglib.h>
13271 version=JPEG_LIB_VERSION
13274 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13275 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13276 cat >>confdefs.h <<\_ACEOF
13277 #define HAVE_JPEG 1
13281 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13282 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13290 ### Use -lpng if available, unless `--with-png=no'.
13292 if test "${HAVE_X11}" = "yes"; then
13293 if test "${with_png}" != "no"; then
13294 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13295 # in /usr/include/libpng.
13298 for ac_header
in png.h libpng
/png.h
13300 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13301 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13304 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 ac_res
=`eval echo '${'$as_ac_Header'}'`
13308 { echo "$as_me:$LINENO: result: $ac_res" >&5
13309 echo "${ECHO_T}$ac_res" >&6; }
13311 # Is the header compilable?
13312 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13313 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13314 cat >conftest.
$ac_ext <<_ACEOF
13317 cat confdefs.h
>>conftest.
$ac_ext
13318 cat >>conftest.
$ac_ext <<_ACEOF
13319 /* end confdefs.h. */
13320 $ac_includes_default
13321 #include <$ac_header>
13323 rm -f conftest.
$ac_objext
13324 if { (ac_try
="$ac_compile"
13325 case "(($ac_try" in
13326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13327 *) ac_try_echo=$ac_try;;
13329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13330 (eval "$ac_compile") 2>conftest.er1
13332 grep -v '^ *+' conftest.er1 >conftest.err
13334 cat conftest.err >&5
13335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336 (exit $ac_status); } && {
13337 test -z "$ac_c_werror_flag" ||
13338 test ! -s conftest.err
13339 } && test -s conftest.$ac_objext; then
13340 ac_header_compiler=yes
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13345 ac_header_compiler=no
13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13350 echo "${ECHO_T}$ac_header_compiler" >&6; }
13352 # Is the header present?
13353 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13354 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13355 cat >conftest.$ac_ext <<_ACEOF
13358 cat confdefs.h >>conftest.$ac_ext
13359 cat >>conftest.$ac_ext <<_ACEOF
13360 /* end confdefs.h. */
13361 #include <$ac_header>
13363 if { (ac_try="$ac_cpp conftest.$ac_ext"
13364 case "(($ac_try" in
13365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13366 *) ac_try_echo
=$ac_try;;
13368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13371 grep -v '^ *+' conftest.er1
>conftest.err
13373 cat conftest.err
>&5
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); } >/dev
/null
&& {
13376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13377 test ! -s conftest.err
13379 ac_header_preproc
=yes
13381 echo "$as_me: failed program was:" >&5
13382 sed 's/^/| /' conftest.
$ac_ext >&5
13384 ac_header_preproc
=no
13387 rm -f conftest.err conftest.
$ac_ext
13388 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13389 echo "${ECHO_T}$ac_header_preproc" >&6; }
13391 # So? What about this header?
13392 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13394 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13395 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13396 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13397 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13398 ac_header_preproc
=yes
13401 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13402 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13403 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13404 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13405 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13406 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13407 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13408 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13409 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13410 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13411 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13412 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13416 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13417 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13418 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13421 eval "$as_ac_Header=\$ac_header_preproc"
13423 ac_res
=`eval echo '${'$as_ac_Header'}'`
13424 { echo "$as_me:$LINENO: result: $ac_res" >&5
13425 echo "${ECHO_T}$ac_res" >&6; }
13428 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13429 cat >>confdefs.h
<<_ACEOF
13430 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13437 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13438 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13439 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13440 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13441 echo $ECHO_N "(cached) $ECHO_C" >&6
13443 ac_check_lib_save_LIBS
=$LIBS
13444 LIBS
="-lpng -lz -lm $LIBS"
13445 cat >conftest.
$ac_ext <<_ACEOF
13448 cat confdefs.h
>>conftest.
$ac_ext
13449 cat >>conftest.
$ac_ext <<_ACEOF
13450 /* end confdefs.h. */
13452 /* Override any GCC internal prototype to avoid an error.
13453 Use char because int might match the return type of a GCC
13454 builtin and then its argument prototype would still apply. */
13458 char png_get_channels ();
13462 return png_get_channels ();
13467 rm -f conftest.
$ac_objext conftest
$ac_exeext
13468 if { (ac_try
="$ac_link"
13469 case "(($ac_try" in
13470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13474 (eval "$ac_link") 2>conftest.er1
13476 grep -v '^ *+' conftest.er1 >conftest.err
13478 cat conftest.err >&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } && {
13481 test -z "$ac_c_werror_flag" ||
13482 test ! -s conftest.err
13483 } && test -s conftest$ac_exeext &&
13484 $as_test_x conftest$ac_exeext; then
13485 ac_cv_lib_png_png_get_channels=yes
13487 echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13490 ac_cv_lib_png_png_get_channels=no
13493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13494 conftest$ac_exeext conftest.$ac_ext
13495 LIBS=$ac_check_lib_save_LIBS
13497 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13498 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13499 if test $ac_cv_lib_png_png_get_channels = yes; then
13506 if test "${HAVE_PNG}" = "yes"; then
13508 cat >>confdefs.h <<\_ACEOF
13515 ### Use -ltiff if available, unless `--with-tiff=no
'.
13517 if test "${HAVE_X11}" = "yes"; then
13518 if test "${with_tiff}" != "no"; then
13519 if test "${ac_cv_header_tiffio_h+set}" = set; then
13520 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13521 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13522 if test "${ac_cv_header_tiffio_h+set}" = set; then
13523 echo $ECHO_N "(cached) $ECHO_C" >&6
13525 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13526 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13528 # Is the header compilable?
13529 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13530 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13531 cat >conftest.$ac_ext <<_ACEOF
13534 cat confdefs.h >>conftest.$ac_ext
13535 cat >>conftest.$ac_ext <<_ACEOF
13536 /* end confdefs.h. */
13537 $ac_includes_default
13538 #include <tiffio.h>
13540 rm -f conftest.$ac_objext
13541 if { (ac_try="$ac_compile"
13542 case "(($ac_try" in
13543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13544 *) ac_try_echo=$ac_try;;
13546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13547 (eval "$ac_compile") 2>conftest.er1
13549 grep -v '^
*+' conftest.er1 >conftest.err
13551 cat conftest.err >&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); } && {
13554 test -z "$ac_c_werror_flag" ||
13555 test ! -s conftest.err
13556 } && test -s conftest.$ac_objext; then
13557 ac_header_compiler=yes
13559 echo "$as_me: failed program was:" >&5
13560 sed 's
/^
/|
/' conftest.$ac_ext >&5
13562 ac_header_compiler=no
13565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13566 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13567 echo "${ECHO_T}$ac_header_compiler" >&6; }
13569 # Is the header present?
13570 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13571 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13572 cat >conftest.$ac_ext <<_ACEOF
13575 cat confdefs.h >>conftest.$ac_ext
13576 cat >>conftest.$ac_ext <<_ACEOF
13577 /* end confdefs.h. */
13578 #include <tiffio.h>
13580 if { (ac_try="$ac_cpp conftest.$ac_ext"
13581 case "(($ac_try" in
13582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583 *) ac_try_echo=$ac_try;;
13585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13588 grep -v '^
*+' conftest.er1 >conftest.err
13590 cat conftest.err >&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } >/dev/null && {
13593 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13594 test ! -s conftest.err
13596 ac_header_preproc=yes
13598 echo "$as_me: failed program was:" >&5
13599 sed 's
/^
/|
/' conftest.$ac_ext >&5
13601 ac_header_preproc=no
13604 rm -f conftest.err conftest.$ac_ext
13605 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13606 echo "${ECHO_T}$ac_header_preproc" >&6; }
13608 # So? What about this header?
13609 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13611 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13612 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13613 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13614 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13615 ac_header_preproc=yes
13618 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13619 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13620 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13621 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13622 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13623 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13624 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13625 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13626 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13627 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13628 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13629 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13633 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13634 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13635 if test "${ac_cv_header_tiffio_h+set}" = set; then
13636 echo $ECHO_N "(cached) $ECHO_C" >&6
13638 ac_cv_header_tiffio_h=$ac_header_preproc
13640 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13641 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13644 if test $ac_cv_header_tiffio_h = yes; then
13646 # At least one tiff package requires the jpeg library.
13647 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13648 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13649 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13650 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13651 echo $ECHO_N "(cached) $ECHO_C" >&6
13653 ac_check_lib_save_LIBS=$LIBS
13654 LIBS="-ltiff $tifflibs $LIBS"
13655 cat >conftest.$ac_ext <<_ACEOF
13658 cat confdefs.h >>conftest.$ac_ext
13659 cat >>conftest.$ac_ext <<_ACEOF
13660 /* end confdefs.h. */
13662 /* Override any GCC internal prototype to avoid an error.
13663 Use char because int might match the return type of a GCC
13664 builtin and then its argument prototype would still apply. */
13668 char TIFFGetVersion ();
13672 return TIFFGetVersion ();
13677 rm -f conftest.$ac_objext conftest$ac_exeext
13678 if { (ac_try="$ac_link"
13679 case "(($ac_try" in
13680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681 *) ac_try_echo=$ac_try;;
13683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13684 (eval "$ac_link") 2>conftest.er1
13686 grep -v '^
*+' conftest.er1 >conftest.err
13688 cat conftest.err >&5
13689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13690 (exit $ac_status); } && {
13691 test -z "$ac_c_werror_flag" ||
13692 test ! -s conftest.err
13693 } && test -s conftest$ac_exeext &&
13694 $as_test_x conftest$ac_exeext; then
13695 ac_cv_lib_tiff_TIFFGetVersion=yes
13697 echo "$as_me: failed program was:" >&5
13698 sed 's
/^
/|
/' conftest.$ac_ext >&5
13700 ac_cv_lib_tiff_TIFFGetVersion=no
13703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13704 conftest$ac_exeext conftest.$ac_ext
13705 LIBS=$ac_check_lib_save_LIBS
13707 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13708 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13709 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13718 if test "${HAVE_TIFF}" = "yes"; then
13720 cat >>confdefs.h <<\_ACEOF
13721 #define HAVE_TIFF 1
13727 ### Use -lgif if available, unless `--with-gif=no'.
13729 if test "${HAVE_X11}" = "yes"; then
13730 if test "${with_gif}" != "no"; then
13731 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13732 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13733 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13734 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13735 echo $ECHO_N "(cached) $ECHO_C" >&6
13737 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13738 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13740 # Is the header compilable?
13741 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13742 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13743 cat >conftest.
$ac_ext <<_ACEOF
13746 cat confdefs.h
>>conftest.
$ac_ext
13747 cat >>conftest.
$ac_ext <<_ACEOF
13748 /* end confdefs.h. */
13749 $ac_includes_default
13750 #include <gif_lib.h>
13752 rm -f conftest.
$ac_objext
13753 if { (ac_try
="$ac_compile"
13754 case "(($ac_try" in
13755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13756 *) ac_try_echo=$ac_try;;
13758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13759 (eval "$ac_compile") 2>conftest.er1
13761 grep -v '^ *+' conftest.er1 >conftest.err
13763 cat conftest.err >&5
13764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13765 (exit $ac_status); } && {
13766 test -z "$ac_c_werror_flag" ||
13767 test ! -s conftest.err
13768 } && test -s conftest.$ac_objext; then
13769 ac_header_compiler=yes
13771 echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13774 ac_header_compiler=no
13777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13778 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13779 echo "${ECHO_T}$ac_header_compiler" >&6; }
13781 # Is the header present?
13782 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13783 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13784 cat >conftest.$ac_ext <<_ACEOF
13787 cat confdefs.h >>conftest.$ac_ext
13788 cat >>conftest.$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13790 #include <gif_lib.h>
13792 if { (ac_try="$ac_cpp conftest.$ac_ext"
13793 case "(($ac_try" in
13794 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13795 *) ac_try_echo
=$ac_try;;
13797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13800 grep -v '^ *+' conftest.er1
>conftest.err
13802 cat conftest.err
>&5
13803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804 (exit $ac_status); } >/dev
/null
&& {
13805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13806 test ! -s conftest.err
13808 ac_header_preproc
=yes
13810 echo "$as_me: failed program was:" >&5
13811 sed 's/^/| /' conftest.
$ac_ext >&5
13813 ac_header_preproc
=no
13816 rm -f conftest.err conftest.
$ac_ext
13817 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13818 echo "${ECHO_T}$ac_header_preproc" >&6; }
13820 # So? What about this header?
13821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13823 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13824 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13825 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13826 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13827 ac_header_preproc
=yes
13830 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13831 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13832 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13833 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13835 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13836 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13837 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13838 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13839 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13840 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13841 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13845 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13846 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13847 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13848 echo $ECHO_N "(cached) $ECHO_C" >&6
13850 ac_cv_header_gif_lib_h
=$ac_header_preproc
13852 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13853 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13856 if test $ac_cv_header_gif_lib_h = yes; then
13857 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13858 # Earlier versions can crash Emacs.
13859 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13860 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13861 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13864 ac_check_lib_save_LIBS
=$LIBS
13865 LIBS
="-lungif $LIBS"
13866 cat >conftest.
$ac_ext <<_ACEOF
13869 cat confdefs.h
>>conftest.
$ac_ext
13870 cat >>conftest.
$ac_ext <<_ACEOF
13871 /* end confdefs.h. */
13873 /* Override any GCC internal prototype to avoid an error.
13874 Use char because int might match the return type of a GCC
13875 builtin and then its argument prototype would still apply. */
13879 char EGifPutExtensionLast ();
13883 return EGifPutExtensionLast ();
13888 rm -f conftest.
$ac_objext conftest
$ac_exeext
13889 if { (ac_try
="$ac_link"
13890 case "(($ac_try" in
13891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13892 *) ac_try_echo=$ac_try;;
13894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895 (eval "$ac_link") 2>conftest.er1
13897 grep -v '^ *+' conftest.er1 >conftest.err
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } && {
13902 test -z "$ac_c_werror_flag" ||
13903 test ! -s conftest.err
13904 } && test -s conftest$ac_exeext &&
13905 $as_test_x conftest$ac_exeext; then
13906 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13908 echo "$as_me: failed program was:" >&5
13909 sed 's/^/| /' conftest.$ac_ext >&5
13911 ac_cv_lib_ungif_EGifPutExtensionLast=no
13914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13915 conftest$ac_exeext conftest.$ac_ext
13916 LIBS=$ac_check_lib_save_LIBS
13918 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13919 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13920 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13929 if test "${HAVE_GIF}" = "yes"; then
13931 cat >>confdefs.h <<\_ACEOF
13938 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13939 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13940 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13941 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13942 echo $ECHO_N "(cached) $ECHO_C" >&6
13944 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13945 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13947 # Is the header compilable?
13948 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13949 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13950 cat >conftest.$ac_ext <<_ACEOF
13953 cat confdefs.h >>conftest.$ac_ext
13954 cat >>conftest.$ac_ext <<_ACEOF
13955 /* end confdefs.h. */
13956 $ac_includes_default
13957 #include <malloc/malloc.h>
13959 rm -f conftest.$ac_objext
13960 if { (ac_try="$ac_compile"
13961 case "(($ac_try" in
13962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13963 *) ac_try_echo
=$ac_try;;
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_compile") 2>conftest.er1
13968 grep -v '^ *+' conftest.er1
>conftest.err
13970 cat conftest.err
>&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } && {
13973 test -z "$ac_c_werror_flag" ||
13974 test ! -s conftest.err
13975 } && test -s conftest.
$ac_objext; then
13976 ac_header_compiler
=yes
13978 echo "$as_me: failed program was:" >&5
13979 sed 's/^/| /' conftest.
$ac_ext >&5
13981 ac_header_compiler
=no
13984 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13986 echo "${ECHO_T}$ac_header_compiler" >&6; }
13988 # Is the header present?
13989 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13990 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13991 cat >conftest.
$ac_ext <<_ACEOF
13994 cat confdefs.h
>>conftest.
$ac_ext
13995 cat >>conftest.
$ac_ext <<_ACEOF
13996 /* end confdefs.h. */
13997 #include <malloc/malloc.h>
13999 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14000 case "(($ac_try" in
14001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14002 *) ac_try_echo=$ac_try;;
14004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14007 grep -v '^ *+' conftest.er1 >conftest.err
14009 cat conftest.err >&5
14010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14011 (exit $ac_status); } >/dev/null && {
14012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14013 test ! -s conftest.err
14015 ac_header_preproc=yes
14017 echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.$ac_ext >&5
14020 ac_header_preproc=no
14023 rm -f conftest.err conftest.$ac_ext
14024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14025 echo "${ECHO_T}$ac_header_preproc" >&6; }
14027 # So? What about this header?
14028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14030 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14031 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14033 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14034 ac_header_preproc=yes
14037 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14038 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14040 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14041 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14042 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14043 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14044 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14046 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14047 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14048 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14052 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14053 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14054 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14057 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14059 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14060 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14063 if test $ac_cv_header_malloc_malloc_h = yes; then
14065 cat >>confdefs.h <<\_ACEOF
14066 #define HAVE_MALLOC_MALLOC_H 1
14073 ### Use Mac OS X Carbon API to implement GUI.
14074 if test "${HAVE_CARBON}" = "yes"; then
14076 cat >>confdefs.h <<\_ACEOF
14077 #define HAVE_CARBON 1
14080 ## Specify the install directory
14082 if test "${carbon_appdir_x}" != ""; then
14083 case ${carbon_appdir_x} in
14084 y | ye | yes) carbon_appdir=/Applications ;;
14085 * ) carbon_appdir=${carbon_appdir_x} ;;
14088 # We also have mouse menus.
14092 ### Use session management (-lSM -lICE) if available
14094 if test "${HAVE_X11}" = "yes"; then
14095 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14096 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14097 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14098 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14099 echo $ECHO_N "(cached) $ECHO_C" >&6
14101 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14102 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14104 # Is the header compilable?
14105 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14106 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14107 cat >conftest.$ac_ext <<_ACEOF
14110 cat confdefs.h >>conftest.$ac_ext
14111 cat >>conftest.$ac_ext <<_ACEOF
14112 /* end confdefs.h. */
14113 $ac_includes_default
14114 #include <X11/SM/SMlib.h>
14116 rm -f conftest.$ac_objext
14117 if { (ac_try="$ac_compile"
14118 case "(($ac_try" in
14119 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14120 *) ac_try_echo
=$ac_try;;
14122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14123 (eval "$ac_compile") 2>conftest.er1
14125 grep -v '^ *+' conftest.er1
>conftest.err
14127 cat conftest.err
>&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); } && {
14130 test -z "$ac_c_werror_flag" ||
14131 test ! -s conftest.err
14132 } && test -s conftest.
$ac_objext; then
14133 ac_header_compiler
=yes
14135 echo "$as_me: failed program was:" >&5
14136 sed 's/^/| /' conftest.
$ac_ext >&5
14138 ac_header_compiler
=no
14141 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14143 echo "${ECHO_T}$ac_header_compiler" >&6; }
14145 # Is the header present?
14146 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14147 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14148 cat >conftest.
$ac_ext <<_ACEOF
14151 cat confdefs.h
>>conftest.
$ac_ext
14152 cat >>conftest.
$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14154 #include <X11/SM/SMlib.h>
14156 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14157 case "(($ac_try" in
14158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14159 *) ac_try_echo=$ac_try;;
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14164 grep -v '^ *+' conftest.er1 >conftest.err
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } >/dev/null && {
14169 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14170 test ! -s conftest.err
14172 ac_header_preproc=yes
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14177 ac_header_preproc=no
14180 rm -f conftest.err conftest.$ac_ext
14181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14182 echo "${ECHO_T}$ac_header_preproc" >&6; }
14184 # So? What about this header?
14185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14187 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14188 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14189 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14190 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14191 ac_header_preproc=yes
14194 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14195 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14196 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14197 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14198 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14199 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14200 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14201 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14202 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14203 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14204 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14205 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14209 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14210 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14211 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14216 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14217 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14220 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14221 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14222 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14223 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14226 ac_check_lib_save_LIBS=$LIBS
14227 LIBS="-lSM -lICE $LIBS"
14228 cat >conftest.$ac_ext <<_ACEOF
14231 cat confdefs.h >>conftest.$ac_ext
14232 cat >>conftest.$ac_ext <<_ACEOF
14233 /* end confdefs.h. */
14235 /* Override any GCC internal prototype to avoid an error.
14236 Use char because int might match the return type of a GCC
14237 builtin and then its argument prototype would still apply. */
14241 char SmcOpenConnection ();
14245 return SmcOpenConnection ();
14250 rm -f conftest.$ac_objext conftest$ac_exeext
14251 if { (ac_try="$ac_link"
14252 case "(($ac_try" in
14253 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14254 *) ac_try_echo
=$ac_try;;
14256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14257 (eval "$ac_link") 2>conftest.er1
14259 grep -v '^ *+' conftest.er1
>conftest.err
14261 cat conftest.err
>&5
14262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14263 (exit $ac_status); } && {
14264 test -z "$ac_c_werror_flag" ||
14265 test ! -s conftest.err
14266 } && test -s conftest
$ac_exeext &&
14267 $as_test_x conftest
$ac_exeext; then
14268 ac_cv_lib_SM_SmcOpenConnection
=yes
14270 echo "$as_me: failed program was:" >&5
14271 sed 's/^/| /' conftest.
$ac_ext >&5
14273 ac_cv_lib_SM_SmcOpenConnection
=no
14276 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14277 conftest
$ac_exeext conftest.
$ac_ext
14278 LIBS
=$ac_check_lib_save_LIBS
14280 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14281 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14282 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14290 if test "${HAVE_X_SM}" = "yes"; then
14292 cat >>confdefs.h
<<\_ACEOF
14293 #define HAVE_X_SM 1
14298 *) LIBS
="-lSM -lICE $LIBS" ;;
14303 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14304 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14305 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14306 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14307 echo $ECHO_N "(cached) $ECHO_C" >&6
14309 cat >conftest.
$ac_ext <<_ACEOF
14312 cat confdefs.h
>>conftest.
$ac_ext
14313 cat >>conftest.
$ac_ext <<_ACEOF
14314 /* end confdefs.h. */
14324 rm -f conftest.
$ac_objext conftest
$ac_exeext
14325 if { (ac_try
="$ac_link"
14326 case "(($ac_try" in
14327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14328 *) ac_try_echo=$ac_try;;
14330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14331 (eval "$ac_link") 2>conftest.er1
14333 grep -v '^ *+' conftest.er1 >conftest.err
14335 cat conftest.err >&5
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); } && {
14338 test -z "$ac_c_werror_flag" ||
14339 test ! -s conftest.err
14340 } && test -s conftest$ac_exeext &&
14341 $as_test_x conftest$ac_exeext; then
14342 emacs_cv_netdb_declares_h_errno=yes
14344 echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14347 emacs_cv_netdb_declares_h_errno=no
14350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14351 conftest$ac_exeext conftest.$ac_ext
14353 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14354 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14355 if test $emacs_cv_netdb_declares_h_errno = yes; then
14357 cat >>confdefs.h <<\_ACEOF
14358 #define HAVE_H_ERRNO 1
14363 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14364 # for constant arguments. Useless!
14365 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14366 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14367 if test "${ac_cv_working_alloca_h+set}" = set; then
14368 echo $ECHO_N "(cached) $ECHO_C" >&6
14370 cat >conftest.$ac_ext <<_ACEOF
14373 cat confdefs.h >>conftest.$ac_ext
14374 cat >>conftest.$ac_ext <<_ACEOF
14375 /* end confdefs.h. */
14376 #include <alloca.h>
14380 char *p = (char *) alloca (2 * sizeof (int));
14386 rm -f conftest.$ac_objext conftest$ac_exeext
14387 if { (ac_try="$ac_link"
14388 case "(($ac_try" in
14389 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14390 *) ac_try_echo
=$ac_try;;
14392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14393 (eval "$ac_link") 2>conftest.er1
14395 grep -v '^ *+' conftest.er1
>conftest.err
14397 cat conftest.err
>&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); } && {
14400 test -z "$ac_c_werror_flag" ||
14401 test ! -s conftest.err
14402 } && test -s conftest
$ac_exeext &&
14403 $as_test_x conftest
$ac_exeext; then
14404 ac_cv_working_alloca_h
=yes
14406 echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.
$ac_ext >&5
14409 ac_cv_working_alloca_h
=no
14412 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14413 conftest
$ac_exeext conftest.
$ac_ext
14415 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14416 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14417 if test $ac_cv_working_alloca_h = yes; then
14419 cat >>confdefs.h
<<\_ACEOF
14420 #define HAVE_ALLOCA_H 1
14425 { echo "$as_me:$LINENO: checking for alloca" >&5
14426 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14427 if test "${ac_cv_func_alloca_works+set}" = set; then
14428 echo $ECHO_N "(cached) $ECHO_C" >&6
14430 cat >conftest.
$ac_ext <<_ACEOF
14433 cat confdefs.h
>>conftest.
$ac_ext
14434 cat >>conftest.
$ac_ext <<_ACEOF
14435 /* end confdefs.h. */
14437 # define alloca __builtin_alloca
14440 # include <malloc.h>
14441 # define alloca _alloca
14443 # ifdef HAVE_ALLOCA_H
14444 # include <alloca.h>
14449 # ifndef alloca /* predefined by HP cc +Olibcalls */
14460 char *p = (char *) alloca (1);
14466 rm -f conftest.
$ac_objext conftest
$ac_exeext
14467 if { (ac_try
="$ac_link"
14468 case "(($ac_try" in
14469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14470 *) ac_try_echo=$ac_try;;
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473 (eval "$ac_link") 2>conftest.er1
14475 grep -v '^ *+' conftest.er1 >conftest.err
14477 cat conftest.err >&5
14478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14479 (exit $ac_status); } && {
14480 test -z "$ac_c_werror_flag" ||
14481 test ! -s conftest.err
14482 } && test -s conftest$ac_exeext &&
14483 $as_test_x conftest$ac_exeext; then
14484 ac_cv_func_alloca_works=yes
14486 echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.$ac_ext >&5
14489 ac_cv_func_alloca_works=no
14492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14493 conftest$ac_exeext conftest.$ac_ext
14495 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14496 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14498 if test $ac_cv_func_alloca_works = yes; then
14500 cat >>confdefs.h <<\_ACEOF
14501 #define HAVE_ALLOCA 1
14505 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14506 # that cause trouble. Some versions do not even contain alloca or
14507 # contain a buggy version. If you still want to use their alloca,
14508 # use ar to extract alloca.o from them instead of compiling alloca.c.
14510 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14512 cat >>confdefs.h <<\_ACEOF
14517 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14518 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14519 if test "${ac_cv_os_cray+set}" = set; then
14520 echo $ECHO_N "(cached
) $ECHO_C" >&6
14522 cat >conftest.$ac_ext <<_ACEOF
14525 cat confdefs.h >>conftest.$ac_ext
14526 cat >>conftest.$ac_ext <<_ACEOF
14527 /* end confdefs.h. */
14528 #if defined CRAY && ! defined CRAY2
14535 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14536 $EGREP "webecray
" >/dev/null 2>&1; then
14544 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14545 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14546 if test $ac_cv_os_cray = yes; then
14547 for ac_func in _getb67 GETB67 getb67; do
14548 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14549 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14550 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14551 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14552 echo $ECHO_N "(cached
) $ECHO_C" >&6
14554 cat >conftest.$ac_ext <<_ACEOF
14557 cat confdefs.h >>conftest.$ac_ext
14558 cat >>conftest.$ac_ext <<_ACEOF
14559 /* end confdefs.h. */
14560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14562 #define $ac_func innocuous_$ac_func
14564 /* System header to define __stub macros and hopefully few prototypes,
14565 which can conflict with char $ac_func (); below.
14566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14567 <limits.h> exists even on freestanding compilers. */
14570 # include <limits.h>
14572 # include <assert.h>
14577 /* Override any GCC internal prototype to avoid an error.
14578 Use char because int might match the return type of a GCC
14579 builtin and then its argument prototype would still apply. */
14584 /* The GNU C library defines this for functions which it implements
14585 to always fail with ENOSYS. Some functions are actually named
14586 something starting with __ and the normal name is an alias. */
14587 #if defined __stub_$ac_func || defined __stub___$ac_func
14594 return $ac_func ();
14599 rm -f conftest.$ac_objext conftest$ac_exeext
14600 if { (ac_try="$ac_link"
14601 case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_link") 2>conftest.er1
14608 grep -v '^ *+' conftest.er1 >conftest.err
14610 cat conftest.err >&5
14611 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14612 (exit $ac_status); } && {
14613 test -z "$ac_c_werror_flag" ||
14614 test ! -s conftest.err
14615 } && test -s conftest$ac_exeext &&
14616 $as_test_x conftest$ac_exeext; then
14617 eval "$as_ac_var=yes"
14619 echo "$as_me: failed program was
:" >&5
14620 sed 's/^/| /' conftest.$ac_ext >&5
14622 eval "$as_ac_var=no
"
14625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14626 conftest$ac_exeext conftest.$ac_ext
14628 ac_res=`eval echo '${'$as_ac_var'}'`
14629 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14630 echo "${ECHO_T}$ac_res" >&6; }
14631 if test `eval echo '${'$as_ac_var'}'` = yes; then
14633 cat >>confdefs.h <<_ACEOF
14634 #define CRAY_STACKSEG_END $ac_func
14643 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14644 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14645 if test "${ac_cv_c_stack_direction+set}" = set; then
14646 echo $ECHO_N "(cached
) $ECHO_C" >&6
14648 if test "$cross_compiling" = yes; then
14649 ac_cv_c_stack_direction=0
14651 cat >conftest.$ac_ext <<_ACEOF
14654 cat confdefs.h >>conftest.$ac_ext
14655 cat >>conftest.$ac_ext <<_ACEOF
14656 /* end confdefs.h. */
14657 $ac_includes_default
14659 find_stack_direction ()
14661 static char *addr = 0;
14666 return find_stack_direction ();
14669 return (&dummy > addr) ? 1 : -1;
14675 return find_stack_direction () < 0;
14678 rm -f conftest$ac_exeext
14679 if { (ac_try="$ac_link"
14680 case "(($ac_try" in
14681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14682 *) ac_try_echo=$ac_try;;
14684 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14685 (eval "$ac_link") 2>&5
14687 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14688 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14689 { (case "(($ac_try" in
14690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691 *) ac_try_echo=$ac_try;;
14693 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14694 (eval "$ac_try") 2>&5
14696 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14697 (exit $ac_status); }; }; then
14698 ac_cv_c_stack_direction=1
14700 echo "$as_me: program exited with status
$ac_status" >&5
14701 echo "$as_me: failed program was
:" >&5
14702 sed 's/^/| /' conftest.$ac_ext >&5
14704 ( exit $ac_status )
14705 ac_cv_c_stack_direction=-1
14707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14712 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14713 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14715 cat >>confdefs.h <<_ACEOF
14716 #define STACK_DIRECTION $ac_cv_c_stack_direction
14723 # fmod, logb, and frexp are found in -lm on most systems.
14724 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14726 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14727 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14728 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14729 echo $ECHO_N "(cached
) $ECHO_C" >&6
14731 ac_check_lib_save_LIBS=$LIBS
14733 cat >conftest.$ac_ext <<_ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14740 /* Override any GCC internal prototype to avoid an error.
14741 Use char because int might match the return type of a GCC
14742 builtin and then its argument prototype would still apply. */
14755 rm -f conftest.$ac_objext conftest$ac_exeext
14756 if { (ac_try="$ac_link"
14757 case "(($ac_try" in
14758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14761 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14762 (eval "$ac_link") 2>conftest.er1
14764 grep -v '^ *+' conftest.er1 >conftest.err
14766 cat conftest.err >&5
14767 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14768 (exit $ac_status); } && {
14769 test -z "$ac_c_werror_flag" ||
14770 test ! -s conftest.err
14771 } && test -s conftest$ac_exeext &&
14772 $as_test_x conftest$ac_exeext; then
14773 ac_cv_lib_m_sqrt=yes
14775 echo "$as_me: failed program was
:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14778 ac_cv_lib_m_sqrt=no
14781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14782 conftest$ac_exeext conftest.$ac_ext
14783 LIBS=$ac_check_lib_save_LIBS
14785 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
14786 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14787 if test $ac_cv_lib_m_sqrt = yes; then
14788 cat >>confdefs.h <<_ACEOF
14789 #define HAVE_LIBM 1
14797 # Check for mail-locking functions in a "mail" library. Probably this should
14798 # have the same check as for liblockfile below.
14800 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
14801 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
14802 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14803 echo $ECHO_N "(cached
) $ECHO_C" >&6
14805 ac_check_lib_save_LIBS=$LIBS
14806 LIBS="-lmail $LIBS"
14807 cat >conftest.$ac_ext <<_ACEOF
14810 cat confdefs.h >>conftest.$ac_ext
14811 cat >>conftest.$ac_ext <<_ACEOF
14812 /* end confdefs.h. */
14814 /* Override any GCC internal prototype to avoid an error.
14815 Use char because int might match the return type of a GCC
14816 builtin and then its argument prototype would still apply. */
14824 return maillock ();
14829 rm -f conftest.$ac_objext conftest$ac_exeext
14830 if { (ac_try="$ac_link"
14831 case "(($ac_try" in
14832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14833 *) ac_try_echo=$ac_try;;
14835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14836 (eval "$ac_link") 2>conftest.er1
14838 grep -v '^ *+' conftest.er1 >conftest.err
14840 cat conftest.err >&5
14841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14842 (exit $ac_status); } && {
14843 test -z "$ac_c_werror_flag" ||
14844 test ! -s conftest.err
14845 } && test -s conftest$ac_exeext &&
14846 $as_test_x conftest$ac_exeext; then
14847 ac_cv_lib_mail_maillock=yes
14849 echo "$as_me: failed program was
:" >&5
14850 sed 's/^/| /' conftest.$ac_ext >&5
14852 ac_cv_lib_mail_maillock=no
14855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14856 conftest$ac_exeext conftest.$ac_ext
14857 LIBS=$ac_check_lib_save_LIBS
14859 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
14860 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14861 if test $ac_cv_lib_mail_maillock = yes; then
14862 cat >>confdefs.h <<_ACEOF
14863 #define HAVE_LIBMAIL 1
14866 LIBS="-lmail $LIBS"
14871 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
14872 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
14873 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14874 echo $ECHO_N "(cached
) $ECHO_C" >&6
14876 ac_check_lib_save_LIBS=$LIBS
14877 LIBS="-llockfile $LIBS"
14878 cat >conftest.$ac_ext <<_ACEOF
14881 cat confdefs.h >>conftest.$ac_ext
14882 cat >>conftest.$ac_ext <<_ACEOF
14883 /* end confdefs.h. */
14885 /* Override any GCC internal prototype to avoid an error.
14886 Use char because int might match the return type of a GCC
14887 builtin and then its argument prototype would still apply. */
14895 return maillock ();
14900 rm -f conftest.$ac_objext conftest$ac_exeext
14901 if { (ac_try="$ac_link"
14902 case "(($ac_try" in
14903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14904 *) ac_try_echo=$ac_try;;
14906 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14907 (eval "$ac_link") 2>conftest.er1
14909 grep -v '^ *+' conftest.er1 >conftest.err
14911 cat conftest.err >&5
14912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14913 (exit $ac_status); } && {
14914 test -z "$ac_c_werror_flag" ||
14915 test ! -s conftest.err
14916 } && test -s conftest$ac_exeext &&
14917 $as_test_x conftest$ac_exeext; then
14918 ac_cv_lib_lockfile_maillock=yes
14920 echo "$as_me: failed program was
:" >&5
14921 sed 's/^/| /' conftest.$ac_ext >&5
14923 ac_cv_lib_lockfile_maillock=no
14926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14927 conftest$ac_exeext conftest.$ac_ext
14928 LIBS=$ac_check_lib_save_LIBS
14930 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
14931 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14932 if test $ac_cv_lib_lockfile_maillock = yes; then
14933 cat >>confdefs.h <<_ACEOF
14934 #define HAVE_LIBLOCKFILE 1
14937 LIBS="-llockfile $LIBS"
14941 # If we have the shared liblockfile, assume we must use it for mail
14942 # locking (e.g. Debian). If we couldn't link against liblockfile
14943 # (no liblockfile.a installed), ensure that we don't need to.
14944 if test "$ac_cv_lib_lockfile_maillock" = no; then
14945 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
14946 set dummy liblockfile.so; ac_word=$2
14947 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14948 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14949 if test "${ac_cv_prog_liblockfile+set}" = set; then
14950 echo $ECHO_N "(cached
) $ECHO_C" >&6
14952 if test -n "$liblockfile"; then
14953 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14956 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
14957 for as_dir in $as_dummy
14960 test -z "$as_dir" && as_dir=.
14961 for ac_exec_ext in '' $ac_executable_extensions; do
14962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14963 ac_cv_prog_liblockfile="yes"
14964 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14971 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
14974 liblockfile=$ac_cv_prog_liblockfile
14975 if test -n "$liblockfile"; then
14976 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
14977 echo "${ECHO_T}$liblockfile" >&6; }
14979 { echo "$as_me:$LINENO: result
: no
" >&5
14980 echo "${ECHO_T}no
" >&6; }
14984 if test $ac_cv_prog_liblockfile = yes; then
14985 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
14986 This probably means that movemail could lose mail.
14987 There may be a \`development' package to
install containing liblockfile.
" >&5
14988 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
14989 This probably means that movemail could lose mail.
14990 There may be a \`development' package to
install containing liblockfile.
" >&2;}
14991 { (exit 1); exit 1; }; }
14996 for ac_func in touchlock
14998 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14999 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15000 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15001 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15002 echo $ECHO_N "(cached
) $ECHO_C" >&6
15004 cat >conftest.$ac_ext <<_ACEOF
15007 cat confdefs.h >>conftest.$ac_ext
15008 cat >>conftest.$ac_ext <<_ACEOF
15009 /* end confdefs.h. */
15010 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15012 #define $ac_func innocuous_$ac_func
15014 /* System header to define __stub macros and hopefully few prototypes,
15015 which can conflict with char $ac_func (); below.
15016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15017 <limits.h> exists even on freestanding compilers. */
15020 # include <limits.h>
15022 # include <assert.h>
15027 /* Override any GCC internal prototype to avoid an error.
15028 Use char because int might match the return type of a GCC
15029 builtin and then its argument prototype would still apply. */
15034 /* The GNU C library defines this for functions which it implements
15035 to always fail with ENOSYS. Some functions are actually named
15036 something starting with __ and the normal name is an alias. */
15037 #if defined __stub_$ac_func || defined __stub___$ac_func
15044 return $ac_func ();
15049 rm -f conftest.$ac_objext conftest$ac_exeext
15050 if { (ac_try="$ac_link"
15051 case "(($ac_try" in
15052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15053 *) ac_try_echo=$ac_try;;
15055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15056 (eval "$ac_link") 2>conftest.er1
15058 grep -v '^ *+' conftest.er1 >conftest.err
15060 cat conftest.err >&5
15061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15062 (exit $ac_status); } && {
15063 test -z "$ac_c_werror_flag" ||
15064 test ! -s conftest.err
15065 } && test -s conftest$ac_exeext &&
15066 $as_test_x conftest$ac_exeext; then
15067 eval "$as_ac_var=yes"
15069 echo "$as_me: failed program was
:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15072 eval "$as_ac_var=no
"
15075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15076 conftest$ac_exeext conftest.$ac_ext
15078 ac_res=`eval echo '${'$as_ac_var'}'`
15079 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15080 echo "${ECHO_T}$ac_res" >&6; }
15081 if test `eval echo '${'$as_ac_var'}'` = yes; then
15082 cat >>confdefs.h <<_ACEOF
15083 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15090 for ac_header in maillock.h
15092 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15093 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15094 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15095 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15096 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15097 echo $ECHO_N "(cached
) $ECHO_C" >&6
15099 ac_res=`eval echo '${'$as_ac_Header'}'`
15100 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15101 echo "${ECHO_T}$ac_res" >&6; }
15103 # Is the header compilable?
15104 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15105 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15106 cat >conftest.$ac_ext <<_ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h. */
15112 $ac_includes_default
15113 #include <$ac_header>
15115 rm -f conftest.$ac_objext
15116 if { (ac_try="$ac_compile"
15117 case "(($ac_try" in
15118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15119 *) ac_try_echo=$ac_try;;
15121 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15122 (eval "$ac_compile") 2>conftest.er1
15124 grep -v '^ *+' conftest.er1 >conftest.err
15126 cat conftest.err >&5
15127 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15128 (exit $ac_status); } && {
15129 test -z "$ac_c_werror_flag" ||
15130 test ! -s conftest.err
15131 } && test -s conftest.$ac_objext; then
15132 ac_header_compiler=yes
15134 echo "$as_me: failed program was
:" >&5
15135 sed 's/^/| /' conftest.$ac_ext >&5
15137 ac_header_compiler=no
15140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15141 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15142 echo "${ECHO_T}$ac_header_compiler" >&6; }
15144 # Is the header present?
15145 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15146 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15147 cat >conftest.$ac_ext <<_ACEOF
15150 cat confdefs.h >>conftest.$ac_ext
15151 cat >>conftest.$ac_ext <<_ACEOF
15152 /* end confdefs.h. */
15153 #include <$ac_header>
15155 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15156 case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15160 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15163 grep -v '^ *+' conftest.er1 >conftest.err
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15167 (exit $ac_status); } >/dev/null && {
15168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15169 test ! -s conftest.err
15171 ac_header_preproc=yes
15173 echo "$as_me: failed program was
:" >&5
15174 sed 's/^/| /' conftest.$ac_ext >&5
15176 ac_header_preproc=no
15179 rm -f conftest.err conftest.$ac_ext
15180 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15181 echo "${ECHO_T}$ac_header_preproc" >&6; }
15183 # So? What about this header?
15184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15186 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15187 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15188 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15190 ac_header_preproc=yes
15193 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15194 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15195 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15196 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15197 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15198 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15199 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15200 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15201 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15203 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15204 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15208 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15209 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15210 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15211 echo $ECHO_N "(cached
) $ECHO_C" >&6
15213 eval "$as_ac_Header=\
$ac_header_preproc"
15215 ac_res=`eval echo '${'$as_ac_Header'}'`
15216 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15217 echo "${ECHO_T}$ac_res" >&6; }
15220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15221 cat >>confdefs.h <<_ACEOF
15222 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15299 for ac_func in gethostname getdomainname dup2 \
15300 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15301 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15302 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15303 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15304 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15305 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15306 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15307 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15309 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15310 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15311 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15312 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15313 echo $ECHO_N "(cached
) $ECHO_C" >&6
15315 cat >conftest.$ac_ext <<_ACEOF
15318 cat confdefs.h >>conftest.$ac_ext
15319 cat >>conftest.$ac_ext <<_ACEOF
15320 /* end confdefs.h. */
15321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15323 #define $ac_func innocuous_$ac_func
15325 /* System header to define __stub macros and hopefully few prototypes,
15326 which can conflict with char $ac_func (); below.
15327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15328 <limits.h> exists even on freestanding compilers. */
15331 # include <limits.h>
15333 # include <assert.h>
15338 /* Override any GCC internal prototype to avoid an error.
15339 Use char because int might match the return type of a GCC
15340 builtin and then its argument prototype would still apply. */
15345 /* The GNU C library defines this for functions which it implements
15346 to always fail with ENOSYS. Some functions are actually named
15347 something starting with __ and the normal name is an alias. */
15348 #if defined __stub_$ac_func || defined __stub___$ac_func
15355 return $ac_func ();
15360 rm -f conftest.$ac_objext conftest$ac_exeext
15361 if { (ac_try="$ac_link"
15362 case "(($ac_try" in
15363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364 *) ac_try_echo=$ac_try;;
15366 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15367 (eval "$ac_link") 2>conftest.er1
15369 grep -v '^ *+' conftest.er1 >conftest.err
15371 cat conftest.err >&5
15372 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15373 (exit $ac_status); } && {
15374 test -z "$ac_c_werror_flag" ||
15375 test ! -s conftest.err
15376 } && test -s conftest$ac_exeext &&
15377 $as_test_x conftest$ac_exeext; then
15378 eval "$as_ac_var=yes"
15380 echo "$as_me: failed program was
:" >&5
15381 sed 's/^/| /' conftest.$ac_ext >&5
15383 eval "$as_ac_var=no
"
15386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15387 conftest$ac_exeext conftest.$ac_ext
15389 ac_res=`eval echo '${'$as_ac_var'}'`
15390 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15391 echo "${ECHO_T}$ac_res" >&6; }
15392 if test `eval echo '${'$as_ac_var'}'` = yes; then
15393 cat >>confdefs.h <<_ACEOF
15394 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15402 for ac_header in sys/un.h
15404 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15405 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15406 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15407 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15408 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15409 echo $ECHO_N "(cached
) $ECHO_C" >&6
15411 ac_res=`eval echo '${'$as_ac_Header'}'`
15412 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15413 echo "${ECHO_T}$ac_res" >&6; }
15415 # Is the header compilable?
15416 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15417 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15418 cat >conftest.$ac_ext <<_ACEOF
15421 cat confdefs.h >>conftest.$ac_ext
15422 cat >>conftest.$ac_ext <<_ACEOF
15423 /* end confdefs.h. */
15424 $ac_includes_default
15425 #include <$ac_header>
15427 rm -f conftest.$ac_objext
15428 if { (ac_try="$ac_compile"
15429 case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15433 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_compile") 2>conftest.er1
15436 grep -v '^ *+' conftest.er1 >conftest.err
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15440 (exit $ac_status); } && {
15441 test -z "$ac_c_werror_flag" ||
15442 test ! -s conftest.err
15443 } && test -s conftest.$ac_objext; then
15444 ac_header_compiler=yes
15446 echo "$as_me: failed program was
:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 ac_header_compiler=no
15452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15453 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15454 echo "${ECHO_T}$ac_header_compiler" >&6; }
15456 # Is the header present?
15457 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15458 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15459 cat >conftest.$ac_ext <<_ACEOF
15462 cat confdefs.h >>conftest.$ac_ext
15463 cat >>conftest.$ac_ext <<_ACEOF
15464 /* end confdefs.h. */
15465 #include <$ac_header>
15467 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15468 case "(($ac_try" in
15469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15470 *) ac_try_echo=$ac_try;;
15472 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15473 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15475 grep -v '^ *+' conftest.er1 >conftest.err
15477 cat conftest.err >&5
15478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15479 (exit $ac_status); } >/dev/null && {
15480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15481 test ! -s conftest.err
15483 ac_header_preproc=yes
15485 echo "$as_me: failed program was
:" >&5
15486 sed 's/^/| /' conftest.$ac_ext >&5
15488 ac_header_preproc=no
15491 rm -f conftest.err conftest.$ac_ext
15492 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15493 echo "${ECHO_T}$ac_header_preproc" >&6; }
15495 # So? What about this header?
15496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15498 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15499 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15500 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15502 ac_header_preproc=yes
15505 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15506 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15507 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15508 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15509 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15510 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15511 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15512 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15513 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15515 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15516 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15520 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15521 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15522 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15523 echo $ECHO_N "(cached
) $ECHO_C" >&6
15525 eval "$as_ac_Header=\
$ac_header_preproc"
15527 ac_res=`eval echo '${'$as_ac_Header'}'`
15528 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15529 echo "${ECHO_T}$ac_res" >&6; }
15532 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15533 cat >>confdefs.h <<_ACEOF
15534 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15546 for ac_header in $ac_header_list
15548 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15549 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15550 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15551 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15552 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15553 echo $ECHO_N "(cached
) $ECHO_C" >&6
15555 ac_res=`eval echo '${'$as_ac_Header'}'`
15556 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15557 echo "${ECHO_T}$ac_res" >&6; }
15559 # Is the header compilable?
15560 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15561 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15562 cat >conftest.$ac_ext <<_ACEOF
15565 cat confdefs.h >>conftest.$ac_ext
15566 cat >>conftest.$ac_ext <<_ACEOF
15567 /* end confdefs.h. */
15568 $ac_includes_default
15569 #include <$ac_header>
15571 rm -f conftest.$ac_objext
15572 if { (ac_try="$ac_compile"
15573 case "(($ac_try" in
15574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15575 *) ac_try_echo=$ac_try;;
15577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15578 (eval "$ac_compile") 2>conftest.er1
15580 grep -v '^ *+' conftest.er1 >conftest.err
15582 cat conftest.err >&5
15583 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15584 (exit $ac_status); } && {
15585 test -z "$ac_c_werror_flag" ||
15586 test ! -s conftest.err
15587 } && test -s conftest.$ac_objext; then
15588 ac_header_compiler=yes
15590 echo "$as_me: failed program was
:" >&5
15591 sed 's/^/| /' conftest.$ac_ext >&5
15593 ac_header_compiler=no
15596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15597 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15598 echo "${ECHO_T}$ac_header_compiler" >&6; }
15600 # Is the header present?
15601 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15602 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15603 cat >conftest.$ac_ext <<_ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15609 #include <$ac_header>
15611 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15612 case "(($ac_try" in
15613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15616 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15619 grep -v '^ *+' conftest.er1 >conftest.err
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15623 (exit $ac_status); } >/dev/null && {
15624 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15625 test ! -s conftest.err
15627 ac_header_preproc=yes
15629 echo "$as_me: failed program was
:" >&5
15630 sed 's/^/| /' conftest.$ac_ext >&5
15632 ac_header_preproc=no
15635 rm -f conftest.err conftest.$ac_ext
15636 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15637 echo "${ECHO_T}$ac_header_preproc" >&6; }
15639 # So? What about this header?
15640 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15642 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15643 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15644 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15645 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15646 ac_header_preproc=yes
15649 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15650 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15651 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15652 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15653 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15654 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15655 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15656 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15657 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15658 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15659 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15660 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15664 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15665 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15666 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15667 echo $ECHO_N "(cached
) $ECHO_C" >&6
15669 eval "$as_ac_Header=\
$ac_header_preproc"
15671 ac_res=`eval echo '${'$as_ac_Header'}'`
15672 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15673 echo "${ECHO_T}$ac_res" >&6; }
15676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15677 cat >>confdefs.h <<_ACEOF
15678 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15693 for ac_func in $ac_func_list
15695 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15696 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15697 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15698 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15699 echo $ECHO_N "(cached
) $ECHO_C" >&6
15701 cat >conftest.$ac_ext <<_ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h. */
15707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15709 #define $ac_func innocuous_$ac_func
15711 /* System header to define __stub macros and hopefully few prototypes,
15712 which can conflict with char $ac_func (); below.
15713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15714 <limits.h> exists even on freestanding compilers. */
15717 # include <limits.h>
15719 # include <assert.h>
15724 /* Override any GCC internal prototype to avoid an error.
15725 Use char because int might match the return type of a GCC
15726 builtin and then its argument prototype would still apply. */
15731 /* The GNU C library defines this for functions which it implements
15732 to always fail with ENOSYS. Some functions are actually named
15733 something starting with __ and the normal name is an alias. */
15734 #if defined __stub_$ac_func || defined __stub___$ac_func
15741 return $ac_func ();
15746 rm -f conftest.$ac_objext conftest$ac_exeext
15747 if { (ac_try="$ac_link"
15748 case "(($ac_try" in
15749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15750 *) ac_try_echo=$ac_try;;
15752 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15753 (eval "$ac_link") 2>conftest.er1
15755 grep -v '^ *+' conftest.er1 >conftest.err
15757 cat conftest.err >&5
15758 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15759 (exit $ac_status); } && {
15760 test -z "$ac_c_werror_flag" ||
15761 test ! -s conftest.err
15762 } && test -s conftest$ac_exeext &&
15763 $as_test_x conftest$ac_exeext; then
15764 eval "$as_ac_var=yes"
15766 echo "$as_me: failed program was
:" >&5
15767 sed 's/^/| /' conftest.$ac_ext >&5
15769 eval "$as_ac_var=no
"
15772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15773 conftest$ac_exeext conftest.$ac_ext
15775 ac_res=`eval echo '${'$as_ac_var'}'`
15776 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15777 echo "${ECHO_T}$ac_res" >&6; }
15778 if test `eval echo '${'$as_ac_var'}'` = yes; then
15779 cat >>confdefs.h <<_ACEOF
15780 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15802 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
15803 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
15804 if test "${ac_cv_func_working_mktime+set}" = set; then
15805 echo $ECHO_N "(cached
) $ECHO_C" >&6
15807 if test "$cross_compiling" = yes; then
15808 ac_cv_func_working_mktime=no
15810 cat >conftest.$ac_ext <<_ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15816 /* Test program from Paul Eggert and Tony Leneis. */
15817 #ifdef TIME_WITH_SYS_TIME
15818 # include <sys/time.h>
15821 # ifdef HAVE_SYS_TIME_H
15822 # include <sys/time.h>
15828 #include <stdlib.h>
15830 #ifdef HAVE_UNISTD_H
15831 # include <unistd.h>
15835 # define alarm(X) /* empty */
15838 /* Work around redefinition to rpl_putenv by other config tests. */
15841 static time_t time_t_max;
15842 static time_t time_t_min;
15844 /* Values we'll use to set the TZ environment variable. */
15845 static char *tz_strings[] = {
15846 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
15847 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
15849 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15851 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15852 Based on a problem report from Andreas Jaeger. */
15854 spring_forward_gap ()
15856 /* glibc (up to about 1998-10-07) failed this test. */
15859 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15860 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15861 on systems that don't support the Olson extension, or don't have the
15862 full zoneinfo tables installed. */
15863 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15872 return mktime (&tm) != (time_t) -1;
15880 return ! (lt = localtime (&now)) || mktime (lt) == now;
15887 return (mktime_test1 (now)
15888 && mktime_test1 ((time_t) (time_t_max - now))
15889 && mktime_test1 ((time_t) (time_t_min + now)));
15895 /* Based on code from Ariel Faigon. */
15905 return tm.tm_mon == 2 && tm.tm_mday == 31;
15914 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15915 now = mktime (&tm);
15916 if (now != (time_t) -1)
15918 struct tm *lt = localtime (&now);
15920 && lt->tm_year == tm.tm_year
15921 && lt->tm_mon == tm.tm_mon
15922 && lt->tm_mday == tm.tm_mday
15923 && lt->tm_hour == tm.tm_hour
15924 && lt->tm_min == tm.tm_min
15925 && lt->tm_sec == tm.tm_sec
15926 && lt->tm_yday == tm.tm_yday
15927 && lt->tm_wday == tm.tm_wday
15928 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15929 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15938 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15939 ignoring leap seconds. */
15940 unsigned long int answer = 2527315200UL;
15944 tm.tm_year = 2050 - 1900;
15947 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15950 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15951 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15952 on systems that don't support the Olson extension, or don't have the
15953 full zoneinfo tables installed. */
15954 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15958 /* Check that the result is either a failure, or close enough
15959 to the correct answer that we can assume the discrepancy is
15960 due to leap seconds. */
15961 return (t == (time_t) -1
15962 || (0 < t && answer - 120 <= t && t <= answer + 120));
15971 /* This test makes some buggy mktime implementations loop.
15972 Give up after 60 seconds; a mktime slower than that
15973 isn't worth using anyway. */
15976 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15979 if ((time_t) -1 < 0)
15980 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15982 delta = time_t_max / 997; /* a suitable prime number */
15983 for (i = 0; i < N_STRINGS; i++)
15986 putenv (tz_strings[i]);
15988 for (t = 0; t <= time_t_max - delta; t += delta)
15989 if (! mktime_test (t))
15991 if (! (mktime_test ((time_t) 1)
15992 && mktime_test ((time_t) (60 * 60))
15993 && mktime_test ((time_t) (60 * 60 * 24))))
15996 for (j = 1; 0 < j; j *= 2)
15997 if (! bigtime_test (j))
15999 if (! bigtime_test (j - 1))
16002 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16005 rm -f conftest$ac_exeext
16006 if { (ac_try="$ac_link"
16007 case "(($ac_try" in
16008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16009 *) ac_try_echo=$ac_try;;
16011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16012 (eval "$ac_link") 2>&5
16014 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16016 { (case "(($ac_try" in
16017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018 *) ac_try_echo=$ac_try;;
16020 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16021 (eval "$ac_try") 2>&5
16023 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16024 (exit $ac_status); }; }; then
16025 ac_cv_func_working_mktime=yes
16027 echo "$as_me: program exited with status
$ac_status" >&5
16028 echo "$as_me: failed program was
:" >&5
16029 sed 's/^/| /' conftest.$ac_ext >&5
16031 ( exit $ac_status )
16032 ac_cv_func_working_mktime=no
16034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16039 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16040 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16041 if test $ac_cv_func_working_mktime = no; then
16042 case " $LIBOBJS " in
16043 *" mktime.
$ac_objext "* ) ;;
16044 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16050 if test "$ac_cv_func_working_mktime" = no; then
16052 cat >>confdefs.h <<\_ACEOF
16053 #define BROKEN_MKTIME 1
16058 ac_have_func=no # yes means we've found a way to get the load average.
16060 # Make sure getloadavg.c is where it belongs, at configure-time.
16061 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16062 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16063 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16064 { (exit 1); exit 1; }; }
16068 # Check for getloadavg, but be sure not to touch the cache variable.
16069 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16070 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16071 if test "${ac_cv_func_getloadavg+set}" = set; then
16072 echo $ECHO_N "(cached
) $ECHO_C" >&6
16074 cat >conftest.$ac_ext <<_ACEOF
16077 cat confdefs.h >>conftest.$ac_ext
16078 cat >>conftest.$ac_ext <<_ACEOF
16079 /* end confdefs.h. */
16080 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16082 #define getloadavg innocuous_getloadavg
16084 /* System header to define __stub macros and hopefully few prototypes,
16085 which can conflict with char getloadavg (); below.
16086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16087 <limits.h> exists even on freestanding compilers. */
16090 # include <limits.h>
16092 # include <assert.h>
16097 /* Override any GCC internal prototype to avoid an error.
16098 Use char because int might match the return type of a GCC
16099 builtin and then its argument prototype would still apply. */
16103 char getloadavg ();
16104 /* The GNU C library defines this for functions which it implements
16105 to always fail with ENOSYS. Some functions are actually named
16106 something starting with __ and the normal name is an alias. */
16107 #if defined __stub_getloadavg || defined __stub___getloadavg
16114 return getloadavg ();
16119 rm -f conftest.$ac_objext conftest$ac_exeext
16120 if { (ac_try="$ac_link"
16121 case "(($ac_try" in
16122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16123 *) ac_try_echo=$ac_try;;
16125 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16126 (eval "$ac_link") 2>conftest.er1
16128 grep -v '^ *+' conftest.er1 >conftest.err
16130 cat conftest.err >&5
16131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16132 (exit $ac_status); } && {
16133 test -z "$ac_c_werror_flag" ||
16134 test ! -s conftest.err
16135 } && test -s conftest$ac_exeext &&
16136 $as_test_x conftest$ac_exeext; then
16137 ac_cv_func_getloadavg=yes
16139 echo "$as_me: failed program was
:" >&5
16140 sed 's/^/| /' conftest.$ac_ext >&5
16142 ac_cv_func_getloadavg=no
16145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16146 conftest$ac_exeext conftest.$ac_ext
16148 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16149 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16150 if test $ac_cv_func_getloadavg = yes; then
16155 ) && ac_have_func=yes
16157 # On HPUX9, an unprivileged user can get load averages through this function.
16159 for ac_func in pstat_getdynamic
16161 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16162 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16163 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16164 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16165 echo $ECHO_N "(cached
) $ECHO_C" >&6
16167 cat >conftest.$ac_ext <<_ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h. */
16173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16175 #define $ac_func innocuous_$ac_func
16177 /* System header to define __stub macros and hopefully few prototypes,
16178 which can conflict with char $ac_func (); below.
16179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16180 <limits.h> exists even on freestanding compilers. */
16183 # include <limits.h>
16185 # include <assert.h>
16190 /* Override any GCC internal prototype to avoid an error.
16191 Use char because int might match the return type of a GCC
16192 builtin and then its argument prototype would still apply. */
16197 /* The GNU C library defines this for functions which it implements
16198 to always fail with ENOSYS. Some functions are actually named
16199 something starting with __ and the normal name is an alias. */
16200 #if defined __stub_$ac_func || defined __stub___$ac_func
16207 return $ac_func ();
16212 rm -f conftest.$ac_objext conftest$ac_exeext
16213 if { (ac_try="$ac_link"
16214 case "(($ac_try" in
16215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16216 *) ac_try_echo=$ac_try;;
16218 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16219 (eval "$ac_link") 2>conftest.er1
16221 grep -v '^ *+' conftest.er1 >conftest.err
16223 cat conftest.err >&5
16224 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16225 (exit $ac_status); } && {
16226 test -z "$ac_c_werror_flag" ||
16227 test ! -s conftest.err
16228 } && test -s conftest$ac_exeext &&
16229 $as_test_x conftest$ac_exeext; then
16230 eval "$as_ac_var=yes"
16232 echo "$as_me: failed program was
:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16235 eval "$as_ac_var=no
"
16238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16239 conftest$ac_exeext conftest.$ac_ext
16241 ac_res=`eval echo '${'$as_ac_var'}'`
16242 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16243 echo "${ECHO_T}$ac_res" >&6; }
16244 if test `eval echo '${'$as_ac_var'}'` = yes; then
16245 cat >>confdefs.h <<_ACEOF
16246 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16253 # Solaris has libkstat which does not require root.
16255 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16256 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16257 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16258 echo $ECHO_N "(cached
) $ECHO_C" >&6
16260 ac_check_lib_save_LIBS=$LIBS
16261 LIBS="-lkstat $LIBS"
16262 cat >conftest.$ac_ext <<_ACEOF
16265 cat confdefs.h >>conftest.$ac_ext
16266 cat >>conftest.$ac_ext <<_ACEOF
16267 /* end confdefs.h. */
16269 /* Override any GCC internal prototype to avoid an error.
16270 Use char because int might match the return type of a GCC
16271 builtin and then its argument prototype would still apply. */
16275 char kstat_open ();
16279 return kstat_open ();
16284 rm -f conftest.$ac_objext conftest$ac_exeext
16285 if { (ac_try="$ac_link"
16286 case "(($ac_try" in
16287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16288 *) ac_try_echo=$ac_try;;
16290 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16291 (eval "$ac_link") 2>conftest.er1
16293 grep -v '^ *+' conftest.er1 >conftest.err
16295 cat conftest.err >&5
16296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16297 (exit $ac_status); } && {
16298 test -z "$ac_c_werror_flag" ||
16299 test ! -s conftest.err
16300 } && test -s conftest$ac_exeext &&
16301 $as_test_x conftest$ac_exeext; then
16302 ac_cv_lib_kstat_kstat_open=yes
16304 echo "$as_me: failed program was
:" >&5
16305 sed 's/^/| /' conftest.$ac_ext >&5
16307 ac_cv_lib_kstat_kstat_open=no
16310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16311 conftest$ac_exeext conftest.$ac_ext
16312 LIBS=$ac_check_lib_save_LIBS
16314 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16315 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16316 if test $ac_cv_lib_kstat_kstat_open = yes; then
16317 cat >>confdefs.h <<_ACEOF
16318 #define HAVE_LIBKSTAT 1
16321 LIBS="-lkstat $LIBS"
16325 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16327 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16328 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16329 # to get the right answer into the cache.
16330 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16331 if test $ac_have_func = no; then
16332 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16333 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16334 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16335 echo $ECHO_N "(cached
) $ECHO_C" >&6
16337 ac_check_lib_save_LIBS=$LIBS
16339 cat >conftest.$ac_ext <<_ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16346 /* Override any GCC internal prototype to avoid an error.
16347 Use char because int might match the return type of a GCC
16348 builtin and then its argument prototype would still apply. */
16356 return elf_begin ();
16361 rm -f conftest.$ac_objext conftest$ac_exeext
16362 if { (ac_try="$ac_link"
16363 case "(($ac_try" in
16364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16365 *) ac_try_echo=$ac_try;;
16367 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16368 (eval "$ac_link") 2>conftest.er1
16370 grep -v '^ *+' conftest.er1 >conftest.err
16372 cat conftest.err >&5
16373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16374 (exit $ac_status); } && {
16375 test -z "$ac_c_werror_flag" ||
16376 test ! -s conftest.err
16377 } && test -s conftest$ac_exeext &&
16378 $as_test_x conftest$ac_exeext; then
16379 ac_cv_lib_elf_elf_begin=yes
16381 echo "$as_me: failed program was
:" >&5
16382 sed 's/^/| /' conftest.$ac_ext >&5
16384 ac_cv_lib_elf_elf_begin=no
16387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16388 conftest$ac_exeext conftest.$ac_ext
16389 LIBS=$ac_check_lib_save_LIBS
16391 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16392 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16393 if test $ac_cv_lib_elf_elf_begin = yes; then
16398 if test $ac_have_func = no; then
16399 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16400 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16401 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16402 echo $ECHO_N "(cached
) $ECHO_C" >&6
16404 ac_check_lib_save_LIBS=$LIBS
16406 cat >conftest.$ac_ext <<_ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h. */
16413 /* Override any GCC internal prototype to avoid an error.
16414 Use char because int might match the return type of a GCC
16415 builtin and then its argument prototype would still apply. */
16423 return kvm_open ();
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (ac_try="$ac_link"
16430 case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16435 (eval "$ac_link") 2>conftest.er1
16437 grep -v '^ *+' conftest.er1 >conftest.err
16439 cat conftest.err >&5
16440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16441 (exit $ac_status); } && {
16442 test -z "$ac_c_werror_flag" ||
16443 test ! -s conftest.err
16444 } && test -s conftest$ac_exeext &&
16445 $as_test_x conftest$ac_exeext; then
16446 ac_cv_lib_kvm_kvm_open=yes
16448 echo "$as_me: failed program was
:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16451 ac_cv_lib_kvm_kvm_open=no
16454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16455 conftest$ac_exeext conftest.$ac_ext
16456 LIBS=$ac_check_lib_save_LIBS
16458 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16459 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16460 if test $ac_cv_lib_kvm_kvm_open = yes; then
16464 # Check for the 4.4BSD definition of getloadavg.
16465 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16466 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16467 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16468 echo $ECHO_N "(cached
) $ECHO_C" >&6
16470 ac_check_lib_save_LIBS=$LIBS
16471 LIBS="-lutil $LIBS"
16472 cat >conftest.$ac_ext <<_ACEOF
16475 cat confdefs.h >>conftest.$ac_ext
16476 cat >>conftest.$ac_ext <<_ACEOF
16477 /* end confdefs.h. */
16479 /* Override any GCC internal prototype to avoid an error.
16480 Use char because int might match the return type of a GCC
16481 builtin and then its argument prototype would still apply. */
16485 char getloadavg ();
16489 return getloadavg ();
16494 rm -f conftest.$ac_objext conftest$ac_exeext
16495 if { (ac_try="$ac_link"
16496 case "(($ac_try" in
16497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16498 *) ac_try_echo=$ac_try;;
16500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16501 (eval "$ac_link") 2>conftest.er1
16503 grep -v '^ *+' conftest.er1 >conftest.err
16505 cat conftest.err >&5
16506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16507 (exit $ac_status); } && {
16508 test -z "$ac_c_werror_flag" ||
16509 test ! -s conftest.err
16510 } && test -s conftest$ac_exeext &&
16511 $as_test_x conftest$ac_exeext; then
16512 ac_cv_lib_util_getloadavg=yes
16514 echo "$as_me: failed program was
:" >&5
16515 sed 's/^/| /' conftest.$ac_ext >&5
16517 ac_cv_lib_util_getloadavg=no
16520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16521 conftest$ac_exeext conftest.$ac_ext
16522 LIBS=$ac_check_lib_save_LIBS
16524 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16525 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16526 if test $ac_cv_lib_util_getloadavg = yes; then
16527 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16532 if test $ac_have_func = no; then
16533 # There is a commonly available library for RS/6000 AIX.
16534 # Since it is not a standard part of AIX, it might be installed locally.
16535 ac_getloadavg_LIBS=$LIBS
16536 LIBS="-L/usr
/local
/lib
$LIBS"
16537 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16538 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16539 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16540 echo $ECHO_N "(cached
) $ECHO_C" >&6
16542 ac_check_lib_save_LIBS=$LIBS
16543 LIBS="-lgetloadavg $LIBS"
16544 cat >conftest.$ac_ext <<_ACEOF
16547 cat confdefs.h >>conftest.$ac_ext
16548 cat >>conftest.$ac_ext <<_ACEOF
16549 /* end confdefs.h. */
16551 /* Override any GCC internal prototype to avoid an error.
16552 Use char because int might match the return type of a GCC
16553 builtin and then its argument prototype would still apply. */
16557 char getloadavg ();
16561 return getloadavg ();
16566 rm -f conftest.$ac_objext conftest$ac_exeext
16567 if { (ac_try="$ac_link"
16568 case "(($ac_try" in
16569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16570 *) ac_try_echo=$ac_try;;
16572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16573 (eval "$ac_link") 2>conftest.er1
16575 grep -v '^ *+' conftest.er1 >conftest.err
16577 cat conftest.err >&5
16578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16579 (exit $ac_status); } && {
16580 test -z "$ac_c_werror_flag" ||
16581 test ! -s conftest.err
16582 } && test -s conftest$ac_exeext &&
16583 $as_test_x conftest$ac_exeext; then
16584 ac_cv_lib_getloadavg_getloadavg=yes
16586 echo "$as_me: failed program was
:" >&5
16587 sed 's/^/| /' conftest.$ac_ext >&5
16589 ac_cv_lib_getloadavg_getloadavg=no
16592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16593 conftest$ac_exeext conftest.$ac_ext
16594 LIBS=$ac_check_lib_save_LIBS
16596 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16597 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16598 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16599 LIBS="-lgetloadavg $LIBS"
16601 LIBS=$ac_getloadavg_LIBS
16606 # Make sure it is really in the library, if we think we found it,
16607 # otherwise set up the replacement function.
16609 for ac_func in getloadavg
16611 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16612 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16613 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16614 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16615 echo $ECHO_N "(cached
) $ECHO_C" >&6
16617 cat >conftest.$ac_ext <<_ACEOF
16620 cat confdefs.h >>conftest.$ac_ext
16621 cat >>conftest.$ac_ext <<_ACEOF
16622 /* end confdefs.h. */
16623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16625 #define $ac_func innocuous_$ac_func
16627 /* System header to define __stub macros and hopefully few prototypes,
16628 which can conflict with char $ac_func (); below.
16629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16630 <limits.h> exists even on freestanding compilers. */
16633 # include <limits.h>
16635 # include <assert.h>
16640 /* Override any GCC internal prototype to avoid an error.
16641 Use char because int might match the return type of a GCC
16642 builtin and then its argument prototype would still apply. */
16647 /* The GNU C library defines this for functions which it implements
16648 to always fail with ENOSYS. Some functions are actually named
16649 something starting with __ and the normal name is an alias. */
16650 #if defined __stub_$ac_func || defined __stub___$ac_func
16657 return $ac_func ();
16662 rm -f conftest.$ac_objext conftest$ac_exeext
16663 if { (ac_try="$ac_link"
16664 case "(($ac_try" in
16665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16666 *) ac_try_echo=$ac_try;;
16668 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16669 (eval "$ac_link") 2>conftest.er1
16671 grep -v '^ *+' conftest.er1 >conftest.err
16673 cat conftest.err >&5
16674 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16675 (exit $ac_status); } && {
16676 test -z "$ac_c_werror_flag" ||
16677 test ! -s conftest.err
16678 } && test -s conftest$ac_exeext &&
16679 $as_test_x conftest$ac_exeext; then
16680 eval "$as_ac_var=yes"
16682 echo "$as_me: failed program was
:" >&5
16683 sed 's/^/| /' conftest.$ac_ext >&5
16685 eval "$as_ac_var=no
"
16688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16689 conftest$ac_exeext conftest.$ac_ext
16691 ac_res=`eval echo '${'$as_ac_var'}'`
16692 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16693 echo "${ECHO_T}$ac_res" >&6; }
16694 if test `eval echo '${'$as_ac_var'}'` = yes; then
16695 cat >>confdefs.h <<_ACEOF
16696 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16700 case " $LIBOBJS " in
16701 *" getloadavg.
$ac_objext "* ) ;;
16702 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16707 cat >>confdefs.h <<\_ACEOF
16708 #define C_GETLOADAVG 1
16711 # Figure out what our getloadavg.c needs.
16713 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16714 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16715 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16716 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16717 echo $ECHO_N "(cached
) $ECHO_C" >&6
16719 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16720 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16722 # Is the header compilable?
16723 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16724 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16725 cat >conftest.$ac_ext <<_ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h. */
16731 $ac_includes_default
16732 #include <sys/dg_sys_info.h>
16734 rm -f conftest.$ac_objext
16735 if { (ac_try="$ac_compile"
16736 case "(($ac_try" in
16737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16738 *) ac_try_echo=$ac_try;;
16740 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16741 (eval "$ac_compile") 2>conftest.er1
16743 grep -v '^ *+' conftest.er1 >conftest.err
16745 cat conftest.err >&5
16746 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16747 (exit $ac_status); } && {
16748 test -z "$ac_c_werror_flag" ||
16749 test ! -s conftest.err
16750 } && test -s conftest.$ac_objext; then
16751 ac_header_compiler=yes
16753 echo "$as_me: failed program was
:" >&5
16754 sed 's/^/| /' conftest.$ac_ext >&5
16756 ac_header_compiler=no
16759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16760 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16761 echo "${ECHO_T}$ac_header_compiler" >&6; }
16763 # Is the header present?
16764 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16765 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16766 cat >conftest.$ac_ext <<_ACEOF
16769 cat confdefs.h >>conftest.$ac_ext
16770 cat >>conftest.$ac_ext <<_ACEOF
16771 /* end confdefs.h. */
16772 #include <sys/dg_sys_info.h>
16774 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16775 case "(($ac_try" in
16776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16777 *) ac_try_echo=$ac_try;;
16779 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16780 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16782 grep -v '^ *+' conftest.er1 >conftest.err
16784 cat conftest.err >&5
16785 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16786 (exit $ac_status); } >/dev/null && {
16787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16788 test ! -s conftest.err
16790 ac_header_preproc=yes
16792 echo "$as_me: failed program was
:" >&5
16793 sed 's/^/| /' conftest.$ac_ext >&5
16795 ac_header_preproc=no
16798 rm -f conftest.err conftest.$ac_ext
16799 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16800 echo "${ECHO_T}$ac_header_preproc" >&6; }
16802 # So? What about this header?
16803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16805 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16806 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16807 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
16808 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
16809 ac_header_preproc=yes
16812 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
16813 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
16814 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
16815 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
16816 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
16817 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
16818 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16819 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16820 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
16821 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
16822 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
16823 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
16827 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16828 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16829 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16830 echo $ECHO_N "(cached
) $ECHO_C" >&6
16832 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16834 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16835 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16838 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16841 cat >>confdefs.h <<\_ACEOF
16846 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
16847 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
16848 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16849 echo $ECHO_N "(cached
) $ECHO_C" >&6
16851 ac_check_lib_save_LIBS=$LIBS
16853 cat >conftest.$ac_ext <<_ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16860 /* Override any GCC internal prototype to avoid an error.
16861 Use char because int might match the return type of a GCC
16862 builtin and then its argument prototype would still apply. */
16866 char dg_sys_info ();
16870 return dg_sys_info ();
16875 rm -f conftest.$ac_objext conftest$ac_exeext
16876 if { (ac_try="$ac_link"
16877 case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16881 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_link") 2>conftest.er1
16884 grep -v '^ *+' conftest.er1 >conftest.err
16886 cat conftest.err >&5
16887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16888 (exit $ac_status); } && {
16889 test -z "$ac_c_werror_flag" ||
16890 test ! -s conftest.err
16891 } && test -s conftest$ac_exeext &&
16892 $as_test_x conftest$ac_exeext; then
16893 ac_cv_lib_dgc_dg_sys_info=yes
16895 echo "$as_me: failed program was
:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16898 ac_cv_lib_dgc_dg_sys_info=no
16901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16902 conftest$ac_exeext conftest.$ac_ext
16903 LIBS=$ac_check_lib_save_LIBS
16905 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
16906 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16907 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16908 cat >>confdefs.h <<_ACEOF
16909 #define HAVE_LIBDGC 1
16920 if test "${ac_cv_header_locale_h+set}" = set; then
16921 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16922 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16923 if test "${ac_cv_header_locale_h+set}" = set; then
16924 echo $ECHO_N "(cached
) $ECHO_C" >&6
16926 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16927 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16929 # Is the header compilable?
16930 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
16931 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
16932 cat >conftest.$ac_ext <<_ACEOF
16935 cat confdefs.h >>conftest.$ac_ext
16936 cat >>conftest.$ac_ext <<_ACEOF
16937 /* end confdefs.h. */
16938 $ac_includes_default
16939 #include <locale.h>
16941 rm -f conftest.$ac_objext
16942 if { (ac_try="$ac_compile"
16943 case "(($ac_try" in
16944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16945 *) ac_try_echo=$ac_try;;
16947 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16948 (eval "$ac_compile") 2>conftest.er1
16950 grep -v '^ *+' conftest.er1 >conftest.err
16952 cat conftest.err >&5
16953 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16954 (exit $ac_status); } && {
16955 test -z "$ac_c_werror_flag" ||
16956 test ! -s conftest.err
16957 } && test -s conftest.$ac_objext; then
16958 ac_header_compiler=yes
16960 echo "$as_me: failed program was
:" >&5
16961 sed 's/^/| /' conftest.$ac_ext >&5
16963 ac_header_compiler=no
16966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16967 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16968 echo "${ECHO_T}$ac_header_compiler" >&6; }
16970 # Is the header present?
16971 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
16972 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
16973 cat >conftest.$ac_ext <<_ACEOF
16976 cat confdefs.h >>conftest.$ac_ext
16977 cat >>conftest.$ac_ext <<_ACEOF
16978 /* end confdefs.h. */
16979 #include <locale.h>
16981 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16982 case "(($ac_try" in
16983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16986 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16989 grep -v '^ *+' conftest.er1 >conftest.err
16991 cat conftest.err >&5
16992 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16993 (exit $ac_status); } >/dev/null && {
16994 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16995 test ! -s conftest.err
16997 ac_header_preproc=yes
16999 echo "$as_me: failed program was
:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17002 ac_header_preproc=no
17005 rm -f conftest.err conftest.$ac_ext
17006 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17007 echo "${ECHO_T}$ac_header_preproc" >&6; }
17009 # So? What about this header?
17010 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17012 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17013 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17014 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17015 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17016 ac_header_preproc=yes
17019 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17020 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17021 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17022 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17023 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17024 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17025 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17026 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17027 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17028 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17029 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17030 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17034 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17035 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17036 if test "${ac_cv_header_locale_h+set}" = set; then
17037 echo $ECHO_N "(cached
) $ECHO_C" >&6
17039 ac_cv_header_locale_h=$ac_header_preproc
17041 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17042 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17048 for ac_func in setlocale
17050 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17051 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17052 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17053 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17054 echo $ECHO_N "(cached
) $ECHO_C" >&6
17056 cat >conftest.$ac_ext <<_ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h. */
17062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17064 #define $ac_func innocuous_$ac_func
17066 /* System header to define __stub macros and hopefully few prototypes,
17067 which can conflict with char $ac_func (); below.
17068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17069 <limits.h> exists even on freestanding compilers. */
17072 # include <limits.h>
17074 # include <assert.h>
17079 /* Override any GCC internal prototype to avoid an error.
17080 Use char because int might match the return type of a GCC
17081 builtin and then its argument prototype would still apply. */
17086 /* The GNU C library defines this for functions which it implements
17087 to always fail with ENOSYS. Some functions are actually named
17088 something starting with __ and the normal name is an alias. */
17089 #if defined __stub_$ac_func || defined __stub___$ac_func
17096 return $ac_func ();
17101 rm -f conftest.$ac_objext conftest$ac_exeext
17102 if { (ac_try="$ac_link"
17103 case "(($ac_try" in
17104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17105 *) ac_try_echo=$ac_try;;
17107 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17108 (eval "$ac_link") 2>conftest.er1
17110 grep -v '^ *+' conftest.er1 >conftest.err
17112 cat conftest.err >&5
17113 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17114 (exit $ac_status); } && {
17115 test -z "$ac_c_werror_flag" ||
17116 test ! -s conftest.err
17117 } && test -s conftest$ac_exeext &&
17118 $as_test_x conftest$ac_exeext; then
17119 eval "$as_ac_var=yes"
17121 echo "$as_me: failed program was
:" >&5
17122 sed 's/^/| /' conftest.$ac_ext >&5
17124 eval "$as_ac_var=no
"
17127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17128 conftest$ac_exeext conftest.$ac_ext
17130 ac_res=`eval echo '${'$as_ac_var'}'`
17131 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17132 echo "${ECHO_T}$ac_res" >&6; }
17133 if test `eval echo '${'$as_ac_var'}'` = yes; then
17134 cat >>confdefs.h <<_ACEOF
17135 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17142 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17143 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17144 # Irix 4.0.5F has the header but not the library.
17145 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17148 cat >>confdefs.h <<\_ACEOF
17154 if test $ac_have_func = no; then
17155 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17156 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17157 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17158 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17159 echo $ECHO_N "(cached
) $ECHO_C" >&6
17161 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17162 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17164 # Is the header compilable?
17165 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17166 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17167 cat >conftest.$ac_ext <<_ACEOF
17170 cat confdefs.h >>conftest.$ac_ext
17171 cat >>conftest.$ac_ext <<_ACEOF
17172 /* end confdefs.h. */
17173 $ac_includes_default
17174 #include <inq_stats/cpustats.h>
17176 rm -f conftest.$ac_objext
17177 if { (ac_try="$ac_compile"
17178 case "(($ac_try" in
17179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180 *) ac_try_echo=$ac_try;;
17182 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17183 (eval "$ac_compile") 2>conftest.er1
17185 grep -v '^ *+' conftest.er1 >conftest.err
17187 cat conftest.err >&5
17188 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17189 (exit $ac_status); } && {
17190 test -z "$ac_c_werror_flag" ||
17191 test ! -s conftest.err
17192 } && test -s conftest.$ac_objext; then
17193 ac_header_compiler=yes
17195 echo "$as_me: failed program was
:" >&5
17196 sed 's/^/| /' conftest.$ac_ext >&5
17198 ac_header_compiler=no
17201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17202 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17203 echo "${ECHO_T}$ac_header_compiler" >&6; }
17205 # Is the header present?
17206 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17207 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17208 cat >conftest.$ac_ext <<_ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h. */
17214 #include <inq_stats/cpustats.h>
17216 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17217 case "(($ac_try" in
17218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17219 *) ac_try_echo=$ac_try;;
17221 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17222 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17224 grep -v '^ *+' conftest.er1 >conftest.err
17226 cat conftest.err >&5
17227 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17228 (exit $ac_status); } >/dev/null && {
17229 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17230 test ! -s conftest.err
17232 ac_header_preproc=yes
17234 echo "$as_me: failed program was
:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17237 ac_header_preproc=no
17240 rm -f conftest.err conftest.$ac_ext
17241 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17242 echo "${ECHO_T}$ac_header_preproc" >&6; }
17244 # So? What about this header?
17245 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17247 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17248 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17249 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17250 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17251 ac_header_preproc=yes
17254 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17255 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17256 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17257 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17258 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17259 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17260 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17261 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17262 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17263 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17264 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17265 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17269 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17270 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17271 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17272 echo $ECHO_N "(cached
) $ECHO_C" >&6
17274 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17276 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17277 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17280 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17283 cat >>confdefs.h <<\_ACEOF
17288 cat >>confdefs.h <<\_ACEOF
17297 if test $ac_have_func = no; then
17298 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17299 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17300 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17301 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17302 echo $ECHO_N "(cached
) $ECHO_C" >&6
17304 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17305 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17307 # Is the header compilable?
17308 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17309 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17310 cat >conftest.$ac_ext <<_ACEOF
17313 cat confdefs.h >>conftest.$ac_ext
17314 cat >>conftest.$ac_ext <<_ACEOF
17315 /* end confdefs.h. */
17316 $ac_includes_default
17317 #include <sys/cpustats.h>
17319 rm -f conftest.$ac_objext
17320 if { (ac_try="$ac_compile"
17321 case "(($ac_try" in
17322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17323 *) ac_try_echo=$ac_try;;
17325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17326 (eval "$ac_compile") 2>conftest.er1
17328 grep -v '^ *+' conftest.er1 >conftest.err
17330 cat conftest.err >&5
17331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17332 (exit $ac_status); } && {
17333 test -z "$ac_c_werror_flag" ||
17334 test ! -s conftest.err
17335 } && test -s conftest.$ac_objext; then
17336 ac_header_compiler=yes
17338 echo "$as_me: failed program was
:" >&5
17339 sed 's/^/| /' conftest.$ac_ext >&5
17341 ac_header_compiler=no
17344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17345 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17346 echo "${ECHO_T}$ac_header_compiler" >&6; }
17348 # Is the header present?
17349 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17350 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17351 cat >conftest.$ac_ext <<_ACEOF
17354 cat confdefs.h >>conftest.$ac_ext
17355 cat >>conftest.$ac_ext <<_ACEOF
17356 /* end confdefs.h. */
17357 #include <sys/cpustats.h>
17359 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17360 case "(($ac_try" in
17361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17362 *) ac_try_echo=$ac_try;;
17364 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17365 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17367 grep -v '^ *+' conftest.er1 >conftest.err
17369 cat conftest.err >&5
17370 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17371 (exit $ac_status); } >/dev/null && {
17372 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17373 test ! -s conftest.err
17375 ac_header_preproc=yes
17377 echo "$as_me: failed program was
:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17380 ac_header_preproc=no
17383 rm -f conftest.err conftest.$ac_ext
17384 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17385 echo "${ECHO_T}$ac_header_preproc" >&6; }
17387 # So? What about this header?
17388 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17390 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17391 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17392 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17393 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17394 ac_header_preproc=yes
17397 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17398 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17399 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17400 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17401 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17402 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17403 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17404 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17405 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17406 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17407 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17408 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17412 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17413 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17414 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17415 echo $ECHO_N "(cached
) $ECHO_C" >&6
17417 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17419 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17420 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17423 if test $ac_cv_header_sys_cpustats_h = yes; then
17424 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17433 if test $ac_have_func = no; then
17435 for ac_header in mach/mach.h
17437 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17438 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17439 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17440 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17441 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17442 echo $ECHO_N "(cached
) $ECHO_C" >&6
17444 ac_res=`eval echo '${'$as_ac_Header'}'`
17445 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17446 echo "${ECHO_T}$ac_res" >&6; }
17448 # Is the header compilable?
17449 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17450 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17451 cat >conftest.$ac_ext <<_ACEOF
17454 cat confdefs.h >>conftest.$ac_ext
17455 cat >>conftest.$ac_ext <<_ACEOF
17456 /* end confdefs.h. */
17457 $ac_includes_default
17458 #include <$ac_header>
17460 rm -f conftest.$ac_objext
17461 if { (ac_try="$ac_compile"
17462 case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_compile") 2>conftest.er1
17469 grep -v '^ *+' conftest.er1 >conftest.err
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17473 (exit $ac_status); } && {
17474 test -z "$ac_c_werror_flag" ||
17475 test ! -s conftest.err
17476 } && test -s conftest.$ac_objext; then
17477 ac_header_compiler=yes
17479 echo "$as_me: failed program was
:" >&5
17480 sed 's/^/| /' conftest.$ac_ext >&5
17482 ac_header_compiler=no
17485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17486 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17487 echo "${ECHO_T}$ac_header_compiler" >&6; }
17489 # Is the header present?
17490 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17491 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17492 cat >conftest.$ac_ext <<_ACEOF
17495 cat confdefs.h >>conftest.$ac_ext
17496 cat >>conftest.$ac_ext <<_ACEOF
17497 /* end confdefs.h. */
17498 #include <$ac_header>
17500 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17501 case "(($ac_try" in
17502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17503 *) ac_try_echo=$ac_try;;
17505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17506 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17508 grep -v '^ *+' conftest.er1 >conftest.err
17510 cat conftest.err >&5
17511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17512 (exit $ac_status); } >/dev/null && {
17513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17514 test ! -s conftest.err
17516 ac_header_preproc=yes
17518 echo "$as_me: failed program was
:" >&5
17519 sed 's/^/| /' conftest.$ac_ext >&5
17521 ac_header_preproc=no
17524 rm -f conftest.err conftest.$ac_ext
17525 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17526 echo "${ECHO_T}$ac_header_preproc" >&6; }
17528 # So? What about this header?
17529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17531 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17532 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17533 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17534 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17535 ac_header_preproc=yes
17538 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17539 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17540 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17541 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17542 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17543 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17544 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17545 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17546 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17548 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17549 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17553 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17554 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17555 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17556 echo $ECHO_N "(cached
) $ECHO_C" >&6
17558 eval "$as_ac_Header=\
$ac_header_preproc"
17560 ac_res=`eval echo '${'$as_ac_Header'}'`
17561 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17562 echo "${ECHO_T}$ac_res" >&6; }
17565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17566 cat >>confdefs.h <<_ACEOF
17567 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17577 for ac_header in nlist.h
17579 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17580 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17581 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17582 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17583 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17584 echo $ECHO_N "(cached
) $ECHO_C" >&6
17586 ac_res=`eval echo '${'$as_ac_Header'}'`
17587 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17588 echo "${ECHO_T}$ac_res" >&6; }
17590 # Is the header compilable?
17591 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17592 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17593 cat >conftest.$ac_ext <<_ACEOF
17596 cat confdefs.h >>conftest.$ac_ext
17597 cat >>conftest.$ac_ext <<_ACEOF
17598 /* end confdefs.h. */
17599 $ac_includes_default
17600 #include <$ac_header>
17602 rm -f conftest.$ac_objext
17603 if { (ac_try="$ac_compile"
17604 case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17608 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_compile") 2>conftest.er1
17611 grep -v '^ *+' conftest.er1 >conftest.err
17613 cat conftest.err >&5
17614 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17615 (exit $ac_status); } && {
17616 test -z "$ac_c_werror_flag" ||
17617 test ! -s conftest.err
17618 } && test -s conftest.$ac_objext; then
17619 ac_header_compiler=yes
17621 echo "$as_me: failed program was
:" >&5
17622 sed 's/^/| /' conftest.$ac_ext >&5
17624 ac_header_compiler=no
17627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17628 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17629 echo "${ECHO_T}$ac_header_compiler" >&6; }
17631 # Is the header present?
17632 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17633 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17634 cat >conftest.$ac_ext <<_ACEOF
17637 cat confdefs.h >>conftest.$ac_ext
17638 cat >>conftest.$ac_ext <<_ACEOF
17639 /* end confdefs.h. */
17640 #include <$ac_header>
17642 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17643 case "(($ac_try" in
17644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17645 *) ac_try_echo=$ac_try;;
17647 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17648 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17650 grep -v '^ *+' conftest.er1 >conftest.err
17652 cat conftest.err >&5
17653 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17654 (exit $ac_status); } >/dev/null && {
17655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17656 test ! -s conftest.err
17658 ac_header_preproc=yes
17660 echo "$as_me: failed program was
:" >&5
17661 sed 's/^/| /' conftest.$ac_ext >&5
17663 ac_header_preproc=no
17666 rm -f conftest.err conftest.$ac_ext
17667 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17668 echo "${ECHO_T}$ac_header_preproc" >&6; }
17670 # So? What about this header?
17671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17673 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17674 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17675 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17676 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17677 ac_header_preproc=yes
17680 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17681 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17682 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17683 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17684 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17685 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17686 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17687 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17688 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17689 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17690 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17691 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17695 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17696 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17697 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17698 echo $ECHO_N "(cached
) $ECHO_C" >&6
17700 eval "$as_ac_Header=\
$ac_header_preproc"
17702 ac_res=`eval echo '${'$as_ac_Header'}'`
17703 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17704 echo "${ECHO_T}$ac_res" >&6; }
17707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17708 cat >>confdefs.h <<_ACEOF
17709 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17711 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17712 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17713 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17714 echo $ECHO_N "(cached
) $ECHO_C" >&6
17716 cat >conftest.$ac_ext <<_ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h. */
17727 static struct nlist ac_aggr;
17728 if (ac_aggr.n_un.n_name)
17734 rm -f conftest.$ac_objext
17735 if { (ac_try="$ac_compile"
17736 case "(($ac_try" in
17737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17738 *) ac_try_echo=$ac_try;;
17740 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17741 (eval "$ac_compile") 2>conftest.er1
17743 grep -v '^ *+' conftest.er1 >conftest.err
17745 cat conftest.err >&5
17746 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17747 (exit $ac_status); } && {
17748 test -z "$ac_c_werror_flag" ||
17749 test ! -s conftest.err
17750 } && test -s conftest.$ac_objext; then
17751 ac_cv_member_struct_nlist_n_un_n_name=yes
17753 echo "$as_me: failed program was
:" >&5
17754 sed 's/^/| /' conftest.$ac_ext >&5
17756 cat >conftest.$ac_ext <<_ACEOF
17759 cat confdefs.h >>conftest.$ac_ext
17760 cat >>conftest.$ac_ext <<_ACEOF
17761 /* end confdefs.h. */
17767 static struct nlist ac_aggr;
17768 if (sizeof ac_aggr.n_un.n_name)
17774 rm -f conftest.$ac_objext
17775 if { (ac_try="$ac_compile"
17776 case "(($ac_try" in
17777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17778 *) ac_try_echo=$ac_try;;
17780 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17781 (eval "$ac_compile") 2>conftest.er1
17783 grep -v '^ *+' conftest.er1 >conftest.err
17785 cat conftest.err >&5
17786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17787 (exit $ac_status); } && {
17788 test -z "$ac_c_werror_flag" ||
17789 test ! -s conftest.err
17790 } && test -s conftest.$ac_objext; then
17791 ac_cv_member_struct_nlist_n_un_n_name=yes
17793 echo "$as_me: failed program was
:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17796 ac_cv_member_struct_nlist_n_un_n_name=no
17799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17804 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17805 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17806 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17808 cat >>confdefs.h <<_ACEOF
17809 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17813 cat >>confdefs.h <<\_ACEOF
17814 #define NLIST_NAME_UNION 1
17828 # Some definitions of getloadavg require that the program be installed setgid.
17829 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
17830 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
17831 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17832 echo $ECHO_N "(cached
) $ECHO_C" >&6
17834 cat >conftest.$ac_ext <<_ACEOF
17837 cat confdefs.h >>conftest.$ac_ext
17838 cat >>conftest.$ac_ext <<_ACEOF
17839 /* end confdefs.h. */
17840 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
17841 #ifdef LDAV_PRIVILEGED
17842 Yowza Am I SETGID yet
17845 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17846 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
17847 ac_cv_func_getloadavg_setgid=yes
17849 ac_cv_func_getloadavg_setgid=no
17854 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
17855 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17856 if test $ac_cv_func_getloadavg_setgid = yes; then
17859 cat >>confdefs.h <<\_ACEOF
17860 #define GETLOADAVG_PRIVILEGED 1
17867 if test $ac_cv_func_getloadavg_setgid = yes; then
17868 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
17869 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
17870 if test "${ac_cv_group_kmem+set}" = set; then
17871 echo $ECHO_N "(cached
) $ECHO_C" >&6
17873 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17874 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17875 # If we got an error (system does not support symlinks), try without -L.
17876 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17877 ac_cv_group_kmem=`echo $ac_ls_output \
17878 | sed -ne 's/[ ][ ]*/ /g;
17879 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17883 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
17884 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17885 KMEM_GROUP=$ac_cv_group_kmem
17887 if test "x
$ac_save_LIBS" = x; then
17888 GETLOADAVG_LIBS=$LIBS
17890 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
17896 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
17897 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
17898 if test "${ac_cv_sys_largefile_source+set}" = set; then
17899 echo $ECHO_N "(cached
) $ECHO_C" >&6
17902 cat >conftest.$ac_ext <<_ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h. */
17912 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17917 rm -f conftest.$ac_objext conftest$ac_exeext
17918 if { (ac_try="$ac_link"
17919 case "(($ac_try" in
17920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17921 *) ac_try_echo=$ac_try;;
17923 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17924 (eval "$ac_link") 2>conftest.er1
17926 grep -v '^ *+' conftest.er1 >conftest.err
17928 cat conftest.err >&5
17929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17930 (exit $ac_status); } && {
17931 test -z "$ac_c_werror_flag" ||
17932 test ! -s conftest.err
17933 } && test -s conftest$ac_exeext &&
17934 $as_test_x conftest$ac_exeext; then
17935 ac_cv_sys_largefile_source=no; break
17937 echo "$as_me: failed program was
:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17944 conftest$ac_exeext conftest.$ac_ext
17945 cat >conftest.$ac_ext <<_ACEOF
17948 cat confdefs.h >>conftest.$ac_ext
17949 cat >>conftest.$ac_ext <<_ACEOF
17950 /* end confdefs.h. */
17951 #define _LARGEFILE_SOURCE 1
17956 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17961 rm -f conftest.$ac_objext conftest$ac_exeext
17962 if { (ac_try="$ac_link"
17963 case "(($ac_try" in
17964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17965 *) ac_try_echo=$ac_try;;
17967 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17968 (eval "$ac_link") 2>conftest.er1
17970 grep -v '^ *+' conftest.er1 >conftest.err
17972 cat conftest.err >&5
17973 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17974 (exit $ac_status); } && {
17975 test -z "$ac_c_werror_flag" ||
17976 test ! -s conftest.err
17977 } && test -s conftest$ac_exeext &&
17978 $as_test_x conftest$ac_exeext; then
17979 ac_cv_sys_largefile_source=1; break
17981 echo "$as_me: failed program was
:" >&5
17982 sed 's/^/| /' conftest.$ac_ext >&5
17987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17988 conftest$ac_exeext conftest.$ac_ext
17989 ac_cv_sys_largefile_source=unknown
17993 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
17994 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17995 case $ac_cv_sys_largefile_source in #(
17998 cat >>confdefs.h <<_ACEOF
17999 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18005 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18006 # in glibc 2.1.3, but that breaks too many other things.
18007 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18008 if test $ac_cv_sys_largefile_source != unknown; then
18010 cat >>confdefs.h <<\_ACEOF
18011 #define HAVE_FSEEKO 1
18017 # Configure getopt.
18018 # getopt.m4 serial 10
18020 # The getopt module assume you want GNU getopt, with getopt_long etc,
18021 # rather than vanilla POSIX getopt. This means your your code should
18022 # always include <getopt.h> for the getopt prototypes.
18034 # Prerequisites of lib/getopt*.
18041 for ac_header in getopt.h
18043 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18044 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18045 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18046 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18047 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18048 echo $ECHO_N "(cached
) $ECHO_C" >&6
18050 ac_res=`eval echo '${'$as_ac_Header'}'`
18051 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18052 echo "${ECHO_T}$ac_res" >&6; }
18054 # Is the header compilable?
18055 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18056 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18057 cat >conftest.$ac_ext <<_ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h. */
18063 $ac_includes_default
18064 #include <$ac_header>
18066 rm -f conftest.$ac_objext
18067 if { (ac_try="$ac_compile"
18068 case "(($ac_try" in
18069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18070 *) ac_try_echo=$ac_try;;
18072 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18073 (eval "$ac_compile") 2>conftest.er1
18075 grep -v '^ *+' conftest.er1 >conftest.err
18077 cat conftest.err >&5
18078 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18079 (exit $ac_status); } && {
18080 test -z "$ac_c_werror_flag" ||
18081 test ! -s conftest.err
18082 } && test -s conftest.$ac_objext; then
18083 ac_header_compiler=yes
18085 echo "$as_me: failed program was
:" >&5
18086 sed 's/^/| /' conftest.$ac_ext >&5
18088 ac_header_compiler=no
18091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18092 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18093 echo "${ECHO_T}$ac_header_compiler" >&6; }
18095 # Is the header present?
18096 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18097 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18098 cat >conftest.$ac_ext <<_ACEOF
18101 cat confdefs.h >>conftest.$ac_ext
18102 cat >>conftest.$ac_ext <<_ACEOF
18103 /* end confdefs.h. */
18104 #include <$ac_header>
18106 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18107 case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18112 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18114 grep -v '^ *+' conftest.er1 >conftest.err
18116 cat conftest.err >&5
18117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18118 (exit $ac_status); } >/dev/null && {
18119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18120 test ! -s conftest.err
18122 ac_header_preproc=yes
18124 echo "$as_me: failed program was
:" >&5
18125 sed 's/^/| /' conftest.$ac_ext >&5
18127 ac_header_preproc=no
18130 rm -f conftest.err conftest.$ac_ext
18131 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18132 echo "${ECHO_T}$ac_header_preproc" >&6; }
18134 # So? What about this header?
18135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18137 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18138 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18139 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18140 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18141 ac_header_preproc=yes
18144 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18145 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18146 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18147 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18148 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18149 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18150 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18151 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18152 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18153 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18154 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18155 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18159 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18160 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18161 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18162 echo $ECHO_N "(cached
) $ECHO_C" >&6
18164 eval "$as_ac_Header=\
$ac_header_preproc"
18166 ac_res=`eval echo '${'$as_ac_Header'}'`
18167 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18168 echo "${ECHO_T}$ac_res" >&6; }
18171 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18172 cat >>confdefs.h <<_ACEOF
18173 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18182 if test -z "$GETOPT_H"; then
18184 for ac_func in getopt_long_only
18186 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18187 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18188 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18189 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18190 echo $ECHO_N "(cached
) $ECHO_C" >&6
18192 cat >conftest.$ac_ext <<_ACEOF
18195 cat confdefs.h >>conftest.$ac_ext
18196 cat >>conftest.$ac_ext <<_ACEOF
18197 /* end confdefs.h. */
18198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18200 #define $ac_func innocuous_$ac_func
18202 /* System header to define __stub macros and hopefully few prototypes,
18203 which can conflict with char $ac_func (); below.
18204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18205 <limits.h> exists even on freestanding compilers. */
18208 # include <limits.h>
18210 # include <assert.h>
18215 /* Override any GCC internal prototype to avoid an error.
18216 Use char because int might match the return type of a GCC
18217 builtin and then its argument prototype would still apply. */
18222 /* The GNU C library defines this for functions which it implements
18223 to always fail with ENOSYS. Some functions are actually named
18224 something starting with __ and the normal name is an alias. */
18225 #if defined __stub_$ac_func || defined __stub___$ac_func
18232 return $ac_func ();
18237 rm -f conftest.$ac_objext conftest$ac_exeext
18238 if { (ac_try="$ac_link"
18239 case "(($ac_try" in
18240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18241 *) ac_try_echo=$ac_try;;
18243 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18244 (eval "$ac_link") 2>conftest.er1
18246 grep -v '^ *+' conftest.er1 >conftest.err
18248 cat conftest.err >&5
18249 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18250 (exit $ac_status); } && {
18251 test -z "$ac_c_werror_flag" ||
18252 test ! -s conftest.err
18253 } && test -s conftest$ac_exeext &&
18254 $as_test_x conftest$ac_exeext; then
18255 eval "$as_ac_var=yes"
18257 echo "$as_me: failed program was
:" >&5
18258 sed 's/^/| /' conftest.$ac_ext >&5
18260 eval "$as_ac_var=no
"
18263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18264 conftest$ac_exeext conftest.$ac_ext
18266 ac_res=`eval echo '${'$as_ac_var'}'`
18267 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18268 echo "${ECHO_T}$ac_res" >&6; }
18269 if test `eval echo '${'$as_ac_var'}'` = yes; then
18270 cat >>confdefs.h <<_ACEOF
18271 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18281 if test -z "$GETOPT_H"; then
18282 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18283 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18284 if test "${ac_cv_have_decl_optreset+set}" = set; then
18285 echo $ECHO_N "(cached
) $ECHO_C" >&6
18287 cat >conftest.$ac_ext <<_ACEOF
18290 cat confdefs.h >>conftest.$ac_ext
18291 cat >>conftest.$ac_ext <<_ACEOF
18292 /* end confdefs.h. */
18293 #include <getopt.h>
18306 rm -f conftest.$ac_objext
18307 if { (ac_try="$ac_compile"
18308 case "(($ac_try" in
18309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18310 *) ac_try_echo=$ac_try;;
18312 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18313 (eval "$ac_compile") 2>conftest.er1
18315 grep -v '^ *+' conftest.er1 >conftest.err
18317 cat conftest.err >&5
18318 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18319 (exit $ac_status); } && {
18320 test -z "$ac_c_werror_flag" ||
18321 test ! -s conftest.err
18322 } && test -s conftest.$ac_objext; then
18323 ac_cv_have_decl_optreset=yes
18325 echo "$as_me: failed program was
:" >&5
18326 sed 's/^/| /' conftest.$ac_ext >&5
18328 ac_cv_have_decl_optreset=no
18331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18333 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18334 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18335 if test $ac_cv_have_decl_optreset = yes; then
18341 if test -z "$GETOPT_H"; then
18342 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18343 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18344 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18345 echo $ECHO_N "(cached
) $ECHO_C" >&6
18347 if test "$cross_compiling" = yes; then
18348 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18349 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18350 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18351 echo $ECHO_N "(cached
) $ECHO_C" >&6
18353 cat >conftest.$ac_ext <<_ACEOF
18356 cat confdefs.h >>conftest.$ac_ext
18357 cat >>conftest.$ac_ext <<_ACEOF
18358 /* end confdefs.h. */
18359 #include <getopt.h>
18364 #ifndef getopt_clip
18365 (void) getopt_clip;
18372 rm -f conftest.$ac_objext
18373 if { (ac_try="$ac_compile"
18374 case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_compile") 2>conftest.er1
18381 grep -v '^ *+' conftest.er1 >conftest.err
18383 cat conftest.err >&5
18384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18385 (exit $ac_status); } && {
18386 test -z "$ac_c_werror_flag" ||
18387 test ! -s conftest.err
18388 } && test -s conftest.$ac_objext; then
18389 ac_cv_have_decl_getopt_clip=yes
18391 echo "$as_me: failed program was
:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18394 ac_cv_have_decl_getopt_clip=no
18397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18399 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18400 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18401 if test $ac_cv_have_decl_getopt_clip = yes; then
18402 gl_cv_func_gnu_getopt=no
18404 gl_cv_func_gnu_getopt=yes
18408 cat >conftest.$ac_ext <<_ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18414 #include <getopt.h>
18420 myargv[0] = "conftest
";
18423 return getopt (2, myargv, "+a
") != '?';
18429 rm -f conftest$ac_exeext
18430 if { (ac_try="$ac_link"
18431 case "(($ac_try" in
18432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18433 *) ac_try_echo=$ac_try;;
18435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18436 (eval "$ac_link") 2>&5
18438 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18440 { (case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_try") 2>&5
18447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18448 (exit $ac_status); }; }; then
18449 gl_cv_func_gnu_getopt=yes
18451 echo "$as_me: program exited with status
$ac_status" >&5
18452 echo "$as_me: failed program was
:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18455 ( exit $ac_status )
18456 gl_cv_func_gnu_getopt=no
18458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18463 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18464 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18465 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18472 if test -n "$GETOPT_H"; then
18477 cat >>confdefs.h <<\_ACEOF
18478 #define __GETOPT_PREFIX rpl_
18484 GETOPTOBJS='getopt.o getopt1.o'
18491 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18492 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18493 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18494 echo $ECHO_N "(cached
) $ECHO_C" >&6
18496 # Use it with a single arg.
18497 cat >conftest.$ac_ext <<_ACEOF
18500 cat confdefs.h >>conftest.$ac_ext
18501 cat >>conftest.$ac_ext <<_ACEOF
18502 /* end confdefs.h. */
18503 $ac_includes_default
18512 rm -f conftest.$ac_objext
18513 if { (ac_try="$ac_compile"
18514 case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18518 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_compile") 2>conftest.er1
18521 grep -v '^ *+' conftest.er1 >conftest.err
18523 cat conftest.err >&5
18524 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18525 (exit $ac_status); } && {
18526 test -z "$ac_c_werror_flag" ||
18527 test ! -s conftest.err
18528 } && test -s conftest.$ac_objext; then
18529 ac_cv_func_getpgrp_void=no
18531 echo "$as_me: failed program was
:" >&5
18532 sed 's/^/| /' conftest.$ac_ext >&5
18534 ac_cv_func_getpgrp_void=yes
18537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18540 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18541 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18542 if test $ac_cv_func_getpgrp_void = yes; then
18544 cat >>confdefs.h <<\_ACEOF
18545 #define GETPGRP_VOID 1
18552 for ac_func in strftime
18554 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18555 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18556 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18557 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18558 echo $ECHO_N "(cached
) $ECHO_C" >&6
18560 cat >conftest.$ac_ext <<_ACEOF
18563 cat confdefs.h >>conftest.$ac_ext
18564 cat >>conftest.$ac_ext <<_ACEOF
18565 /* end confdefs.h. */
18566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18568 #define $ac_func innocuous_$ac_func
18570 /* System header to define __stub macros and hopefully few prototypes,
18571 which can conflict with char $ac_func (); below.
18572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18573 <limits.h> exists even on freestanding compilers. */
18576 # include <limits.h>
18578 # include <assert.h>
18583 /* Override any GCC internal prototype to avoid an error.
18584 Use char because int might match the return type of a GCC
18585 builtin and then its argument prototype would still apply. */
18590 /* The GNU C library defines this for functions which it implements
18591 to always fail with ENOSYS. Some functions are actually named
18592 something starting with __ and the normal name is an alias. */
18593 #if defined __stub_$ac_func || defined __stub___$ac_func
18600 return $ac_func ();
18605 rm -f conftest.$ac_objext conftest$ac_exeext
18606 if { (ac_try="$ac_link"
18607 case "(($ac_try" in
18608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609 *) ac_try_echo=$ac_try;;
18611 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18612 (eval "$ac_link") 2>conftest.er1
18614 grep -v '^ *+' conftest.er1 >conftest.err
18616 cat conftest.err >&5
18617 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18618 (exit $ac_status); } && {
18619 test -z "$ac_c_werror_flag" ||
18620 test ! -s conftest.err
18621 } && test -s conftest$ac_exeext &&
18622 $as_test_x conftest$ac_exeext; then
18623 eval "$as_ac_var=yes"
18625 echo "$as_me: failed program was
:" >&5
18626 sed 's/^/| /' conftest.$ac_ext >&5
18628 eval "$as_ac_var=no
"
18631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18632 conftest$ac_exeext conftest.$ac_ext
18634 ac_res=`eval echo '${'$as_ac_var'}'`
18635 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18636 echo "${ECHO_T}$ac_res" >&6; }
18637 if test `eval echo '${'$as_ac_var'}'` = yes; then
18638 cat >>confdefs.h <<_ACEOF
18639 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18643 # strftime is in -lintl on SCO UNIX.
18644 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18645 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18646 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18647 echo $ECHO_N "(cached
) $ECHO_C" >&6
18649 ac_check_lib_save_LIBS=$LIBS
18650 LIBS="-lintl $LIBS"
18651 cat >conftest.$ac_ext <<_ACEOF
18654 cat confdefs.h >>conftest.$ac_ext
18655 cat >>conftest.$ac_ext <<_ACEOF
18656 /* end confdefs.h. */
18658 /* Override any GCC internal prototype to avoid an error.
18659 Use char because int might match the return type of a GCC
18660 builtin and then its argument prototype would still apply. */
18668 return strftime ();
18673 rm -f conftest.$ac_objext conftest$ac_exeext
18674 if { (ac_try="$ac_link"
18675 case "(($ac_try" in
18676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18677 *) ac_try_echo=$ac_try;;
18679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18680 (eval "$ac_link") 2>conftest.er1
18682 grep -v '^ *+' conftest.er1 >conftest.err
18684 cat conftest.err >&5
18685 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18686 (exit $ac_status); } && {
18687 test -z "$ac_c_werror_flag" ||
18688 test ! -s conftest.err
18689 } && test -s conftest$ac_exeext &&
18690 $as_test_x conftest$ac_exeext; then
18691 ac_cv_lib_intl_strftime=yes
18693 echo "$as_me: failed program was
:" >&5
18694 sed 's/^/| /' conftest.$ac_ext >&5
18696 ac_cv_lib_intl_strftime=no
18699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18700 conftest$ac_exeext conftest.$ac_ext
18701 LIBS=$ac_check_lib_save_LIBS
18703 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18704 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18705 if test $ac_cv_lib_intl_strftime = yes; then
18706 cat >>confdefs.h <<\_ACEOF
18707 #define HAVE_STRFTIME 1
18710 LIBS="-lintl $LIBS"
18719 for ac_func in grantpt
18721 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18722 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18723 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18724 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18725 echo $ECHO_N "(cached
) $ECHO_C" >&6
18727 cat >conftest.$ac_ext <<_ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h. */
18733 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18734 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18735 #define $ac_func innocuous_$ac_func
18737 /* System header to define __stub macros and hopefully few prototypes,
18738 which can conflict with char $ac_func (); below.
18739 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18740 <limits.h> exists even on freestanding compilers. */
18743 # include <limits.h>
18745 # include <assert.h>
18750 /* Override any GCC internal prototype to avoid an error.
18751 Use char because int might match the return type of a GCC
18752 builtin and then its argument prototype would still apply. */
18757 /* The GNU C library defines this for functions which it implements
18758 to always fail with ENOSYS. Some functions are actually named
18759 something starting with __ and the normal name is an alias. */
18760 #if defined __stub_$ac_func || defined __stub___$ac_func
18767 return $ac_func ();
18772 rm -f conftest.$ac_objext conftest$ac_exeext
18773 if { (ac_try="$ac_link"
18774 case "(($ac_try" in
18775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776 *) ac_try_echo=$ac_try;;
18778 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18779 (eval "$ac_link") 2>conftest.er1
18781 grep -v '^ *+' conftest.er1 >conftest.err
18783 cat conftest.err >&5
18784 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18785 (exit $ac_status); } && {
18786 test -z "$ac_c_werror_flag" ||
18787 test ! -s conftest.err
18788 } && test -s conftest$ac_exeext &&
18789 $as_test_x conftest$ac_exeext; then
18790 eval "$as_ac_var=yes"
18792 echo "$as_me: failed program was
:" >&5
18793 sed 's/^/| /' conftest.$ac_ext >&5
18795 eval "$as_ac_var=no
"
18798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18799 conftest$ac_exeext conftest.$ac_ext
18801 ac_res=`eval echo '${'$as_ac_var'}'`
18802 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18803 echo "${ECHO_T}$ac_res" >&6; }
18804 if test `eval echo '${'$as_ac_var'}'` = yes; then
18805 cat >>confdefs.h <<_ACEOF
18806 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18813 # PTY-related GNU extensions.
18815 for ac_func in getpt
18817 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18818 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18819 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18820 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18821 echo $ECHO_N "(cached
) $ECHO_C" >&6
18823 cat >conftest.$ac_ext <<_ACEOF
18826 cat confdefs.h >>conftest.$ac_ext
18827 cat >>conftest.$ac_ext <<_ACEOF
18828 /* end confdefs.h. */
18829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18831 #define $ac_func innocuous_$ac_func
18833 /* System header to define __stub macros and hopefully few prototypes,
18834 which can conflict with char $ac_func (); below.
18835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18836 <limits.h> exists even on freestanding compilers. */
18839 # include <limits.h>
18841 # include <assert.h>
18846 /* Override any GCC internal prototype to avoid an error.
18847 Use char because int might match the return type of a GCC
18848 builtin and then its argument prototype would still apply. */
18853 /* The GNU C library defines this for functions which it implements
18854 to always fail with ENOSYS. Some functions are actually named
18855 something starting with __ and the normal name is an alias. */
18856 #if defined __stub_$ac_func || defined __stub___$ac_func
18863 return $ac_func ();
18868 rm -f conftest.$ac_objext conftest$ac_exeext
18869 if { (ac_try="$ac_link"
18870 case "(($ac_try" in
18871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18872 *) ac_try_echo=$ac_try;;
18874 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18875 (eval "$ac_link") 2>conftest.er1
18877 grep -v '^ *+' conftest.er1 >conftest.err
18879 cat conftest.err >&5
18880 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18881 (exit $ac_status); } && {
18882 test -z "$ac_c_werror_flag" ||
18883 test ! -s conftest.err
18884 } && test -s conftest$ac_exeext &&
18885 $as_test_x conftest$ac_exeext; then
18886 eval "$as_ac_var=yes"
18888 echo "$as_me: failed program was
:" >&5
18889 sed 's/^/| /' conftest.$ac_ext >&5
18891 eval "$as_ac_var=no
"
18894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18895 conftest$ac_exeext conftest.$ac_ext
18897 ac_res=`eval echo '${'$as_ac_var'}'`
18898 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18899 echo "${ECHO_T}$ac_res" >&6; }
18900 if test `eval echo '${'$as_ac_var'}'` = yes; then
18901 cat >>confdefs.h <<_ACEOF
18902 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18909 # Check this now, so that we will NOT find the above functions in ncurses.
18910 # That is because we have not set up to link ncurses in lib-src.
18911 # It's better to believe a function is not available
18912 # than to expect to find it in ncurses.
18914 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
18915 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
18916 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18917 echo $ECHO_N "(cached
) $ECHO_C" >&6
18919 ac_check_lib_save_LIBS=$LIBS
18920 LIBS="-lncurses $LIBS"
18921 cat >conftest.$ac_ext <<_ACEOF
18924 cat confdefs.h >>conftest.$ac_ext
18925 cat >>conftest.$ac_ext <<_ACEOF
18926 /* end confdefs.h. */
18928 /* Override any GCC internal prototype to avoid an error.
18929 Use char because int might match the return type of a GCC
18930 builtin and then its argument prototype would still apply. */
18943 rm -f conftest.$ac_objext conftest$ac_exeext
18944 if { (ac_try="$ac_link"
18945 case "(($ac_try" in
18946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18950 (eval "$ac_link") 2>conftest.er1
18952 grep -v '^ *+' conftest.er1 >conftest.err
18954 cat conftest.err >&5
18955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18956 (exit $ac_status); } && {
18957 test -z "$ac_c_werror_flag" ||
18958 test ! -s conftest.err
18959 } && test -s conftest$ac_exeext &&
18960 $as_test_x conftest$ac_exeext; then
18961 ac_cv_lib_ncurses_tparm=yes
18963 echo "$as_me: failed program was
:" >&5
18964 sed 's/^/| /' conftest.$ac_ext >&5
18966 ac_cv_lib_ncurses_tparm=no
18969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18970 conftest$ac_exeext conftest.$ac_ext
18971 LIBS=$ac_check_lib_save_LIBS
18973 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
18974 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18975 if test $ac_cv_lib_ncurses_tparm = yes; then
18976 cat >>confdefs.h <<_ACEOF
18977 #define HAVE_LIBNCURSES 1
18980 LIBS="-lncurses $LIBS"
18985 # Do we need the Hesiod library to provide the support routines?
18986 if test "$with_hesiod" = yes ; then
18987 # Don't set $LIBS here -- see comments above.
18989 { echo "$as_me:$LINENO: checking
for res_send
" >&5
18990 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
18991 if test "${ac_cv_func_res_send+set}" = set; then
18992 echo $ECHO_N "(cached
) $ECHO_C" >&6
18994 cat >conftest.$ac_ext <<_ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h. */
19000 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19002 #define res_send innocuous_res_send
19004 /* System header to define __stub macros and hopefully few prototypes,
19005 which can conflict with char res_send (); below.
19006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19007 <limits.h> exists even on freestanding compilers. */
19010 # include <limits.h>
19012 # include <assert.h>
19017 /* Override any GCC internal prototype to avoid an error.
19018 Use char because int might match the return type of a GCC
19019 builtin and then its argument prototype would still apply. */
19024 /* The GNU C library defines this for functions which it implements
19025 to always fail with ENOSYS. Some functions are actually named
19026 something starting with __ and the normal name is an alias. */
19027 #if defined __stub_res_send || defined __stub___res_send
19034 return res_send ();
19039 rm -f conftest.$ac_objext conftest$ac_exeext
19040 if { (ac_try="$ac_link"
19041 case "(($ac_try" in
19042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043 *) ac_try_echo=$ac_try;;
19045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19046 (eval "$ac_link") 2>conftest.er1
19048 grep -v '^ *+' conftest.er1 >conftest.err
19050 cat conftest.err >&5
19051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19052 (exit $ac_status); } && {
19053 test -z "$ac_c_werror_flag" ||
19054 test ! -s conftest.err
19055 } && test -s conftest$ac_exeext &&
19056 $as_test_x conftest$ac_exeext; then
19057 ac_cv_func_res_send=yes
19059 echo "$as_me: failed program was
:" >&5
19060 sed 's/^/| /' conftest.$ac_ext >&5
19062 ac_cv_func_res_send=no
19065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19066 conftest$ac_exeext conftest.$ac_ext
19068 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19069 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19070 if test $ac_cv_func_res_send = yes; then
19073 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19074 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19075 if test "${ac_cv_func___res_send+set}" = set; then
19076 echo $ECHO_N "(cached
) $ECHO_C" >&6
19078 cat >conftest.$ac_ext <<_ACEOF
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h. */
19084 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19086 #define __res_send innocuous___res_send
19088 /* System header to define __stub macros and hopefully few prototypes,
19089 which can conflict with char __res_send (); below.
19090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19091 <limits.h> exists even on freestanding compilers. */
19094 # include <limits.h>
19096 # include <assert.h>
19101 /* Override any GCC internal prototype to avoid an error.
19102 Use char because int might match the return type of a GCC
19103 builtin and then its argument prototype would still apply. */
19107 char __res_send ();
19108 /* The GNU C library defines this for functions which it implements
19109 to always fail with ENOSYS. Some functions are actually named
19110 something starting with __ and the normal name is an alias. */
19111 #if defined __stub___res_send || defined __stub_____res_send
19118 return __res_send ();
19123 rm -f conftest.$ac_objext conftest$ac_exeext
19124 if { (ac_try="$ac_link"
19125 case "(($ac_try" in
19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127 *) ac_try_echo=$ac_try;;
19129 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19130 (eval "$ac_link") 2>conftest.er1
19132 grep -v '^ *+' conftest.er1 >conftest.err
19134 cat conftest.err >&5
19135 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19136 (exit $ac_status); } && {
19137 test -z "$ac_c_werror_flag" ||
19138 test ! -s conftest.err
19139 } && test -s conftest$ac_exeext &&
19140 $as_test_x conftest$ac_exeext; then
19141 ac_cv_func___res_send=yes
19143 echo "$as_me: failed program was
:" >&5
19144 sed 's/^/| /' conftest.$ac_ext >&5
19146 ac_cv_func___res_send=no
19149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19150 conftest$ac_exeext conftest.$ac_ext
19152 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19153 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19154 if test $ac_cv_func___res_send = yes; then
19157 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19158 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19159 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19160 echo $ECHO_N "(cached
) $ECHO_C" >&6
19162 ac_check_lib_save_LIBS=$LIBS
19163 LIBS="-lresolv $LIBS"
19164 cat >conftest.$ac_ext <<_ACEOF
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19171 /* Override any GCC internal prototype to avoid an error.
19172 Use char because int might match the return type of a GCC
19173 builtin and then its argument prototype would still apply. */
19181 return res_send ();
19186 rm -f conftest.$ac_objext conftest$ac_exeext
19187 if { (ac_try="$ac_link"
19188 case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19193 (eval "$ac_link") 2>conftest.er1
19195 grep -v '^ *+' conftest.er1 >conftest.err
19197 cat conftest.err >&5
19198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19199 (exit $ac_status); } && {
19200 test -z "$ac_c_werror_flag" ||
19201 test ! -s conftest.err
19202 } && test -s conftest$ac_exeext &&
19203 $as_test_x conftest$ac_exeext; then
19204 ac_cv_lib_resolv_res_send=yes
19206 echo "$as_me: failed program was
:" >&5
19207 sed 's/^/| /' conftest.$ac_ext >&5
19209 ac_cv_lib_resolv_res_send=no
19212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19213 conftest$ac_exeext conftest.$ac_ext
19214 LIBS=$ac_check_lib_save_LIBS
19216 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19217 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19218 if test $ac_cv_lib_resolv_res_send = yes; then
19221 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19222 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19223 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19224 echo $ECHO_N "(cached
) $ECHO_C" >&6
19226 ac_check_lib_save_LIBS=$LIBS
19227 LIBS="-lresolv $LIBS"
19228 cat >conftest.$ac_ext <<_ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h. */
19235 /* Override any GCC internal prototype to avoid an error.
19236 Use char because int might match the return type of a GCC
19237 builtin and then its argument prototype would still apply. */
19241 char __res_send ();
19245 return __res_send ();
19250 rm -f conftest.$ac_objext conftest$ac_exeext
19251 if { (ac_try="$ac_link"
19252 case "(($ac_try" in
19253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19256 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_link") 2>conftest.er1
19259 grep -v '^ *+' conftest.er1 >conftest.err
19261 cat conftest.err >&5
19262 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19263 (exit $ac_status); } && {
19264 test -z "$ac_c_werror_flag" ||
19265 test ! -s conftest.err
19266 } && test -s conftest$ac_exeext &&
19267 $as_test_x conftest$ac_exeext; then
19268 ac_cv_lib_resolv___res_send=yes
19270 echo "$as_me: failed program was
:" >&5
19271 sed 's/^/| /' conftest.$ac_ext >&5
19273 ac_cv_lib_resolv___res_send=no
19276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19277 conftest$ac_exeext conftest.$ac_ext
19278 LIBS=$ac_check_lib_save_LIBS
19280 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19281 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19282 if test $ac_cv_lib_resolv___res_send = yes; then
19292 if test "$resolv" = yes ; then
19295 cat >>confdefs.h <<\_ACEOF
19296 #define HAVE_LIBRESOLV 1
19302 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19303 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19304 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19305 echo $ECHO_N "(cached
) $ECHO_C" >&6
19307 cat >conftest.$ac_ext <<_ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19313 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19314 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19315 #define hes_getmailhost innocuous_hes_getmailhost
19317 /* System header to define __stub macros and hopefully few prototypes,
19318 which can conflict with char hes_getmailhost (); below.
19319 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19320 <limits.h> exists even on freestanding compilers. */
19323 # include <limits.h>
19325 # include <assert.h>
19328 #undef hes_getmailhost
19330 /* Override any GCC internal prototype to avoid an error.
19331 Use char because int might match the return type of a GCC
19332 builtin and then its argument prototype would still apply. */
19336 char hes_getmailhost ();
19337 /* The GNU C library defines this for functions which it implements
19338 to always fail with ENOSYS. Some functions are actually named
19339 something starting with __ and the normal name is an alias. */
19340 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19347 return hes_getmailhost ();
19352 rm -f conftest.$ac_objext conftest$ac_exeext
19353 if { (ac_try="$ac_link"
19354 case "(($ac_try" in
19355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19356 *) ac_try_echo=$ac_try;;
19358 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19359 (eval "$ac_link") 2>conftest.er1
19361 grep -v '^ *+' conftest.er1 >conftest.err
19363 cat conftest.err >&5
19364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19365 (exit $ac_status); } && {
19366 test -z "$ac_c_werror_flag" ||
19367 test ! -s conftest.err
19368 } && test -s conftest$ac_exeext &&
19369 $as_test_x conftest$ac_exeext; then
19370 ac_cv_func_hes_getmailhost=yes
19372 echo "$as_me: failed program was
:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19375 ac_cv_func_hes_getmailhost=no
19378 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19379 conftest$ac_exeext conftest.$ac_ext
19381 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19382 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19383 if test $ac_cv_func_hes_getmailhost = yes; then
19386 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19387 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19388 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19389 echo $ECHO_N "(cached
) $ECHO_C" >&6
19391 ac_check_lib_save_LIBS=$LIBS
19392 LIBS="-lhesiod $RESOLVLIB $LIBS"
19393 cat >conftest.$ac_ext <<_ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19400 /* Override any GCC internal prototype to avoid an error.
19401 Use char because int might match the return type of a GCC
19402 builtin and then its argument prototype would still apply. */
19406 char hes_getmailhost ();
19410 return hes_getmailhost ();
19415 rm -f conftest.$ac_objext conftest$ac_exeext
19416 if { (ac_try="$ac_link"
19417 case "(($ac_try" in
19418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19419 *) ac_try_echo=$ac_try;;
19421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19422 (eval "$ac_link") 2>conftest.er1
19424 grep -v '^ *+' conftest.er1 >conftest.err
19426 cat conftest.err >&5
19427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19428 (exit $ac_status); } && {
19429 test -z "$ac_c_werror_flag" ||
19430 test ! -s conftest.err
19431 } && test -s conftest$ac_exeext &&
19432 $as_test_x conftest$ac_exeext; then
19433 ac_cv_lib_hesiod_hes_getmailhost=yes
19435 echo "$as_me: failed program was
:" >&5
19436 sed 's/^/| /' conftest.$ac_ext >&5
19438 ac_cv_lib_hesiod_hes_getmailhost=no
19441 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19442 conftest$ac_exeext conftest.$ac_ext
19443 LIBS=$ac_check_lib_save_LIBS
19445 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19446 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19447 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19449 cat >>confdefs.h <<\_ACEOF
19450 #define HAVE_LIBHESIOD 1
19461 # These tell us which Kerberos-related libraries to use.
19462 if test "${with_kerberos+set}" = set; then
19464 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19465 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19466 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19467 echo $ECHO_N "(cached
) $ECHO_C" >&6
19469 ac_check_lib_save_LIBS=$LIBS
19470 LIBS="-lcom_err $LIBS"
19471 cat >conftest.$ac_ext <<_ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19478 /* Override any GCC internal prototype to avoid an error.
19479 Use char because int might match the return type of a GCC
19480 builtin and then its argument prototype would still apply. */
19493 rm -f conftest.$ac_objext conftest$ac_exeext
19494 if { (ac_try="$ac_link"
19495 case "(($ac_try" in
19496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497 *) ac_try_echo=$ac_try;;
19499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19500 (eval "$ac_link") 2>conftest.er1
19502 grep -v '^ *+' conftest.er1 >conftest.err
19504 cat conftest.err >&5
19505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19506 (exit $ac_status); } && {
19507 test -z "$ac_c_werror_flag" ||
19508 test ! -s conftest.err
19509 } && test -s conftest$ac_exeext &&
19510 $as_test_x conftest$ac_exeext; then
19511 ac_cv_lib_com_err_com_err=yes
19513 echo "$as_me: failed program was
:" >&5
19514 sed 's/^/| /' conftest.$ac_ext >&5
19516 ac_cv_lib_com_err_com_err=no
19519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19520 conftest$ac_exeext conftest.$ac_ext
19521 LIBS=$ac_check_lib_save_LIBS
19523 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19524 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19525 if test $ac_cv_lib_com_err_com_err = yes; then
19526 cat >>confdefs.h <<_ACEOF
19527 #define HAVE_LIBCOM_ERR 1
19530 LIBS="-lcom_err $LIBS"
19535 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19536 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19537 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19538 echo $ECHO_N "(cached
) $ECHO_C" >&6
19540 ac_check_lib_save_LIBS=$LIBS
19541 LIBS="-lk5crypto $LIBS"
19542 cat >conftest.$ac_ext <<_ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h. */
19549 /* Override any GCC internal prototype to avoid an error.
19550 Use char because int might match the return type of a GCC
19551 builtin and then its argument prototype would still apply. */
19555 char mit_des_cbc_encrypt ();
19559 return mit_des_cbc_encrypt ();
19564 rm -f conftest.$ac_objext conftest$ac_exeext
19565 if { (ac_try="$ac_link"
19566 case "(($ac_try" in
19567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19568 *) ac_try_echo=$ac_try;;
19570 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19571 (eval "$ac_link") 2>conftest.er1
19573 grep -v '^ *+' conftest.er1 >conftest.err
19575 cat conftest.err >&5
19576 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19577 (exit $ac_status); } && {
19578 test -z "$ac_c_werror_flag" ||
19579 test ! -s conftest.err
19580 } && test -s conftest$ac_exeext &&
19581 $as_test_x conftest$ac_exeext; then
19582 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19584 echo "$as_me: failed program was
:" >&5
19585 sed 's/^/| /' conftest.$ac_ext >&5
19587 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19591 conftest$ac_exeext conftest.$ac_ext
19592 LIBS=$ac_check_lib_save_LIBS
19594 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19595 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19596 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19597 cat >>confdefs.h <<_ACEOF
19598 #define HAVE_LIBK5CRYPTO 1
19601 LIBS="-lk5crypto $LIBS"
19606 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19607 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19608 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19609 echo $ECHO_N "(cached
) $ECHO_C" >&6
19611 ac_check_lib_save_LIBS=$LIBS
19612 LIBS="-lcrypto $LIBS"
19613 cat >conftest.$ac_ext <<_ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h. */
19620 /* Override any GCC internal prototype to avoid an error.
19621 Use char because int might match the return type of a GCC
19622 builtin and then its argument prototype would still apply. */
19626 char mit_des_cbc_encrypt ();
19630 return mit_des_cbc_encrypt ();
19635 rm -f conftest.$ac_objext conftest$ac_exeext
19636 if { (ac_try="$ac_link"
19637 case "(($ac_try" in
19638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19639 *) ac_try_echo=$ac_try;;
19641 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19642 (eval "$ac_link") 2>conftest.er1
19644 grep -v '^ *+' conftest.er1 >conftest.err
19646 cat conftest.err >&5
19647 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19648 (exit $ac_status); } && {
19649 test -z "$ac_c_werror_flag" ||
19650 test ! -s conftest.err
19651 } && test -s conftest$ac_exeext &&
19652 $as_test_x conftest$ac_exeext; then
19653 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19655 echo "$as_me: failed program was
:" >&5
19656 sed 's/^/| /' conftest.$ac_ext >&5
19658 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19662 conftest$ac_exeext conftest.$ac_ext
19663 LIBS=$ac_check_lib_save_LIBS
19665 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19666 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19667 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19668 cat >>confdefs.h <<_ACEOF
19669 #define HAVE_LIBCRYPTO 1
19672 LIBS="-lcrypto $LIBS"
19677 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19678 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19679 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19680 echo $ECHO_N "(cached
) $ECHO_C" >&6
19682 ac_check_lib_save_LIBS=$LIBS
19683 LIBS="-lkrb5 $LIBS"
19684 cat >conftest.$ac_ext <<_ACEOF
19687 cat confdefs.h >>conftest.$ac_ext
19688 cat >>conftest.$ac_ext <<_ACEOF
19689 /* end confdefs.h. */
19691 /* Override any GCC internal prototype to avoid an error.
19692 Use char because int might match the return type of a GCC
19693 builtin and then its argument prototype would still apply. */
19697 char krb5_init_context ();
19701 return krb5_init_context ();
19706 rm -f conftest.$ac_objext conftest$ac_exeext
19707 if { (ac_try="$ac_link"
19708 case "(($ac_try" in
19709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19710 *) ac_try_echo=$ac_try;;
19712 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19713 (eval "$ac_link") 2>conftest.er1
19715 grep -v '^ *+' conftest.er1 >conftest.err
19717 cat conftest.err >&5
19718 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19719 (exit $ac_status); } && {
19720 test -z "$ac_c_werror_flag" ||
19721 test ! -s conftest.err
19722 } && test -s conftest$ac_exeext &&
19723 $as_test_x conftest$ac_exeext; then
19724 ac_cv_lib_krb5_krb5_init_context=yes
19726 echo "$as_me: failed program was
:" >&5
19727 sed 's/^/| /' conftest.$ac_ext >&5
19729 ac_cv_lib_krb5_krb5_init_context=no
19732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19733 conftest$ac_exeext conftest.$ac_ext
19734 LIBS=$ac_check_lib_save_LIBS
19736 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19737 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19738 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19739 cat >>confdefs.h <<_ACEOF
19740 #define HAVE_LIBKRB5 1
19743 LIBS="-lkrb5 $LIBS"
19747 if test "${with_kerberos5+set}" != set; then
19749 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19750 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19751 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19752 echo $ECHO_N "(cached
) $ECHO_C" >&6
19754 ac_check_lib_save_LIBS=$LIBS
19755 LIBS="-ldes425 $LIBS"
19756 cat >conftest.$ac_ext <<_ACEOF
19759 cat confdefs.h >>conftest.$ac_ext
19760 cat >>conftest.$ac_ext <<_ACEOF
19761 /* end confdefs.h. */
19763 /* Override any GCC internal prototype to avoid an error.
19764 Use char because int might match the return type of a GCC
19765 builtin and then its argument prototype would still apply. */
19769 char des_cbc_encrypt ();
19773 return des_cbc_encrypt ();
19778 rm -f conftest.$ac_objext conftest$ac_exeext
19779 if { (ac_try="$ac_link"
19780 case "(($ac_try" in
19781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19782 *) ac_try_echo=$ac_try;;
19784 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19785 (eval "$ac_link") 2>conftest.er1
19787 grep -v '^ *+' conftest.er1 >conftest.err
19789 cat conftest.err >&5
19790 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19791 (exit $ac_status); } && {
19792 test -z "$ac_c_werror_flag" ||
19793 test ! -s conftest.err
19794 } && test -s conftest$ac_exeext &&
19795 $as_test_x conftest$ac_exeext; then
19796 ac_cv_lib_des425_des_cbc_encrypt=yes
19798 echo "$as_me: failed program was
:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19801 ac_cv_lib_des425_des_cbc_encrypt=no
19804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19805 conftest$ac_exeext conftest.$ac_ext
19806 LIBS=$ac_check_lib_save_LIBS
19808 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19809 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19810 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19811 cat >>confdefs.h <<_ACEOF
19812 #define HAVE_LIBDES425 1
19815 LIBS="-ldes425 $LIBS"
19819 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
19820 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
19821 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19822 echo $ECHO_N "(cached
) $ECHO_C" >&6
19824 ac_check_lib_save_LIBS=$LIBS
19826 cat >conftest.$ac_ext <<_ACEOF
19829 cat confdefs.h >>conftest.$ac_ext
19830 cat >>conftest.$ac_ext <<_ACEOF
19831 /* end confdefs.h. */
19833 /* Override any GCC internal prototype to avoid an error.
19834 Use char because int might match the return type of a GCC
19835 builtin and then its argument prototype would still apply. */
19839 char des_cbc_encrypt ();
19843 return des_cbc_encrypt ();
19848 rm -f conftest.$ac_objext conftest$ac_exeext
19849 if { (ac_try="$ac_link"
19850 case "(($ac_try" in
19851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19852 *) ac_try_echo=$ac_try;;
19854 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19855 (eval "$ac_link") 2>conftest.er1
19857 grep -v '^ *+' conftest.er1 >conftest.err
19859 cat conftest.err >&5
19860 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19861 (exit $ac_status); } && {
19862 test -z "$ac_c_werror_flag" ||
19863 test ! -s conftest.err
19864 } && test -s conftest$ac_exeext &&
19865 $as_test_x conftest$ac_exeext; then
19866 ac_cv_lib_des_des_cbc_encrypt=yes
19868 echo "$as_me: failed program was
:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19871 ac_cv_lib_des_des_cbc_encrypt=no
19874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19875 conftest$ac_exeext conftest.$ac_ext
19876 LIBS=$ac_check_lib_save_LIBS
19878 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
19879 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19880 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19881 cat >>confdefs.h <<_ACEOF
19882 #define HAVE_LIBDES 1
19892 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
19893 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
19894 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19895 echo $ECHO_N "(cached
) $ECHO_C" >&6
19897 ac_check_lib_save_LIBS=$LIBS
19898 LIBS="-lkrb4 $LIBS"
19899 cat >conftest.$ac_ext <<_ACEOF
19902 cat confdefs.h >>conftest.$ac_ext
19903 cat >>conftest.$ac_ext <<_ACEOF
19904 /* end confdefs.h. */
19906 /* Override any GCC internal prototype to avoid an error.
19907 Use char because int might match the return type of a GCC
19908 builtin and then its argument prototype would still apply. */
19912 char krb_get_cred ();
19916 return krb_get_cred ();
19921 rm -f conftest.$ac_objext conftest$ac_exeext
19922 if { (ac_try="$ac_link"
19923 case "(($ac_try" in
19924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19925 *) ac_try_echo=$ac_try;;
19927 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19928 (eval "$ac_link") 2>conftest.er1
19930 grep -v '^ *+' conftest.er1 >conftest.err
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19934 (exit $ac_status); } && {
19935 test -z "$ac_c_werror_flag" ||
19936 test ! -s conftest.err
19937 } && test -s conftest$ac_exeext &&
19938 $as_test_x conftest$ac_exeext; then
19939 ac_cv_lib_krb4_krb_get_cred=yes
19941 echo "$as_me: failed program was
:" >&5
19942 sed 's/^/| /' conftest.$ac_ext >&5
19944 ac_cv_lib_krb4_krb_get_cred=no
19947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19948 conftest$ac_exeext conftest.$ac_ext
19949 LIBS=$ac_check_lib_save_LIBS
19951 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
19952 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19953 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19954 cat >>confdefs.h <<_ACEOF
19955 #define HAVE_LIBKRB4 1
19958 LIBS="-lkrb4 $LIBS"
19962 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
19963 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
19964 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19965 echo $ECHO_N "(cached
) $ECHO_C" >&6
19967 ac_check_lib_save_LIBS=$LIBS
19969 cat >conftest.$ac_ext <<_ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h. */
19976 /* Override any GCC internal prototype to avoid an error.
19977 Use char because int might match the return type of a GCC
19978 builtin and then its argument prototype would still apply. */
19982 char krb_get_cred ();
19986 return krb_get_cred ();
19991 rm -f conftest.$ac_objext conftest$ac_exeext
19992 if { (ac_try="$ac_link"
19993 case "(($ac_try" in
19994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19995 *) ac_try_echo=$ac_try;;
19997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19998 (eval "$ac_link") 2>conftest.er1
20000 grep -v '^ *+' conftest.er1 >conftest.err
20002 cat conftest.err >&5
20003 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20004 (exit $ac_status); } && {
20005 test -z "$ac_c_werror_flag" ||
20006 test ! -s conftest.err
20007 } && test -s conftest$ac_exeext &&
20008 $as_test_x conftest$ac_exeext; then
20009 ac_cv_lib_krb_krb_get_cred=yes
20011 echo "$as_me: failed program was
:" >&5
20012 sed 's/^/| /' conftest.$ac_ext >&5
20014 ac_cv_lib_krb_krb_get_cred=no
20017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20018 conftest$ac_exeext conftest.$ac_ext
20019 LIBS=$ac_check_lib_save_LIBS
20021 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20022 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20023 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20024 cat >>confdefs.h <<_ACEOF
20025 #define HAVE_LIBKRB 1
20036 if test "${with_kerberos5+set}" = set; then
20038 for ac_header in krb5.h
20040 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20041 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20042 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20043 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20044 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20045 echo $ECHO_N "(cached
) $ECHO_C" >&6
20047 ac_res=`eval echo '${'$as_ac_Header'}'`
20048 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20049 echo "${ECHO_T}$ac_res" >&6; }
20051 # Is the header compilable?
20052 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20053 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20054 cat >conftest.$ac_ext <<_ACEOF
20057 cat confdefs.h >>conftest.$ac_ext
20058 cat >>conftest.$ac_ext <<_ACEOF
20059 /* end confdefs.h. */
20060 $ac_includes_default
20061 #include <$ac_header>
20063 rm -f conftest.$ac_objext
20064 if { (ac_try="$ac_compile"
20065 case "(($ac_try" in
20066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20067 *) ac_try_echo=$ac_try;;
20069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20070 (eval "$ac_compile") 2>conftest.er1
20072 grep -v '^ *+' conftest.er1 >conftest.err
20074 cat conftest.err >&5
20075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20076 (exit $ac_status); } && {
20077 test -z "$ac_c_werror_flag" ||
20078 test ! -s conftest.err
20079 } && test -s conftest.$ac_objext; then
20080 ac_header_compiler=yes
20082 echo "$as_me: failed program was
:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20085 ac_header_compiler=no
20088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20089 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20090 echo "${ECHO_T}$ac_header_compiler" >&6; }
20092 # Is the header present?
20093 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20094 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20095 cat >conftest.$ac_ext <<_ACEOF
20098 cat confdefs.h >>conftest.$ac_ext
20099 cat >>conftest.$ac_ext <<_ACEOF
20100 /* end confdefs.h. */
20101 #include <$ac_header>
20103 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20104 case "(($ac_try" in
20105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20106 *) ac_try_echo=$ac_try;;
20108 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20109 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20111 grep -v '^ *+' conftest.er1 >conftest.err
20113 cat conftest.err >&5
20114 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20115 (exit $ac_status); } >/dev/null && {
20116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20117 test ! -s conftest.err
20119 ac_header_preproc=yes
20121 echo "$as_me: failed program was
:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20124 ac_header_preproc=no
20127 rm -f conftest.err conftest.$ac_ext
20128 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20129 echo "${ECHO_T}$ac_header_preproc" >&6; }
20131 # So? What about this header?
20132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20134 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20135 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20136 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20138 ac_header_preproc=yes
20141 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20142 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20143 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20144 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20145 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20146 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20147 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20148 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20149 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20151 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20152 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20156 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20157 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20158 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20159 echo $ECHO_N "(cached
) $ECHO_C" >&6
20161 eval "$as_ac_Header=\
$ac_header_preproc"
20163 ac_res=`eval echo '${'$as_ac_Header'}'`
20164 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20165 echo "${ECHO_T}$ac_res" >&6; }
20168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20169 cat >>confdefs.h <<_ACEOF
20170 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20179 for ac_header in des.h
20181 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20182 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20183 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20184 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20185 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20186 echo $ECHO_N "(cached
) $ECHO_C" >&6
20188 ac_res=`eval echo '${'$as_ac_Header'}'`
20189 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20190 echo "${ECHO_T}$ac_res" >&6; }
20192 # Is the header compilable?
20193 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20194 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20195 cat >conftest.$ac_ext <<_ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h. */
20201 $ac_includes_default
20202 #include <$ac_header>
20204 rm -f conftest.$ac_objext
20205 if { (ac_try="$ac_compile"
20206 case "(($ac_try" in
20207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20208 *) ac_try_echo=$ac_try;;
20210 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20211 (eval "$ac_compile") 2>conftest.er1
20213 grep -v '^ *+' conftest.er1 >conftest.err
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20217 (exit $ac_status); } && {
20218 test -z "$ac_c_werror_flag" ||
20219 test ! -s conftest.err
20220 } && test -s conftest.$ac_objext; then
20221 ac_header_compiler=yes
20223 echo "$as_me: failed program was
:" >&5
20224 sed 's/^/| /' conftest.$ac_ext >&5
20226 ac_header_compiler=no
20229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20230 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20231 echo "${ECHO_T}$ac_header_compiler" >&6; }
20233 # Is the header present?
20234 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20235 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20236 cat >conftest.$ac_ext <<_ACEOF
20239 cat confdefs.h >>conftest.$ac_ext
20240 cat >>conftest.$ac_ext <<_ACEOF
20241 /* end confdefs.h. */
20242 #include <$ac_header>
20244 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20245 case "(($ac_try" in
20246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20247 *) ac_try_echo=$ac_try;;
20249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20250 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20252 grep -v '^ *+' conftest.er1 >conftest.err
20254 cat conftest.err >&5
20255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20256 (exit $ac_status); } >/dev/null && {
20257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20258 test ! -s conftest.err
20260 ac_header_preproc=yes
20262 echo "$as_me: failed program was
:" >&5
20263 sed 's/^/| /' conftest.$ac_ext >&5
20265 ac_header_preproc=no
20268 rm -f conftest.err conftest.$ac_ext
20269 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20270 echo "${ECHO_T}$ac_header_preproc" >&6; }
20272 # So? What about this header?
20273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20275 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20276 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20277 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20279 ac_header_preproc=yes
20282 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20283 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20284 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20285 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20286 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20287 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20288 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20289 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20290 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20292 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20293 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20297 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20298 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20299 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20300 echo $ECHO_N "(cached
) $ECHO_C" >&6
20302 eval "$as_ac_Header=\
$ac_header_preproc"
20304 ac_res=`eval echo '${'$as_ac_Header'}'`
20305 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20306 echo "${ECHO_T}$ac_res" >&6; }
20309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20310 cat >>confdefs.h <<_ACEOF
20311 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20316 for ac_header in kerberosIV/des.h
20318 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20319 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20320 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20321 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20322 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20323 echo $ECHO_N "(cached
) $ECHO_C" >&6
20325 ac_res=`eval echo '${'$as_ac_Header'}'`
20326 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20327 echo "${ECHO_T}$ac_res" >&6; }
20329 # Is the header compilable?
20330 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20331 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20332 cat >conftest.$ac_ext <<_ACEOF
20335 cat confdefs.h >>conftest.$ac_ext
20336 cat >>conftest.$ac_ext <<_ACEOF
20337 /* end confdefs.h. */
20338 $ac_includes_default
20339 #include <$ac_header>
20341 rm -f conftest.$ac_objext
20342 if { (ac_try="$ac_compile"
20343 case "(($ac_try" in
20344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345 *) ac_try_echo=$ac_try;;
20347 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20348 (eval "$ac_compile") 2>conftest.er1
20350 grep -v '^ *+' conftest.er1 >conftest.err
20352 cat conftest.err >&5
20353 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20354 (exit $ac_status); } && {
20355 test -z "$ac_c_werror_flag" ||
20356 test ! -s conftest.err
20357 } && test -s conftest.$ac_objext; then
20358 ac_header_compiler=yes
20360 echo "$as_me: failed program was
:" >&5
20361 sed 's/^/| /' conftest.$ac_ext >&5
20363 ac_header_compiler=no
20366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20367 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20368 echo "${ECHO_T}$ac_header_compiler" >&6; }
20370 # Is the header present?
20371 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20372 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20373 cat >conftest.$ac_ext <<_ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20379 #include <$ac_header>
20381 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20382 case "(($ac_try" in
20383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20384 *) ac_try_echo=$ac_try;;
20386 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20387 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20389 grep -v '^ *+' conftest.er1 >conftest.err
20391 cat conftest.err >&5
20392 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20393 (exit $ac_status); } >/dev/null && {
20394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20395 test ! -s conftest.err
20397 ac_header_preproc=yes
20399 echo "$as_me: failed program was
:" >&5
20400 sed 's/^/| /' conftest.$ac_ext >&5
20402 ac_header_preproc=no
20405 rm -f conftest.err conftest.$ac_ext
20406 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20407 echo "${ECHO_T}$ac_header_preproc" >&6; }
20409 # So? What about this header?
20410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20412 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20413 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20414 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20415 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20416 ac_header_preproc=yes
20419 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20420 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20421 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20422 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20423 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20424 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20425 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20426 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20427 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20428 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20429 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20430 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20434 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20435 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20436 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20437 echo $ECHO_N "(cached
) $ECHO_C" >&6
20439 eval "$as_ac_Header=\
$ac_header_preproc"
20441 ac_res=`eval echo '${'$as_ac_Header'}'`
20442 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20443 echo "${ECHO_T}$ac_res" >&6; }
20446 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20447 cat >>confdefs.h <<_ACEOF
20448 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20453 for ac_header in kerberos/des.h
20455 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20456 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20457 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20458 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20459 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20460 echo $ECHO_N "(cached
) $ECHO_C" >&6
20462 ac_res=`eval echo '${'$as_ac_Header'}'`
20463 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20464 echo "${ECHO_T}$ac_res" >&6; }
20466 # Is the header compilable?
20467 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20468 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20469 cat >conftest.$ac_ext <<_ACEOF
20472 cat confdefs.h >>conftest.$ac_ext
20473 cat >>conftest.$ac_ext <<_ACEOF
20474 /* end confdefs.h. */
20475 $ac_includes_default
20476 #include <$ac_header>
20478 rm -f conftest.$ac_objext
20479 if { (ac_try="$ac_compile"
20480 case "(($ac_try" in
20481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20482 *) ac_try_echo=$ac_try;;
20484 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20485 (eval "$ac_compile") 2>conftest.er1
20487 grep -v '^ *+' conftest.er1 >conftest.err
20489 cat conftest.err >&5
20490 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20491 (exit $ac_status); } && {
20492 test -z "$ac_c_werror_flag" ||
20493 test ! -s conftest.err
20494 } && test -s conftest.$ac_objext; then
20495 ac_header_compiler=yes
20497 echo "$as_me: failed program was
:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20500 ac_header_compiler=no
20503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20504 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20505 echo "${ECHO_T}$ac_header_compiler" >&6; }
20507 # Is the header present?
20508 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20509 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20510 cat >conftest.$ac_ext <<_ACEOF
20513 cat confdefs.h >>conftest.$ac_ext
20514 cat >>conftest.$ac_ext <<_ACEOF
20515 /* end confdefs.h. */
20516 #include <$ac_header>
20518 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20519 case "(($ac_try" in
20520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20521 *) ac_try_echo=$ac_try;;
20523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20524 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20526 grep -v '^ *+' conftest.er1 >conftest.err
20528 cat conftest.err >&5
20529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20530 (exit $ac_status); } >/dev/null && {
20531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20532 test ! -s conftest.err
20534 ac_header_preproc=yes
20536 echo "$as_me: failed program was
:" >&5
20537 sed 's/^/| /' conftest.$ac_ext >&5
20539 ac_header_preproc=no
20542 rm -f conftest.err conftest.$ac_ext
20543 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20544 echo "${ECHO_T}$ac_header_preproc" >&6; }
20546 # So? What about this header?
20547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20549 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20550 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20551 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20553 ac_header_preproc=yes
20556 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20557 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20558 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20559 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20560 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20561 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20562 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20563 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20564 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20566 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20567 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20571 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20572 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20573 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20574 echo $ECHO_N "(cached
) $ECHO_C" >&6
20576 eval "$as_ac_Header=\
$ac_header_preproc"
20578 ac_res=`eval echo '${'$as_ac_Header'}'`
20579 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20580 echo "${ECHO_T}$ac_res" >&6; }
20583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20584 cat >>confdefs.h <<_ACEOF
20585 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20601 for ac_header in krb.h
20603 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20604 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20605 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20606 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20607 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20608 echo $ECHO_N "(cached
) $ECHO_C" >&6
20610 ac_res=`eval echo '${'$as_ac_Header'}'`
20611 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20612 echo "${ECHO_T}$ac_res" >&6; }
20614 # Is the header compilable?
20615 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20616 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20617 cat >conftest.$ac_ext <<_ACEOF
20620 cat confdefs.h >>conftest.$ac_ext
20621 cat >>conftest.$ac_ext <<_ACEOF
20622 /* end confdefs.h. */
20623 $ac_includes_default
20624 #include <$ac_header>
20626 rm -f conftest.$ac_objext
20627 if { (ac_try="$ac_compile"
20628 case "(($ac_try" in
20629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20630 *) ac_try_echo=$ac_try;;
20632 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20633 (eval "$ac_compile") 2>conftest.er1
20635 grep -v '^ *+' conftest.er1 >conftest.err
20637 cat conftest.err >&5
20638 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20639 (exit $ac_status); } && {
20640 test -z "$ac_c_werror_flag" ||
20641 test ! -s conftest.err
20642 } && test -s conftest.$ac_objext; then
20643 ac_header_compiler=yes
20645 echo "$as_me: failed program was
:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20648 ac_header_compiler=no
20651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20652 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20653 echo "${ECHO_T}$ac_header_compiler" >&6; }
20655 # Is the header present?
20656 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20657 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20658 cat >conftest.$ac_ext <<_ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h. */
20664 #include <$ac_header>
20666 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20667 case "(($ac_try" in
20668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20669 *) ac_try_echo=$ac_try;;
20671 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20672 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20674 grep -v '^ *+' conftest.er1 >conftest.err
20676 cat conftest.err >&5
20677 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20678 (exit $ac_status); } >/dev/null && {
20679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20680 test ! -s conftest.err
20682 ac_header_preproc=yes
20684 echo "$as_me: failed program was
:" >&5
20685 sed 's/^/| /' conftest.$ac_ext >&5
20687 ac_header_preproc=no
20690 rm -f conftest.err conftest.$ac_ext
20691 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20692 echo "${ECHO_T}$ac_header_preproc" >&6; }
20694 # So? What about this header?
20695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20697 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20698 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20699 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20701 ac_header_preproc=yes
20704 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20705 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20706 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20707 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20708 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20709 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20710 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20711 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20712 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20714 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20715 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20719 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20720 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20721 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20722 echo $ECHO_N "(cached
) $ECHO_C" >&6
20724 eval "$as_ac_Header=\
$ac_header_preproc"
20726 ac_res=`eval echo '${'$as_ac_Header'}'`
20727 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20728 echo "${ECHO_T}$ac_res" >&6; }
20731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20732 cat >>confdefs.h <<_ACEOF
20733 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20738 for ac_header in kerberosIV/krb.h
20740 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20741 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20742 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20743 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20744 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20745 echo $ECHO_N "(cached
) $ECHO_C" >&6
20747 ac_res=`eval echo '${'$as_ac_Header'}'`
20748 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20749 echo "${ECHO_T}$ac_res" >&6; }
20751 # Is the header compilable?
20752 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20753 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20754 cat >conftest.$ac_ext <<_ACEOF
20757 cat confdefs.h >>conftest.$ac_ext
20758 cat >>conftest.$ac_ext <<_ACEOF
20759 /* end confdefs.h. */
20760 $ac_includes_default
20761 #include <$ac_header>
20763 rm -f conftest.$ac_objext
20764 if { (ac_try="$ac_compile"
20765 case "(($ac_try" in
20766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767 *) ac_try_echo=$ac_try;;
20769 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20770 (eval "$ac_compile") 2>conftest.er1
20772 grep -v '^ *+' conftest.er1 >conftest.err
20774 cat conftest.err >&5
20775 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20776 (exit $ac_status); } && {
20777 test -z "$ac_c_werror_flag" ||
20778 test ! -s conftest.err
20779 } && test -s conftest.$ac_objext; then
20780 ac_header_compiler=yes
20782 echo "$as_me: failed program was
:" >&5
20783 sed 's/^/| /' conftest.$ac_ext >&5
20785 ac_header_compiler=no
20788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20789 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20790 echo "${ECHO_T}$ac_header_compiler" >&6; }
20792 # Is the header present?
20793 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20794 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20795 cat >conftest.$ac_ext <<_ACEOF
20798 cat confdefs.h >>conftest.$ac_ext
20799 cat >>conftest.$ac_ext <<_ACEOF
20800 /* end confdefs.h. */
20801 #include <$ac_header>
20803 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20804 case "(($ac_try" in
20805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20806 *) ac_try_echo=$ac_try;;
20808 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20809 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20811 grep -v '^ *+' conftest.er1 >conftest.err
20813 cat conftest.err >&5
20814 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20815 (exit $ac_status); } >/dev/null && {
20816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20817 test ! -s conftest.err
20819 ac_header_preproc=yes
20821 echo "$as_me: failed program was
:" >&5
20822 sed 's/^/| /' conftest.$ac_ext >&5
20824 ac_header_preproc=no
20827 rm -f conftest.err conftest.$ac_ext
20828 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20829 echo "${ECHO_T}$ac_header_preproc" >&6; }
20831 # So? What about this header?
20832 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20834 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20835 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20836 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20837 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20838 ac_header_preproc=yes
20841 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20842 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20843 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20844 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20845 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20846 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20847 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20848 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20849 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20850 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20851 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20852 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20856 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20857 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20858 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20859 echo $ECHO_N "(cached
) $ECHO_C" >&6
20861 eval "$as_ac_Header=\
$ac_header_preproc"
20863 ac_res=`eval echo '${'$as_ac_Header'}'`
20864 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20865 echo "${ECHO_T}$ac_res" >&6; }
20868 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20869 cat >>confdefs.h <<_ACEOF
20870 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20875 for ac_header in kerberos/krb.h
20877 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20878 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20879 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20880 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20881 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20882 echo $ECHO_N "(cached
) $ECHO_C" >&6
20884 ac_res=`eval echo '${'$as_ac_Header'}'`
20885 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20886 echo "${ECHO_T}$ac_res" >&6; }
20888 # Is the header compilable?
20889 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20890 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20891 cat >conftest.$ac_ext <<_ACEOF
20894 cat confdefs.h >>conftest.$ac_ext
20895 cat >>conftest.$ac_ext <<_ACEOF
20896 /* end confdefs.h. */
20897 $ac_includes_default
20898 #include <$ac_header>
20900 rm -f conftest.$ac_objext
20901 if { (ac_try="$ac_compile"
20902 case "(($ac_try" in
20903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904 *) ac_try_echo=$ac_try;;
20906 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20907 (eval "$ac_compile") 2>conftest.er1
20909 grep -v '^ *+' conftest.er1 >conftest.err
20911 cat conftest.err >&5
20912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20913 (exit $ac_status); } && {
20914 test -z "$ac_c_werror_flag" ||
20915 test ! -s conftest.err
20916 } && test -s conftest.$ac_objext; then
20917 ac_header_compiler=yes
20919 echo "$as_me: failed program was
:" >&5
20920 sed 's/^/| /' conftest.$ac_ext >&5
20922 ac_header_compiler=no
20925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20926 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20927 echo "${ECHO_T}$ac_header_compiler" >&6; }
20929 # Is the header present?
20930 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20931 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20932 cat >conftest.$ac_ext <<_ACEOF
20935 cat confdefs.h >>conftest.$ac_ext
20936 cat >>conftest.$ac_ext <<_ACEOF
20937 /* end confdefs.h. */
20938 #include <$ac_header>
20940 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20941 case "(($ac_try" in
20942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943 *) ac_try_echo=$ac_try;;
20945 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20946 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20948 grep -v '^ *+' conftest.er1 >conftest.err
20950 cat conftest.err >&5
20951 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20952 (exit $ac_status); } >/dev/null && {
20953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20954 test ! -s conftest.err
20956 ac_header_preproc=yes
20958 echo "$as_me: failed program was
:" >&5
20959 sed 's/^/| /' conftest.$ac_ext >&5
20961 ac_header_preproc=no
20964 rm -f conftest.err conftest.$ac_ext
20965 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20966 echo "${ECHO_T}$ac_header_preproc" >&6; }
20968 # So? What about this header?
20969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20971 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20972 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20973 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20975 ac_header_preproc=yes
20978 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20979 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20980 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20981 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20982 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20983 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20984 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20985 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20986 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20988 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20989 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20993 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20994 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20995 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20996 echo $ECHO_N "(cached
) $ECHO_C" >&6
20998 eval "$as_ac_Header=\
$ac_header_preproc"
21000 ac_res=`eval echo '${'$as_ac_Header'}'`
21001 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21002 echo "${ECHO_T}$ac_res" >&6; }
21005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21006 cat >>confdefs.h <<_ACEOF
21007 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21024 for ac_header in com_err.h
21026 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21027 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21028 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21029 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21030 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21031 echo $ECHO_N "(cached
) $ECHO_C" >&6
21033 ac_res=`eval echo '${'$as_ac_Header'}'`
21034 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21035 echo "${ECHO_T}$ac_res" >&6; }
21037 # Is the header compilable?
21038 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21039 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21040 cat >conftest.$ac_ext <<_ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21046 $ac_includes_default
21047 #include <$ac_header>
21049 rm -f conftest.$ac_objext
21050 if { (ac_try="$ac_compile"
21051 case "(($ac_try" in
21052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21053 *) ac_try_echo=$ac_try;;
21055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21056 (eval "$ac_compile") 2>conftest.er1
21058 grep -v '^ *+' conftest.er1 >conftest.err
21060 cat conftest.err >&5
21061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21062 (exit $ac_status); } && {
21063 test -z "$ac_c_werror_flag" ||
21064 test ! -s conftest.err
21065 } && test -s conftest.$ac_objext; then
21066 ac_header_compiler=yes
21068 echo "$as_me: failed program was
:" >&5
21069 sed 's/^/| /' conftest.$ac_ext >&5
21071 ac_header_compiler=no
21074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21075 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21076 echo "${ECHO_T}$ac_header_compiler" >&6; }
21078 # Is the header present?
21079 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21080 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21081 cat >conftest.$ac_ext <<_ACEOF
21084 cat confdefs.h >>conftest.$ac_ext
21085 cat >>conftest.$ac_ext <<_ACEOF
21086 /* end confdefs.h. */
21087 #include <$ac_header>
21089 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21090 case "(($ac_try" in
21091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21092 *) ac_try_echo=$ac_try;;
21094 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21095 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21097 grep -v '^ *+' conftest.er1 >conftest.err
21099 cat conftest.err >&5
21100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21101 (exit $ac_status); } >/dev/null && {
21102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21103 test ! -s conftest.err
21105 ac_header_preproc=yes
21107 echo "$as_me: failed program was
:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21110 ac_header_preproc=no
21113 rm -f conftest.err conftest.$ac_ext
21114 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21115 echo "${ECHO_T}$ac_header_preproc" >&6; }
21117 # So? What about this header?
21118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21120 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21121 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21122 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21124 ac_header_preproc=yes
21127 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21128 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21129 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21130 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21131 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21132 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21133 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21134 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21135 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21137 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21138 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21142 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21143 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21144 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21145 echo $ECHO_N "(cached
) $ECHO_C" >&6
21147 eval "$as_ac_Header=\
$ac_header_preproc"
21149 ac_res=`eval echo '${'$as_ac_Header'}'`
21150 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21151 echo "${ECHO_T}$ac_res" >&6; }
21154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21155 cat >>confdefs.h <<_ACEOF
21156 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21165 # Solaris requires -lintl if you want strerror (which calls dgettext)
21166 # to return localized messages.
21168 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21169 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21170 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21171 echo $ECHO_N "(cached
) $ECHO_C" >&6
21173 ac_check_lib_save_LIBS=$LIBS
21174 LIBS="-lintl $LIBS"
21175 cat >conftest.$ac_ext <<_ACEOF
21178 cat confdefs.h >>conftest.$ac_ext
21179 cat >>conftest.$ac_ext <<_ACEOF
21180 /* end confdefs.h. */
21182 /* Override any GCC internal prototype to avoid an error.
21183 Use char because int might match the return type of a GCC
21184 builtin and then its argument prototype would still apply. */
21192 return dgettext ();
21197 rm -f conftest.$ac_objext conftest$ac_exeext
21198 if { (ac_try="$ac_link"
21199 case "(($ac_try" in
21200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21201 *) ac_try_echo=$ac_try;;
21203 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21204 (eval "$ac_link") 2>conftest.er1
21206 grep -v '^ *+' conftest.er1 >conftest.err
21208 cat conftest.err >&5
21209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21210 (exit $ac_status); } && {
21211 test -z "$ac_c_werror_flag" ||
21212 test ! -s conftest.err
21213 } && test -s conftest$ac_exeext &&
21214 $as_test_x conftest$ac_exeext; then
21215 ac_cv_lib_intl_dgettext=yes
21217 echo "$as_me: failed program was
:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21220 ac_cv_lib_intl_dgettext=no
21223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21224 conftest$ac_exeext conftest.$ac_ext
21225 LIBS=$ac_check_lib_save_LIBS
21227 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21228 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21229 if test $ac_cv_lib_intl_dgettext = yes; then
21230 cat >>confdefs.h <<_ACEOF
21231 #define HAVE_LIBINTL 1
21234 LIBS="-lintl $LIBS"
21239 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21240 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21241 if test "${emacs_cv_localtime_cache+set}" = set; then
21242 echo $ECHO_N "(cached
) $ECHO_C" >&6
21244 if test x$ac_cv_func_tzset = xyes; then
21245 if test "$cross_compiling" = yes; then
21246 # If we have tzset, assume the worst when cross-compiling.
21247 emacs_cv_localtime_cache=yes
21249 cat >conftest.$ac_ext <<_ACEOF
21252 cat confdefs.h >>conftest.$ac_ext
21253 cat >>conftest.$ac_ext <<_ACEOF
21254 /* end confdefs.h. */
21256 extern char **environ;
21260 for (to = from = environ; (*to = *from); from++)
21261 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21264 char TZ_GMT0[] = "TZ
=GMT0
";
21265 char TZ_PST8[] = "TZ
=PST8
";
21268 time_t now = time ((time_t *) 0);
21269 int hour_GMT0, hour_unset;
21270 if (putenv (TZ_GMT0) != 0)
21272 hour_GMT0 = localtime (&now)->tm_hour;
21274 hour_unset = localtime (&now)->tm_hour;
21275 if (putenv (TZ_PST8) != 0)
21277 if (localtime (&now)->tm_hour == hour_GMT0)
21280 if (localtime (&now)->tm_hour != hour_unset)
21285 rm -f conftest$ac_exeext
21286 if { (ac_try="$ac_link"
21287 case "(($ac_try" in
21288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21289 *) ac_try_echo=$ac_try;;
21291 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21292 (eval "$ac_link") 2>&5
21294 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21296 { (case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_try") 2>&5
21303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21304 (exit $ac_status); }; }; then
21305 emacs_cv_localtime_cache=no
21307 echo "$as_me: program exited with status
$ac_status" >&5
21308 echo "$as_me: failed program was
:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21311 ( exit $ac_status )
21312 emacs_cv_localtime_cache=yes
21314 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21319 # If we lack tzset, report that localtime does not cache TZ,
21320 # since we can't invalidate the cache if we don't have tzset.
21321 emacs_cv_localtime_cache=no
21324 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21325 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21326 if test $emacs_cv_localtime_cache = yes; then
21328 cat >>confdefs.h <<\_ACEOF
21329 #define LOCALTIME_CACHE 1
21334 if test "x
$HAVE_TIMEVAL" = xyes; then
21336 for ac_func in gettimeofday
21338 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21339 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21340 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21341 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21342 echo $ECHO_N "(cached
) $ECHO_C" >&6
21344 cat >conftest.$ac_ext <<_ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h. */
21350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21352 #define $ac_func innocuous_$ac_func
21354 /* System header to define __stub macros and hopefully few prototypes,
21355 which can conflict with char $ac_func (); below.
21356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21357 <limits.h> exists even on freestanding compilers. */
21360 # include <limits.h>
21362 # include <assert.h>
21367 /* Override any GCC internal prototype to avoid an error.
21368 Use char because int might match the return type of a GCC
21369 builtin and then its argument prototype would still apply. */
21374 /* The GNU C library defines this for functions which it implements
21375 to always fail with ENOSYS. Some functions are actually named
21376 something starting with __ and the normal name is an alias. */
21377 #if defined __stub_$ac_func || defined __stub___$ac_func
21384 return $ac_func ();
21389 rm -f conftest.$ac_objext conftest$ac_exeext
21390 if { (ac_try="$ac_link"
21391 case "(($ac_try" in
21392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21393 *) ac_try_echo=$ac_try;;
21395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21396 (eval "$ac_link") 2>conftest.er1
21398 grep -v '^ *+' conftest.er1 >conftest.err
21400 cat conftest.err >&5
21401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21402 (exit $ac_status); } && {
21403 test -z "$ac_c_werror_flag" ||
21404 test ! -s conftest.err
21405 } && test -s conftest$ac_exeext &&
21406 $as_test_x conftest$ac_exeext; then
21407 eval "$as_ac_var=yes"
21409 echo "$as_me: failed program was
:" >&5
21410 sed 's/^/| /' conftest.$ac_ext >&5
21412 eval "$as_ac_var=no
"
21415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21416 conftest$ac_exeext conftest.$ac_ext
21418 ac_res=`eval echo '${'$as_ac_var'}'`
21419 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21420 echo "${ECHO_T}$ac_res" >&6; }
21421 if test `eval echo '${'$as_ac_var'}'` = yes; then
21422 cat >>confdefs.h <<_ACEOF
21423 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21429 if test $ac_cv_func_gettimeofday = yes; then
21430 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21431 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21432 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21433 echo $ECHO_N "(cached
) $ECHO_C" >&6
21435 cat >conftest.$ac_ext <<_ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h. */
21442 #ifdef TIME_WITH_SYS_TIME
21443 #include <sys/time.h>
21446 #ifdef HAVE_SYS_TIME_H
21447 #include <sys/time.h>
21455 struct timeval time;
21456 gettimeofday (&time, 0);
21461 rm -f conftest.$ac_objext
21462 if { (ac_try="$ac_compile"
21463 case "(($ac_try" in
21464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21465 *) ac_try_echo=$ac_try;;
21467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21468 (eval "$ac_compile") 2>conftest.er1
21470 grep -v '^ *+' conftest.er1 >conftest.err
21472 cat conftest.err >&5
21473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21474 (exit $ac_status); } && {
21475 test -z "$ac_c_werror_flag" ||
21476 test ! -s conftest.err
21477 } && test -s conftest.$ac_objext; then
21478 emacs_cv_gettimeofday_two_arguments=yes
21480 echo "$as_me: failed program was
:" >&5
21481 sed 's/^/| /' conftest.$ac_ext >&5
21483 emacs_cv_gettimeofday_two_arguments=no
21486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21488 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21489 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21490 if test $emacs_cv_gettimeofday_two_arguments = no; then
21492 cat >>confdefs.h <<\_ACEOF
21493 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21501 { echo "$as_me:$LINENO: checking
for socket
" >&5
21502 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21503 if test "${ac_cv_func_socket+set}" = set; then
21504 echo $ECHO_N "(cached
) $ECHO_C" >&6
21506 cat >conftest.$ac_ext <<_ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21514 #define socket innocuous_socket
21516 /* System header to define __stub macros and hopefully few prototypes,
21517 which can conflict with char socket (); below.
21518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21519 <limits.h> exists even on freestanding compilers. */
21522 # include <limits.h>
21524 # include <assert.h>
21529 /* Override any GCC internal prototype to avoid an error.
21530 Use char because int might match the return type of a GCC
21531 builtin and then its argument prototype would still apply. */
21536 /* The GNU C library defines this for functions which it implements
21537 to always fail with ENOSYS. Some functions are actually named
21538 something starting with __ and the normal name is an alias. */
21539 #if defined __stub_socket || defined __stub___socket
21551 rm -f conftest.$ac_objext conftest$ac_exeext
21552 if { (ac_try="$ac_link"
21553 case "(($ac_try" in
21554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21555 *) ac_try_echo=$ac_try;;
21557 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21558 (eval "$ac_link") 2>conftest.er1
21560 grep -v '^ *+' conftest.er1 >conftest.err
21562 cat conftest.err >&5
21563 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21564 (exit $ac_status); } && {
21565 test -z "$ac_c_werror_flag" ||
21566 test ! -s conftest.err
21567 } && test -s conftest$ac_exeext &&
21568 $as_test_x conftest$ac_exeext; then
21569 ac_cv_func_socket=yes
21571 echo "$as_me: failed program was
:" >&5
21572 sed 's/^/| /' conftest.$ac_ext >&5
21574 ac_cv_func_socket=no
21577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21578 conftest$ac_exeext conftest.$ac_ext
21580 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21581 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21582 if test $ac_cv_func_socket = yes; then
21588 if test $ok_so_far = yes; then
21589 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21590 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21591 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21592 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21593 echo $ECHO_N "(cached
) $ECHO_C" >&6
21595 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21596 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21598 # Is the header compilable?
21599 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21600 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21601 cat >conftest.$ac_ext <<_ACEOF
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h. */
21607 $ac_includes_default
21608 #include <netinet/in.h>
21610 rm -f conftest.$ac_objext
21611 if { (ac_try="$ac_compile"
21612 case "(($ac_try" in
21613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21614 *) ac_try_echo=$ac_try;;
21616 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21617 (eval "$ac_compile") 2>conftest.er1
21619 grep -v '^ *+' conftest.er1 >conftest.err
21621 cat conftest.err >&5
21622 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21623 (exit $ac_status); } && {
21624 test -z "$ac_c_werror_flag" ||
21625 test ! -s conftest.err
21626 } && test -s conftest.$ac_objext; then
21627 ac_header_compiler=yes
21629 echo "$as_me: failed program was
:" >&5
21630 sed 's/^/| /' conftest.$ac_ext >&5
21632 ac_header_compiler=no
21635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21636 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21637 echo "${ECHO_T}$ac_header_compiler" >&6; }
21639 # Is the header present?
21640 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21641 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21642 cat >conftest.$ac_ext <<_ACEOF
21645 cat confdefs.h >>conftest.$ac_ext
21646 cat >>conftest.$ac_ext <<_ACEOF
21647 /* end confdefs.h. */
21648 #include <netinet/in.h>
21650 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21651 case "(($ac_try" in
21652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21653 *) ac_try_echo=$ac_try;;
21655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21656 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21658 grep -v '^ *+' conftest.er1 >conftest.err
21660 cat conftest.err >&5
21661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21662 (exit $ac_status); } >/dev/null && {
21663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21664 test ! -s conftest.err
21666 ac_header_preproc=yes
21668 echo "$as_me: failed program was
:" >&5
21669 sed 's/^/| /' conftest.$ac_ext >&5
21671 ac_header_preproc=no
21674 rm -f conftest.err conftest.$ac_ext
21675 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21676 echo "${ECHO_T}$ac_header_preproc" >&6; }
21678 # So? What about this header?
21679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21681 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21682 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21683 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21684 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21685 ac_header_preproc=yes
21688 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21689 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21690 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21691 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21692 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21693 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21694 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21695 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21696 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21697 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21698 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21699 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21703 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21704 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21705 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21706 echo $ECHO_N "(cached
) $ECHO_C" >&6
21708 ac_cv_header_netinet_in_h=$ac_header_preproc
21710 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21711 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21714 if test $ac_cv_header_netinet_in_h = yes; then
21722 if test $ok_so_far = yes; then
21723 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21724 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21725 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21726 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21727 echo $ECHO_N "(cached
) $ECHO_C" >&6
21729 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21730 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21732 # Is the header compilable?
21733 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21734 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
21735 cat >conftest.$ac_ext <<_ACEOF
21738 cat confdefs.h >>conftest.$ac_ext
21739 cat >>conftest.$ac_ext <<_ACEOF
21740 /* end confdefs.h. */
21741 $ac_includes_default
21742 #include <arpa/inet.h>
21744 rm -f conftest.$ac_objext
21745 if { (ac_try="$ac_compile"
21746 case "(($ac_try" in
21747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748 *) ac_try_echo=$ac_try;;
21750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21751 (eval "$ac_compile") 2>conftest.er1
21753 grep -v '^ *+' conftest.er1 >conftest.err
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21757 (exit $ac_status); } && {
21758 test -z "$ac_c_werror_flag" ||
21759 test ! -s conftest.err
21760 } && test -s conftest.$ac_objext; then
21761 ac_header_compiler=yes
21763 echo "$as_me: failed program was
:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21766 ac_header_compiler=no
21769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21770 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21771 echo "${ECHO_T}$ac_header_compiler" >&6; }
21773 # Is the header present?
21774 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
21775 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
21776 cat >conftest.$ac_ext <<_ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h. */
21782 #include <arpa/inet.h>
21784 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21785 case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21790 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21792 grep -v '^ *+' conftest.er1 >conftest.err
21794 cat conftest.err >&5
21795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21796 (exit $ac_status); } >/dev/null && {
21797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21798 test ! -s conftest.err
21800 ac_header_preproc=yes
21802 echo "$as_me: failed program was
:" >&5
21803 sed 's/^/| /' conftest.$ac_ext >&5
21805 ac_header_preproc=no
21808 rm -f conftest.err conftest.$ac_ext
21809 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21810 echo "${ECHO_T}$ac_header_preproc" >&6; }
21812 # So? What about this header?
21813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21815 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21816 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21817 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
21818 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
21819 ac_header_preproc=yes
21822 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
21823 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
21824 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
21825 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
21826 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
21827 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
21828 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21829 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21830 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
21831 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
21832 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
21833 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
21837 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21838 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21839 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21840 echo $ECHO_N "(cached
) $ECHO_C" >&6
21842 ac_cv_header_arpa_inet_h=$ac_header_preproc
21844 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21845 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21848 if test $ac_cv_header_arpa_inet_h = yes; then
21856 if test $ok_so_far = yes; then
21858 cat >>confdefs.h <<\_ACEOF
21859 #define HAVE_INET_SOCKETS 1
21865 for ac_header in sys/ioctl.h
21867 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21868 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21869 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21870 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21871 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21872 echo $ECHO_N "(cached
) $ECHO_C" >&6
21874 ac_res=`eval echo '${'$as_ac_Header'}'`
21875 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21876 echo "${ECHO_T}$ac_res" >&6; }
21878 # Is the header compilable?
21879 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21880 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21881 cat >conftest.$ac_ext <<_ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h. */
21887 $ac_includes_default
21888 #include <$ac_header>
21890 rm -f conftest.$ac_objext
21891 if { (ac_try="$ac_compile"
21892 case "(($ac_try" in
21893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894 *) ac_try_echo=$ac_try;;
21896 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21897 (eval "$ac_compile") 2>conftest.er1
21899 grep -v '^ *+' conftest.er1 >conftest.err
21901 cat conftest.err >&5
21902 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21903 (exit $ac_status); } && {
21904 test -z "$ac_c_werror_flag" ||
21905 test ! -s conftest.err
21906 } && test -s conftest.$ac_objext; then
21907 ac_header_compiler=yes
21909 echo "$as_me: failed program was
:" >&5
21910 sed 's/^/| /' conftest.$ac_ext >&5
21912 ac_header_compiler=no
21915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21916 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21917 echo "${ECHO_T}$ac_header_compiler" >&6; }
21919 # Is the header present?
21920 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21921 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21922 cat >conftest.$ac_ext <<_ACEOF
21925 cat confdefs.h >>conftest.$ac_ext
21926 cat >>conftest.$ac_ext <<_ACEOF
21927 /* end confdefs.h. */
21928 #include <$ac_header>
21930 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21931 case "(($ac_try" in
21932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21933 *) ac_try_echo=$ac_try;;
21935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21936 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21938 grep -v '^ *+' conftest.er1 >conftest.err
21940 cat conftest.err >&5
21941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21942 (exit $ac_status); } >/dev/null && {
21943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21944 test ! -s conftest.err
21946 ac_header_preproc=yes
21948 echo "$as_me: failed program was
:" >&5
21949 sed 's/^/| /' conftest.$ac_ext >&5
21951 ac_header_preproc=no
21954 rm -f conftest.err conftest.$ac_ext
21955 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21956 echo "${ECHO_T}$ac_header_preproc" >&6; }
21958 # So? What about this header?
21959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21961 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21962 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21963 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21965 ac_header_preproc=yes
21968 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21969 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21970 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21971 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21972 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21973 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21974 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21975 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21976 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21978 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21979 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21983 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21984 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21985 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21986 echo $ECHO_N "(cached
) $ECHO_C" >&6
21988 eval "$as_ac_Header=\
$ac_header_preproc"
21990 ac_res=`eval echo '${'$as_ac_Header'}'`
21991 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21992 echo "${ECHO_T}$ac_res" >&6; }
21995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21996 cat >>confdefs.h <<_ACEOF
21997 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22005 if test -f /usr/lpp/X11/bin/smt.exp; then
22007 cat >>confdefs.h <<\_ACEOF
22008 #define HAVE_AIX_SMT_EXP 1
22013 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22014 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22015 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22016 { echo "$as_me:$LINENO: result
: yes" >&5
22017 echo "${ECHO_T}yes" >&6; }
22019 cat >>confdefs.h <<\_ACEOF
22020 #define HAVE_DEV_PTMX 1
22024 { echo "$as_me:$LINENO: result
: no
" >&5
22025 echo "${ECHO_T}no
" >&6; }
22028 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22029 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22030 if test "${ac_cv_type_pid_t+set}" = set; then
22031 echo $ECHO_N "(cached
) $ECHO_C" >&6
22033 cat >conftest.$ac_ext <<_ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h. */
22039 $ac_includes_default
22040 typedef pid_t ac__type_new_;
22044 if ((ac__type_new_ *) 0)
22046 if (sizeof (ac__type_new_))
22052 rm -f conftest.$ac_objext
22053 if { (ac_try="$ac_compile"
22054 case "(($ac_try" in
22055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056 *) ac_try_echo=$ac_try;;
22058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22059 (eval "$ac_compile") 2>conftest.er1
22061 grep -v '^ *+' conftest.er1 >conftest.err
22063 cat conftest.err >&5
22064 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22065 (exit $ac_status); } && {
22066 test -z "$ac_c_werror_flag" ||
22067 test ! -s conftest.err
22068 } && test -s conftest.$ac_objext; then
22069 ac_cv_type_pid_t=yes
22071 echo "$as_me: failed program was
:" >&5
22072 sed 's/^/| /' conftest.$ac_ext >&5
22074 ac_cv_type_pid_t=no
22077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22079 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22080 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22081 if test $ac_cv_type_pid_t = yes; then
22085 cat >>confdefs.h <<_ACEOF
22092 for ac_header in vfork.h
22094 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22095 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22096 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22097 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22098 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22099 echo $ECHO_N "(cached
) $ECHO_C" >&6
22101 ac_res=`eval echo '${'$as_ac_Header'}'`
22102 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22103 echo "${ECHO_T}$ac_res" >&6; }
22105 # Is the header compilable?
22106 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22107 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22108 cat >conftest.$ac_ext <<_ACEOF
22111 cat confdefs.h >>conftest.$ac_ext
22112 cat >>conftest.$ac_ext <<_ACEOF
22113 /* end confdefs.h. */
22114 $ac_includes_default
22115 #include <$ac_header>
22117 rm -f conftest.$ac_objext
22118 if { (ac_try="$ac_compile"
22119 case "(($ac_try" in
22120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22121 *) ac_try_echo=$ac_try;;
22123 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22124 (eval "$ac_compile") 2>conftest.er1
22126 grep -v '^ *+' conftest.er1 >conftest.err
22128 cat conftest.err >&5
22129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22130 (exit $ac_status); } && {
22131 test -z "$ac_c_werror_flag" ||
22132 test ! -s conftest.err
22133 } && test -s conftest.$ac_objext; then
22134 ac_header_compiler=yes
22136 echo "$as_me: failed program was
:" >&5
22137 sed 's/^/| /' conftest.$ac_ext >&5
22139 ac_header_compiler=no
22142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22143 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22144 echo "${ECHO_T}$ac_header_compiler" >&6; }
22146 # Is the header present?
22147 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22148 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22149 cat >conftest.$ac_ext <<_ACEOF
22152 cat confdefs.h >>conftest.$ac_ext
22153 cat >>conftest.$ac_ext <<_ACEOF
22154 /* end confdefs.h. */
22155 #include <$ac_header>
22157 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22158 case "(($ac_try" in
22159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22160 *) ac_try_echo=$ac_try;;
22162 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22163 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22165 grep -v '^ *+' conftest.er1 >conftest.err
22167 cat conftest.err >&5
22168 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22169 (exit $ac_status); } >/dev/null && {
22170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22171 test ! -s conftest.err
22173 ac_header_preproc=yes
22175 echo "$as_me: failed program was
:" >&5
22176 sed 's/^/| /' conftest.$ac_ext >&5
22178 ac_header_preproc=no
22181 rm -f conftest.err conftest.$ac_ext
22182 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22183 echo "${ECHO_T}$ac_header_preproc" >&6; }
22185 # So? What about this header?
22186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22188 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22189 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22190 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22191 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22192 ac_header_preproc=yes
22195 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22196 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22197 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22198 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22199 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22200 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22201 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22202 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22203 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22204 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22205 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22206 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22210 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22211 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22212 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22213 echo $ECHO_N "(cached
) $ECHO_C" >&6
22215 eval "$as_ac_Header=\
$ac_header_preproc"
22217 ac_res=`eval echo '${'$as_ac_Header'}'`
22218 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22219 echo "${ECHO_T}$ac_res" >&6; }
22222 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22223 cat >>confdefs.h <<_ACEOF
22224 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22233 for ac_func in fork vfork
22235 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22236 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22237 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22238 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22239 echo $ECHO_N "(cached
) $ECHO_C" >&6
22241 cat >conftest.$ac_ext <<_ACEOF
22244 cat confdefs.h >>conftest.$ac_ext
22245 cat >>conftest.$ac_ext <<_ACEOF
22246 /* end confdefs.h. */
22247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22249 #define $ac_func innocuous_$ac_func
22251 /* System header to define __stub macros and hopefully few prototypes,
22252 which can conflict with char $ac_func (); below.
22253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22254 <limits.h> exists even on freestanding compilers. */
22257 # include <limits.h>
22259 # include <assert.h>
22264 /* Override any GCC internal prototype to avoid an error.
22265 Use char because int might match the return type of a GCC
22266 builtin and then its argument prototype would still apply. */
22271 /* The GNU C library defines this for functions which it implements
22272 to always fail with ENOSYS. Some functions are actually named
22273 something starting with __ and the normal name is an alias. */
22274 #if defined __stub_$ac_func || defined __stub___$ac_func
22281 return $ac_func ();
22286 rm -f conftest.$ac_objext conftest$ac_exeext
22287 if { (ac_try="$ac_link"
22288 case "(($ac_try" in
22289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22290 *) ac_try_echo=$ac_try;;
22292 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22293 (eval "$ac_link") 2>conftest.er1
22295 grep -v '^ *+' conftest.er1 >conftest.err
22297 cat conftest.err >&5
22298 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22299 (exit $ac_status); } && {
22300 test -z "$ac_c_werror_flag" ||
22301 test ! -s conftest.err
22302 } && test -s conftest$ac_exeext &&
22303 $as_test_x conftest$ac_exeext; then
22304 eval "$as_ac_var=yes"
22306 echo "$as_me: failed program was
:" >&5
22307 sed 's/^/| /' conftest.$ac_ext >&5
22309 eval "$as_ac_var=no
"
22312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22313 conftest$ac_exeext conftest.$ac_ext
22315 ac_res=`eval echo '${'$as_ac_var'}'`
22316 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22317 echo "${ECHO_T}$ac_res" >&6; }
22318 if test `eval echo '${'$as_ac_var'}'` = yes; then
22319 cat >>confdefs.h <<_ACEOF
22320 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22326 if test "x
$ac_cv_func_fork" = xyes; then
22327 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22328 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22329 if test "${ac_cv_func_fork_works+set}" = set; then
22330 echo $ECHO_N "(cached
) $ECHO_C" >&6
22332 if test "$cross_compiling" = yes; then
22333 ac_cv_func_fork_works=cross
22335 cat >conftest.$ac_ext <<_ACEOF
22338 cat confdefs.h >>conftest.$ac_ext
22339 cat >>conftest.$ac_ext <<_ACEOF
22340 /* end confdefs.h. */
22341 $ac_includes_default
22346 /* By Ruediger Kuhlmann. */
22347 return fork () < 0;
22353 rm -f conftest$ac_exeext
22354 if { (ac_try="$ac_link"
22355 case "(($ac_try" in
22356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22357 *) ac_try_echo=$ac_try;;
22359 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22360 (eval "$ac_link") 2>&5
22362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22364 { (case "(($ac_try" in
22365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22366 *) ac_try_echo=$ac_try;;
22368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22369 (eval "$ac_try") 2>&5
22371 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22372 (exit $ac_status); }; }; then
22373 ac_cv_func_fork_works=yes
22375 echo "$as_me: program exited with status
$ac_status" >&5
22376 echo "$as_me: failed program was
:" >&5
22377 sed 's/^/| /' conftest.$ac_ext >&5
22379 ( exit $ac_status )
22380 ac_cv_func_fork_works=no
22382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22387 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22388 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22391 ac_cv_func_fork_works=$ac_cv_func_fork
22393 if test "x
$ac_cv_func_fork_works" = xcross; then
22395 *-*-amigaos* | *-*-msdosdjgpp*)
22396 # Override, as these systems have only a dummy fork() stub
22397 ac_cv_func_fork_works=no
22400 ac_cv_func_fork_works=yes
22403 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22404 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22406 ac_cv_func_vfork_works=$ac_cv_func_vfork
22407 if test "x
$ac_cv_func_vfork" = xyes; then
22408 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22409 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22410 if test "${ac_cv_func_vfork_works+set}" = set; then
22411 echo $ECHO_N "(cached
) $ECHO_C" >&6
22413 if test "$cross_compiling" = yes; then
22414 ac_cv_func_vfork_works=cross
22416 cat >conftest.$ac_ext <<_ACEOF
22419 cat confdefs.h >>conftest.$ac_ext
22420 cat >>conftest.$ac_ext <<_ACEOF
22421 /* end confdefs.h. */
22422 /* Thanks to Paul Eggert for this test. */
22423 $ac_includes_default
22424 #include <sys/wait.h>
22425 #ifdef HAVE_VFORK_H
22426 # include <vfork.h>
22428 /* On some sparc systems, changes by the child to local and incoming
22429 argument registers are propagated back to the parent. The compiler
22430 is told about this with #include <vfork.h>, but some compilers
22431 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22432 static variable whose address is put into a register that is
22433 clobbered by the vfork. */
22436 sparc_address_test (int arg)
22438 sparc_address_test (arg) int arg;
22441 static pid_t child;
22459 pid_t parent = getpid ();
22462 sparc_address_test (0);
22467 /* Here is another test for sparc vfork register problems. This
22468 test uses lots of local variables, at least as many local
22469 variables as main has allocated so far including compiler
22470 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22471 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22472 reuse the register of parent for one of the local variables,
22473 since it will think that parent can't possibly be used any more
22474 in this routine. Assigning to the local variable will thus
22475 munge parent in the parent process. */
22477 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22478 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22479 /* Convince the compiler that p..p7 are live; otherwise, it might
22480 use the same hardware register for all 8 local variables. */
22481 if (p != p1 || p != p2 || p != p3 || p != p4
22482 || p != p5 || p != p6 || p != p7)
22485 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22486 from child file descriptors. If the child closes a descriptor
22487 before it execs or exits, this munges the parent's descriptor
22488 as well. Test for this by closing stdout in the child. */
22489 _exit(close(fileno(stdout)) != 0);
22494 while (wait(&status) != child)
22497 /* Was there some problem with vforking? */
22500 /* Did the child fail? (This shouldn't happen.) */
22503 /* Did the vfork/compiler bug occur? */
22504 || parent != getpid()
22506 /* Did the file descriptor bug occur? */
22507 || fstat(fileno(stdout), &st) != 0
22512 rm -f conftest$ac_exeext
22513 if { (ac_try="$ac_link"
22514 case "(($ac_try" in
22515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22516 *) ac_try_echo=$ac_try;;
22518 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22519 (eval "$ac_link") 2>&5
22521 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22523 { (case "(($ac_try" in
22524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22525 *) ac_try_echo=$ac_try;;
22527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22528 (eval "$ac_try") 2>&5
22530 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22531 (exit $ac_status); }; }; then
22532 ac_cv_func_vfork_works=yes
22534 echo "$as_me: program exited with status
$ac_status" >&5
22535 echo "$as_me: failed program was
:" >&5
22536 sed 's/^/| /' conftest.$ac_ext >&5
22538 ( exit $ac_status )
22539 ac_cv_func_vfork_works=no
22541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22546 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22547 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22550 if test "x
$ac_cv_func_fork_works" = xcross; then
22551 ac_cv_func_vfork_works=$ac_cv_func_vfork
22552 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22553 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22556 if test "x
$ac_cv_func_vfork_works" = xyes; then
22558 cat >>confdefs.h <<\_ACEOF
22559 #define HAVE_WORKING_VFORK 1
22564 cat >>confdefs.h <<\_ACEOF
22569 if test "x
$ac_cv_func_fork_works" = xyes; then
22571 cat >>confdefs.h <<\_ACEOF
22572 #define HAVE_WORKING_FORK 1
22578 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22579 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22580 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22581 echo $ECHO_N "(cached
) $ECHO_C" >&6
22583 cat >conftest.$ac_ext <<_ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22589 #include <langinfo.h>
22593 char* cs = nl_langinfo(CODESET);
22598 rm -f conftest.$ac_objext conftest$ac_exeext
22599 if { (ac_try="$ac_link"
22600 case "(($ac_try" in
22601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22602 *) ac_try_echo=$ac_try;;
22604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22605 (eval "$ac_link") 2>conftest.er1
22607 grep -v '^ *+' conftest.er1 >conftest.err
22609 cat conftest.err >&5
22610 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22611 (exit $ac_status); } && {
22612 test -z "$ac_c_werror_flag" ||
22613 test ! -s conftest.err
22614 } && test -s conftest$ac_exeext &&
22615 $as_test_x conftest$ac_exeext; then
22616 emacs_cv_langinfo_codeset=yes
22618 echo "$as_me: failed program was
:" >&5
22619 sed 's/^/| /' conftest.$ac_ext >&5
22621 emacs_cv_langinfo_codeset=no
22624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22625 conftest$ac_exeext conftest.$ac_ext
22628 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22629 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22630 if test $emacs_cv_langinfo_codeset = yes; then
22632 cat >>confdefs.h <<\_ACEOF
22633 #define HAVE_LANGINFO_CODESET 1
22638 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22639 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22640 if test "${ac_cv_type_size_t+set}" = set; then
22641 echo $ECHO_N "(cached
) $ECHO_C" >&6
22643 cat >conftest.$ac_ext <<_ACEOF
22646 cat confdefs.h >>conftest.$ac_ext
22647 cat >>conftest.$ac_ext <<_ACEOF
22648 /* end confdefs.h. */
22649 $ac_includes_default
22650 typedef size_t ac__type_new_;
22654 if ((ac__type_new_ *) 0)
22656 if (sizeof (ac__type_new_))
22662 rm -f conftest.$ac_objext
22663 if { (ac_try="$ac_compile"
22664 case "(($ac_try" in
22665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22666 *) ac_try_echo=$ac_try;;
22668 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22669 (eval "$ac_compile") 2>conftest.er1
22671 grep -v '^ *+' conftest.er1 >conftest.err
22673 cat conftest.err >&5
22674 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22675 (exit $ac_status); } && {
22676 test -z "$ac_c_werror_flag" ||
22677 test ! -s conftest.err
22678 } && test -s conftest.$ac_objext; then
22679 ac_cv_type_size_t=yes
22681 echo "$as_me: failed program was
:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22684 ac_cv_type_size_t=no
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22689 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22690 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22691 if test $ac_cv_type_size_t = yes; then
22693 cat >>confdefs.h <<_ACEOF
22694 #define HAVE_SIZE_T 1
22701 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22702 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22703 if test "${ac_cv_type_mbstate_t+set}" = set; then
22704 echo $ECHO_N "(cached
) $ECHO_C" >&6
22706 cat >conftest.$ac_ext <<_ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h. */
22712 $ac_includes_default
22713 # include <wchar.h>
22717 mbstate_t x; return sizeof x;
22722 rm -f conftest.$ac_objext
22723 if { (ac_try="$ac_compile"
22724 case "(($ac_try" in
22725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22726 *) ac_try_echo=$ac_try;;
22728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22729 (eval "$ac_compile") 2>conftest.er1
22731 grep -v '^ *+' conftest.er1 >conftest.err
22733 cat conftest.err >&5
22734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22735 (exit $ac_status); } && {
22736 test -z "$ac_c_werror_flag" ||
22737 test ! -s conftest.err
22738 } && test -s conftest.$ac_objext; then
22739 ac_cv_type_mbstate_t=yes
22741 echo "$as_me: failed program was
:" >&5
22742 sed 's/^/| /' conftest.$ac_ext >&5
22744 ac_cv_type_mbstate_t=no
22747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22749 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
22750 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22751 if test $ac_cv_type_mbstate_t = yes; then
22753 cat >>confdefs.h <<\_ACEOF
22754 #define HAVE_MBSTATE_T 1
22759 cat >>confdefs.h <<\_ACEOF
22760 #define mbstate_t int
22765 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
22766 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
22767 if test "${emacs_cv_c_restrict+set}" = set; then
22768 echo $ECHO_N "(cached
) $ECHO_C" >&6
22770 cat >conftest.$ac_ext <<_ACEOF
22773 cat confdefs.h >>conftest.$ac_ext
22774 cat >>conftest.$ac_ext <<_ACEOF
22775 /* end confdefs.h. */
22776 void fred (int *restrict x);
22785 rm -f conftest.$ac_objext
22786 if { (ac_try="$ac_compile"
22787 case "(($ac_try" in
22788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22789 *) ac_try_echo=$ac_try;;
22791 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22792 (eval "$ac_compile") 2>conftest.er1
22794 grep -v '^ *+' conftest.er1 >conftest.err
22796 cat conftest.err >&5
22797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22798 (exit $ac_status); } && {
22799 test -z "$ac_c_werror_flag" ||
22800 test ! -s conftest.err
22801 } && test -s conftest.$ac_objext; then
22802 emacs_cv_c_restrict=yes
22804 echo "$as_me: failed program was
:" >&5
22805 sed 's/^/| /' conftest.$ac_ext >&5
22807 cat >conftest.$ac_ext <<_ACEOF
22810 cat confdefs.h >>conftest.$ac_ext
22811 cat >>conftest.$ac_ext <<_ACEOF
22812 /* end confdefs.h. */
22813 void fred (int *__restrict x);
22822 rm -f conftest.$ac_objext
22823 if { (ac_try="$ac_compile"
22824 case "(($ac_try" in
22825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22826 *) ac_try_echo=$ac_try;;
22828 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22829 (eval "$ac_compile") 2>conftest.er1
22831 grep -v '^ *+' conftest.er1 >conftest.err
22833 cat conftest.err >&5
22834 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22835 (exit $ac_status); } && {
22836 test -z "$ac_c_werror_flag" ||
22837 test ! -s conftest.err
22838 } && test -s conftest.$ac_objext; then
22839 emacs_cv_c_restrict=__restrict
22841 echo "$as_me: failed program was
:" >&5
22842 sed 's/^/| /' conftest.$ac_ext >&5
22844 emacs_cv_c_restrict=no
22847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22852 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
22853 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22854 case "$emacs_cv_c_restrict" in
22855 yes) emacs_restrict=restrict;;
22856 no) emacs_restrict="";;
22857 *) emacs_restrict="$emacs_cv_c_restrict";;
22859 if test "$emacs_restrict" != __restrict; then
22861 cat >>confdefs.h <<_ACEOF
22862 #define __restrict $emacs_restrict
22867 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
22868 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
22869 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22870 echo $ECHO_N "(cached
) $ECHO_C" >&6
22872 cat >conftest.$ac_ext <<_ACEOF
22875 cat confdefs.h >>conftest.$ac_ext
22876 cat >>conftest.$ac_ext <<_ACEOF
22877 /* end confdefs.h. */
22878 void fred (int x[__restrict]);
22887 rm -f conftest.$ac_objext
22888 if { (ac_try="$ac_compile"
22889 case "(($ac_try" in
22890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22891 *) ac_try_echo=$ac_try;;
22893 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22894 (eval "$ac_compile") 2>conftest.er1
22896 grep -v '^ *+' conftest.er1 >conftest.err
22898 cat conftest.err >&5
22899 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22900 (exit $ac_status); } && {
22901 test -z "$ac_c_werror_flag" ||
22902 test ! -s conftest.err
22903 } && test -s conftest.$ac_objext; then
22904 emacs_cv_c_restrict_arr=yes
22906 echo "$as_me: failed program was
:" >&5
22907 sed 's/^/| /' conftest.$ac_ext >&5
22909 emacs_cv_c_restrict_arr=no
22912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22914 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
22915 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22916 if test "$emacs_cv_c_restrict_arr" = yes; then
22918 cat >>confdefs.h <<\_ACEOF
22919 #define __restrict_arr __restrict
22926 # Set up the CFLAGS for real compilation, so we can substitute it.
22927 CFLAGS="$REAL_CFLAGS"
22928 CPPFLAGS="$REAL_CPPFLAGS"
22930 #### Find out which version of Emacs this is.
22931 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22932 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
22933 if test x"${version}" = x; then
22934 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
22935 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
22936 { (exit 1); exit 1; }; }
22939 ### Specify what sort of things we'll be editing into Makefile and config.h.
22940 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22976 cat >>confdefs.h <<_ACEOF
22977 #define EMACS_CONFIGURATION "${canonical}"
22981 cat >>confdefs.h <<_ACEOF
22982 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22986 cat >>confdefs.h <<_ACEOF
22987 #define config_machfile "${machfile}"
22991 cat >>confdefs.h <<_ACEOF
22992 #define config_opsysfile "${opsysfile}"
22996 cat >>confdefs.h <<_ACEOF
22997 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23001 cat >>confdefs.h <<_ACEOF
23002 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23006 cat >>confdefs.h <<_ACEOF
23007 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23011 cat >>confdefs.h <<_ACEOF
23012 #define UNEXEC_SRC ${UNEXEC_SRC}
23016 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23018 cat >>confdefs.h <<\_ACEOF
23019 #define HAVE_X_WINDOWS 1
23023 if test "${USE_X_TOOLKIT}" != "none
" ; then
23025 cat >>confdefs.h <<\_ACEOF
23026 #define USE_X_TOOLKIT 1
23030 if test "${HAVE_X11}" = "yes" ; then
23032 cat >>confdefs.h <<\_ACEOF
23037 if test "${HAVE_XFREE386}" = "yes" ; then
23039 cat >>confdefs.h <<\_ACEOF
23040 #define HAVE_XFREE386 1
23044 if test "${HAVE_MENUS}" = "yes" ; then
23046 cat >>confdefs.h <<\_ACEOF
23047 #define HAVE_MENUS 1
23051 if test "${GNU_MALLOC}" = "yes" ; then
23053 cat >>confdefs.h <<\_ACEOF
23054 #define GNU_MALLOC 1
23058 if test "${REL_ALLOC}" = "yes" ; then
23060 cat >>confdefs.h <<\_ACEOF
23061 #define REL_ALLOC 1
23070 #### Report on what we decided to do.
23071 #### Report GTK as a toolkit, even if it doesn't use Xt.
23072 #### It makes printing result more understandable as using GTK sets
23073 #### toolkit_scroll_bars to yes by default.
23074 if test "${HAVE_GTK}" = "yes"; then
23079 Configured
for \
`${canonical}'.
23081 Where should the build process find the source code? ${srcdir}
23082 What operating system and machine description files should Emacs use?
23083 \`${opsysfile}' and \`${machfile}'
23084 What compiler should emacs be built with?
${CC} ${CFLAGS}
23085 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23086 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23087 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23088 What window system should Emacs use?
${window_system}
23089 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23091 if test -n "${x_includes}"; then
23092 echo " Where
do we
find X Windows header files?
${x_includes}"
23094 echo " Where
do we
find X Windows header files? Standard
dirs"
23096 if test -n "${x_libraries}"; then
23097 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23099 echo " Where
do we
find X Windows libraries? Standard
dirs"
23102 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23103 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23104 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23105 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23106 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23107 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23108 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23111 if test $USE_XASSERTS = yes; then
23112 echo " Compiling with asserts turned on.
"
23113 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23117 if test "$USE_X_TOOLKIT" = GTK; then
23118 case "$canonical" in
23120 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23121 will probably get a crash on startup. If this happens
, please use another
23122 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23129 # Remove any trailing slashes in these variables.
23130 test "${prefix}" != NONE &&
23131 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23132 test "${exec_prefix}" != NONE &&
23133 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23135 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23136 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23137 ## from Makefile.c can correctly provide the arg `-traditional' to the
23140 cat >conftest.$ac_ext <<_ACEOF
23143 cat confdefs.h >>conftest.$ac_ext
23144 cat >>conftest.$ac_ext <<_ACEOF
23145 /* end confdefs.h. */
23148 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23149 $EGREP "yes..
yes" >/dev/null 2>&1; then
23150 CPP_NEED_TRADITIONAL=no
23152 CPP_NEED_TRADITIONAL=yes
23157 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
"
23159 ac_config_commands="$ac_config_commands default
"
23161 cat >confcache <<\_ACEOF
23162 # This file is a shell script that caches the results of configure
23163 # tests run on this system so they can be shared between configure
23164 # scripts and configure runs, see configure's option --config-cache.
23165 # It is not useful on other systems. If it contains results you don't
23166 # want to keep, you may remove or edit it.
23168 # config.status only pays attention to the cache file if you give it
23169 # the --recheck option to rerun configure.
23171 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23172 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23173 # following values.
23177 # The following way of writing the cache mishandles newlines in values,
23178 # but we know of no workaround that is simple, portable, and efficient.
23179 # So, we kill variables containing newlines.
23180 # Ultrix sh set writes to stderr and can't be redirected directly,
23181 # and sets the high bit in the cache file unless we assign to the vars.
23183 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23184 eval ac_val=\$$ac_var
23188 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23189 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23192 _ | IFS | as_nl) ;; #(
23193 *) $as_unset $ac_var ;;
23199 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23200 *${as_nl}ac_space=\ *)
23201 # `set' does not quote correctly, so add quotes (double-quote
23202 # substitution turns \\\\ into \\, and sed turns \\ into \).
23205 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23208 # `set' quotes correctly as required by POSIX, so do not add quotes.
23209 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23218 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23220 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23222 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23223 if test -w "$cache_file"; then
23224 test "x
$cache_file" != "x
/dev
/null
" &&
23225 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23226 echo "$as_me: updating cache
$cache_file" >&6;}
23227 cat confcache >$cache_file
23229 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23230 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23235 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23236 # Let make expand exec_prefix.
23237 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23239 DEFS=-DHAVE_CONFIG_H
23243 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23244 # 1. Remove the extension, and $U if already installed.
23245 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23246 ac_i=`echo "$ac_i" | sed "$ac_script"`
23247 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23248 # will be set to the directory where LIBOBJS objects are built.
23249 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23250 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23252 LIBOBJS=$ac_libobjs
23254 LTLIBOBJS=$ac_ltlibobjs
23258 : ${CONFIG_STATUS=./config.status}
23259 ac_clean_files_save=$ac_clean_files
23260 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23261 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23262 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23263 cat >$CONFIG_STATUS <<_ACEOF
23265 # Generated by $as_me.
23266 # Run this file to recreate the current configuration.
23267 # Compiler output produced by configure, useful for debugging
23268 # configure, is in config.log if it exists.
23271 ac_cs_recheck=false
23273 SHELL=\${CONFIG_SHELL-$SHELL}
23276 cat >>$CONFIG_STATUS <<\_ACEOF
23277 ## --------------------- ##
23278 ## M4sh Initialization. ##
23279 ## --------------------- ##
23281 # Be more Bourne compatible
23282 DUALCASE=1; export DUALCASE # for MKS sh
23283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23286 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23287 # is contrary to our usage. Disable this feature.
23288 alias -g '${1+"$@"}'='"$@
"'
23289 setopt NO_GLOB_SUBST
23291 case `(set -o) 2>/dev/null` in
23292 *posix*) set -o posix ;;
23301 # Avoid depending upon Character Ranges.
23302 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23303 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23304 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23305 as_cr_digits='0123456789'
23306 as_cr_alnum=$as_cr_Letters$as_cr_digits
23308 # The user is always right.
23309 if test "${PATH_SEPARATOR+set}" != set; then
23310 echo "#! /bin/sh" >conf$$.sh
23311 echo "exit 0" >>conf$$.sh
23313 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23321 # Support unset when possible.
23322 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23330 # We need space, tab and new line, in precisely that order. Quoting is
23331 # there to prevent editors from complaining about space-tab.
23332 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23333 # splitting by setting IFS to empty value.)
23338 # Find who we are. Look in the path if we contain no directory separator.
23340 *[\\/]* ) as_myself
=$0 ;;
23341 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23342 for as_dir
in $PATH
23345 test -z "$as_dir" && as_dir
=.
23346 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23352 # We did not find ourselves, most probably we were run as `sh COMMAND'
23353 # in which case we are not to be found in the path.
23354 if test "x$as_myself" = x
; then
23357 if test ! -f "$as_myself"; then
23358 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23359 { (exit 1); exit 1; }
23362 # Work around bugs in pre-3.0 UWIN ksh.
23363 for as_var
in ENV MAIL MAILPATH
23364 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23372 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23373 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23374 LC_TELEPHONE LC_TIME
23376 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23377 eval $as_var=C
; export $as_var
23379 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23383 # Required to use basename.
23384 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23385 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23391 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23392 as_basename
=basename
23398 # Name of the executable.
23399 as_me
=`$as_basename -- "$0" ||
23400 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23401 X"$0" : 'X\(//\)$' \| \
23402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23404 sed '/^.*\/\([^/][^/]*\)\/*$/{
23423 as_lineno_1
=$LINENO
23424 as_lineno_2
=$LINENO
23425 test "x$as_lineno_1" != "x$as_lineno_2" &&
23426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23429 # uniformly replaced by the line number. The first 'sed' inserts a
23430 # line-number line after each line using $LINENO; the second 'sed'
23431 # does the real work. The second script uses 'N' to pair each
23432 # line-number line with the line containing $LINENO, and appends
23433 # trailing '-' during substitution so that $LINENO is not a special
23434 # case at line end.
23435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23436 # scripts with optimization help from Paolo Bonzini. Blame Lee
23437 # E. McMahon (1931-1989) for sed's syntax. :-)
23449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23452 ' >$as_me.lineno
&&
23453 chmod +x
"$as_me.lineno" ||
23454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23455 { (exit 1); exit 1; }; }
23457 # Don't try to exec as it changes $[0], causing all sort of problems
23458 # (the dirname of $[0] is not the place where we might find the
23459 # original and so on. Autoconf is especially sensitive to this).
23460 .
"./$as_me.lineno"
23461 # Exit status is that of the last command.
23466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23472 ECHO_C
= ECHO_N
= ECHO_T
=
23473 case `echo -n x` in
23475 case `echo 'x\c'` in
23476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23490 rm -f conf$$ conf$$.exe conf$$.
file
23491 if test -d conf$$.dir
; then
23492 rm -f conf$$.dir
/conf$$.
file
23498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23500 # ... but there are two gotchas:
23501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23503 # In both cases, we have to default to `cp -p'.
23504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23512 rmdir conf$$.dir
2>/dev
/null
23514 if mkdir
-p .
2>/dev
/null
; then
23517 test -d .
/-p && rmdir .
/-p
23521 if test -x / >/dev
/null
2>&1; then
23522 as_test_x
='test -x'
23524 if ls -dL / >/dev
/null
2>&1; then
23531 if test -d "$1"; then
23537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23538 ???[sx]*):;;*)false;;esac;fi
23542 as_executable_p
=$as_test_x
23544 # Sed expression to map a string onto a valid CPP name.
23545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23547 # Sed expression to map a string onto a valid variable name.
23548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23553 # Save the log message, to keep $[0] and so on meaningful, and to
23554 # report actual input values of CONFIG_FILES etc. instead of their
23555 # values after options handling.
23557 This file was extended by $as_me, which was
23558 generated by GNU Autoconf 2.61. Invocation command line was
23560 CONFIG_FILES = $CONFIG_FILES
23561 CONFIG_HEADERS = $CONFIG_HEADERS
23562 CONFIG_LINKS = $CONFIG_LINKS
23563 CONFIG_COMMANDS = $CONFIG_COMMANDS
23566 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23571 cat >>$CONFIG_STATUS <<_ACEOF
23572 # Files that config.status was made for.
23573 config_files="$ac_config_files"
23574 config_headers="$ac_config_headers"
23575 config_commands="$ac_config_commands"
23579 cat >>$CONFIG_STATUS <<\_ACEOF
23581 \`$as_me' instantiates files from templates according to the
23582 current configuration.
23584 Usage: $0 [OPTIONS] [FILE]...
23586 -h, --help print this help, then exit
23587 -V, --version print version number and configuration settings, then exit
23588 -q, --quiet do not print progress messages
23589 -d, --debug don't remove temporary files
23590 --recheck update $as_me by reconfiguring in the same conditions
23591 --file=FILE[:TEMPLATE]
23592 instantiate the configuration file FILE
23593 --header=FILE[:TEMPLATE]
23594 instantiate the configuration header FILE
23596 Configuration files:
23599 Configuration headers:
23602 Configuration commands:
23605 Report bugs to <bug-autoconf@gnu.org>."
23608 cat >>$CONFIG_STATUS <<_ACEOF
23611 configured by $0, generated by GNU Autoconf 2.61,
23612 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23614 Copyright (C) 2006 Free Software Foundation, Inc.
23615 This config.status script is free software; the Free Software Foundation
23616 gives unlimited permission to copy, distribute and modify it."
23623 cat >>$CONFIG_STATUS <<\_ACEOF
23624 # If no file are specified by the user, then we need to provide default
23625 # value. By we need to know if files were specified by the user.
23631 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23632 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23643 # Handling of the options.
23644 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23646 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23647 echo "$ac_cs_version"; exit ;;
23648 --debug |
--debu |
--deb |
--de |
--d |
-d )
23650 --file |
--fil |
--fi |
--f )
23652 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23653 ac_need_defaults
=false
;;
23654 --header |
--heade |
--head |
--hea )
23656 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23657 ac_need_defaults
=false
;;
23659 # Conflict between --help and --header
23660 { echo "$as_me: error: ambiguous option: $1
23661 Try \`$0 --help' for more information." >&2
23662 { (exit 1); exit 1; }; };;
23663 --help |
--hel |
-h )
23664 echo "$ac_cs_usage"; exit ;;
23665 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23666 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23669 # This is an error.
23670 -*) { echo "$as_me: error: unrecognized option: $1
23671 Try \`$0 --help' for more information." >&2
23672 { (exit 1); exit 1; }; } ;;
23674 *) ac_config_targets
="$ac_config_targets $1"
23675 ac_need_defaults
=false
;;
23681 ac_configure_extra_args
=
23683 if $ac_cs_silent; then
23685 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23689 cat >>$CONFIG_STATUS <<_ACEOF
23690 if \$ac_cs_recheck; then
23691 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23692 CONFIG_SHELL=$SHELL
23693 export CONFIG_SHELL
23694 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23698 cat >>$CONFIG_STATUS <<\_ACEOF
23702 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23703 ## Running $as_me. ##
23709 cat >>$CONFIG_STATUS <<_ACEOF
23713 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23717 cat >>$CONFIG_STATUS <<\_ACEOF
23719 # Handling of arguments.
23720 for ac_config_target
in $ac_config_targets
23722 case $ac_config_target in
23723 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23724 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23725 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23726 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23727 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23728 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23729 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23730 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23731 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23732 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23733 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23734 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23736 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23737 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23738 { (exit 1); exit 1; }; };;
23743 # If the user did not use the arguments to specify the items to instantiate,
23744 # then the envvar interface is used. Set only those that are not.
23745 # We use the long form for the default assignment because of an extremely
23746 # bizarre bug on SunOS 4.1.3.
23747 if $ac_need_defaults; then
23748 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23749 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23750 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23753 # Have a temporary directory for convenience. Make it in the build tree
23754 # simply because there is no reason against having it here, and in addition,
23755 # creating and moving files from /tmp can sometimes cause problems.
23756 # Hook for its removal unless debugging.
23757 # Note that there is a small window in which the directory will not be cleaned:
23758 # after its creation but before its name has been assigned to `$tmp'.
23762 trap 'exit_status=$?
23763 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23765 trap '{ (exit 1); exit 1; }' 1 2 13 15
23767 # Create a (secure) tmp directory for tmp files.
23770 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23771 test -n "$tmp" && test -d "$tmp"
23774 tmp
=.
/conf$$
-$RANDOM
23775 (umask 077 && mkdir
"$tmp")
23778 echo "$me: cannot create a temporary directory in ." >&2
23779 { (exit 1); exit 1; }
23783 # Set up the sed scripts for CONFIG_FILES section.
23786 # No need to generate the scripts if there are no CONFIG_FILES.
23787 # This happens for instance when ./config.status config.h
23788 if test -n "$CONFIG_FILES"; then
23795 for ac_last_try
in false false false false false
:; do
23796 cat >conf$
$subs.
sed <<_ACEOF
23797 SHELL!$SHELL$ac_delim
23798 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23799 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23800 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23801 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23802 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23803 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23804 exec_prefix!$exec_prefix$ac_delim
23805 prefix!$prefix$ac_delim
23806 program_transform_name!$program_transform_name$ac_delim
23807 bindir!$bindir$ac_delim
23808 sbindir!$sbindir$ac_delim
23809 libexecdir!$libexecdir$ac_delim
23810 datarootdir!$datarootdir$ac_delim
23811 datadir!$datadir$ac_delim
23812 sysconfdir!$sysconfdir$ac_delim
23813 sharedstatedir!$sharedstatedir$ac_delim
23814 localstatedir!$localstatedir$ac_delim
23815 includedir!$includedir$ac_delim
23816 oldincludedir!$oldincludedir$ac_delim
23817 docdir!$docdir$ac_delim
23818 infodir!$infodir$ac_delim
23819 htmldir!$htmldir$ac_delim
23820 dvidir!$dvidir$ac_delim
23821 pdfdir!$pdfdir$ac_delim
23822 psdir!$psdir$ac_delim
23823 libdir!$libdir$ac_delim
23824 localedir!$localedir$ac_delim
23825 mandir!$mandir$ac_delim
23826 DEFS!$DEFS$ac_delim
23827 ECHO_C!$ECHO_C$ac_delim
23828 ECHO_N!$ECHO_N$ac_delim
23829 ECHO_T!$ECHO_T$ac_delim
23830 LIBS!$LIBS$ac_delim
23831 build_alias!$build_alias$ac_delim
23832 host_alias!$host_alias$ac_delim
23833 target_alias!$target_alias$ac_delim
23834 MAINT!$MAINT$ac_delim
23835 build!$build$ac_delim
23836 build_cpu!$build_cpu$ac_delim
23837 build_vendor!$build_vendor$ac_delim
23838 build_os!$build_os$ac_delim
23839 host!$host$ac_delim
23840 host_cpu!$host_cpu$ac_delim
23841 host_vendor!$host_vendor$ac_delim
23842 host_os!$host_os$ac_delim
23844 CFLAGS!$CFLAGS$ac_delim
23845 LDFLAGS!$LDFLAGS$ac_delim
23846 CPPFLAGS!$CPPFLAGS$ac_delim
23847 ac_ct_CC!$ac_ct_CC$ac_delim
23848 EXEEXT!$EXEEXT$ac_delim
23849 OBJEXT!$OBJEXT$ac_delim
23851 GREP!$GREP$ac_delim
23852 EGREP!$EGREP$ac_delim
23853 LN_S!$LN_S$ac_delim
23854 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23855 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23856 INSTALL_DATA!$INSTALL_DATA$ac_delim
23857 RANLIB!$RANLIB$ac_delim
23858 INSTALL_INFO!$INSTALL_INFO$ac_delim
23859 GZIP_PROG!$GZIP_PROG$ac_delim
23860 LIBSOUND!$LIBSOUND$ac_delim
23861 PKG_CONFIG!$PKG_CONFIG$ac_delim
23862 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23863 ALSA_LIBS!$ALSA_LIBS$ac_delim
23864 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23865 SET_MAKE!$SET_MAKE$ac_delim
23866 XMKMF!$XMKMF$ac_delim
23867 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23868 GTK_LIBS!$GTK_LIBS$ac_delim
23869 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23870 XFT_LIBS!$XFT_LIBS$ac_delim
23871 ALLOCA!$ALLOCA$ac_delim
23872 liblockfile!$liblockfile$ac_delim
23873 LIBOBJS!$LIBOBJS$ac_delim
23874 NEED_SETGID!$NEED_SETGID$ac_delim
23875 KMEM_GROUP!$KMEM_GROUP$ac_delim
23876 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23877 GETOPT_H!$GETOPT_H$ac_delim
23878 GETOPTOBJS!$GETOPTOBJS$ac_delim
23879 version!$version$ac_delim
23880 configuration!$configuration$ac_delim
23881 canonical!$canonical$ac_delim
23882 srcdir!$srcdir$ac_delim
23883 lispdir!$lispdir$ac_delim
23884 locallisppath!$locallisppath$ac_delim
23885 lisppath!$lisppath$ac_delim
23886 x_default_search_path!$x_default_search_path$ac_delim
23887 etcdir!$etcdir$ac_delim
23888 archlibdir!$archlibdir$ac_delim
23889 bitmapdir!$bitmapdir$ac_delim
23890 gamedir!$gamedir$ac_delim
23891 gameuser!$gameuser$ac_delim
23892 c_switch_system!$c_switch_system$ac_delim
23893 c_switch_machine!$c_switch_machine$ac_delim
23896 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23898 elif $ac_last_try; then
23899 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23900 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23901 { (exit 1); exit 1; }; }
23903 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23907 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23908 if test -n "$ac_eof"; then
23909 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23910 ac_eof
=`expr $ac_eof + 1`
23913 cat >>$CONFIG_STATUS <<_ACEOF
23914 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23915 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23918 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23919 s/^/s,@/; s/!/@,|#_!!_#|/
23922 s/'"$ac_delim"'$/,g/; t
23924 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23925 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23926 rm -f conf$
$subs.
sed
23927 cat >>$CONFIG_STATUS <<_ACEOF
23933 for ac_last_try
in false false false false false
:; do
23934 cat >conf$
$subs.
sed <<_ACEOF
23935 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23936 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23937 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23938 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23939 machfile!$machfile$ac_delim
23940 opsysfile!$opsysfile$ac_delim
23941 carbon_appdir!$carbon_appdir$ac_delim
23942 LTLIBOBJS!$LTLIBOBJS$ac_delim
23945 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23947 elif $ac_last_try; then
23948 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23949 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23950 { (exit 1); exit 1; }; }
23952 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23956 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23957 if test -n "$ac_eof"; then
23958 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23959 ac_eof
=`expr $ac_eof + 1`
23962 cat >>$CONFIG_STATUS <<_ACEOF
23963 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23964 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23967 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23968 s/^/s,@/; s/!/@,|#_!!_#|/
23971 s/'"$ac_delim"'$/,g/; t
23973 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23974 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23975 rm -f conf$
$subs.
sed
23976 cat >>$CONFIG_STATUS <<_ACEOF
23983 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23984 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23985 # trailing colons and then remove the whole line if VPATH becomes empty
23986 # (actually we leave an empty line to preserve line numbers).
23987 if test "x$srcdir" = x.
; then
23988 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23989 s/:*\$(srcdir):*/:/
23990 s/:*\${srcdir}:*/:/
23992 s/^\([^=]*=[ ]*\):*/\1/
23998 cat >>$CONFIG_STATUS <<\_ACEOF
23999 fi # test -n "$CONFIG_FILES"
24002 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24005 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24007 case $ac_mode$ac_tag in
24009 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24010 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24011 { (exit 1); exit 1; }; };;
24012 :[FH
]-) ac_tag
=-:-;;
24013 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24030 -) ac_f
="$tmp/stdin";;
24031 *) # Look for the file first in the build tree, then in the source tree
24032 # (if the path is not absolute). The absolute path cannot be DOS-style,
24033 # because $ac_f cannot contain `:'.
24037 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24039 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24040 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24041 { (exit 1); exit 1; }; };;
24043 ac_file_inputs
="$ac_file_inputs $ac_f"
24046 # Let's still pretend it is `configure' which instantiates (i.e., don't
24047 # use $as_me), people would be surprised to read:
24048 # /* config.h. Generated by config.status. */
24049 configure_input
="Generated from "`IFS=:
24050 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24051 if test x
"$ac_file" != x-
; then
24052 configure_input
="$ac_file. $configure_input"
24053 { echo "$as_me:$LINENO: creating $ac_file" >&5
24054 echo "$as_me: creating $ac_file" >&6;}
24058 *:-:* |
*:-) cat >"$tmp/stdin";;
24063 ac_dir
=`$as_dirname -- "$ac_file" ||
24064 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24065 X"$ac_file" : 'X\(//\)[^/]' \| \
24066 X"$ac_file" : 'X\(//\)$' \| \
24067 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24073 /^X\(\/\/\)[^/].*/{
24088 -*) as_dir
=.
/$as_dir;;
24090 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24094 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24095 *) as_qdir
=$as_dir;;
24097 as_dirs
="'$as_qdir' $as_dirs"
24098 as_dir
=`$as_dirname -- "$as_dir" ||
24099 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24100 X"$as_dir" : 'X\(//\)[^/]' \| \
24101 X"$as_dir" : 'X\(//\)$' \| \
24102 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24104 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24108 /^X\(\/\/\)[^/].*/{
24121 test -d "$as_dir" && break
24123 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24124 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24125 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24126 { (exit 1); exit 1; }; }; }
24130 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24132 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24133 # A ".." for each directory in $ac_dir_suffix.
24134 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24135 case $ac_top_builddir_sub in
24136 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24137 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24140 ac_abs_top_builddir
=$ac_pwd
24141 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24142 # for backward compatibility:
24143 ac_top_builddir
=$ac_top_build_prefix
24146 .
) # We are building in place.
24148 ac_top_srcdir
=$ac_top_builddir_sub
24149 ac_abs_top_srcdir
=$ac_pwd ;;
24150 [\\/]* | ?
:[\\/]* ) # Absolute name.
24151 ac_srcdir
=$srcdir$ac_dir_suffix;
24152 ac_top_srcdir
=$srcdir
24153 ac_abs_top_srcdir
=$srcdir ;;
24154 *) # Relative name.
24155 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24156 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24157 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24159 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24169 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24170 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24174 cat >>$CONFIG_STATUS <<\_ACEOF
24175 # If the template does not know about datarootdir, expand it.
24176 # FIXME: This hack should be removed a few years after 2.60.
24177 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24179 case `sed -n '/datarootdir/ {
24188 ' $ac_file_inputs` in
24189 *datarootdir
*) ac_datarootdir_seen
=yes;;
24190 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24191 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24192 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24194 cat >>$CONFIG_STATUS <<_ACEOF
24195 ac_datarootdir_hack='
24196 s&@datadir@&$datadir&g
24197 s&@docdir@&$docdir&g
24198 s&@infodir@&$infodir&g
24199 s&@localedir@&$localedir&g
24200 s&@mandir@&$mandir&g
24201 s&\\\${datarootdir}&$datarootdir&g' ;;
24205 # Neutralize VPATH when `$srcdir' = `.'.
24206 # Shell code in configure.ac might set extrasub.
24207 # FIXME: do we really want to maintain this feature?
24208 cat >>$CONFIG_STATUS <<_ACEOF
24212 cat >>$CONFIG_STATUS <<\_ACEOF
24214 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24215 s
&@configure_input@
&$configure_input&;t t
24216 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24217 s
&@srcdir@
&$ac_srcdir&;t t
24218 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24219 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24220 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24221 s
&@builddir@
&$ac_builddir&;t t
24222 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24223 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24224 s
&@INSTALL@
&$ac_INSTALL&;t t
24225 $ac_datarootdir_hack
24226 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24228 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24229 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24230 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24231 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24232 which seems to be undefined. Please make sure it is defined." >&5
24233 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24234 which seems to be undefined. Please make sure it is defined." >&2;}
24238 -) cat "$tmp/out"; rm -f "$tmp/out";;
24239 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24248 # Transform confdefs.h into a sed script `conftest.defines', that
24249 # substitutes the proper values into config.h.in to produce config.h.
24250 rm -f conftest.defines conftest.
tail
24251 # First, append a space to every undef/define line, to ease matching.
24252 echo 's/$/ /' >conftest.defines
24253 # Then, protect against being on the right side of a sed subst, or in
24254 # an unquoted here document, in config.status. If some macros were
24255 # called several times there might be several #defines for the same
24256 # symbol, which is useless. But do not sort them, since the last
24257 # AC_DEFINE must be honored.
24258 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24259 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24260 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24261 # PARAMS is the parameter list in the macro definition--in most cases, it's
24262 # just an empty string.
24263 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24264 ac_dB
='\\)[ (].*,\\1define\\2'
24272 s/^[ ]*#[ ]*define[ ][ ]*//
24277 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24278 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24279 ' >>conftest.defines
24281 # Remove the space that was appended to ease matching.
24282 # Then replace #undef with comments. This is necessary, for
24283 # example, in the case of _POSIX_SOURCE, which is predefined and required
24284 # on some systems where configure will not decide to define it.
24285 # (The regexp can be short, since the line contains either #define or #undef.)
24287 s,^[ #]*u.*,/* & */,' >>conftest.defines
24289 # Break up conftest.defines:
24290 ac_max_sed_lines
=50
24292 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24293 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24294 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24296 ac_in
='$ac_file_inputs'
24297 ac_out
='"$tmp/out1"'
24298 ac_nxt
='"$tmp/out2"'
24302 # Write a here document:
24303 cat >>$CONFIG_STATUS <<_ACEOF
24304 # First, check the format of the line:
24305 cat >"\$tmp/defines.sed" <<\\CEOF
24306 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24307 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24311 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24313 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24314 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24315 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24316 grep . conftest.
tail >/dev
/null ||
break
24317 rm -f conftest.defines
24318 mv conftest.
tail conftest.defines
24320 rm -f conftest.defines conftest.
tail
24322 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24323 cat >>$CONFIG_STATUS <<\_ACEOF
24324 if test x
"$ac_file" != x-
; then
24325 echo "/* $configure_input */" >"$tmp/config.h"
24326 cat "$ac_result" >>"$tmp/config.h"
24327 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24328 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24329 echo "$as_me: $ac_file is unchanged" >&6;}
24332 mv "$tmp/config.h" $ac_file
24335 echo "/* $configure_input */"
24341 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24342 echo "$as_me: executing $ac_file commands" >&6;}
24347 case $ac_file$ac_mode in
24350 ### Make the necessary directories, if they don't exist.
24351 for dir
in etc lisp
; do
24352 test -d ${dir} || mkdir
${dir}
24355 # Build src/Makefile from ${srcdir}/src/Makefile.c
24356 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24357 # This must be done after src/config.h is built, since we rely on that file.
24359 # Now get this: Some word that is part of the ${srcdir} directory name
24360 # or the ${configuration} value might, just might, happen to be an
24361 # identifier like `sun4' or `i386' or something, and be predefined by
24362 # the C preprocessor to some helpful value like 1, or maybe the empty
24363 # string. Needless to say consequent macro substitutions are less
24364 # than conducive to the makefile finding the correct directory.
24365 undefs
="`echo $top_srcdir $configuration $canonical |
24366 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24367 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24370 echo creating src
/epaths.h
24371 ${MAKE-make} epaths-force
24373 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24374 # `..' to `. .' unless invoked with -traditional
24376 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24377 CPPFLAGS
="$CPPFLAGS -traditional"
24380 echo creating lib-src
/Makefile
24382 rm -f junk.c junk1.c junk2.c
24383 sed -e '/start of cpp stuff/q' \
24384 < Makefile.c
> junk1.c
24385 sed -e '1,/start of cpp stuff/d'\
24386 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24387 < Makefile.c
> junk.c
24388 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24389 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24390 cat junk1.c junk2.c
> Makefile.new
24391 rm -f junk.c junk1.c junk2.c
24392 chmod 444 Makefile.new
24393 mv -f Makefile.new Makefile
24396 echo creating src
/Makefile
24398 rm -f junk.c junk1.c junk2.c
24399 sed -e '/start of cpp stuff/q' \
24400 < Makefile.c
> junk1.c
24401 sed -e '1,/start of cpp stuff/d'\
24402 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24403 < Makefile.c
> junk.c
24404 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24405 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24406 cat junk1.c junk2.c
> Makefile.new
24407 rm -f junk.c junk1.c junk2.c
24408 chmod 444 Makefile.new
24409 mv -f Makefile.new Makefile
24412 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24413 echo creating src
/.gdbinit
24414 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24417 # This is how we know whether to re-run configure in certain cases.
24418 touch src
/config.stamp
24426 { (exit 0); exit 0; }
24428 chmod +x
$CONFIG_STATUS
24429 ac_clean_files
=$ac_clean_files_save
24432 # configure is writing to config.log, and then calls config.status.
24433 # config.status does its own redirection, appending to config.log.
24434 # Unfortunately, on DOS this fails, as config.log is still kept open
24435 # by configure, so config.status won't be able to write to it; its
24436 # output is simply discarded. So we exec the FD to /dev/null,
24437 # effectively closing config.log, so it can be properly (re)opened and
24438 # appended to by config.status. When coming back to configure, we
24439 # need to make the FD available again.
24440 if test "$no_create" != yes; then
24442 ac_config_status_args
=
24443 test "$silent" = yes &&
24444 ac_config_status_args
="$ac_config_status_args --quiet"
24446 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24448 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24449 # would make configure fail if this is the last instruction.
24450 $ac_cs_success ||
{ (exit 1); exit 1; }