2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE
=1; export DUALCASE
# for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
23 case `(set -o) 2>/dev/null` in
24 *posix
*) set -o posix
;;
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
248 case `(set -o) 2>/dev/null` in
249 *posix
*) set -o posix
;;
258 CONFIG_SHELL
=$as_shell
260 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in
270 *posix
*) set -o posix
;;
286 as_func_ret_success
() {
289 as_func_ret_failure
() {
294 if as_func_success
; then
298 echo as_func_success failed.
301 if as_func_failure
; then
303 echo as_func_failure succeeded.
306 if as_func_ret_success
; then
310 echo as_func_ret_success failed.
313 if as_func_ret_failure
; then
315 echo as_func_ret_failure succeeded.
318 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
322 echo positional parameters were not saved.
325 test $exitcode = 0) ||
{ (exit 1); exit 1; }
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
342 if test "x$CONFIG_SHELL" != x
; then
343 for as_var
in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no
; then
352 echo This
script requires a shell
more modern than all the
353 echo shells that I found on your system. Please
install a
354 echo modern shell
, or manually run the
script under such a
355 echo shell
if you
do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
375 as_func_ret_success () {
378 as_func_ret_failure () {
383 if as_func_success; then
387 echo as_func_success failed.
390 if as_func_failure; then
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411 echo positional parameters were not saved.
414 test \$exitcode = 0") ||
{
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system
,
417 echo including any error possibly output before this
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453 chmod +x
"$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
461 # Exit status is that of the last command.
466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
472 ECHO_C
= ECHO_N
= ECHO_T
=
476 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
483 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
490 rm -f conf$$ conf$$.exe conf$$.
file
491 if test -d conf$$.dir
; then
492 rm -f conf$$.dir
/conf$$.
file
498 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
506 elif ln conf$$.
file conf$$
2>/dev
/null
; then
511 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
512 rmdir conf$$.dir
2>/dev
/null
514 if mkdir
-p .
2>/dev
/null
; then
517 test -d .
/-p && rmdir .
/-p
521 if test -x / >/dev
/null
2>&1; then
524 if ls -dL / >/dev
/null
2>&1; then
531 if test -d "$1"; then
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
542 as_executable_p
=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev
/null
6>&1
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
562 ac_default_prefix
=/usr
/local
564 ac_config_libobj_dir
=.
570 SHELL
=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
579 ac_unique_file
="src/lisp.h"
580 ac_config_libobj_dir
=src
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
628 program_transform_name
716 x_default_search_path
733 ac_precious_vars
='build_alias
745 # Initialize some variables set by options.
747 ac_init_version
=false
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
757 program_transform_name
=s
,x
,x
,
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir
='${exec_prefix}/bin'
772 sbindir
='${exec_prefix}/sbin'
773 libexecdir
='${exec_prefix}/libexec'
774 datarootdir
='${prefix}/share'
775 datadir
='${datarootdir}'
776 sysconfdir
='${prefix}/etc'
777 sharedstatedir
='${prefix}/com'
778 localstatedir
='${prefix}/var'
779 includedir
='${prefix}/include'
780 oldincludedir
='/usr/include'
781 docdir
='${datarootdir}/doc/${PACKAGE}'
782 infodir
='${datarootdir}/info'
787 libdir
='${exec_prefix}/lib'
788 localedir
='${datarootdir}/locale'
789 mandir
='${datarootdir}/man'
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\
$ac_option
803 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 # Accept the important Cygnus configure options, so we can diagnose typos.
809 case $ac_dashdash$ac_option in
813 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
815 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
818 -build |
--build |
--buil |
--bui |
--bu)
819 ac_prev
=build_alias
;;
820 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
821 build_alias
=$ac_optarg ;;
823 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
824 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
825 ac_prev
=cache_file
;;
826 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
827 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
828 cache_file
=$ac_optarg ;;
831 cache_file
=config.cache
;;
833 -datadir |
--datadir |
--datadi |
--datad)
835 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
836 datadir
=$ac_optarg ;;
838 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
839 |
--dataroo |
--dataro |
--datar)
840 ac_prev
=datarootdir
;;
841 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
842 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
843 datarootdir
=$ac_optarg ;;
845 -disable-* |
--disable-*)
846 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_
$ac_feature=no
;;
854 -docdir |
--docdir |
--docdi |
--doc |
--do)
856 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
859 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
861 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
864 -enable-* |
--enable-*)
865 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_
$ac_feature=\
$ac_optarg ;;
873 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
874 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
875 |
--exec |
--exe |
--ex)
876 ac_prev
=exec_prefix
;;
877 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
878 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
879 |
--exec=* |
--exe=* |
--ex=*)
880 exec_prefix
=$ac_optarg ;;
882 -gas |
--gas |
--ga |
--g)
883 # Obsolete; use --with-gas.
886 -help |
--help |
--hel |
--he |
-h)
888 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
889 ac_init_help
=recursive
;;
890 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
891 ac_init_help
=short
;;
893 -host |
--host |
--hos |
--ho)
894 ac_prev
=host_alias
;;
895 -host=* |
--host=* |
--hos=* |
--ho=*)
896 host_alias
=$ac_optarg ;;
898 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
900 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
902 htmldir
=$ac_optarg ;;
904 -includedir |
--includedir |
--includedi |
--included |
--include \
905 |
--includ |
--inclu |
--incl |
--inc)
906 ac_prev
=includedir
;;
907 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
908 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
909 includedir
=$ac_optarg ;;
911 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
913 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
914 infodir
=$ac_optarg ;;
916 -libdir |
--libdir |
--libdi |
--libd)
918 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
921 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
922 |
--libexe |
--libex |
--libe)
923 ac_prev
=libexecdir
;;
924 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
925 |
--libexe=* |
--libex=* |
--libe=*)
926 libexecdir
=$ac_optarg ;;
928 -localedir |
--localedir |
--localedi |
--localed |
--locale)
930 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
931 localedir
=$ac_optarg ;;
933 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
934 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
935 ac_prev
=localstatedir
;;
936 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
937 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
938 localstatedir
=$ac_optarg ;;
940 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
942 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
946 # Obsolete; use --without-fp.
949 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
950 |
--no-cr |
--no-c |
-n)
953 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
954 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
957 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
958 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
959 |
--oldin |
--oldi |
--old |
--ol |
--o)
960 ac_prev
=oldincludedir
;;
961 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
962 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
963 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
964 oldincludedir
=$ac_optarg ;;
966 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
968 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
971 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
972 |
--program-pre |
--program-pr |
--program-p)
973 ac_prev
=program_prefix
;;
974 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
975 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
976 program_prefix
=$ac_optarg ;;
978 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
979 |
--program-suf |
--program-su |
--program-s)
980 ac_prev
=program_suffix
;;
981 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
982 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
983 program_suffix
=$ac_optarg ;;
985 -program-transform-name |
--program-transform-name \
986 |
--program-transform-nam |
--program-transform-na \
987 |
--program-transform-n |
--program-transform- \
988 |
--program-transform |
--program-transfor \
989 |
--program-transfo |
--program-transf \
990 |
--program-trans |
--program-tran \
991 |
--progr-tra |
--program-tr |
--program-t)
992 ac_prev
=program_transform_name
;;
993 -program-transform-name=* |
--program-transform-name=* \
994 |
--program-transform-nam=* |
--program-transform-na=* \
995 |
--program-transform-n=* |
--program-transform-=* \
996 |
--program-transform=* |
--program-transfor=* \
997 |
--program-transfo=* |
--program-transf=* \
998 |
--program-trans=* |
--program-tran=* \
999 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1000 program_transform_name
=$ac_optarg ;;
1002 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1004 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1005 pdfdir
=$ac_optarg ;;
1007 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1009 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1012 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1013 |
-silent |
--silent |
--silen |
--sile |
--sil)
1016 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1018 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1020 sbindir
=$ac_optarg ;;
1022 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1023 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1024 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1026 ac_prev
=sharedstatedir
;;
1027 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1028 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1029 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1031 sharedstatedir
=$ac_optarg ;;
1033 -site |
--site |
--sit)
1035 -site=* |
--site=* |
--sit=*)
1038 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1040 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1041 srcdir
=$ac_optarg ;;
1043 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1044 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1045 ac_prev
=sysconfdir
;;
1046 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1047 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1048 sysconfdir
=$ac_optarg ;;
1050 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1051 ac_prev
=target_alias
;;
1052 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1053 target_alias
=$ac_optarg ;;
1055 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1058 -version |
--version |
--versio |
--versi |
--vers |
-V)
1059 ac_init_version
=: ;;
1062 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_
$ac_package=\
$ac_optarg ;;
1070 -without-* |
--without-*)
1071 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_
$ac_package=no
;;
1080 # Obsolete; use --with-x.
1083 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1084 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1085 ac_prev
=x_includes
;;
1086 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1087 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1088 x_includes
=$ac_optarg ;;
1090 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1091 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1092 ac_prev
=x_libraries
;;
1093 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1094 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1095 x_libraries
=$ac_optarg ;;
1097 -*) { echo "$as_me: error: unrecognized option: $ac_option
1098 Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
1103 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1107 { (exit 1); exit 1; }; }
1108 eval $ac_envvar=\
$ac_optarg
1109 export $ac_envvar ;;
1112 # FIXME: should be removed in autoconf 3.0.
1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1122 if test -n "$ac_prev"; then
1123 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1124 { echo "$as_me: error: missing argument to $ac_option" >&2
1125 { (exit 1); exit 1; }; }
1128 # Be sure to have absolute directory names.
1129 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1134 eval ac_val
=\$
$ac_var
1136 [\\/$
]* | ?
:[\\/]* ) continue;;
1137 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
1143 # There might be people who depend on the old broken behavior: `$host'
1144 # used to hold the argument of --host etc.
1145 # FIXME: To remove some day.
1148 target
=$target_alias
1150 # FIXME: To remove some day.
1151 if test "x$host_alias" != x
; then
1152 if test "x$build_alias" = x
; then
1153 cross_compiling
=maybe
1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1162 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1164 test "$silent" = yes && exec 6>/dev
/null
1167 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1168 ac_ls_di
=`ls -di .` &&
1169 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1170 { echo "$as_me: error: Working directory cannot be determined" >&2
1171 { (exit 1); exit 1; }; }
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 { echo "$as_me: error: pwd does not report name of working directory" >&2
1174 { (exit 1); exit 1; }; }
1177 # Find the source files, if location was not specified.
1178 if test -z "$srcdir"; then
1179 ac_srcdir_defaulted
=yes
1180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir
=`$as_dirname -- "$0" ||
1182 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
1185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1209 ac_srcdir_defaulted
=no
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1214 { (exit 1); exit 1; }; }
1216 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1219 { (exit 1); exit 1; }; }
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1229 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1231 for ac_var
in $ac_precious_vars; do
1232 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1234 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1239 # Report the --help message.
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1245 \`configure' configures this package to adapt to many kinds of systems.
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1252 Defaults for the options are specified in brackets.
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1276 For better control, use the options below.
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1303 --program-prefix=PREFIX prepend PREFIX to installed program names
1304 --program-suffix=SUFFIX append SUFFIX to installed program names
1305 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1308 --x-includes=DIR X include files are
in DIR
1309 --x-libraries=DIR X library files are
in DIR
1312 --build=BUILD configure
for building on BUILD
[guessed
]
1313 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1317 if test -n "$ac_init_help"; then
1322 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1323 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1324 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1325 specify
install directory
for Emacs.app on Mac OS X
1326 --enable-font-backend compile code of font-backend support
1327 --enable-asserts compile code with asserts enabled
1328 --enable-maintainer-mode enable make rules and dependencies not useful
1329 (and sometimes confusing
) to the casual installer
1330 --enable-locallisppath=PATH
1331 directories Emacs should search
for lisp files
1332 specific to this site
1333 --disable-largefile omit support
for large files
1336 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1337 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1338 --without-gcc don
't use GCC to compile Emacs if GCC is found
1339 --without-pop don't support POP
mail retrieval with movemail
1340 --with-kerberos support Kerberos-authenticated POP
1341 --with-kerberos5 support Kerberos version
5 authenticated POP
1342 --with-hesiod support Hesiod to get the POP server
host
1343 --without-sound don
't compile with sound support
1344 --with-x-toolkit=KIT use an X toolkit
1345 (KIT = yes/lucid/athena/motif/gtk/no)
1346 --with-xpm use -lXpm for displaying XPM images
1347 --with-jpeg use -ljpeg for displaying JPEG images
1348 --with-tiff use -ltiff for displaying TIFF images
1349 --with-gif use -lungif for displaying GIF images
1350 --with-png use -lpng for displaying PNG images
1351 --with-freetype use -lfreetype for local fonts support
1352 --with-xft use -lXft for anti aliased fonts
1353 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1354 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1355 --without-toolkit-scroll-bars
1356 don't use Motif or Xaw3d scroll bars
1357 --without-xim don
't use X11 XIM
1358 --without-carbon don't use Carbon GUI on Mac OS X
1359 --with-x use the X Window System
1361 Some influential environment variables
:
1362 CC C compiler
command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1365 nonstandard directory
<lib dir
>
1366 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1367 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1368 you have headers
in a nonstandard directory
<include dir
>
1370 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1372 Use these variables to override the choices made by
`configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1402 .) # We are building in place.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1436 generated by GNU Autoconf 2.61
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1449 It was created by $as_me, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1462 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1463 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1464 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1465 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1466 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1468 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1469 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1471 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1472 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1473 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1474 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1475 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1476 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1477 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1510 ac_must_keep_next=false
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1521 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1539 -* ) ac_must_keep_next=true ;;
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1566 # The following way of writing the cache mishandles newlines in values,
1568 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1569 eval ac_val=\$$ac_var
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1583 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1603 for ac_var in $ac_subst_vars
1605 eval ac_val=\$$ac_var
1607 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1609 echo "$ac_var='\''$ac_val'\''"
1613 if test -n "$ac_subst_files"; then
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1620 for ac_var in $ac_subst_files
1622 eval ac_val=\$$ac_var
1624 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 echo "$ac_var='\''$ac_val'\''"
1631 if test -s confdefs.h; then
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1657 # Predefined preprocessor variables.
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1722 ac_header_list="$ac_header_list sys/time.h"
1723 ac_header_list="$ac_header_list unistd.h"
1724 ac_func_list="$ac_func_list alarm"
1725 # Check that the precious variables saved in the cache have kept the same
1727 ac_cache_corrupted=false
1728 for ac_var in $ac_precious_vars; do
1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1730 eval ac_new_set=\$ac_env_${ac_var}_set
1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1732 eval ac_new_val=\$ac_env_${ac_var}_value
1733 case $ac_old_set,$ac_new_set in
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1736 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1740 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1744 if test "x$ac_old_val" != "x$ac_new_val"; then
1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1747 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1748 echo "$as_me: former value
: $ac_old_val" >&2;}
1749 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1750 echo "$as_me: current value
: $ac_new_val" >&2;}
1751 ac_cache_corrupted=:
1754 # Pass precious variables to config.status.
1755 if test "$ac_new_set" = set; then
1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1758 *) ac_arg=$ac_var=$ac_new_val ;;
1760 case " $ac_configure_args " in
1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1766 if $ac_cache_corrupted; then
1767 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1768 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1769 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1770 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1771 { (exit 1); exit 1; }; }
1791 ac_cpp='$CPP $CPPFLAGS'
1792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1797 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1800 test "$program_prefix" != NONE &&
1801 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1802 # Use a double $ so make ignores it.
1803 test "$program_suffix" != NONE &&
1804 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1805 # Double any \ or $. echo might interpret backslashes.
1806 # By default was `s
,x
,x
', remove it if useless.
1807 cat <<\_ACEOF >conftest.sed
1808 s/[\\$]/&&/g;s/;s,x,x,$//
1810 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1814 lispdir='${datadir}/emacs
/${version}/lisp
'
1815 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1816 '${datadir}/emacs
/site-lisp
'
1817 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1818 etcdir='${datadir}/emacs
/${version}/etc
'
1819 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1820 docdir='${datadir}/emacs
/${version}/etc
'
1821 gamedir='${localstatedir}/games
/emacs
'
1826 # Check whether --with-gcc was given.
1827 if test "${with_gcc+set}" = set; then
1832 # Check whether --with-pop was given.
1833 if test "${with_pop+set}" = set; then
1834 withval=$with_pop; if test "$withval" = yes; then
1835 cat >>confdefs.h <<\_ACEOF
1836 #define MAIL_USE_POP 1
1842 cat >>confdefs.h <<\_ACEOF
1843 #define MAIL_USE_POP 1
1850 # Check whether --with-kerberos was given.
1851 if test "${with_kerberos+set}" = set; then
1852 withval=$with_kerberos; if test "$withval" = yes; then
1853 cat >>confdefs.h <<\_ACEOF
1862 # Check whether --with-kerberos5 was given.
1863 if test "${with_kerberos5+set}" = set; then
1864 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1865 if test "${with_kerberos+set}" != set; then
1867 cat >>confdefs.h <<\_ACEOF
1873 cat >>confdefs.h <<\_ACEOF
1881 # Check whether --with-hesiod was given.
1882 if test "${with_hesiod+set}" = set; then
1883 withval=$with_hesiod; if test "$withval" = yes; then
1885 cat >>confdefs.h <<\_ACEOF
1894 # Check whether --with-sound was given.
1895 if test "${with_sound+set}" = set; then
1896 withval=$with_sound;
1901 # Check whether --with-x-toolkit was given.
1902 if test "${with_x_toolkit+set}" = set; then
1903 withval=$with_x_toolkit; case "${withval}" in
1904 y | ye | yes ) val=athena ;;
1906 l | lu | luc | luci | lucid ) val=lucid ;;
1907 a | at | ath | athe | athen | athena ) val=athena ;;
1908 m | mo | mot | moti | motif ) val=motif ;;
1909 g | gt | gtk ) val=gtk ;;
1911 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1912 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1913 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1914 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1915 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1916 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1917 { (exit 1); exit 1; }; }
1925 # Check whether --with-xpm was given.
1926 if test "${with_xpm+set}" = set; then
1931 # Check whether --with-jpeg was given.
1932 if test "${with_jpeg+set}" = set; then
1937 # Check whether --with-tiff was given.
1938 if test "${with_tiff+set}" = set; then
1943 # Check whether --with-gif was given.
1944 if test "${with_gif+set}" = set; then
1949 # Check whether --with-png was given.
1950 if test "${with_png+set}" = set; then
1955 # Check whether --with-freetype was given.
1956 if test "${with_freetype+set}" = set; then
1957 withval=$with_freetype;
1961 # Check whether --with-xft was given.
1962 if test "${with_xft+set}" = set; then
1967 # Check whether --with-gtk was given.
1968 if test "${with_gtk+set}" = set; then
1973 # Check whether --with-pkg-config-prog was given.
1974 if test "${with_pkg_config_prog+set}" = set; then
1975 withval=$with_pkg_config_prog;
1979 # Check whether --with-toolkit-scroll-bars was given.
1980 if test "${with_toolkit_scroll_bars+set}" = set; then
1981 withval=$with_toolkit_scroll_bars;
1985 # Check whether --with-xim was given.
1986 if test "${with_xim+set}" = set; then
1991 # Check whether --with-carbon was given.
1992 if test "${with_carbon+set}" = set; then
1993 withval=$with_carbon;
1996 # Check whether --enable-carbon-app was given.
1997 if test "${enable_carbon_app+set}" = set; then
1998 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2002 # Check whether --enable-font-backend was given.
2003 if test "${enable_font_backend+set}" = set; then
2004 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2010 # Check whether --enable-asserts was given.
2011 if test "${enable_asserts+set}" = set; then
2012 enableval=$enable_asserts; USE_XASSERTS=$enableval
2018 # Check whether --enable-maintainer-mode was given.
2019 if test "${enable_maintainer_mode+set}" = set; then
2020 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2022 USE_MAINTAINER_MODE=no
2025 if test $USE_MAINTAINER_MODE = yes; then
2032 # Check whether --enable-locallisppath was given.
2033 if test "${enable_locallisppath+set}" = set; then
2034 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2036 elif test "${enableval}" != "yes"; then
2037 locallisppath=${enableval}
2042 #### Make srcdir absolute, if it isn't already. It
's important to
2043 #### avoid running the path through pwd unnecessarily, since pwd can
2044 #### give you automounter prefixes, which can go away. We do all this
2045 #### so Emacs can find its files when run uninstalled.
2046 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2051 ## We may be able to use the $PWD environment variable to make this
2052 ## absolute. But sometimes PWD is inaccurate.
2053 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2054 ## but that tested only for a well-formed and valid PWD,
2055 ## it did not object when PWD was well-formed and valid but just wrong.
2056 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2060 srcdir
="`(cd ${srcdir}; pwd)`"
2063 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2066 #### Check if the source directory already has a configured system in it.
2067 if test `pwd` != `(cd ${srcdir} && pwd)` \
2068 && test -f "${srcdir}/src/config.h" ; then
2069 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2070 as a build directory right now; it has been configured in its own
2071 right. To configure in another directory as well, you MUST
2072 use GNU make. If you do not have GNU make, then you must
2073 now do \`make distclean' in ${srcdir},
2074 and then run $0 again." >&5
2075 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2076 as a build directory right now; it has been configured in its own
2077 right. To configure in another directory as well, you MUST
2078 use GNU make. If you do not have GNU make, then you must
2079 now do \`make distclean' in ${srcdir},
2080 and then run $0 again." >&2;}
2083 #### Given the configuration name, set machfile and opsysfile to the
2084 #### names of the m/*.h and s/*.h files we should use.
2086 ### Canonicalize the configuration name.
2089 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2090 if test -f "$ac_dir/install-sh"; then
2092 ac_install_sh
="$ac_aux_dir/install-sh -c"
2094 elif test -f "$ac_dir/install.sh"; then
2096 ac_install_sh
="$ac_aux_dir/install.sh -c"
2098 elif test -f "$ac_dir/shtool"; then
2100 ac_install_sh
="$ac_aux_dir/shtool install -c"
2104 if test -z "$ac_aux_dir"; then
2105 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2106 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2107 { (exit 1); exit 1; }; }
2110 # These three variables are undocumented and unsupported,
2111 # and are intended to be withdrawn in a future Autoconf release.
2112 # They can cause serious problems if a builder's source tree is in a directory
2113 # whose full name contains unusual characters.
2114 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2115 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2116 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2119 # Make sure we can run config.sub.
2120 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2121 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2122 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2123 { (exit 1); exit 1; }; }
2125 { echo "$as_me:$LINENO: checking build system type" >&5
2126 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2127 if test "${ac_cv_build+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 ac_build_alias
=$build_alias
2131 test "x$ac_build_alias" = x
&&
2132 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2133 test "x$ac_build_alias" = x
&&
2134 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2135 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2136 { (exit 1); exit 1; }; }
2137 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2138 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2139 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2140 { (exit 1); exit 1; }; }
2143 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2144 echo "${ECHO_T}$ac_cv_build" >&6; }
2145 case $ac_cv_build in
2147 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2148 echo "$as_me: error: invalid value of canonical build" >&2;}
2149 { (exit 1); exit 1; }; };;
2152 ac_save_IFS
=$IFS; IFS
='-'
2158 # Remember, the first character of IFS is used to create $*,
2159 # except with old shells:
2162 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2165 { echo "$as_me:$LINENO: checking host system type" >&5
2166 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2167 if test "${ac_cv_host+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 if test "x$host_alias" = x
; then
2171 ac_cv_host
=$ac_cv_build
2173 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2174 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2175 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2176 { (exit 1); exit 1; }; }
2180 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2181 echo "${ECHO_T}$ac_cv_host" >&6; }
2184 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2185 echo "$as_me: error: invalid value of canonical host" >&2;}
2186 { (exit 1); exit 1; }; };;
2189 ac_save_IFS
=$IFS; IFS
='-'
2195 # Remember, the first character of IFS is used to create $*,
2196 # except with old shells:
2199 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2203 configuration
=${host_alias-$host}
2207 ### If you add support for a new configuration, add code to this
2208 ### switch statement to recognize your configuration name and select
2209 ### the appropriate operating system and machine description files.
2211 ### You would hope that you could choose an m/*.h file pretty much
2212 ### based on the machine portion of the configuration name, and an s-
2213 ### file based on the operating system portion. However, it turns out
2214 ### that each m/*.h file is pretty manufacturer-specific - for
2215 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2216 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2217 ### machines. So we basically have to have a special case for each
2218 ### configuration name.
2220 ### As far as handling version numbers on operating systems is
2221 ### concerned, make sure things will fail in a fixable way. If
2222 ### /etc/MACHINES doesn't say anything about version numbers, be
2223 ### prepared to handle anything reasonably. If version numbers
2224 ### matter, be sure /etc/MACHINES says something about it.
2226 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2227 ### "System V Release 4"; he writes, "The old convention encouraged
2228 ### confusion between `system' and `release' levels'."
2230 machine
='' opsys
='' unported
=no
2231 case "${canonical}" in
2236 case "${canonical}" in
2237 alpha
*-*-freebsd*) machine
=alpha
;;
2238 ia64-
*-freebsd*) machine
=ia64
;;
2239 sparc64-
*-freebsd*) machine
=sparc
;;
2240 powerpc-
*-freebsd*) machine
=macppc
;;
2241 i
[3456]86-*-freebsd*) machine
=intel386
;;
2242 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2249 if test -f /usr
/lib
/crti.o
; then
2251 cat >>confdefs.h
<<\_ACEOF
2257 case "${canonical}" in
2258 alpha
*-*-netbsd*) machine
=alpha
;;
2259 i
[3456]86-*-netbsd*) machine
=intel386
;;
2261 # This is somewhat bogus.
2262 machine
=hp9000s300
;;
2263 mips-
*-netbsd*) machine
=pmax
;;
2264 mipsel-
*-netbsd*) machine
=pmax
;;
2265 mipseb-
*-netbsd*) machine
=pmax
;;
2266 ns32k-
*-netbsd*) machine
=ns32000
;;
2267 powerpc-
*-netbsd*) machine
=macppc
;;
2268 sparc
*-*-netbsd*) machine
=sparc
;;
2269 vax-
*-netbsd*) machine
=vax
;;
2270 arm-
*-netbsd*) machine
=arm
;;
2271 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2272 hppa-
*-netbsd*) machine
=hp800
;;
2273 shle-
*-netbsd*) machine
=sh3el
;;
2280 case "${canonical}" in
2281 alpha
*-*-openbsd*) machine
=alpha
;;
2282 arm-
*-openbsd*) machine
=arm
;;
2283 hppa-
*-openbsd*) machine
=hp9000s300
;;
2284 i386-
*-openbsd*) machine
=intel386
;;
2285 m68k-
*-openbsd*) machine
=hp9000s300
;;
2286 m88k-
*-openbsd*) machine
=aviion
;;
2287 mips64-
*-openbsd*) machine
=mips64
;;
2288 powerpc-
*-openbsd*) machine
=macppc
;;
2289 sh-
*-openbsd*) machine
=sh3el
;;
2290 sparc
*-*-openbsd*) machine
=sparc
;;
2291 vax-
*-openbsd*) machine
=vax
;;
2292 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2299 case "${canonical}" in
2300 i
[3456]86-*-lynxos*) machine
=intel386
;;
2301 powerpc-
*-lynxos*) machine
=powerpc
;;
2306 arm-acorn-riscix1.1
* )
2307 machine
=acorn opsys
=riscix1-1
2309 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2310 ## This name is riscix12 instead of riscix1.2
2311 ## to avoid a file name conflict on MSDOS.
2312 machine
=acorn opsys
=riscix12
2318 case "${canonical}" in
2319 i
[345]86-*-bsdi*) machine
=intel386
;;
2320 sparc-
*-bsdi*) machine
=sparc
;;
2321 powerpc-
*-bsdi*) machine
=macppc
;;
2323 case "${canonical}" in
2324 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2325 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2326 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2327 *-*-bsdi3* ) opsys
=bsdos3
;;
2328 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2333 ## Strictly speaking, we need the version of the alliant operating
2334 ## system to choose the right machine file, but currently the
2335 ## configuration name doesn't tell us enough to choose the right
2336 ## one; we need to give alliants their own operating system name to
2337 ## do this right. When someone cares, they can help us.
2339 machine
=alliant4 opsys
=bsd4-2
2342 machine
=alliant-2800 opsys
=bsd4-3
2345 ## Alpha (DEC) machines.
2347 machine
=alpha opsys
=osf1
2348 # This is needed to find X11R6.1 libraries for certain tests.
2349 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2350 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2351 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2352 # due to non-traditional preprocessing with the current compiler
2353 # defaults. OSF 4 can also have that compiler version, and there
2354 # seems always to have been a usable /usr/bin/cpp.
2355 NON_GNU_CPP
=/usr
/bin
/cpp
2356 case "${canonical}" in
2357 alpha
*-dec-osf[5-9]*)
2362 alpha
*-*-linux-gnu* )
2363 machine
=alpha opsys
=gnu-linux
2367 machine
=arm opsys
=gnu-linux
2372 machine
=altos opsys
=usg5-2
2377 machine
=amdahl opsys
=usg5-2-2
2380 ## Apollo, Domain/OS
2382 machine
=apollo opsys
=bsd4-3
2385 ## Apple Darwin / Mac OS X
2387 case "${canonical}" in
2388 i
[3456]86-* ) machine
=intel386
;;
2389 powerpc-
* ) machine
=powermac
;;
2393 # Define CPP as follows to make autoconf work correctly.
2394 CPP
="${CC-cc} -E -no-cpp-precomp"
2395 # Use fink packages if available.
2396 if test -d /sw
/include
&& test -d /sw
/lib
; then
2397 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2398 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2399 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2403 ## AT&T 3b2, 3b5, 3b15, 3b20
2405 machine
=att3b opsys
=usg5-2-2
2408 ## AT&T 3b1 - The Mighty Unix PC!
2410 machine
=7300 opsys
=usg5-2-2
2415 machine
=ibmrs6000 opsys
=aix3-2
2420 machine
=dpx2 opsys
=usg5-3
2425 machine
=sps7 opsys
=usg5-2
2428 ## CCI 5/32, 6/32 -- see "Tahoe".
2431 ## I don't know what configuration name to use for this; config.sub
2432 ## doesn't seem to know anything about it. Hey, Celerity users, get
2433 ## in touch with us!
2434 celerity-celerity-bsd
* )
2435 machine
=celerity opsys
=bsd4-2
2439 ## What operating systems does this chip run that Emacs has been
2443 ## We'll use the catch-all code at the bottom to guess the
2444 ## operating system.
2448 mips-compaq-nonstopux
* )
2449 machine
=nonstopux opsys
=nonstopux
2453 *-convex-bsd* |
*-convex-convexos* )
2454 machine
=convex opsys
=bsd4-3
2455 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2456 NON_GNU_CPP
="cc -E -P"
2460 i
[3456]86-cubix-sysv* )
2461 machine
=intel386 opsys
=usg5-3
2465 cydra
*-cydrome-sysv* )
2466 machine
=cydra5 opsys
=usg5-3
2469 ## Data General AViiON Machines
2470 ## DG changed naming conventions with the release of 5.4.4.10, they
2471 ## dropped the initial 5.4 but left the intervening R. Because of the
2472 ## R this shouldn't conflict with older versions of the OS (which I
2473 ## think were named like dgux4.*). In addition, DG new AViiONs series
2474 ## uses either Motorola M88k or Intel Pentium CPUs.
2475 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2476 machine
=aviion opsys
=dgux4
2478 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2479 ## This name is dgux5-4-3 instead of dgux5-4r3
2480 ## to avoid a file name conflict on MSDOS.
2481 machine
=aviion opsys
=dgux5-4-3
2483 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2484 machine
=aviion opsys
=dgux5-4r2
2487 machine
=aviion opsys
=dgux
2490 ## Data General AViiON Intel (x86) Machines
2491 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2492 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2493 i
[345]86-dg-dguxR4* )
2494 machine
=aviion-intel opsys
=dgux4
2498 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2499 machine
=pmax opsys
=bsd4-2
2501 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2502 machine
=pmax opsys
=bsd4-3
2505 machine
=pmax opsys
=ultrix4-3
2508 machine
=pmax opsys
=osf1
2510 mips-dec-mach_bsd4.3
* )
2511 machine
=pmax opsys
=mach-bsd4-3
2514 ## Motorola Delta machines
2515 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2516 machine
=delta opsys
=usg5-3
2517 if test -z "`type gnucc | grep 'not found'`"
2519 if test -s /etc
/167config
2520 then CC
="gnucc -m68040"
2521 else CC
="gnucc -m68881"
2524 if test -z "`type gcc | grep 'not found'`"
2530 m88k-motorola-sysv4
* )
2531 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2532 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2533 # I hope there are not other 4.0 versions for this machine
2534 # which really need usg5-4 instead.
2535 machine
=delta88k opsys
=usg5-4-2
2537 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2538 machine
=delta88k opsys
=usg5-3
2543 machine
=dual opsys
=usg5-2
2545 m68
*-dual-uniplus* )
2546 machine
=dual opsys
=unipl5-2
2551 machine
=elxsi opsys
=usg5-2
2556 machine
=ns16000 opsys
=umax
2559 ## The GEC 63 - apparently, this port isn't really finished yet.
2560 # I'm sure we finished off the last of the machines, though. -- fx
2562 ## Gould Power Node and NP1
2564 machine
=gould opsys
=bsd4-2
2567 machine
=gould opsys
=bsd4-3
2570 machine
=gould-np1 opsys
=bsd4-3
2573 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2574 ## as far as Emacs is concerned).
2576 # Build needs to be different on 7.0 and later releases
2577 case "`uname -r`" in
2578 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2579 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2581 NON_GNU_CPP
="/lib/cpp"
2583 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2585 machine
=nh3000 opsys
=cxux
2587 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2588 powerpc-harris-powerunix
)
2589 machine
=nh6000 opsys
=powerunix
2590 NON_GNU_CPP
="cc -Xo -E -P"
2592 ## SR2001/SR2201 running HI-UX/MPP
2593 hppa1.1
-hitachi-hiuxmpp* )
2594 machine
=sr2k opsys
=hiuxmpp
2596 hppa1.1
-hitachi-hiuxwe2* )
2597 machine
=sr2k opsys
=hiuxwe2
2600 xps
*-honeywell-sysv* )
2601 machine
=xps100 opsys
=usg5-2
2604 ## HP 9000 series 200 or 300
2606 machine
=hp9000s300 opsys
=bsd4-3
2608 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2610 case "`uname -r`" in
2611 ## Someone's system reports A.B8.05 for this.
2612 ## I wonder what other possibilities there are.
2613 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2614 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2615 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2616 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2617 *) machine
=hp9000s300 opsys
=hpux
;;
2621 ## HP 9000 series 700 and 800, running HP/UX
2623 machine
=hp800 opsys
=hpux
2626 machine
=hp800 opsys
=hpux8
2628 hppa
*-hp-hpux9shr* )
2629 machine
=hp800 opsys
=hpux9shr
2632 machine
=hp800 opsys
=hpux9
2634 hppa
*-hp-hpux10.2
* )
2635 machine
=hp800 opsys
=hpux10-20
2638 machine
=hp800 opsys
=hpux10
2640 hppa
*-hp-hpux1[1-9]* )
2641 machine
=hp800 opsys
=hpux11
2642 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2645 hppa
*-*-linux-gnu* )
2646 machine
=hp800 opsys
=gnu-linux
2649 ## HP 9000 series 700 and 800, running HP/UX
2651 ## Cross-compilation? Nah!
2652 case "`uname -r`" in
2653 ## Someone's system reports A.B8.05 for this.
2654 ## I wonder what other possibilities there are.
2655 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2656 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2657 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2658 *) machine
=hp800 opsys
=hpux10
;;
2662 machine
=hp800 opsys
=nextstep
2667 machine
=orion opsys
=bsd4-2
2669 clipper-orion-bsd
* )
2670 machine
=orion105 opsys
=bsd4-2
2674 i
[3456]86-ibm-aix1.1
* )
2675 machine
=ibmps2-aix opsys
=usg5-2-2
2677 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2678 machine
=ibmps2-aix opsys
=usg5-3
2681 machine
=ibm370aix opsys
=usg5-3
2684 machine
=ibms390 opsys
=gnu-linux
2686 s390x-
*-linux-gnu* )
2687 machine
=ibms390x opsys
=gnu-linux
2689 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2690 machine
=ibmrs6000 opsys
=aix3-1
2692 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2693 machine
=ibmrs6000 opsys
=aix3-2-5
2695 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2696 machine
=ibmrs6000 opsys
=aix4-1
2698 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2699 machine
=ibmrs6000 opsys
=aix4-2
2701 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2702 machine
=ibmrs6000 opsys
=aix4-2
2704 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2705 machine
=ibmrs6000 opsys
=aix4-2
2707 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2708 machine
=ibmrs6000 opsys
=aix4
2710 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2711 machine
=ibmrs6000 opsys
=aix4-1
2713 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2714 machine
=ibmrs6000 opsys
=aix3-2
2717 machine
=ibmrt opsys
=bsd4-3
2720 machine
=ibmrt opsys
=bsd4-2
2723 machine
=ibmrt opsys
=bsd4-3
2726 machine
=ibmrt opsys
=bsd4-2
2729 machine
=ibmrt opsys
=bsd4-3
2732 machine
=ibmrt opsys
=bsd4-3
2735 machine
=ibmrt-aix opsys
=usg5-2-2
2738 ## Integrated Solutions `Optimum V'
2740 machine
=isi-ov opsys
=bsd4-2
2743 machine
=isi-ov opsys
=bsd4-3
2746 ## Intel 386 machines where we do care about the manufacturer
2747 i
[3456]86-intsys-sysv* )
2748 machine
=is386 opsys
=usg5-2-2
2752 i
[3456]86-prime-sysv* )
2753 machine
=i386 opsys
=usg5-3
2756 ## Sequent Symmetry running Dynix
2757 i
[3456]86-sequent-bsd* )
2758 machine
=symmetry opsys
=bsd4-3
2761 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2762 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2763 machine
=sequent-ptx opsys
=ptx4
2764 NON_GNU_CPP
=/lib
/cpp
2767 ## Sequent Symmetry running DYNIX/ptx
2768 ## Use the old cpp rather than the newer ANSI one.
2769 i
[3456]86-sequent-ptx* )
2770 machine
=sequent-ptx opsys
=ptx
2771 NON_GNU_CPP
="/lib/cpp"
2774 ## ncr machine running svr4.3.
2775 i
[3456]86-ncr-sysv4.3
)
2776 machine
=ncr386 opsys
=usg5-4-3
2779 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2780 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2781 i
[3456]86-ncr-sysv* )
2782 machine
=ncr386 opsys
=usg5-4-2
2785 ## Intel Paragon OSF/1
2787 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2792 machine
=i860 opsys
=usg5-4
2793 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2794 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2797 ## Macintosh PowerPC
2798 powerpc
*-*-linux-gnu* )
2799 machine
=macppc opsys
=gnu-linux
2802 ## Masscomp machines
2803 m68
*-masscomp-rtu* )
2804 machine
=masscomp opsys
=rtu
2807 ## Megatest machines
2808 m68
*-megatest-bsd* )
2809 machine
=mega68 opsys
=bsd4-2
2812 ## Workstations sold by MIPS
2813 ## This is not necessarily all workstations using the MIPS processor -
2814 ## Irises are produced by SGI, and DECstations by DEC.
2816 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2817 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2818 ## it gives for choosing between the alternatives seems to be "Use
2819 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2820 ## the BSD world." I'll assume that these are instructions for
2821 ## handling two odd situations, and that every other situation
2822 ## should use mips.h and usg5-2-2, they being listed first.
2825 ## Fall through to the general code at the bottom to decide on the OS.
2827 mips-mips-riscos4
* )
2828 machine
=mips4 opsys
=bsd4-3
2829 NON_GNU_CC
="cc -systype bsd43"
2830 NON_GNU_CPP
="cc -systype bsd43 -E"
2832 mips-mips-riscos5
* )
2833 machine
=mips4 opsys
=riscos5
2834 NON_GNU_CC
="cc -systype bsd43"
2835 NON_GNU_CPP
="cc -systype bsd43 -E"
2838 machine
=mips opsys
=bsd4-3
2841 machine
=mips opsys
=usg5-2-2
2845 m68
*-next-* | m68k-
*-nextstep* )
2846 machine
=m68k opsys
=nextstep
2849 ## The complete machine from National Semiconductor
2851 machine
=ns32000 opsys
=usg5-2
2855 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2856 machine
=tower32 opsys
=usg5-2-2
2858 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2859 machine
=tower32v3 opsys
=usg5-3
2864 machine
=ews4800 opsys
=ux4800
2867 ## Nixdorf Targon 31
2868 m68
*-nixdorf-sysv* )
2869 machine
=targon31 opsys
=usg5-2-2
2874 machine
=nu opsys
=usg5-2
2879 machine
=plexus opsys
=usg5-2
2883 ## I don't really have any idea what sort of processor the Pyramid has,
2884 ## so I'm assuming it is its own architecture.
2885 pyramid-pyramid-bsd
* )
2886 machine
=pyramid opsys
=bsd4-2
2890 ns32k-sequent-bsd4.2
* )
2891 machine
=sequent opsys
=bsd4-2
2893 ns32k-sequent-bsd4.3
* )
2894 machine
=sequent opsys
=bsd4-3
2898 mips-siemens-sysv
* | mips-sni-sysv
*)
2899 machine
=mips-siemens opsys
=usg5-4
2900 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2901 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2904 ## Silicon Graphics machines
2905 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2907 machine
=irist opsys
=iris3-5
2909 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2910 machine
=irist opsys
=iris3-6
2914 machine
=iris4d opsys
=irix3-3
2917 machine
=iris4d opsys
=irix4-0
2920 machine
=iris4d opsys
=irix6-5
2921 # Without defining _LANGUAGE_C, things get masked out in the headers
2922 # so that, for instance, grepping for `free' in stdlib.h fails and
2923 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2924 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2925 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2928 machine
=iris4d opsys
=irix6-0
2929 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2930 # but presumably it does no harm.
2931 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2932 # -32 probably isn't necessary in later v.6s -- anyone know which?
2933 NON_GCC_TEST_OPTIONS
=-32
2935 mips-sgi-irix5.
[01]* )
2936 machine
=iris4d opsys
=irix5-0
2938 mips-sgi-irix5
* | mips-sgi-irix
* )
2939 machine
=iris4d opsys
=irix5-2
2944 machine
=news opsys
=bsd4-2
2947 machine
=news opsys
=bsd4-3
2949 m68
*-sony-newsos3* | m68
*-sony-news3*)
2950 machine
=news opsys
=bsd4-3
2952 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2953 machine
=news-risc opsys
=bsd4-3
2955 mips-sony-newsos6
* )
2956 machine
=news-r6 opsys
=newsos6
2959 machine
=news-risc opsys
=newsos5
2964 machine
=stride opsys
=usg5-2
2968 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2969 machine
=sparc opsys
=gnu-linux
2972 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2973 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2974 | rs6000-
*-solaris2*)
2975 case "${canonical}" in
2976 m68
*-sunos1* ) machine
=sun1
;;
2977 m68
*-sunos2* ) machine
=sun2
;;
2978 m68
* ) machine
=sun3
;;
2979 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2980 i
[3456]86-*-* ) machine
=intel386
;;
2981 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2982 powerpcle
* ) machine
=powerpcle
;;
2983 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2984 sparc
* ) machine
=sparc
;;
2987 case "${canonical}" in
2988 ## The Sun386 didn't get past 4.0.
2989 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2990 *-sunos4.0
* ) opsys
=sunos4-0
;;
2991 *-sunos4.1.
[3-9]*noshare
)
2992 ## This name is sunos413 instead of sunos4-1-3
2993 ## to avoid a file name conflict on MSDOS.
2995 NON_GNU_CPP
=/usr
/lib
/cpp
2996 NON_GCC_TEST_OPTIONS
=-Bstatic
2997 GCC_TEST_OPTIONS
=-static
2999 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
3001 NON_GNU_CPP
=/usr
/lib
/cpp
3003 *-sunos4* |
*-sunos )
3005 NON_GCC_TEST_OPTIONS
=-Bstatic
3006 GCC_TEST_OPTIONS
=-static
3008 *-sunos5.3
* |
*-solaris2.3
* )
3010 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3012 *-sunos5.4
* |
*-solaris2.4
* )
3014 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3017 *-sunos5.5
* |
*-solaris2.5
* )
3019 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3022 *-sunos5.6
* |
*-solaris2.6
* )
3024 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3027 *-sunos5* |
*-solaris* )
3029 ## FIXME: make this into a proper fix that checks the compiler type,
3030 ## rather than relying on path. Or is /usr/ccs/lib/cpp a bad default now?
3031 if [ "x$CC" = x
/opt
/SUNWspro
/bin
/cc
]; then
3032 ## -Xs prevents spurious whitespace.
3033 NON_GNU_CPP
="/opt/SUNWspro/bin/cc -E -Xs"
3035 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3040 ## Watch out for a compiler that we know will not work.
3041 case "${canonical}" in
3042 *-solaris* |
*-sunos5* )
3043 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
3044 ## /usr/ucb/cc doesn't work;
3045 ## we should find some other compiler that does work.
3053 machine
=sparc opsys
=nextstep
3057 m68
*-tadpole-sysv* )
3058 machine
=tad68k opsys
=usg5-3
3062 tahoe-tahoe-bsd4.2
* )
3063 machine
=tahoe opsys
=bsd4-2
3065 tahoe-tahoe-bsd4.3
* )
3066 machine
=tahoe opsys
=bsd4-3
3069 ## Tandem Integrity S2
3071 machine
=tandem-s2 opsys
=usg5-3
3075 m88k-tektronix-sysv3
* )
3076 machine
=tekxd88 opsys
=usg5-3
3079 ## Tektronix 16000 box (6130?)
3080 ns16k-tektronix-bsd
* )
3081 machine
=ns16000 opsys
=bsd4-2
3084 ## src/m/tek4300.h hints that this is a m68k machine.
3085 m68
*-tektronix-bsd* )
3086 machine
=tek4300 opsys
=bsd4-3
3090 ## We seem to have lost the machine-description file titan.h!
3092 machine
=titan opsys
=usg5-3
3095 ## Ustation E30 (SS5E)
3096 m68
*-unisys-uniplus* )
3097 machine
=ustation opsystem
=unipl5-2
3103 case "${canonical}" in
3104 *-bsd4.1
* ) opsys
=bsd4-1
;;
3105 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3106 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3107 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3108 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3109 *-vms* ) opsys
=vms
;;
3115 ns16k-whitechapel-
* )
3117 ## We don't know what sort of OS runs on these; we'll let the
3118 ## operating system guessing code below try.
3123 machine
=wicat opsys
=usg5-2
3128 machine
=ia64 opsys
=gnu-linux
3131 ## Intel 386 machines where we don't care about the manufacturer
3134 case "${canonical}" in
3135 *-cygwin ) opsys
=cygwin
;;
3136 *-darwin* ) opsys
=darwin
3137 CPP
="${CC-cc} -E -no-cpp-precomp"
3139 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3140 *-isc2.2
* ) opsys
=isc2-2
;;
3141 *-isc4.0
* ) opsys
=isc4-0
;;
3142 *-isc4.
* ) opsys
=isc4-1
3143 GCC_TEST_OPTIONS
=-posix
3144 NON_GCC_TEST_OPTIONS
=-Xp
3146 *-isc* ) opsys
=isc3-0
;;
3147 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3148 *-esix* ) opsys
=esix
;;
3149 *-xenix* ) opsys
=xenix
;;
3150 *-linux-gnu* ) opsys
=gnu-linux
;;
3151 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3152 *-sco3.2v5
* ) opsys
=sco5
3153 NON_GNU_CPP
=/lib
/cpp
3154 # Prevent -belf from being passed to $CPP.
3155 # /lib/cpp does not accept it.
3156 OVERRIDE_CPPFLAGS
=" "
3158 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3159 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3160 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3161 *-386bsd* ) opsys
=386bsd
;;
3162 *-nextstep* ) opsys
=nextstep
;;
3163 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3167 ## m68k Linux-based GNU system
3169 machine
=m68k opsys
=gnu-linux
3172 ## Mips Linux-based GNU system
3173 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3174 machine
=mips opsys
=gnu-linux
3178 sparc-fujitsu-sysv4
* )
3179 machine
=sparc opsys
=uxpds
3180 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3185 f301-fujitsu-uxpv4.1
)
3186 machine
=f301 opsys
=uxpv
3189 ## AMD x86-64 Linux-based GNU system
3190 x86_64-
*-linux-gnu* )
3191 machine
=amdx86-64 opsys
=gnu-linux
3194 ## Tensilica Xtensa Linux-based GNU system
3195 xtensa-
*-linux-gnu* )
3196 machine
=xtensa opsys
=gnu-linux
3204 ### If the code above didn't choose an operating system, just choose
3205 ### an operating system based on the configuration name. You really
3206 ### only want to use this when you have no idea what the right
3207 ### operating system is; if you know what operating systems a machine
3208 ### runs, it's cleaner to make it explicit in the case statement
3210 if test x
"${opsys}" = x
; then
3211 case "${canonical}" in
3212 *-gnu* ) opsys
=gnu
;;
3213 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3214 *-bsd4.2
) opsys
=bsd4-2
;;
3215 *-bsd4.3
) opsys
=bsd4-3
;;
3216 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3217 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3218 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3219 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3220 *-sysv4.2uw
* ) opsys
=unixware
;;
3221 *-sysv5uw* ) opsys
=unixware
;;
3222 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3223 *-sysv4.1
* |
*-sysvr4.1
* )
3224 NON_GNU_CPP
=/usr
/lib
/cpp
3226 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3227 if [ x
$NON_GNU_CPP = x
]; then
3228 if [ -f /usr
/ccs
/lib
/cpp
]; then
3229 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3231 NON_GNU_CPP
=/lib
/cpp
3235 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3244 if test $unported = yes; then
3245 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3246 Check \`etc/MACHINES' for recognized configuration names." >&5
3247 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3248 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3249 { (exit 1); exit 1; }; }
3252 machfile
="m/${machine}.h"
3253 opsysfile
="s/${opsys}.h"
3256 #### Choose a compiler.
3257 test -n "$CC" && cc_specified
=yes
3259 # Save the value of CFLAGS that the user specified.
3260 SPECIFIED_CFLAGS
="$CFLAGS"
3263 "yes" ) CC
="gcc" GCC
=yes ;;
3264 "no" ) : ${CC=cc} ;;
3268 ac_cpp
='$CPP $CPPFLAGS'
3269 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3270 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3271 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3272 if test -n "$ac_tool_prefix"; then
3273 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3274 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3277 if test "${ac_cv_prog_CC+set}" = set; then
3278 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 if test -n "$CC"; then
3281 ac_cv_prog_CC
="$CC" # Let the user override the test.
3283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3287 test -z "$as_dir" && as_dir
=.
3288 for ac_exec_ext
in '' $ac_executable_extensions; do
3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3291 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3301 if test -n "$CC"; then
3302 { echo "$as_me:$LINENO: result: $CC" >&5
3303 echo "${ECHO_T}$CC" >&6; }
3305 { echo "$as_me:$LINENO: result: no" >&5
3306 echo "${ECHO_T}no" >&6; }
3311 if test -z "$ac_cv_prog_CC"; then
3313 # Extract the first word of "gcc", so it can be a program name with args.
3314 set dummy gcc
; ac_word
=$2
3315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3317 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3318 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 if test -n "$ac_ct_CC"; then
3321 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3323 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3327 test -z "$as_dir" && as_dir
=.
3328 for ac_exec_ext
in '' $ac_executable_extensions; do
3329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3330 ac_cv_prog_ac_ct_CC
="gcc"
3331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3340 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3341 if test -n "$ac_ct_CC"; then
3342 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3343 echo "${ECHO_T}$ac_ct_CC" >&6; }
3345 { echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6; }
3349 if test "x$ac_ct_CC" = x
; then
3352 case $cross_compiling:$ac_tool_warned in
3354 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3355 whose name does not start with the host triplet. If you think this
3356 configuration is useful to you, please write to autoconf@gnu.org." >&5
3357 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3358 whose name does not start with the host triplet. If you think this
3359 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3360 ac_tool_warned
=yes ;;
3368 if test -z "$CC"; then
3369 if test -n "$ac_tool_prefix"; then
3370 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3371 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3374 if test "${ac_cv_prog_CC+set}" = set; then
3375 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 if test -n "$CC"; then
3378 ac_cv_prog_CC
="$CC" # Let the user override the test.
3380 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3384 test -z "$as_dir" && as_dir
=.
3385 for ac_exec_ext
in '' $ac_executable_extensions; do
3386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3387 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 if test -n "$CC"; then
3399 { echo "$as_me:$LINENO: result: $CC" >&5
3400 echo "${ECHO_T}$CC" >&6; }
3402 { echo "$as_me:$LINENO: result: no" >&5
3403 echo "${ECHO_T}no" >&6; }
3409 if test -z "$CC"; then
3410 # Extract the first word of "cc", so it can be a program name with args.
3411 set dummy cc
; ac_word
=$2
3412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3414 if test "${ac_cv_prog_CC+set}" = set; then
3415 echo $ECHO_N "(cached) $ECHO_C" >&6
3417 if test -n "$CC"; then
3418 ac_cv_prog_CC
="$CC" # Let the user override the test.
3421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3425 test -z "$as_dir" && as_dir
=.
3426 for ac_exec_ext
in '' $ac_executable_extensions; do
3427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3428 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3429 ac_prog_rejected
=yes
3433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 if test $ac_prog_rejected = yes; then
3441 # We found a bogon in the path, so make sure we never use it.
3442 set dummy
$ac_cv_prog_CC
3444 if test $# != 0; then
3445 # We chose a different compiler from the bogus one.
3446 # However, it has the same basename, so the bogon will be chosen
3447 # first if we set CC to just the basename; use the full file name.
3449 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3455 if test -n "$CC"; then
3456 { echo "$as_me:$LINENO: result: $CC" >&5
3457 echo "${ECHO_T}$CC" >&6; }
3459 { echo "$as_me:$LINENO: result: no" >&5
3460 echo "${ECHO_T}no" >&6; }
3465 if test -z "$CC"; then
3466 if test -n "$ac_tool_prefix"; then
3467 for ac_prog
in cl.exe
3469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3470 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3473 if test "${ac_cv_prog_CC+set}" = set; then
3474 echo $ECHO_N "(cached) $ECHO_C" >&6
3476 if test -n "$CC"; then
3477 ac_cv_prog_CC
="$CC" # Let the user override the test.
3479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3483 test -z "$as_dir" && as_dir
=.
3484 for ac_exec_ext
in '' $ac_executable_extensions; do
3485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3486 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3497 if test -n "$CC"; then
3498 { echo "$as_me:$LINENO: result: $CC" >&5
3499 echo "${ECHO_T}$CC" >&6; }
3501 { echo "$as_me:$LINENO: result: no" >&5
3502 echo "${ECHO_T}no" >&6; }
3506 test -n "$CC" && break
3509 if test -z "$CC"; then
3511 for ac_prog
in cl.exe
3513 # Extract the first word of "$ac_prog", so it can be a program name with args.
3514 set dummy
$ac_prog; ac_word
=$2
3515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3517 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3518 echo $ECHO_N "(cached) $ECHO_C" >&6
3520 if test -n "$ac_ct_CC"; then
3521 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3523 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3527 test -z "$as_dir" && as_dir
=.
3528 for ac_exec_ext
in '' $ac_executable_extensions; do
3529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3530 ac_cv_prog_ac_ct_CC
="$ac_prog"
3531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3541 if test -n "$ac_ct_CC"; then
3542 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3543 echo "${ECHO_T}$ac_ct_CC" >&6; }
3545 { echo "$as_me:$LINENO: result: no" >&5
3546 echo "${ECHO_T}no" >&6; }
3550 test -n "$ac_ct_CC" && break
3553 if test "x$ac_ct_CC" = x
; then
3556 case $cross_compiling:$ac_tool_warned in
3558 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3559 whose name does not start with the host triplet. If you think this
3560 configuration is useful to you, please write to autoconf@gnu.org." >&5
3561 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3562 whose name does not start with the host triplet. If you think this
3563 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3564 ac_tool_warned
=yes ;;
3573 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3574 See \`config.log' for more details." >&5
3575 echo "$as_me: error: no acceptable C compiler found in \$PATH
3576 See \`config.log' for more details." >&2;}
3577 { (exit 1); exit 1; }; }
3579 # Provide some information about the compiler.
3580 echo "$as_me:$LINENO: checking for C compiler version" >&5
3581 ac_compiler
=`set X $ac_compile; echo $2`
3582 { (ac_try
="$ac_compiler --version >&5"
3584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_compiler --version >&5") 2>&5
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }
3592 { (ac_try="$ac_compiler -v >&5"
3594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3595 *) ac_try_echo
=$ac_try;;
3597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3598 (eval "$ac_compiler -v >&5") 2>&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); }
3602 { (ac_try
="$ac_compiler -V >&5"
3604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3605 *) ac_try_echo=$ac_try;;
3607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3608 (eval "$ac_compiler -V >&5") 2>&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }
3613 cat >conftest.$ac_ext <<_ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */
3628 ac_clean_files_save=$ac_clean_files
3629 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3630 # Try to create an executable without -o first, disregard a.out.
3631 # It will help us diagnose broken compilers, and finding out an intuition
3633 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3634 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3635 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3637 # List of possible output files, starting from the most likely.
3638 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3639 # only as a last resort. b.out is created by i960 compilers.
3640 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3642 # The IRIX 6 linker writes into existing files which may not be
3643 # executable, retaining their permissions. Remove them first so a
3644 # subsequent execution test works.
3646 for ac_file in $ac_files
3649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3650 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3655 if { (ac_try="$ac_link_default"
3657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3658 *) ac_try_echo=$ac_try;;
3660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3661 (eval "$ac_link_default") 2>&5
3663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664 (exit $ac_status); }; then
3665 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3666 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3667 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3668 # so that the user can short-circuit this test for compilers unknown to
3670 for ac_file
in $ac_files ''
3672 test -f "$ac_file" ||
continue
3674 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3677 # We found the default executable, but exeext='' is most
3681 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3683 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3685 # We set ac_cv_exeext here because the later test for it is not
3686 # safe: cross compilers may not add the suffix if given an `-o'
3687 # argument, so we may need to know it at that point already.
3688 # Even if this section looks crufty: it has the advantage of
3695 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3701 { echo "$as_me:$LINENO: result: $ac_file" >&5
3702 echo "${ECHO_T}$ac_file" >&6; }
3703 if test -z "$ac_file"; then
3704 echo "$as_me: failed program was:" >&5
3705 sed 's/^/| /' conftest.
$ac_ext >&5
3707 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3708 See \`config.log' for more details." >&5
3709 echo "$as_me: error: C compiler cannot create executables
3710 See \`config.log' for more details." >&2;}
3711 { (exit 77); exit 77; }; }
3714 ac_exeext
=$ac_cv_exeext
3716 # Check that the compiler produces executables we can run. If not, either
3717 # the compiler is broken, or we cross compile.
3718 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3719 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3720 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3721 # If not cross compiling, check that we can run a simple program.
3722 if test "$cross_compiling" != yes; then
3723 if { ac_try
='./$ac_file'
3724 { (case "(($ac_try" in
3725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729 (eval "$ac_try") 2>&5
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; }; then
3735 if test "$cross_compiling" = maybe; then
3738 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3739 If you meant to cross compile, use \`--host'.
3740 See \`config.log' for more details.
" >&5
3741 echo "$as_me: error
: cannot run C compiled programs.
3742 If you meant to cross compile
, use \
`--host'.
3743 See \`config.log
' for more details." >&2;}
3744 { (exit 1); exit 1; }; }
3748 { echo "$as_me:$LINENO: result: yes" >&5
3749 echo "${ECHO_T}yes" >&6; }
3751 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3752 ac_clean_files=$ac_clean_files_save
3753 # Check that the compiler produces executables we can run. If not, either
3754 # the compiler is broken, or we cross compile.
3755 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3756 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3757 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3758 echo "${ECHO_T}$cross_compiling" >&6; }
3760 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3761 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3762 if { (ac_try="$ac_link"
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768 (eval "$ac_link") 2>&5
3770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3771 (exit $ac_status); }; then
3772 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3773 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3774 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3776 for ac_file
in conftest.exe conftest conftest.
*; do
3777 test -f "$ac_file" ||
continue
3779 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3780 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3786 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3787 See \`config.log' for more details." >&5
3788 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3789 See \`config.log' for more details." >&2;}
3790 { (exit 1); exit 1; }; }
3793 rm -f conftest
$ac_cv_exeext
3794 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3795 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3797 rm -f conftest.
$ac_ext
3798 EXEEXT
=$ac_cv_exeext
3800 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3801 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3802 if test "${ac_cv_objext+set}" = set; then
3803 echo $ECHO_N "(cached) $ECHO_C" >&6
3805 cat >conftest.
$ac_ext <<_ACEOF
3808 cat confdefs.h
>>conftest.
$ac_ext
3809 cat >>conftest.
$ac_ext <<_ACEOF
3810 /* end confdefs.h. */
3820 rm -f conftest.o conftest.obj
3821 if { (ac_try
="$ac_compile"
3823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_compile") 2>&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; then
3831 for ac_file in conftest.o conftest.obj conftest.*; do
3832 test -f "$ac_file" || continue;
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3835 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3840 echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3843 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3844 See \`config.log
' for more details." >&5
3845 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3846 See \`config.log' for more details.
" >&2;}
3847 { (exit 1); exit 1; }; }
3850 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3852 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3853 echo "${ECHO_T}$ac_cv_objext" >&6; }
3854 OBJEXT=$ac_cv_objext
3856 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3857 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3858 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3859 echo $ECHO_N "(cached
) $ECHO_C" >&6
3861 cat >conftest.$ac_ext <<_ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_compile") 2>conftest.er1
3888 grep -v '^ *+' conftest.er1 >conftest.err
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3892 (exit $ac_status); } && {
3893 test -z "$ac_c_werror_flag" ||
3894 test ! -s conftest.err
3895 } && test -s conftest.$ac_objext; then
3898 echo "$as_me: failed program was
:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3905 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3908 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3909 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3910 GCC=`test $ac_compiler_gnu = yes && echo yes`
3911 ac_test_CFLAGS=${CFLAGS+set}
3912 ac_save_CFLAGS=$CFLAGS
3913 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3914 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3915 if test "${ac_cv_prog_cc_g+set}" = set; then
3916 echo $ECHO_N "(cached
) $ECHO_C" >&6
3918 ac_save_c_werror_flag=$ac_c_werror_flag
3919 ac_c_werror_flag=yes
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3937 rm -f conftest.$ac_objext
3938 if { (ac_try="$ac_compile"
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3943 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3944 (eval "$ac_compile") 2>conftest.er1
3946 grep -v '^ *+' conftest.er1 >conftest.err
3948 cat conftest.err >&5
3949 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3950 (exit $ac_status); } && {
3951 test -z "$ac_c_werror_flag" ||
3952 test ! -s conftest.err
3953 } && test -s conftest.$ac_objext; then
3956 echo "$as_me: failed program was
:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3960 cat >conftest.$ac_ext <<_ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3975 rm -f conftest.$ac_objext
3976 if { (ac_try="$ac_compile"
3978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3979 *) ac_try_echo=$ac_try;;
3981 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3982 (eval "$ac_compile") 2>conftest.er1
3984 grep -v '^ *+' conftest.er1 >conftest.err
3986 cat conftest.err >&5
3987 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3988 (exit $ac_status); } && {
3989 test -z "$ac_c_werror_flag" ||
3990 test ! -s conftest.err
3991 } && test -s conftest.$ac_objext; then
3994 echo "$as_me: failed program was
:" >&5
3995 sed 's/^/| /' conftest.$ac_ext >&5
3997 ac_c_werror_flag=$ac_save_c_werror_flag
3999 cat >conftest.$ac_ext <<_ACEOF
4002 cat confdefs.h >>conftest.$ac_ext
4003 cat >>conftest.$ac_ext <<_ACEOF
4004 /* end confdefs.h. */
4014 rm -f conftest.$ac_objext
4015 if { (ac_try="$ac_compile"
4017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018 *) ac_try_echo=$ac_try;;
4020 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4021 (eval "$ac_compile") 2>conftest.er1
4023 grep -v '^ *+' conftest.er1 >conftest.err
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4027 (exit $ac_status); } && {
4028 test -z "$ac_c_werror_flag" ||
4029 test ! -s conftest.err
4030 } && test -s conftest.$ac_objext; then
4033 echo "$as_me: failed program was
:" >&5
4034 sed 's/^/| /' conftest.$ac_ext >&5
4039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046 ac_c_werror_flag=$ac_save_c_werror_flag
4048 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
4049 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4050 if test "$ac_test_CFLAGS" = set; then
4051 CFLAGS=$ac_save_CFLAGS
4052 elif test $ac_cv_prog_cc_g = yes; then
4053 if test "$GCC" = yes; then
4059 if test "$GCC" = yes; then
4065 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4066 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4067 if test "${ac_cv_prog_cc_c89+set}" = set; then
4068 echo $ECHO_N "(cached
) $ECHO_C" >&6
4070 ac_cv_prog_cc_c89=no
4072 cat >conftest.$ac_ext <<_ACEOF
4075 cat confdefs.h >>conftest.$ac_ext
4076 cat >>conftest.$ac_ext <<_ACEOF
4077 /* end confdefs.h. */
4080 #include <sys/types.h>
4081 #include <sys/stat.h>
4082 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4083 struct buf { int x; };
4084 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4085 static char *e (p, i)
4091 static char *f (char * (*g) (char **, int), char **p, ...)
4096 s = g (p, va_arg (v,int));
4101 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4102 function prototypes and stuff, but not '\xHH' hex character constants.
4103 These don't provoke an error unfortunately, instead are silently treated
4104 as 'x'. The following induces an error, until -std is added to get
4105 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4106 array size at least. It's necessary to write '\x00'==0 to get something
4107 that's true only with -std. */
4108 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4110 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4111 inside strings and character constants. */
4113 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4115 int test (int i, double x);
4116 struct s1 {int (*f) (int a);};
4117 struct s2 {int (*f) (double a);};
4118 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4124 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4129 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4130 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4132 CC="$ac_save_CC $ac_arg"
4133 rm -f conftest.$ac_objext
4134 if { (ac_try="$ac_compile"
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4139 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_compile") 2>conftest.er1
4142 grep -v '^ *+' conftest.er1 >conftest.err
4144 cat conftest.err >&5
4145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4146 (exit $ac_status); } && {
4147 test -z "$ac_c_werror_flag" ||
4148 test ! -s conftest.err
4149 } && test -s conftest.$ac_objext; then
4150 ac_cv_prog_cc_c89=$ac_arg
4152 echo "$as_me: failed program was
:" >&5
4153 sed 's/^/| /' conftest.$ac_ext >&5
4158 rm -f core conftest.err conftest.$ac_objext
4159 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4161 rm -f conftest.$ac_ext
4166 case "x
$ac_cv_prog_cc_c89" in
4168 { echo "$as_me:$LINENO: result
: none needed
" >&5
4169 echo "${ECHO_T}none needed
" >&6; } ;;
4171 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4172 echo "${ECHO_T}unsupported
" >&6; } ;;
4174 CC="$CC $ac_cv_prog_cc_c89"
4175 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4176 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4181 ac_cpp='$CPP $CPPFLAGS'
4182 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4183 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4184 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4187 # On Suns, sometimes $CPP names a directory.
4188 if test -n "$CPP" && test -d "$CPP"; then
4192 #### Some systems specify a CPP to use unless we are using GCC.
4193 #### Now that we know whether we are using GCC, we can decide whether
4194 #### to use that one.
4195 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4200 #### Some systems specify a CC to use unless we are using GCC.
4201 #### Now that we know whether we are using GCC, we can decide whether
4202 #### to use that one.
4203 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4204 test x$cc_specified != xyes
4209 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4211 CC="$CC $GCC_TEST_OPTIONS"
4214 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4216 CC="$CC $NON_GCC_TEST_OPTIONS"
4221 ac_cpp='$CPP $CPPFLAGS'
4222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4225 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4226 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4227 # On Suns, sometimes $CPP names a directory.
4228 if test -n "$CPP" && test -d "$CPP"; then
4231 if test -z "$CPP"; then
4232 if test "${ac_cv_prog_CPP+set}" = set; then
4233 echo $ECHO_N "(cached
) $ECHO_C" >&6
4235 # Double quotes because CPP needs to be expanded
4236 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4239 for ac_c_preproc_warn_flag in '' yes
4241 # Use a header file that comes with gcc, so configuring glibc
4242 # with a fresh cross-compiler works.
4243 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4244 # <limits.h> exists even on freestanding compilers.
4245 # On the NeXT, cc -E runs the code through the compiler's parser,
4246 # not just through cpp. "Syntax error
" is here to catch this case.
4247 cat >conftest.$ac_ext <<_ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4254 # include <limits.h>
4256 # include <assert.h>
4260 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4268 grep -v '^ *+' conftest.er1 >conftest.err
4270 cat conftest.err >&5
4271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4272 (exit $ac_status); } >/dev/null && {
4273 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4274 test ! -s conftest.err
4278 echo "$as_me: failed program was
:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4281 # Broken: fails on valid input.
4285 rm -f conftest.err conftest.$ac_ext
4287 # OK, works on sane cases. Now check whether nonexistent headers
4288 # can be detected and how.
4289 cat >conftest.$ac_ext <<_ACEOF
4292 cat confdefs.h >>conftest.$ac_ext
4293 cat >>conftest.$ac_ext <<_ACEOF
4294 /* end confdefs.h. */
4295 #include <ac_nonexistent.h>
4297 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4300 *) ac_try_echo=$ac_try;;
4302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4303 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4305 grep -v '^ *+' conftest.er1 >conftest.err
4307 cat conftest.err >&5
4308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4309 (exit $ac_status); } >/dev/null && {
4310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4311 test ! -s conftest.err
4313 # Broken: success on invalid input.
4316 echo "$as_me: failed program was
:" >&5
4317 sed 's/^/| /' conftest.$ac_ext >&5
4319 # Passes both tests.
4324 rm -f conftest.err conftest.$ac_ext
4327 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4328 rm -f conftest.err conftest.$ac_ext
4329 if $ac_preproc_ok; then
4341 { echo "$as_me:$LINENO: result
: $CPP" >&5
4342 echo "${ECHO_T}$CPP" >&6; }
4344 for ac_c_preproc_warn_flag in '' yes
4346 # Use a header file that comes with gcc, so configuring glibc
4347 # with a fresh cross-compiler works.
4348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4349 # <limits.h> exists even on freestanding compilers.
4350 # On the NeXT, cc -E runs the code through the compiler's parser,
4351 # not just through cpp. "Syntax error
" is here to catch this case.
4352 cat >conftest.$ac_ext <<_ACEOF
4355 cat confdefs.h >>conftest.$ac_ext
4356 cat >>conftest.$ac_ext <<_ACEOF
4357 /* end confdefs.h. */
4359 # include <limits.h>
4361 # include <assert.h>
4365 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4373 grep -v '^ *+' conftest.er1 >conftest.err
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4377 (exit $ac_status); } >/dev/null && {
4378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4383 echo "$as_me: failed program was
:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4386 # Broken: fails on valid input.
4390 rm -f conftest.err conftest.$ac_ext
4392 # OK, works on sane cases. Now check whether nonexistent headers
4393 # can be detected and how.
4394 cat >conftest.$ac_ext <<_ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4400 #include <ac_nonexistent.h>
4402 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405 *) ac_try_echo=$ac_try;;
4407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4408 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4410 grep -v '^ *+' conftest.er1 >conftest.err
4412 cat conftest.err >&5
4413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4414 (exit $ac_status); } >/dev/null && {
4415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4416 test ! -s conftest.err
4418 # Broken: success on invalid input.
4421 echo "$as_me: failed program was
:" >&5
4422 sed 's/^/| /' conftest.$ac_ext >&5
4424 # Passes both tests.
4429 rm -f conftest.err conftest.$ac_ext
4432 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4433 rm -f conftest.err conftest.$ac_ext
4434 if $ac_preproc_ok; then
4437 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4438 See \
`config.log' for more details." >&5
4439 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4440 See \`config.log
' for more details." >&2;}
4441 { (exit 1); exit 1; }; }
4445 ac_cpp='$CPP $CPPFLAGS'
4446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4447 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4451 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4452 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4453 if test "${ac_cv_path_GREP+set}" = set; then
4454 echo $ECHO_N "(cached) $ECHO_C" >&6
4456 # Extract the first word of "grep ggrep" to use in msg output
4457 if test -z "$GREP"; then
4458 set dummy grep ggrep; ac_prog_name=$2
4459 if test "${ac_cv_path_GREP+set}" = set; then
4460 echo $ECHO_N "(cached) $ECHO_C" >&6
4462 ac_path_GREP_found=false
4463 # Loop through the user's path and
test for each of PROGNAME-LIST
4464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4465 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4468 test -z "$as_dir" && as_dir
=.
4469 for ac_prog
in grep ggrep
; do
4470 for ac_exec_ext
in '' $ac_executable_extensions; do
4471 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4472 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4473 # Check for GNU ac_path_GREP and select it if it is found.
4474 # Check for GNU $ac_path_GREP
4475 case `"$ac_path_GREP" --version 2>&1` in
4477 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4480 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4483 cat "conftest.in" "conftest.in" >"conftest.tmp"
4484 mv "conftest.tmp" "conftest.in"
4485 cp "conftest.in" "conftest.nl"
4486 echo 'GREP' >> "conftest.nl"
4487 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4488 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4489 ac_count
=`expr $ac_count + 1`
4490 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4491 # Best one so far, save it but keep looking for a better one
4492 ac_cv_path_GREP
="$ac_path_GREP"
4493 ac_path_GREP_max
=$ac_count
4495 # 10*(2^10) chars as input seems more than enough
4496 test $ac_count -gt 10 && break
4498 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4502 $ac_path_GREP_found && break 3
4512 GREP
="$ac_cv_path_GREP"
4513 if test -z "$GREP"; then
4514 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4515 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4516 { (exit 1); exit 1; }; }
4520 ac_cv_path_GREP
=$GREP
4525 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4526 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4527 GREP
="$ac_cv_path_GREP"
4530 { echo "$as_me:$LINENO: checking for egrep" >&5
4531 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4532 if test "${ac_cv_path_EGREP+set}" = set; then
4533 echo $ECHO_N "(cached) $ECHO_C" >&6
4535 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4536 then ac_cv_path_EGREP
="$GREP -E"
4538 # Extract the first word of "egrep" to use in msg output
4539 if test -z "$EGREP"; then
4540 set dummy
egrep; ac_prog_name
=$2
4541 if test "${ac_cv_path_EGREP+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4544 ac_path_EGREP_found
=false
4545 # Loop through the user's path and test for each of PROGNAME-LIST
4546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4547 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4550 test -z "$as_dir" && as_dir
=.
4551 for ac_prog
in egrep; do
4552 for ac_exec_ext
in '' $ac_executable_extensions; do
4553 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4554 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4555 # Check for GNU ac_path_EGREP and select it if it is found.
4556 # Check for GNU $ac_path_EGREP
4557 case `"$ac_path_EGREP" --version 2>&1` in
4559 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4562 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4565 cat "conftest.in" "conftest.in" >"conftest.tmp"
4566 mv "conftest.tmp" "conftest.in"
4567 cp "conftest.in" "conftest.nl"
4568 echo 'EGREP' >> "conftest.nl"
4569 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4570 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4571 ac_count
=`expr $ac_count + 1`
4572 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4573 # Best one so far, save it but keep looking for a better one
4574 ac_cv_path_EGREP
="$ac_path_EGREP"
4575 ac_path_EGREP_max
=$ac_count
4577 # 10*(2^10) chars as input seems more than enough
4578 test $ac_count -gt 10 && break
4580 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4584 $ac_path_EGREP_found && break 3
4594 EGREP
="$ac_cv_path_EGREP"
4595 if test -z "$EGREP"; then
4596 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4597 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4598 { (exit 1); exit 1; }; }
4602 ac_cv_path_EGREP
=$EGREP
4608 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4609 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4610 EGREP
="$ac_cv_path_EGREP"
4614 { echo "$as_me:$LINENO: checking for AIX" >&5
4615 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4616 cat >conftest.
$ac_ext <<_ACEOF
4619 cat confdefs.h
>>conftest.
$ac_ext
4620 cat >>conftest.
$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4628 $EGREP "yes" >/dev
/null
2>&1; then
4629 { echo "$as_me:$LINENO: result: yes" >&5
4630 echo "${ECHO_T}yes" >&6; }
4631 cat >>confdefs.h
<<\_ACEOF
4632 #define _ALL_SOURCE 1
4636 { echo "$as_me:$LINENO: result: no" >&5
4637 echo "${ECHO_T}no" >&6; }
4643 cat >>confdefs.h
<<\_ACEOF
4644 #define _GNU_SOURCE 1
4649 ### Use -Wno-pointer-sign if the compiler supports it
4650 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4651 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4652 SAVE_CFLAGS
="$CFLAGS"
4653 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4654 cat >conftest.
$ac_ext <<_ACEOF
4657 cat confdefs.h
>>conftest.
$ac_ext
4658 cat >>conftest.
$ac_ext <<_ACEOF
4659 /* end confdefs.h. */
4669 rm -f conftest.
$ac_objext
4670 if { (ac_try
="$ac_compile"
4672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4673 *) ac_try_echo=$ac_try;;
4675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4676 (eval "$ac_compile") 2>conftest.er1
4678 grep -v '^ *+' conftest.er1 >conftest.err
4680 cat conftest.err >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); } && {
4683 test -z "$ac_c_werror_flag" ||
4684 test ! -s conftest.err
4685 } && test -s conftest.$ac_objext; then
4688 echo "$as_me: failed program was:" >&5
4689 sed 's/^/| /' conftest.$ac_ext >&5
4694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695 if test $has_option = yes; then
4696 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4698 { echo "$as_me:$LINENO: result: $has_option" >&5
4699 echo "${ECHO_T}$has_option" >&6; }
4700 CFLAGS="$SAVE_CFLAGS"
4704 #### Some other nice autoconf tests.
4706 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4707 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4709 if test "$LN_S" = "ln -s"; then
4710 { echo "$as_me:$LINENO: result: yes" >&5
4711 echo "${ECHO_T}yes" >&6; }
4713 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4714 echo "${ECHO_T}no, using $LN_S" >&6; }
4718 ac_cpp='$CPP $CPPFLAGS'
4719 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4720 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4721 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4722 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4723 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4724 # On Suns, sometimes $CPP names a directory.
4725 if test -n "$CPP" && test -d "$CPP"; then
4728 if test -z "$CPP"; then
4729 if test "${ac_cv_prog_CPP+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 # Double quotes because CPP needs to be expanded
4733 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4736 for ac_c_preproc_warn_flag in '' yes
4738 # Use a header file that comes with gcc, so configuring glibc
4739 # with a fresh cross-compiler works.
4740 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4741 # <limits.h> exists even on freestanding compilers.
4742 # On the NeXT, cc -E runs the code through the compiler's parser,
4743 # not just through cpp. "Syntax error" is here to catch this case.
4744 cat >conftest.$ac_ext <<_ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h. */
4751 # include <limits.h>
4753 # include <assert.h>
4757 if { (ac_try="$ac_cpp conftest.$ac_ext"
4759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4760 *) ac_try_echo
=$ac_try;;
4762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4765 grep -v '^ *+' conftest.er1
>conftest.err
4767 cat conftest.err
>&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); } >/dev
/null
&& {
4770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4771 test ! -s conftest.err
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.
$ac_ext >&5
4778 # Broken: fails on valid input.
4782 rm -f conftest.err conftest.
$ac_ext
4784 # OK, works on sane cases. Now check whether nonexistent headers
4785 # can be detected and how.
4786 cat >conftest.
$ac_ext <<_ACEOF
4789 cat confdefs.h
>>conftest.
$ac_ext
4790 cat >>conftest.
$ac_ext <<_ACEOF
4791 /* end confdefs.h. */
4792 #include <ac_nonexistent.h>
4794 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4797 *) ac_try_echo=$ac_try;;
4799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4802 grep -v '^ *+' conftest.er1 >conftest.err
4804 cat conftest.err >&5
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); } >/dev/null && {
4807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4808 test ! -s conftest.err
4810 # Broken: success on invalid input.
4813 echo "$as_me: failed program was:" >&5
4814 sed 's/^/| /' conftest.$ac_ext >&5
4816 # Passes both tests.
4821 rm -f conftest.err conftest.$ac_ext
4824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4825 rm -f conftest.err conftest.
$ac_ext
4826 if $ac_preproc_ok; then
4838 { echo "$as_me:$LINENO: result: $CPP" >&5
4839 echo "${ECHO_T}$CPP" >&6; }
4841 for ac_c_preproc_warn_flag
in '' yes
4843 # Use a header file that comes with gcc, so configuring glibc
4844 # with a fresh cross-compiler works.
4845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4846 # <limits.h> exists even on freestanding compilers.
4847 # On the NeXT, cc -E runs the code through the compiler's parser,
4848 # not just through cpp. "Syntax error" is here to catch this case.
4849 cat >conftest.
$ac_ext <<_ACEOF
4852 cat confdefs.h
>>conftest.
$ac_ext
4853 cat >>conftest.
$ac_ext <<_ACEOF
4854 /* end confdefs.h. */
4856 # include <limits.h>
4858 # include <assert.h>
4862 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4870 grep -v '^ *+' conftest.er1 >conftest.err
4872 cat conftest.err >&5
4873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874 (exit $ac_status); } >/dev/null && {
4875 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4876 test ! -s conftest.err
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4883 # Broken: fails on valid input.
4887 rm -f conftest.err conftest.$ac_ext
4889 # OK, works on sane cases. Now check whether nonexistent headers
4890 # can be detected and how.
4891 cat >conftest.$ac_ext <<_ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h. */
4897 #include <ac_nonexistent.h>
4899 if { (ac_try="$ac_cpp conftest.$ac_ext"
4901 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4902 *) ac_try_echo
=$ac_try;;
4904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4907 grep -v '^ *+' conftest.er1
>conftest.err
4909 cat conftest.err
>&5
4910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4911 (exit $ac_status); } >/dev
/null
&& {
4912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4913 test ! -s conftest.err
4915 # Broken: success on invalid input.
4918 echo "$as_me: failed program was:" >&5
4919 sed 's/^/| /' conftest.
$ac_ext >&5
4921 # Passes both tests.
4926 rm -f conftest.err conftest.
$ac_ext
4929 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4930 rm -f conftest.err conftest.
$ac_ext
4931 if $ac_preproc_ok; then
4934 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4935 See \`config.log' for more details." >&5
4936 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4937 See \`config.log' for more details." >&2;}
4938 { (exit 1); exit 1; }; }
4942 ac_cpp
='$CPP $CPPFLAGS'
4943 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4944 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4945 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4947 # Find a good install program. We prefer a C program (faster),
4948 # so one script is as good as another. But avoid the broken or
4949 # incompatible versions:
4950 # SysV /etc/install, /usr/sbin/install
4951 # SunOS /usr/etc/install
4952 # IRIX /sbin/install
4954 # AmigaOS /C/install, which installs bootblocks on floppy discs
4955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4958 # OS/2's system install, which has a completely different semantic
4959 # ./install, which can be erroneously created by make from ./install.sh.
4960 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4961 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4962 if test -z "$INSTALL"; then
4963 if test "${ac_cv_path_install+set}" = set; then
4964 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir
=.
4971 # Account for people who put trailing slashes in PATH elements.
4973 .
/ | .
// |
/cC
/* | \
4974 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4975 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4978 # OSF1 and SCO ODT 3.0 have their own names for install.
4979 # Don't use installbsd from OSF since it installs stuff as root
4981 for ac_prog
in ginstall scoinst
install; do
4982 for ac_exec_ext
in '' $ac_executable_extensions; do
4983 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4984 if test $ac_prog = install &&
4985 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4986 # AIX install. It has an incompatible calling convention.
4988 elif test $ac_prog = install &&
4989 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4990 # program-specific install script used by HP pwplus--don't use.
4993 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5006 if test "${ac_cv_path_install+set}" = set; then
5007 INSTALL
=$ac_cv_path_install
5009 # As a last resort, use the slow shell script. Don't cache a
5010 # value for INSTALL within a source directory, because that will
5011 # break other packages using the cache if that directory is
5012 # removed, or if the value is a relative name.
5013 INSTALL
=$ac_install_sh
5016 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5017 echo "${ECHO_T}$INSTALL" >&6; }
5019 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5020 # It thinks the first close brace ends the variable substitution.
5021 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5023 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5025 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5027 if test "x$RANLIB" = x
; then
5028 if test -n "$ac_tool_prefix"; then
5029 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5030 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_prog_RANLIB+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 if test -n "$RANLIB"; then
5037 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5039 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5043 test -z "$as_dir" && as_dir
=.
5044 for ac_exec_ext
in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5056 RANLIB
=$ac_cv_prog_RANLIB
5057 if test -n "$RANLIB"; then
5058 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5059 echo "${ECHO_T}$RANLIB" >&6; }
5061 { echo "$as_me:$LINENO: result: no" >&5
5062 echo "${ECHO_T}no" >&6; }
5067 if test -z "$ac_cv_prog_RANLIB"; then
5068 ac_ct_RANLIB
=$RANLIB
5069 # Extract the first word of "ranlib", so it can be a program name with args.
5070 set dummy ranlib
; ac_word
=$2
5071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5073 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 if test -n "$ac_ct_RANLIB"; then
5077 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5083 test -z "$as_dir" && as_dir
=.
5084 for ac_exec_ext
in '' $ac_executable_extensions; do
5085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5086 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5097 if test -n "$ac_ct_RANLIB"; then
5098 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5099 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5101 { echo "$as_me:$LINENO: result: no" >&5
5102 echo "${ECHO_T}no" >&6; }
5105 if test "x$ac_ct_RANLIB" = x
; then
5108 case $cross_compiling:$ac_tool_warned in
5110 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5111 whose name does not start with the host triplet. If you think this
5112 configuration is useful to you, please write to autoconf@gnu.org." >&5
5113 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5114 whose name does not start with the host triplet. If you think this
5115 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5116 ac_tool_warned
=yes ;;
5118 RANLIB
=$ac_ct_RANLIB
5121 RANLIB
="$ac_cv_prog_RANLIB"
5125 # Extract the first word of "install-info", so it can be a program name with args.
5126 set dummy install-info
; ac_word
=$2
5127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5129 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 case $INSTALL_INFO in
5134 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5141 test -z "$as_dir" && as_dir
=.
5142 for ac_exec_ext
in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5156 if test -n "$INSTALL_INFO"; then
5157 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5158 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5160 { echo "$as_me:$LINENO: result: no" >&5
5161 echo "${ECHO_T}no" >&6; }
5165 # Extract the first word of "install-info", so it can be a program name with args.
5166 set dummy install-info
; ac_word
=$2
5167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5169 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5170 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 case $INSTALL_INFO in
5174 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5178 for as_dir
in /usr
/sbin
5181 test -z "$as_dir" && as_dir
=.
5182 for ac_exec_ext
in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5196 if test -n "$INSTALL_INFO"; then
5197 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5198 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5200 { echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6; }
5205 # Extract the first word of "install-info", so it can be a program name with args.
5206 set dummy install-info
; ac_word
=$2
5207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5209 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 case $INSTALL_INFO in
5214 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5221 test -z "$as_dir" && as_dir
=.
5222 for ac_exec_ext
in '' $ac_executable_extensions; do
5223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5224 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5236 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5237 if test -n "$INSTALL_INFO"; then
5238 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5239 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5241 { echo "$as_me:$LINENO: result: no" >&5
5242 echo "${ECHO_T}no" >&6; }
5246 # Extract the first word of "gzip", so it can be a program name with args.
5247 set dummy
gzip; ac_word
=$2
5248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5250 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5258 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5262 test -z "$as_dir" && as_dir
=.
5263 for ac_exec_ext
in '' $ac_executable_extensions; do
5264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5265 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5276 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5277 if test -n "$GZIP_PROG"; then
5278 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5279 echo "${ECHO_T}$GZIP_PROG" >&6; }
5281 { echo "$as_me:$LINENO: result: no" >&5
5282 echo "${ECHO_T}no" >&6; }
5288 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5290 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5293 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5295 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5299 late_LDFLAGS
=$LDFLAGS
5300 if test "$GCC" = yes; then
5301 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5303 LDFLAGS
="$LDFLAGS -znocombreloc"
5306 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5307 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5308 cat >conftest.
$ac_ext <<_ACEOF
5311 rm -f conftest.
$ac_objext conftest
$ac_exeext
5312 if { (ac_try
="$ac_link"
5314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5315 *) ac_try_echo=$ac_try;;
5317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5318 (eval "$ac_link") 2>conftest.er1
5320 grep -v '^ *+' conftest.er1 >conftest.err
5322 cat conftest.err >&5
5323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5324 (exit $ac_status); } && {
5325 test -z "$ac_c_werror_flag" ||
5326 test ! -s conftest.err
5327 } && test -s conftest$ac_exeext &&
5328 $as_test_x conftest$ac_exeext; then
5329 { echo "$as_me:$LINENO: result: yes" >&5
5330 echo "${ECHO_T}yes" >&6; }
5332 echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5335 LDFLAGS=$late_LDFLAGS
5336 { echo "$as_me:$LINENO: result: no" >&5
5337 echo "${ECHO_T}no" >&6; }
5340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5341 conftest$ac_exeext conftest.$ac_ext
5343 #### Extract some information from the operating system and machine files.
5345 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5346 - which libraries the lib-src programs will want, and
5347 - whether the GNU malloc routines are usable..." >&5
5348 echo "$as_me: checking the machine- and system-dependent files to find out
5349 - which libraries the lib-src programs will want, and
5350 - whether the GNU malloc routines are usable..." >&6;}
5352 ### First figure out CFLAGS (which we use for running the compiler here)
5353 ### and REAL_CFLAGS (which we use for real compilation).
5354 ### The two are the same except on a few systems, where they are made
5355 ### different to work around various lossages. For example,
5356 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5357 ### as implying static linking.
5359 ### If the CFLAGS env var is specified, we use that value
5360 ### instead of the default.
5362 ### It's not important that this name contain the PID; you can't run
5363 ### two configures in the same directory and have anything work
5365 tempcname="conftest.c"
5368 #include "'${srcdir}'/src/'${opsysfile}'"
5369 #include "'${srcdir}'/src/'${machfile}'"
5370 #ifndef LIBS_MACHINE
5371 #define LIBS_MACHINE
5376 #ifndef C_SWITCH_SYSTEM
5377 #define C_SWITCH_SYSTEM
5379 #ifndef C_SWITCH_MACHINE
5380 #define C_SWITCH_MACHINE
5382 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5383 configure___ c_switch_system=C_SWITCH_SYSTEM
5384 configure___ c_switch_machine=C_SWITCH_MACHINE
5387 #define LIB_X11_LIB -lX11
5390 #ifndef LIBX11_MACHINE
5391 #define LIBX11_MACHINE
5394 #ifndef LIBX11_SYSTEM
5395 #define LIBX11_SYSTEM
5397 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5400 configure___ unexec=UNEXEC
5402 configure___ unexec=unexec.o
5405 #ifdef SYSTEM_MALLOC
5406 configure___ system_malloc=yes
5408 configure___ system_malloc=no
5411 #ifdef USE_MMAP_FOR_BUFFERS
5412 configure___ use_mmap_for_buffers=yes
5414 configure___ use_mmap_for_buffers=no
5417 #ifndef C_DEBUG_SWITCH
5418 #define C_DEBUG_SWITCH -g
5421 #ifndef C_OPTIMIZE_SWITCH
5423 #define C_OPTIMIZE_SWITCH -O2
5425 #define C_OPTIMIZE_SWITCH -O
5429 #ifndef C_WARNINGS_SWITCH
5430 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5433 #ifndef LD_SWITCH_MACHINE
5434 #define LD_SWITCH_MACHINE
5437 #ifndef LD_SWITCH_SYSTEM
5438 #define LD_SWITCH_SYSTEM
5441 #ifndef LD_SWITCH_X_SITE_AUX
5442 #define LD_SWITCH_X_SITE_AUX
5445 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5446 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5448 #ifdef THIS_IS_CONFIGURE
5450 /* Get the CFLAGS for tests in configure. */
5452 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5454 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5457 #else /* not THIS_IS_CONFIGURE */
5459 /* Get the CFLAGS for real compilation. */
5461 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5463 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5466 #endif /* not THIS_IS_CONFIGURE */
5469 # The value of CPP is a quoted variable reference, so we need to do this
5470 # to get its actual value...
5471 CPP=`eval "echo $CPP"`
5472 eval `${CPP} -Isrc ${tempcname} \
5473 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5474 if test "x$SPECIFIED_CFLAGS" = x; then
5475 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5476 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5478 REAL_CFLAGS="$CFLAGS"
5482 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5484 ### Make sure subsequent tests use flags consistent with the build flags.
5486 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5487 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5489 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5494 # Check whether --enable-largefile was given.
5495 if test "${enable_largefile+set}" = set; then
5496 enableval=$enable_largefile;
5499 if test "$enable_largefile" != no; then
5501 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5502 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5503 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5504 echo $ECHO_N "(cached) $ECHO_C" >&6
5506 ac_cv_sys_largefile_CC=no
5507 if test "$GCC" != yes; then
5510 # IRIX 6.2 and later do not support large files by default,
5511 # so use the C compiler's -n32 option if that helps.
5512 cat >conftest.$ac_ext <<_ACEOF
5515 cat confdefs.h >>conftest.$ac_ext
5516 cat >>conftest.$ac_ext <<_ACEOF
5517 /* end confdefs.h. */
5518 #include <sys/types.h>
5519 /* Check that off_t can represent 2**63 - 1 correctly.
5520 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5521 since some C++ compilers masquerading as C compilers
5522 incorrectly reject 9223372036854775807. */
5523 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5524 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5525 && LARGE_OFF_T % 2147483647 == 1)
5535 rm -f conftest.$ac_objext
5536 if { (ac_try="$ac_compile"
5538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5539 *) ac_try_echo
=$ac_try;;
5541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5542 (eval "$ac_compile") 2>conftest.er1
5544 grep -v '^ *+' conftest.er1
>conftest.err
5546 cat conftest.err
>&5
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); } && {
5549 test -z "$ac_c_werror_flag" ||
5550 test ! -s conftest.err
5551 } && test -s conftest.
$ac_objext; then
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.
$ac_ext >&5
5560 rm -f core conftest.err conftest.
$ac_objext
5562 rm -f conftest.
$ac_objext
5563 if { (ac_try
="$ac_compile"
5565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5569 (eval "$ac_compile") 2>conftest.er1
5571 grep -v '^ *+' conftest.er1 >conftest.err
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5575 (exit $ac_status); } && {
5576 test -z "$ac_c_werror_flag" ||
5577 test ! -s conftest.err
5578 } && test -s conftest.$ac_objext; then
5579 ac_cv_sys_largefile_CC=' -n32'; break
5581 echo "$as_me: failed program was:" >&5
5582 sed 's/^/| /' conftest.$ac_ext >&5
5587 rm -f core conftest.err conftest.$ac_objext
5591 rm -f conftest.$ac_ext
5594 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5595 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5596 if test "$ac_cv_sys_largefile_CC" != no; then
5597 CC=$CC$ac_cv_sys_largefile_CC
5600 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5601 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5602 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5603 echo $ECHO_N "(cached) $ECHO_C" >&6
5606 cat >conftest.$ac_ext <<_ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h. */
5612 #include <sys/types.h>
5613 /* Check that off_t can represent 2**63 - 1 correctly.
5614 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5615 since some C++ compilers masquerading as C compilers
5616 incorrectly reject 9223372036854775807. */
5617 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5618 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5619 && LARGE_OFF_T % 2147483647 == 1)
5629 rm -f conftest.$ac_objext
5630 if { (ac_try="$ac_compile"
5632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5633 *) ac_try_echo
=$ac_try;;
5635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636 (eval "$ac_compile") 2>conftest.er1
5638 grep -v '^ *+' conftest.er1
>conftest.err
5640 cat conftest.err
>&5
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); } && {
5643 test -z "$ac_c_werror_flag" ||
5644 test ! -s conftest.err
5645 } && test -s conftest.
$ac_objext; then
5646 ac_cv_sys_file_offset_bits
=no
; break
5648 echo "$as_me: failed program was:" >&5
5649 sed 's/^/| /' conftest.
$ac_ext >&5
5654 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5655 cat >conftest.
$ac_ext <<_ACEOF
5658 cat confdefs.h
>>conftest.
$ac_ext
5659 cat >>conftest.
$ac_ext <<_ACEOF
5660 /* end confdefs.h. */
5661 #define _FILE_OFFSET_BITS 64
5662 #include <sys/types.h>
5663 /* Check that off_t can represent 2**63 - 1 correctly.
5664 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5665 since some C++ compilers masquerading as C compilers
5666 incorrectly reject 9223372036854775807. */
5667 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5668 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5669 && LARGE_OFF_T % 2147483647 == 1)
5679 rm -f conftest.
$ac_objext
5680 if { (ac_try
="$ac_compile"
5682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
5688 grep -v '^ *+' conftest.er1 >conftest.err
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } && {
5693 test -z "$ac_c_werror_flag" ||
5694 test ! -s conftest.err
5695 } && test -s conftest.$ac_objext; then
5696 ac_cv_sys_file_offset_bits=64; break
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705 ac_cv_sys_file_offset_bits=unknown
5709 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5710 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5711 case $ac_cv_sys_file_offset_bits in #(
5714 cat >>confdefs.h <<_ACEOF
5715 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5720 if test $ac_cv_sys_file_offset_bits = unknown; then
5721 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5722 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5723 if test "${ac_cv_sys_large_files+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 cat >conftest.$ac_ext <<_ACEOF
5730 cat confdefs.h >>conftest.$ac_ext
5731 cat >>conftest.$ac_ext <<_ACEOF
5732 /* end confdefs.h. */
5733 #include <sys/types.h>
5734 /* Check that off_t can represent 2**63 - 1 correctly.
5735 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5736 since some C++ compilers masquerading as C compilers
5737 incorrectly reject 9223372036854775807. */
5738 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5739 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5740 && LARGE_OFF_T % 2147483647 == 1)
5750 rm -f conftest.$ac_objext
5751 if { (ac_try="$ac_compile"
5753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5754 *) ac_try_echo
=$ac_try;;
5756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5757 (eval "$ac_compile") 2>conftest.er1
5759 grep -v '^ *+' conftest.er1
>conftest.err
5761 cat conftest.err
>&5
5762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5763 (exit $ac_status); } && {
5764 test -z "$ac_c_werror_flag" ||
5765 test ! -s conftest.err
5766 } && test -s conftest.
$ac_objext; then
5767 ac_cv_sys_large_files
=no
; break
5769 echo "$as_me: failed program was:" >&5
5770 sed 's/^/| /' conftest.
$ac_ext >&5
5775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5776 cat >conftest.
$ac_ext <<_ACEOF
5779 cat confdefs.h
>>conftest.
$ac_ext
5780 cat >>conftest.
$ac_ext <<_ACEOF
5781 /* end confdefs.h. */
5782 #define _LARGE_FILES 1
5783 #include <sys/types.h>
5784 /* Check that off_t can represent 2**63 - 1 correctly.
5785 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5786 since some C++ compilers masquerading as C compilers
5787 incorrectly reject 9223372036854775807. */
5788 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5789 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5790 && LARGE_OFF_T % 2147483647 == 1)
5800 rm -f conftest.
$ac_objext
5801 if { (ac_try
="$ac_compile"
5803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5804 *) ac_try_echo=$ac_try;;
5806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5807 (eval "$ac_compile") 2>conftest.er1
5809 grep -v '^ *+' conftest.er1 >conftest.err
5811 cat conftest.err >&5
5812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5813 (exit $ac_status); } && {
5814 test -z "$ac_c_werror_flag" ||
5815 test ! -s conftest.err
5816 } && test -s conftest.$ac_objext; then
5817 ac_cv_sys_large_files=1; break
5819 echo "$as_me: failed program was:" >&5
5820 sed 's/^/| /' conftest.$ac_ext >&5
5825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 ac_cv_sys_large_files=unknown
5830 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5831 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5832 case $ac_cv_sys_large_files in #(
5835 cat >>confdefs.h <<_ACEOF
5836 #define _LARGE_FILES $ac_cv_sys_large_files
5846 ### The standard library on x86-64 GNU/Linux distributions can
5847 ### be located in either /usr/lib64 or /usr/lib.
5848 case "${canonical}" in
5849 x86_64-*-linux-gnu* )
5850 if test -d /usr/lib64; then
5852 cat >>confdefs.h <<\_ACEOF
5853 #define HAVE_X86_64_LIB64_DIR 1
5862 if test "${with_sound}" != "no"; then
5863 # Sound support for GNU/Linux and the free BSDs.
5864 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5865 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5866 if test "${ac_cv_header_stdc+set}" = set; then
5867 echo $ECHO_N "(cached) $ECHO_C" >&6
5869 cat >conftest.$ac_ext <<_ACEOF
5872 cat confdefs.h >>conftest.$ac_ext
5873 cat >>conftest.$ac_ext <<_ACEOF
5874 /* end confdefs.h. */
5888 rm -f conftest.$ac_objext
5889 if { (ac_try="$ac_compile"
5891 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5892 *) ac_try_echo
=$ac_try;;
5894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5895 (eval "$ac_compile") 2>conftest.er1
5897 grep -v '^ *+' conftest.er1
>conftest.err
5899 cat conftest.err
>&5
5900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5901 (exit $ac_status); } && {
5902 test -z "$ac_c_werror_flag" ||
5903 test ! -s conftest.err
5904 } && test -s conftest.
$ac_objext; then
5905 ac_cv_header_stdc
=yes
5907 echo "$as_me: failed program was:" >&5
5908 sed 's/^/| /' conftest.
$ac_ext >&5
5910 ac_cv_header_stdc
=no
5913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5915 if test $ac_cv_header_stdc = yes; then
5916 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5917 cat >conftest.
$ac_ext <<_ACEOF
5920 cat confdefs.h
>>conftest.
$ac_ext
5921 cat >>conftest.
$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5927 $EGREP "memchr" >/dev
/null
2>&1; then
5930 ac_cv_header_stdc
=no
5936 if test $ac_cv_header_stdc = yes; then
5937 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5938 cat >conftest.
$ac_ext <<_ACEOF
5941 cat confdefs.h
>>conftest.
$ac_ext
5942 cat >>conftest.
$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5948 $EGREP "free" >/dev
/null
2>&1; then
5951 ac_cv_header_stdc
=no
5957 if test $ac_cv_header_stdc = yes; then
5958 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5959 if test "$cross_compiling" = yes; then
5962 cat >conftest.
$ac_ext <<_ACEOF
5965 cat confdefs.h
>>conftest.
$ac_ext
5966 cat >>conftest.
$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5970 #if ((' ' & 0x0FF) == 0x020)
5971 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5972 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5974 # define ISLOWER(c) \
5975 (('a' <= (c) && (c) <= 'i') \
5976 || ('j' <= (c) && (c) <= 'r') \
5977 || ('s' <= (c) && (c) <= 'z'))
5978 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5981 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5986 for (i = 0; i < 256; i++)
5987 if (XOR (islower (i), ISLOWER (i))
5988 || toupper (i) != TOUPPER (i))
5993 rm -f conftest
$ac_exeext
5994 if { (ac_try
="$ac_link"
5996 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_link") 2>&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6004 { (case "(($ac_try" in
6005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6006 *) ac_try_echo
=$ac_try;;
6008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_try") 2>&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then
6015 echo "$as_me: program exited with status $ac_status" >&5
6016 echo "$as_me: failed program was:" >&5
6017 sed 's/^/| /' conftest.
$ac_ext >&5
6020 ac_cv_header_stdc
=no
6022 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
6028 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6029 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6030 if test $ac_cv_header_stdc = yes; then
6032 cat >>confdefs.h
<<\_ACEOF
6033 #define STDC_HEADERS 1
6038 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6048 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
6049 inttypes.h stdint.h unistd.h
6051 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6054 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6057 cat >conftest.
$ac_ext <<_ACEOF
6060 cat confdefs.h
>>conftest.
$ac_ext
6061 cat >>conftest.
$ac_ext <<_ACEOF
6062 /* end confdefs.h. */
6063 $ac_includes_default
6065 #include <$ac_header>
6067 rm -f conftest.
$ac_objext
6068 if { (ac_try
="$ac_compile"
6070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6071 *) ac_try_echo=$ac_try;;
6073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6074 (eval "$ac_compile") 2>conftest.er1
6076 grep -v '^ *+' conftest.er1 >conftest.err
6078 cat conftest.err >&5
6079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080 (exit $ac_status); } && {
6081 test -z "$ac_c_werror_flag" ||
6082 test ! -s conftest.err
6083 } && test -s conftest.$ac_objext; then
6084 eval "$as_ac_Header=yes"
6086 echo "$as_me: failed program was:" >&5
6087 sed 's/^/| /' conftest.$ac_ext >&5
6089 eval "$as_ac_Header=no"
6092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094 ac_res=`eval echo '${'$as_ac_Header'}'`
6095 { echo "$as_me:$LINENO: result: $ac_res" >&5
6096 echo "${ECHO_T}$ac_res" >&6; }
6097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6098 cat >>confdefs.h <<_ACEOF
6099 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6110 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6112 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6114 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6115 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6117 echo $ECHO_N "(cached) $ECHO_C" >&6
6119 ac_res=`eval echo '${'$as_ac_Header'}'`
6120 { echo "$as_me:$LINENO: result: $ac_res" >&5
6121 echo "${ECHO_T}$ac_res" >&6; }
6123 # Is the header compilable?
6124 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6126 cat >conftest.$ac_ext <<_ACEOF
6129 cat confdefs.h >>conftest.$ac_ext
6130 cat >>conftest.$ac_ext <<_ACEOF
6131 /* end confdefs.h. */
6132 $ac_includes_default
6133 #include <$ac_header>
6135 rm -f conftest.$ac_objext
6136 if { (ac_try="$ac_compile"
6138 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6139 *) ac_try_echo
=$ac_try;;
6141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142 (eval "$ac_compile") 2>conftest.er1
6144 grep -v '^ *+' conftest.er1
>conftest.err
6146 cat conftest.err
>&5
6147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148 (exit $ac_status); } && {
6149 test -z "$ac_c_werror_flag" ||
6150 test ! -s conftest.err
6151 } && test -s conftest.
$ac_objext; then
6152 ac_header_compiler
=yes
6154 echo "$as_me: failed program was:" >&5
6155 sed 's/^/| /' conftest.
$ac_ext >&5
6157 ac_header_compiler
=no
6160 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6162 echo "${ECHO_T}$ac_header_compiler" >&6; }
6164 # Is the header present?
6165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6167 cat >conftest.
$ac_ext <<_ACEOF
6170 cat confdefs.h
>>conftest.
$ac_ext
6171 cat >>conftest.
$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173 #include <$ac_header>
6175 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6178 *) ac_try_echo=$ac_try;;
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6183 grep -v '^ *+' conftest.er1 >conftest.err
6185 cat conftest.err >&5
6186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187 (exit $ac_status); } >/dev/null && {
6188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6189 test ! -s conftest.err
6191 ac_header_preproc=yes
6193 echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6196 ac_header_preproc=no
6199 rm -f conftest.err conftest.$ac_ext
6200 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6201 echo "${ECHO_T}$ac_header_preproc" >&6; }
6203 # So? What about this header?
6204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6207 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6208 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6210 ac_header_preproc=yes
6213 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6214 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6215 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6216 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6217 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6218 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6219 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6220 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6223 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6224 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6228 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6229 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6231 echo $ECHO_N "(cached) $ECHO_C" >&6
6233 eval "$as_ac_Header=\$ac_header_preproc"
6235 ac_res=`eval echo '${'$as_ac_Header'}'`
6236 { echo "$as_me:$LINENO: result: $ac_res" >&5
6237 echo "${ECHO_T}$ac_res" >&6; }
6240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6241 cat >>confdefs.h <<_ACEOF
6242 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6249 # Emulation library used on NetBSD.
6250 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6251 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6252 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 ac_check_lib_save_LIBS=$LIBS
6256 LIBS="-lossaudio $LIBS"
6257 cat >conftest.$ac_ext <<_ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6264 /* Override any GCC internal prototype to avoid an error.
6265 Use char because int might match the return type of a GCC
6266 builtin and then its argument prototype would still apply. */
6274 return _oss_ioctl ();
6279 rm -f conftest.$ac_objext conftest$ac_exeext
6280 if { (ac_try="$ac_link"
6282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6283 *) ac_try_echo
=$ac_try;;
6285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286 (eval "$ac_link") 2>conftest.er1
6288 grep -v '^ *+' conftest.er1
>conftest.err
6290 cat conftest.err
>&5
6291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6292 (exit $ac_status); } && {
6293 test -z "$ac_c_werror_flag" ||
6294 test ! -s conftest.err
6295 } && test -s conftest
$ac_exeext &&
6296 $as_test_x conftest
$ac_exeext; then
6297 ac_cv_lib_ossaudio__oss_ioctl
=yes
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.
$ac_ext >&5
6302 ac_cv_lib_ossaudio__oss_ioctl
=no
6305 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6306 conftest
$ac_exeext conftest.
$ac_ext
6307 LIBS
=$ac_check_lib_save_LIBS
6309 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6310 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6311 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6320 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6321 if test "X${with_pkg_config_prog}" != X
; then
6322 PKG_CONFIG
="${with_pkg_config_prog}"
6327 if test -z "$PKG_CONFIG"; then
6328 # Extract the first word of "pkg-config", so it can be a program name with args.
6329 set dummy pkg-config
; ac_word
=$2
6330 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6331 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6332 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6333 echo $ECHO_N "(cached) $ECHO_C" >&6
6337 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6344 test -z "$as_dir" && as_dir
=.
6345 for ac_exec_ext
in '' $ac_executable_extensions; do
6346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6347 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6355 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6359 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6360 if test -n "$PKG_CONFIG"; then
6361 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6362 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6364 { echo "$as_me:$LINENO: result: no" >&5
6365 echo "${ECHO_T}no" >&6; }
6371 if test "$PKG_CONFIG" = "no" ; then
6374 PKG_CONFIG_MIN_VERSION
=0.9.0
6375 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6376 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6377 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6379 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6380 { echo "$as_me:$LINENO: result: yes" >&5
6381 echo "${ECHO_T}yes" >&6; }
6384 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6385 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6386 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6387 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6388 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6390 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6391 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6392 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6393 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6394 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6396 { echo "$as_me:$LINENO: result: no" >&5
6397 echo "${ECHO_T}no" >&6; }
6400 ## If we have a custom action on failure, don't print errors, but
6401 ## do set a variable so people can do so.
6402 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6409 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6410 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6414 if test $succeeded = yes; then
6420 if test $HAVE_ALSA = yes; then
6421 SAVE_CFLAGS
="$CFLAGS"
6422 SAVE_LDFLAGS
="$LDFLAGS"
6423 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6424 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6425 cat >conftest.
$ac_ext <<_ACEOF
6428 cat confdefs.h
>>conftest.
$ac_ext
6429 cat >>conftest.
$ac_ext <<_ACEOF
6430 /* end confdefs.h. */
6431 #include <asoundlib.h>
6435 snd_lib_error_set_handler (0);
6440 rm -f conftest.
$ac_objext
6441 if { (ac_try
="$ac_compile"
6443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6444 *) ac_try_echo=$ac_try;;
6446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6447 (eval "$ac_compile") 2>conftest.er1
6449 grep -v '^ *+' conftest.er1 >conftest.err
6451 cat conftest.err >&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); } && {
6454 test -z "$ac_c_werror_flag" ||
6455 test ! -s conftest.err
6456 } && test -s conftest.$ac_objext; then
6457 emacs_alsa_normal=yes
6459 echo "$as_me: failed program was:" >&5
6460 sed 's/^/| /' conftest.$ac_ext >&5
6462 emacs_alsa_normal=no
6465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6466 if test "$emacs_alsa_normal" != yes; then
6467 cat >conftest.$ac_ext <<_ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 #include <alsa/asoundlib.h>
6477 snd_lib_error_set_handler (0);
6482 rm -f conftest.$ac_objext
6483 if { (ac_try="$ac_compile"
6485 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6486 *) ac_try_echo
=$ac_try;;
6488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489 (eval "$ac_compile") 2>conftest.er1
6491 grep -v '^ *+' conftest.er1
>conftest.err
6493 cat conftest.err
>&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); } && {
6496 test -z "$ac_c_werror_flag" ||
6497 test ! -s conftest.err
6498 } && test -s conftest.
$ac_objext; then
6499 emacs_alsa_subdir
=yes
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.
$ac_ext >&5
6504 emacs_alsa_subdir
=no
6507 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6508 if test "$emacs_alsa_subdir" != yes; then
6509 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6510 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6511 { (exit 1); exit 1; }; }
6513 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6516 CFLAGS
="$SAVE_CFLAGS"
6517 LDFLAGS
="$SAVE_LDFLAGS"
6518 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6519 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6521 cat >>confdefs.h
<<\_ACEOF
6555 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6556 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6557 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6558 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6561 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6562 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6565 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6566 echo $ECHO_N "(cached) $ECHO_C" >&6
6568 ac_res
=`eval echo '${'$as_ac_Header'}'`
6569 { echo "$as_me:$LINENO: result: $ac_res" >&5
6570 echo "${ECHO_T}$ac_res" >&6; }
6572 # Is the header compilable?
6573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6575 cat >conftest.
$ac_ext <<_ACEOF
6578 cat confdefs.h
>>conftest.
$ac_ext
6579 cat >>conftest.
$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6581 $ac_includes_default
6582 #include <$ac_header>
6584 rm -f conftest.
$ac_objext
6585 if { (ac_try
="$ac_compile"
6587 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591 (eval "$ac_compile") 2>conftest.er1
6593 grep -v '^ *+' conftest.er1 >conftest.err
6595 cat conftest.err >&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); } && {
6598 test -z "$ac_c_werror_flag" ||
6599 test ! -s conftest.err
6600 } && test -s conftest.$ac_objext; then
6601 ac_header_compiler=yes
6603 echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6606 ac_header_compiler=no
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6611 echo "${ECHO_T}$ac_header_compiler" >&6; }
6613 # Is the header present?
6614 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6616 cat >conftest.$ac_ext <<_ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 #include <$ac_header>
6624 if { (ac_try="$ac_cpp conftest.$ac_ext"
6626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6627 *) ac_try_echo
=$ac_try;;
6629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6630 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6632 grep -v '^ *+' conftest.er1
>conftest.err
6634 cat conftest.err
>&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } >/dev
/null
&& {
6637 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6638 test ! -s conftest.err
6640 ac_header_preproc
=yes
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.
$ac_ext >&5
6645 ac_header_preproc
=no
6648 rm -f conftest.err conftest.
$ac_ext
6649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6650 echo "${ECHO_T}$ac_header_preproc" >&6; }
6652 # So? What about this header?
6653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6657 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6659 ac_header_preproc
=yes
6662 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6664 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6665 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6666 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6668 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6669 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6672 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6679 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 eval "$as_ac_Header=\$ac_header_preproc"
6684 ac_res
=`eval echo '${'$as_ac_Header'}'`
6685 { echo "$as_me:$LINENO: result: $ac_res" >&5
6686 echo "${ECHO_T}$ac_res" >&6; }
6689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6690 cat >>confdefs.h
<<_ACEOF
6691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6699 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6700 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6701 cat >conftest.
$ac_ext <<_ACEOF
6704 cat confdefs.h
>>conftest.
$ac_ext
6705 cat >>conftest.
$ac_ext <<_ACEOF
6706 /* end confdefs.h. */
6707 #include <sys/personality.h>
6711 personality (PER_LINUX32)
6716 rm -f conftest.
$ac_objext
6717 if { (ac_try
="$ac_compile"
6719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723 (eval "$ac_compile") 2>conftest.er1
6725 grep -v '^ *+' conftest.er1 >conftest.err
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6729 (exit $ac_status); } && {
6730 test -z "$ac_c_werror_flag" ||
6731 test ! -s conftest.err
6732 } && test -s conftest.$ac_objext; then
6733 emacs_cv_personality_linux32=yes
6735 echo "$as_me: failed program was:" >&5
6736 sed 's/^/| /' conftest.$ac_ext >&5
6738 emacs_cv_personality_linux32=no
6741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6742 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6743 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6745 if test $emacs_cv_personality_linux32 = yes; then
6747 cat >>confdefs.h <<\_ACEOF
6748 #define HAVE_PERSONALITY_LINUX32 1
6754 for ac_header in term.h
6756 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6762 cat >conftest.$ac_ext <<_ACEOF
6765 cat confdefs.h >>conftest.$ac_ext
6766 cat >>conftest.$ac_ext <<_ACEOF
6767 /* end confdefs.h. */
6768 #include <$ac_header>
6770 if { (ac_try="$ac_cpp conftest.$ac_ext"
6772 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6773 *) ac_try_echo
=$ac_try;;
6775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6778 grep -v '^ *+' conftest.er1
>conftest.err
6780 cat conftest.err
>&5
6781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6782 (exit $ac_status); } >/dev
/null
&& {
6783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6784 test ! -s conftest.err
6786 eval "$as_ac_Header=yes"
6788 echo "$as_me: failed program was:" >&5
6789 sed 's/^/| /' conftest.
$ac_ext >&5
6791 eval "$as_ac_Header=no"
6794 rm -f conftest.err conftest.
$ac_ext
6796 ac_res
=`eval echo '${'$as_ac_Header'}'`
6797 { echo "$as_me:$LINENO: result: $ac_res" >&5
6798 echo "${ECHO_T}$ac_res" >&6; }
6799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6800 cat >>confdefs.h
<<_ACEOF
6801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6808 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6810 if test "${ac_cv_header_stdc+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 cat >conftest.
$ac_ext <<_ACEOF
6816 cat confdefs.h
>>conftest.
$ac_ext
6817 cat >>conftest.
$ac_ext <<_ACEOF
6818 /* end confdefs.h. */
6832 rm -f conftest.
$ac_objext
6833 if { (ac_try
="$ac_compile"
6835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6836 *) ac_try_echo=$ac_try;;
6838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6839 (eval "$ac_compile") 2>conftest.er1
6841 grep -v '^ *+' conftest.er1 >conftest.err
6843 cat conftest.err >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } && {
6846 test -z "$ac_c_werror_flag" ||
6847 test ! -s conftest.err
6848 } && test -s conftest.$ac_objext; then
6849 ac_cv_header_stdc=yes
6851 echo "$as_me: failed program was:" >&5
6852 sed 's/^/| /' conftest.$ac_ext >&5
6854 ac_cv_header_stdc=no
6857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6859 if test $ac_cv_header_stdc = yes; then
6860 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6861 cat >conftest.$ac_ext <<_ACEOF
6864 cat confdefs.h >>conftest.$ac_ext
6865 cat >>conftest.$ac_ext <<_ACEOF
6866 /* end confdefs.h. */
6870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6871 $EGREP "memchr" >/dev/null 2>&1; then
6874 ac_cv_header_stdc=no
6880 if test $ac_cv_header_stdc = yes; then
6881 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6882 cat >conftest.$ac_ext <<_ACEOF
6885 cat confdefs.h >>conftest.$ac_ext
6886 cat >>conftest.$ac_ext <<_ACEOF
6887 /* end confdefs.h. */
6891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6892 $EGREP "free" >/dev/null 2>&1; then
6895 ac_cv_header_stdc=no
6901 if test $ac_cv_header_stdc = yes; then
6902 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6903 if test "$cross_compiling" = yes; then
6906 cat >conftest.$ac_ext <<_ACEOF
6909 cat confdefs.h >>conftest.$ac_ext
6910 cat >>conftest.$ac_ext <<_ACEOF
6911 /* end confdefs.h. */
6914 #if ((' ' & 0x0FF) == 0x020)
6915 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6916 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6918 # define ISLOWER(c) \
6919 (('a' <= (c) && (c) <= 'i') \
6920 || ('j' <= (c) && (c) <= 'r') \
6921 || ('s' <= (c) && (c) <= 'z'))
6922 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6925 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6930 for (i = 0; i < 256; i++)
6931 if (XOR (islower (i), ISLOWER (i))
6932 || toupper (i) != TOUPPER (i))
6937 rm -f conftest$ac_exeext
6938 if { (ac_try="$ac_link"
6940 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6941 *) ac_try_echo
=$ac_try;;
6943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6944 (eval "$ac_link") 2>&5
6946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6947 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6948 { (case "(($ac_try" in
6949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6950 *) ac_try_echo=$ac_try;;
6952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6953 (eval "$ac_try") 2>&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6959 echo "$as_me: program exited with status $ac_status" >&5
6960 echo "$as_me: failed program was:" >&5
6961 sed 's/^/| /' conftest.$ac_ext >&5
6964 ac_cv_header_stdc=no
6966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6972 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6973 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6974 if test $ac_cv_header_stdc = yes; then
6976 cat >>confdefs.h <<\_ACEOF
6977 #define STDC_HEADERS 1
6982 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6983 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6984 if test "${ac_cv_header_time+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 cat >conftest.$ac_ext <<_ACEOF
6990 cat confdefs.h >>conftest.$ac_ext
6991 cat >>conftest.$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 #include <sys/types.h>
6994 #include <sys/time.h>
7000 if ((struct tm *) 0)
7006 rm -f conftest.$ac_objext
7007 if { (ac_try="$ac_compile"
7009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7010 *) ac_try_echo
=$ac_try;;
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_compile") 2>conftest.er1
7015 grep -v '^ *+' conftest.er1
>conftest.err
7017 cat conftest.err
>&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest.
$ac_objext; then
7023 ac_cv_header_time
=yes
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.
$ac_ext >&5
7028 ac_cv_header_time
=no
7031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7033 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7034 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7035 if test $ac_cv_header_time = yes; then
7037 cat >>confdefs.h
<<\_ACEOF
7038 #define TIME_WITH_SYS_TIME 1
7043 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7044 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7045 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7046 echo $ECHO_N "(cached) $ECHO_C" >&6
7048 cat >conftest.
$ac_ext <<_ACEOF
7051 cat confdefs.h
>>conftest.
$ac_ext
7052 cat >>conftest.
$ac_ext <<_ACEOF
7053 /* end confdefs.h. */
7054 $ac_includes_default
7066 rm -f conftest.
$ac_objext
7067 if { (ac_try
="$ac_compile"
7069 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7070 *) ac_try_echo=$ac_try;;
7072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7073 (eval "$ac_compile") 2>conftest.er1
7075 grep -v '^ *+' conftest.er1 >conftest.err
7077 cat conftest.err >&5
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); } && {
7080 test -z "$ac_c_werror_flag" ||
7081 test ! -s conftest.err
7082 } && test -s conftest.$ac_objext; then
7083 ac_cv_have_decl_sys_siglist=yes
7085 echo "$as_me: failed program was:" >&5
7086 sed 's/^/| /' conftest.$ac_ext >&5
7088 ac_cv_have_decl_sys_siglist=no
7091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7093 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7094 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7095 if test $ac_cv_have_decl_sys_siglist = yes; then
7097 cat >>confdefs.h <<_ACEOF
7098 #define HAVE_DECL_SYS_SIGLIST 1
7103 cat >>confdefs.h <<_ACEOF
7104 #define HAVE_DECL_SYS_SIGLIST 0
7111 if test $ac_cv_have_decl_sys_siglist != yes; then
7112 # For Tru64, at least:
7113 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7114 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7115 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 cat >conftest.$ac_ext <<_ACEOF
7121 cat confdefs.h >>conftest.$ac_ext
7122 cat >>conftest.$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 $ac_includes_default
7128 #ifndef __sys_siglist
7129 (void) __sys_siglist;
7136 rm -f conftest.$ac_objext
7137 if { (ac_try="$ac_compile"
7139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7140 *) ac_try_echo
=$ac_try;;
7142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7143 (eval "$ac_compile") 2>conftest.er1
7145 grep -v '^ *+' conftest.er1
>conftest.err
7147 cat conftest.err
>&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); } && {
7150 test -z "$ac_c_werror_flag" ||
7151 test ! -s conftest.err
7152 } && test -s conftest.
$ac_objext; then
7153 ac_cv_have_decl___sys_siglist
=yes
7155 echo "$as_me: failed program was:" >&5
7156 sed 's/^/| /' conftest.
$ac_ext >&5
7158 ac_cv_have_decl___sys_siglist
=no
7161 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7163 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7164 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7165 if test $ac_cv_have_decl___sys_siglist = yes; then
7167 cat >>confdefs.h
<<_ACEOF
7168 #define HAVE_DECL___SYS_SIGLIST 1
7173 cat >>confdefs.h
<<_ACEOF
7174 #define HAVE_DECL___SYS_SIGLIST 0
7181 if test $ac_cv_have_decl___sys_siglist = yes; then
7183 cat >>confdefs.h
<<\_ACEOF
7184 #define sys_siglist __sys_siglist
7189 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7190 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7191 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 cat >conftest.
$ac_ext <<_ACEOF
7197 cat confdefs.h
>>conftest.
$ac_ext
7198 cat >>conftest.
$ac_ext <<_ACEOF
7199 /* end confdefs.h. */
7200 #include <sys/types.h>
7201 #include <sys/wait.h>
7203 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7206 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7214 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7219 rm -f conftest.
$ac_objext
7220 if { (ac_try
="$ac_compile"
7222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7223 *) ac_try_echo=$ac_try;;
7225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7226 (eval "$ac_compile") 2>conftest.er1
7228 grep -v '^ *+' conftest.er1 >conftest.err
7230 cat conftest.err >&5
7231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7232 (exit $ac_status); } && {
7233 test -z "$ac_c_werror_flag" ||
7234 test ! -s conftest.err
7235 } && test -s conftest.$ac_objext; then
7236 ac_cv_header_sys_wait_h=yes
7238 echo "$as_me: failed program was:" >&5
7239 sed 's/^/| /' conftest.$ac_ext >&5
7241 ac_cv_header_sys_wait_h=no
7244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7246 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7247 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7248 if test $ac_cv_header_sys_wait_h = yes; then
7250 cat >>confdefs.h <<\_ACEOF
7251 #define HAVE_SYS_WAIT_H 1
7257 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7258 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7259 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7262 cat >conftest.$ac_ext <<_ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 #ifdef TIME_WITH_SYS_TIME
7269 #include <sys/time.h>
7272 #ifdef HAVE_SYS_TIME_H
7273 #include <sys/time.h>
7284 static struct utimbuf x; x.actime = x.modtime;
7289 rm -f conftest.$ac_objext
7290 if { (ac_try="$ac_compile"
7292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7293 *) ac_try_echo
=$ac_try;;
7295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7296 (eval "$ac_compile") 2>conftest.er1
7298 grep -v '^ *+' conftest.er1
>conftest.err
7300 cat conftest.err
>&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } && {
7303 test -z "$ac_c_werror_flag" ||
7304 test ! -s conftest.err
7305 } && test -s conftest.
$ac_objext; then
7306 emacs_cv_struct_utimbuf
=yes
7308 echo "$as_me: failed program was:" >&5
7309 sed 's/^/| /' conftest.
$ac_ext >&5
7311 emacs_cv_struct_utimbuf
=no
7314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7316 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7317 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7318 if test $emacs_cv_struct_utimbuf = yes; then
7320 cat >>confdefs.h
<<\_ACEOF
7321 #define HAVE_STRUCT_UTIMBUF 1
7326 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7327 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7328 if test "${ac_cv_type_signal+set}" = set; then
7329 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 cat >conftest.
$ac_ext <<_ACEOF
7334 cat confdefs.h
>>conftest.
$ac_ext
7335 cat >>conftest.
$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7337 #include <sys/types.h>
7343 return *(signal (0, 0)) (0) == 1;
7348 rm -f conftest.
$ac_objext
7349 if { (ac_try
="$ac_compile"
7351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_compile") 2>conftest.er1
7357 grep -v '^ *+' conftest.er1 >conftest.err
7359 cat conftest.err >&5
7360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361 (exit $ac_status); } && {
7362 test -z "$ac_c_werror_flag" ||
7363 test ! -s conftest.err
7364 } && test -s conftest.$ac_objext; then
7365 ac_cv_type_signal=int
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7370 ac_cv_type_signal=void
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7376 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7378 cat >>confdefs.h <<_ACEOF
7379 #define RETSIGTYPE $ac_cv_type_signal
7384 { echo "$as_me:$LINENO: checking for speed_t" >&5
7385 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7386 if test "${emacs_cv_speed_t+set}" = set; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 cat >conftest.$ac_ext <<_ACEOF
7392 cat confdefs.h >>conftest.$ac_ext
7393 cat >>conftest.$ac_ext <<_ACEOF
7394 /* end confdefs.h. */
7395 #include <termios.h>
7404 rm -f conftest.$ac_objext
7405 if { (ac_try="$ac_compile"
7407 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7408 *) ac_try_echo
=$ac_try;;
7410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7411 (eval "$ac_compile") 2>conftest.er1
7413 grep -v '^ *+' conftest.er1
>conftest.err
7415 cat conftest.err
>&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); } && {
7418 test -z "$ac_c_werror_flag" ||
7419 test ! -s conftest.err
7420 } && test -s conftest.
$ac_objext; then
7421 emacs_cv_speed_t
=yes
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.
$ac_ext >&5
7429 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7431 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7432 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7433 if test $emacs_cv_speed_t = yes; then
7435 cat >>confdefs.h
<<\_ACEOF
7436 #define HAVE_SPEED_T 1
7441 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7442 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7443 if test "${emacs_cv_struct_timeval+set}" = set; then
7444 echo $ECHO_N "(cached) $ECHO_C" >&6
7446 cat >conftest.
$ac_ext <<_ACEOF
7449 cat confdefs.h
>>conftest.
$ac_ext
7450 cat >>conftest.
$ac_ext <<_ACEOF
7451 /* end confdefs.h. */
7452 #ifdef TIME_WITH_SYS_TIME
7453 #include <sys/time.h>
7456 #ifdef HAVE_SYS_TIME_H
7457 #include <sys/time.h>
7465 static struct timeval x; x.tv_sec = x.tv_usec;
7470 rm -f conftest.
$ac_objext
7471 if { (ac_try
="$ac_compile"
7473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7474 *) ac_try_echo=$ac_try;;
7476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7477 (eval "$ac_compile") 2>conftest.er1
7479 grep -v '^ *+' conftest.er1 >conftest.err
7481 cat conftest.err >&5
7482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7483 (exit $ac_status); } && {
7484 test -z "$ac_c_werror_flag" ||
7485 test ! -s conftest.err
7486 } && test -s conftest.$ac_objext; then
7487 emacs_cv_struct_timeval=yes
7489 echo "$as_me: failed program was:" >&5
7490 sed 's/^/| /' conftest.$ac_ext >&5
7492 emacs_cv_struct_timeval=no
7495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7497 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7498 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7499 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7500 if test $emacs_cv_struct_timeval = yes; then
7502 cat >>confdefs.h <<\_ACEOF
7503 #define HAVE_TIMEVAL 1
7508 { echo "$as_me:$LINENO: checking for struct exception" >&5
7509 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7510 if test "${emacs_cv_struct_exception+set}" = set; then
7511 echo $ECHO_N "(cached) $ECHO_C" >&6
7513 cat >conftest.$ac_ext <<_ACEOF
7516 cat confdefs.h >>conftest.$ac_ext
7517 cat >>conftest.$ac_ext <<_ACEOF
7518 /* end confdefs.h. */
7523 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7528 rm -f conftest.$ac_objext
7529 if { (ac_try="$ac_compile"
7531 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7532 *) ac_try_echo
=$ac_try;;
7534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7535 (eval "$ac_compile") 2>conftest.er1
7537 grep -v '^ *+' conftest.er1
>conftest.err
7539 cat conftest.err
>&5
7540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541 (exit $ac_status); } && {
7542 test -z "$ac_c_werror_flag" ||
7543 test ! -s conftest.err
7544 } && test -s conftest.
$ac_objext; then
7545 emacs_cv_struct_exception
=yes
7547 echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.
$ac_ext >&5
7550 emacs_cv_struct_exception
=no
7553 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7555 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7556 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7557 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7558 if test $emacs_cv_struct_exception != yes; then
7560 cat >>confdefs.h
<<\_ACEOF
7561 #define NO_MATHERR 1
7567 for ac_header
in sys
/socket.h
7569 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7570 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7573 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 ac_res
=`eval echo '${'$as_ac_Header'}'`
7577 { echo "$as_me:$LINENO: result: $ac_res" >&5
7578 echo "${ECHO_T}$ac_res" >&6; }
7580 # Is the header compilable?
7581 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7582 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7583 cat >conftest.
$ac_ext <<_ACEOF
7586 cat confdefs.h
>>conftest.
$ac_ext
7587 cat >>conftest.
$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7589 $ac_includes_default
7590 #include <$ac_header>
7592 rm -f conftest.
$ac_objext
7593 if { (ac_try
="$ac_compile"
7595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7596 *) ac_try_echo=$ac_try;;
7598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7599 (eval "$ac_compile") 2>conftest.er1
7601 grep -v '^ *+' conftest.er1 >conftest.err
7603 cat conftest.err >&5
7604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7605 (exit $ac_status); } && {
7606 test -z "$ac_c_werror_flag" ||
7607 test ! -s conftest.err
7608 } && test -s conftest.$ac_objext; then
7609 ac_header_compiler=yes
7611 echo "$as_me: failed program was:" >&5
7612 sed 's/^/| /' conftest.$ac_ext >&5
7614 ac_header_compiler=no
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7619 echo "${ECHO_T}$ac_header_compiler" >&6; }
7621 # Is the header present?
7622 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7623 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7624 cat >conftest.$ac_ext <<_ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 #include <$ac_header>
7632 if { (ac_try="$ac_cpp conftest.$ac_ext"
7634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7635 *) ac_try_echo
=$ac_try;;
7637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7638 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7640 grep -v '^ *+' conftest.er1
>conftest.err
7642 cat conftest.err
>&5
7643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7644 (exit $ac_status); } >/dev
/null
&& {
7645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7646 test ! -s conftest.err
7648 ac_header_preproc
=yes
7650 echo "$as_me: failed program was:" >&5
7651 sed 's/^/| /' conftest.
$ac_ext >&5
7653 ac_header_preproc
=no
7656 rm -f conftest.err conftest.
$ac_ext
7657 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7658 echo "${ECHO_T}$ac_header_preproc" >&6; }
7660 # So? What about this header?
7661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7667 ac_header_preproc
=yes
7670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7687 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 eval "$as_ac_Header=\$ac_header_preproc"
7692 ac_res
=`eval echo '${'$as_ac_Header'}'`
7693 { echo "$as_me:$LINENO: result: $ac_res" >&5
7694 echo "${ECHO_T}$ac_res" >&6; }
7697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7698 cat >>confdefs.h
<<_ACEOF
7699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7707 for ac_header
in net
/if.h
7709 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7712 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7713 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 cat >conftest.
$ac_ext <<_ACEOF
7718 cat confdefs.h
>>conftest.
$ac_ext
7719 cat >>conftest.
$ac_ext <<_ACEOF
7720 /* end confdefs.h. */
7721 $ac_includes_default
7722 #if HAVE_SYS_SOCKET_H
7723 #include <sys/socket.h>
7726 #include <$ac_header>
7728 rm -f conftest.
$ac_objext
7729 if { (ac_try
="$ac_compile"
7731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735 (eval "$ac_compile") 2>conftest.er1
7737 grep -v '^ *+' conftest.er1 >conftest.err
7739 cat conftest.err >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); } && {
7742 test -z "$ac_c_werror_flag" ||
7743 test ! -s conftest.err
7744 } && test -s conftest.$ac_objext; then
7745 eval "$as_ac_Header=yes"
7747 echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7750 eval "$as_ac_Header=no"
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7755 ac_res=`eval echo '${'$as_ac_Header'}'`
7756 { echo "$as_me:$LINENO: result: $ac_res" >&5
7757 echo "${ECHO_T}$ac_res" >&6; }
7758 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7759 cat >>confdefs.h <<_ACEOF
7760 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7768 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7769 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7770 if test "${ac_cv_struct_tm+set}" = set; then
7771 echo $ECHO_N "(cached) $ECHO_C" >&6
7773 cat >conftest.$ac_ext <<_ACEOF
7776 cat confdefs.h >>conftest.$ac_ext
7777 cat >>conftest.$ac_ext <<_ACEOF
7778 /* end confdefs.h. */
7779 #include <sys/types.h>
7786 int *p = &tm.tm_sec;
7792 rm -f conftest.$ac_objext
7793 if { (ac_try="$ac_compile"
7795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7796 *) ac_try_echo
=$ac_try;;
7798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7799 (eval "$ac_compile") 2>conftest.er1
7801 grep -v '^ *+' conftest.er1
>conftest.err
7803 cat conftest.err
>&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } && {
7806 test -z "$ac_c_werror_flag" ||
7807 test ! -s conftest.err
7808 } && test -s conftest.
$ac_objext; then
7809 ac_cv_struct_tm
=time.h
7811 echo "$as_me: failed program was:" >&5
7812 sed 's/^/| /' conftest.
$ac_ext >&5
7814 ac_cv_struct_tm
=sys
/time.h
7817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7819 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7820 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7821 if test $ac_cv_struct_tm = sys
/time.h
; then
7823 cat >>confdefs.h
<<\_ACEOF
7824 #define TM_IN_SYS_TIME 1
7829 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7830 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7831 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7832 echo $ECHO_N "(cached) $ECHO_C" >&6
7834 cat >conftest.
$ac_ext <<_ACEOF
7837 cat confdefs.h
>>conftest.
$ac_ext
7838 cat >>conftest.
$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7840 #include <sys/types.h>
7841 #include <$ac_cv_struct_tm>
7847 static struct tm ac_aggr;
7848 if (ac_aggr.tm_zone)
7854 rm -f conftest.
$ac_objext
7855 if { (ac_try
="$ac_compile"
7857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7858 *) ac_try_echo=$ac_try;;
7860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7861 (eval "$ac_compile") 2>conftest.er1
7863 grep -v '^ *+' conftest.er1 >conftest.err
7865 cat conftest.err >&5
7866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7867 (exit $ac_status); } && {
7868 test -z "$ac_c_werror_flag" ||
7869 test ! -s conftest.err
7870 } && test -s conftest.$ac_objext; then
7871 ac_cv_member_struct_tm_tm_zone=yes
7873 echo "$as_me: failed program was:" >&5
7874 sed 's/^/| /' conftest.$ac_ext >&5
7876 cat >conftest.$ac_ext <<_ACEOF
7879 cat confdefs.h >>conftest.$ac_ext
7880 cat >>conftest.$ac_ext <<_ACEOF
7881 /* end confdefs.h. */
7882 #include <sys/types.h>
7883 #include <$ac_cv_struct_tm>
7889 static struct tm ac_aggr;
7890 if (sizeof ac_aggr.tm_zone)
7896 rm -f conftest.$ac_objext
7897 if { (ac_try="$ac_compile"
7899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7900 *) ac_try_echo
=$ac_try;;
7902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7903 (eval "$ac_compile") 2>conftest.er1
7905 grep -v '^ *+' conftest.er1
>conftest.err
7907 cat conftest.err
>&5
7908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7909 (exit $ac_status); } && {
7910 test -z "$ac_c_werror_flag" ||
7911 test ! -s conftest.err
7912 } && test -s conftest.
$ac_objext; then
7913 ac_cv_member_struct_tm_tm_zone
=yes
7915 echo "$as_me: failed program was:" >&5
7916 sed 's/^/| /' conftest.
$ac_ext >&5
7918 ac_cv_member_struct_tm_tm_zone
=no
7921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7924 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7926 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7927 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7928 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7930 cat >>confdefs.h
<<_ACEOF
7931 #define HAVE_STRUCT_TM_TM_ZONE 1
7937 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7939 cat >>confdefs.h
<<\_ACEOF
7940 #define HAVE_TM_ZONE 1
7944 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7945 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7946 if test "${ac_cv_have_decl_tzname+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 cat >conftest.
$ac_ext <<_ACEOF
7952 cat confdefs.h
>>conftest.
$ac_ext
7953 cat >>conftest.
$ac_ext <<_ACEOF
7954 /* end confdefs.h. */
7968 rm -f conftest.
$ac_objext
7969 if { (ac_try
="$ac_compile"
7971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_compile") 2>conftest.er1
7977 grep -v '^ *+' conftest.er1 >conftest.err
7979 cat conftest.err >&5
7980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } && {
7982 test -z "$ac_c_werror_flag" ||
7983 test ! -s conftest.err
7984 } && test -s conftest.$ac_objext; then
7985 ac_cv_have_decl_tzname=yes
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7990 ac_cv_have_decl_tzname=no
7993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7995 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7996 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7997 if test $ac_cv_have_decl_tzname = yes; then
7999 cat >>confdefs.h <<_ACEOF
8000 #define HAVE_DECL_TZNAME 1
8005 cat >>confdefs.h <<_ACEOF
8006 #define HAVE_DECL_TZNAME 0
8013 { echo "$as_me:$LINENO: checking for tzname" >&5
8014 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8015 if test "${ac_cv_var_tzname+set}" = set; then
8016 echo $ECHO_N "(cached) $ECHO_C" >&6
8018 cat >conftest.$ac_ext <<_ACEOF
8021 cat confdefs.h >>conftest.$ac_ext
8022 cat >>conftest.$ac_ext <<_ACEOF
8023 /* end confdefs.h. */
8025 #if !HAVE_DECL_TZNAME
8026 extern char *tzname[];
8032 return tzname[0][0];
8037 rm -f conftest.$ac_objext conftest$ac_exeext
8038 if { (ac_try="$ac_link"
8040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8041 *) ac_try_echo
=$ac_try;;
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_link") 2>conftest.er1
8046 grep -v '^ *+' conftest.er1
>conftest.err
8048 cat conftest.err
>&5
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); } && {
8051 test -z "$ac_c_werror_flag" ||
8052 test ! -s conftest.err
8053 } && test -s conftest
$ac_exeext &&
8054 $as_test_x conftest
$ac_exeext; then
8055 ac_cv_var_tzname
=yes
8057 echo "$as_me: failed program was:" >&5
8058 sed 's/^/| /' conftest.
$ac_ext >&5
8063 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8064 conftest
$ac_exeext conftest.
$ac_ext
8066 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8067 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8068 if test $ac_cv_var_tzname = yes; then
8070 cat >>confdefs.h
<<\_ACEOF
8071 #define HAVE_TZNAME 1
8077 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8078 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8079 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8080 echo $ECHO_N "(cached) $ECHO_C" >&6
8082 cat >conftest.
$ac_ext <<_ACEOF
8085 cat confdefs.h
>>conftest.
$ac_ext
8086 cat >>conftest.
$ac_ext <<_ACEOF
8087 /* end confdefs.h. */
8093 static struct tm ac_aggr;
8094 if (ac_aggr.tm_gmtoff)
8100 rm -f conftest.
$ac_objext
8101 if { (ac_try
="$ac_compile"
8103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8104 *) ac_try_echo=$ac_try;;
8106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8107 (eval "$ac_compile") 2>conftest.er1
8109 grep -v '^ *+' conftest.er1 >conftest.err
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } && {
8114 test -z "$ac_c_werror_flag" ||
8115 test ! -s conftest.err
8116 } && test -s conftest.$ac_objext; then
8117 ac_cv_member_struct_tm_tm_gmtoff=yes
8119 echo "$as_me: failed program was:" >&5
8120 sed 's/^/| /' conftest.$ac_ext >&5
8122 cat >conftest.$ac_ext <<_ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8133 static struct tm ac_aggr;
8134 if (sizeof ac_aggr.tm_gmtoff)
8140 rm -f conftest.$ac_objext
8141 if { (ac_try="$ac_compile"
8143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8144 *) ac_try_echo
=$ac_try;;
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_compile") 2>conftest.er1
8149 grep -v '^ *+' conftest.er1
>conftest.err
8151 cat conftest.err
>&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } && {
8154 test -z "$ac_c_werror_flag" ||
8155 test ! -s conftest.err
8156 } && test -s conftest.
$ac_objext; then
8157 ac_cv_member_struct_tm_tm_gmtoff
=yes
8159 echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.
$ac_ext >&5
8162 ac_cv_member_struct_tm_tm_gmtoff
=no
8165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8170 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8171 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8172 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8174 cat >>confdefs.h
<<\_ACEOF
8175 #define HAVE_TM_GMTOFF 1
8180 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8181 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8182 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8183 echo $ECHO_N "(cached) $ECHO_C" >&6
8185 cat >conftest.
$ac_ext <<_ACEOF
8188 cat confdefs.h
>>conftest.
$ac_ext
8189 cat >>conftest.
$ac_ext <<_ACEOF
8190 /* end confdefs.h. */
8191 $ac_includes_default
8192 #if HAVE_SYS_SOCKET_H
8193 #include <sys/socket.h>
8202 static struct ifreq ac_aggr;
8203 if (ac_aggr.ifr_flags)
8209 rm -f conftest.
$ac_objext
8210 if { (ac_try
="$ac_compile"
8212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8213 *) ac_try_echo=$ac_try;;
8215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8216 (eval "$ac_compile") 2>conftest.er1
8218 grep -v '^ *+' conftest.er1 >conftest.err
8220 cat conftest.err >&5
8221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } && {
8223 test -z "$ac_c_werror_flag" ||
8224 test ! -s conftest.err
8225 } && test -s conftest.$ac_objext; then
8226 ac_cv_member_struct_ifreq_ifr_flags=yes
8228 echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8231 cat >conftest.$ac_ext <<_ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 $ac_includes_default
8238 #if HAVE_SYS_SOCKET_H
8239 #include <sys/socket.h>
8248 static struct ifreq ac_aggr;
8249 if (sizeof ac_aggr.ifr_flags)
8255 rm -f conftest.$ac_objext
8256 if { (ac_try="$ac_compile"
8258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8259 *) ac_try_echo
=$ac_try;;
8261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8262 (eval "$ac_compile") 2>conftest.er1
8264 grep -v '^ *+' conftest.er1
>conftest.err
8266 cat conftest.err
>&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); } && {
8269 test -z "$ac_c_werror_flag" ||
8270 test ! -s conftest.err
8271 } && test -s conftest.
$ac_objext; then
8272 ac_cv_member_struct_ifreq_ifr_flags
=yes
8274 echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.
$ac_ext >&5
8277 ac_cv_member_struct_ifreq_ifr_flags
=no
8280 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8285 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8286 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8287 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8289 cat >>confdefs.h
<<_ACEOF
8290 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8295 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8296 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8297 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8300 cat >conftest.
$ac_ext <<_ACEOF
8303 cat confdefs.h
>>conftest.
$ac_ext
8304 cat >>conftest.
$ac_ext <<_ACEOF
8305 /* end confdefs.h. */
8306 $ac_includes_default
8307 #if HAVE_SYS_SOCKET_H
8308 #include <sys/socket.h>
8317 static struct ifreq ac_aggr;
8318 if (ac_aggr.ifr_hwaddr)
8324 rm -f conftest.
$ac_objext
8325 if { (ac_try
="$ac_compile"
8327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8331 (eval "$ac_compile") 2>conftest.er1
8333 grep -v '^ *+' conftest.er1 >conftest.err
8335 cat conftest.err >&5
8336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337 (exit $ac_status); } && {
8338 test -z "$ac_c_werror_flag" ||
8339 test ! -s conftest.err
8340 } && test -s conftest.$ac_objext; then
8341 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8343 echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8346 cat >conftest.$ac_ext <<_ACEOF
8349 cat confdefs.h >>conftest.$ac_ext
8350 cat >>conftest.$ac_ext <<_ACEOF
8351 /* end confdefs.h. */
8352 $ac_includes_default
8353 #if HAVE_SYS_SOCKET_H
8354 #include <sys/socket.h>
8363 static struct ifreq ac_aggr;
8364 if (sizeof ac_aggr.ifr_hwaddr)
8370 rm -f conftest.$ac_objext
8371 if { (ac_try="$ac_compile"
8373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8374 *) ac_try_echo
=$ac_try;;
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_compile") 2>conftest.er1
8379 grep -v '^ *+' conftest.er1
>conftest.err
8381 cat conftest.err
>&5
8382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8383 (exit $ac_status); } && {
8384 test -z "$ac_c_werror_flag" ||
8385 test ! -s conftest.err
8386 } && test -s conftest.
$ac_objext; then
8387 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8389 echo "$as_me: failed program was:" >&5
8390 sed 's/^/| /' conftest.
$ac_ext >&5
8392 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8398 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8400 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8401 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8402 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8404 cat >>confdefs.h
<<_ACEOF
8405 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8410 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8411 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8412 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8415 cat >conftest.
$ac_ext <<_ACEOF
8418 cat confdefs.h
>>conftest.
$ac_ext
8419 cat >>conftest.
$ac_ext <<_ACEOF
8420 /* end confdefs.h. */
8421 $ac_includes_default
8422 #if HAVE_SYS_SOCKET_H
8423 #include <sys/socket.h>
8432 static struct ifreq ac_aggr;
8433 if (ac_aggr.ifr_netmask)
8439 rm -f conftest.
$ac_objext
8440 if { (ac_try
="$ac_compile"
8442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8443 *) ac_try_echo=$ac_try;;
8445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8446 (eval "$ac_compile") 2>conftest.er1
8448 grep -v '^ *+' conftest.er1 >conftest.err
8450 cat conftest.err >&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); } && {
8453 test -z "$ac_c_werror_flag" ||
8454 test ! -s conftest.err
8455 } && test -s conftest.$ac_objext; then
8456 ac_cv_member_struct_ifreq_ifr_netmask=yes
8458 echo "$as_me: failed program was:" >&5
8459 sed 's/^/| /' conftest.$ac_ext >&5
8461 cat >conftest.$ac_ext <<_ACEOF
8464 cat confdefs.h >>conftest.$ac_ext
8465 cat >>conftest.$ac_ext <<_ACEOF
8466 /* end confdefs.h. */
8467 $ac_includes_default
8468 #if HAVE_SYS_SOCKET_H
8469 #include <sys/socket.h>
8478 static struct ifreq ac_aggr;
8479 if (sizeof ac_aggr.ifr_netmask)
8485 rm -f conftest.$ac_objext
8486 if { (ac_try="$ac_compile"
8488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8489 *) ac_try_echo
=$ac_try;;
8491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8492 (eval "$ac_compile") 2>conftest.er1
8494 grep -v '^ *+' conftest.er1
>conftest.err
8496 cat conftest.err
>&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 (exit $ac_status); } && {
8499 test -z "$ac_c_werror_flag" ||
8500 test ! -s conftest.err
8501 } && test -s conftest.
$ac_objext; then
8502 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8504 echo "$as_me: failed program was:" >&5
8505 sed 's/^/| /' conftest.
$ac_ext >&5
8507 ac_cv_member_struct_ifreq_ifr_netmask
=no
8510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8515 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8516 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8517 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8519 cat >>confdefs.h
<<_ACEOF
8520 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8525 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8526 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8527 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 cat >conftest.
$ac_ext <<_ACEOF
8533 cat confdefs.h
>>conftest.
$ac_ext
8534 cat >>conftest.
$ac_ext <<_ACEOF
8535 /* end confdefs.h. */
8536 $ac_includes_default
8537 #if HAVE_SYS_SOCKET_H
8538 #include <sys/socket.h>
8547 static struct ifreq ac_aggr;
8548 if (ac_aggr.ifr_broadaddr)
8554 rm -f conftest.
$ac_objext
8555 if { (ac_try
="$ac_compile"
8557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8558 *) ac_try_echo=$ac_try;;
8560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8561 (eval "$ac_compile") 2>conftest.er1
8563 grep -v '^ *+' conftest.er1 >conftest.err
8565 cat conftest.err >&5
8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8567 (exit $ac_status); } && {
8568 test -z "$ac_c_werror_flag" ||
8569 test ! -s conftest.err
8570 } && test -s conftest.$ac_objext; then
8571 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8573 echo "$as_me: failed program was:" >&5
8574 sed 's/^/| /' conftest.$ac_ext >&5
8576 cat >conftest.$ac_ext <<_ACEOF
8579 cat confdefs.h >>conftest.$ac_ext
8580 cat >>conftest.$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8582 $ac_includes_default
8583 #if HAVE_SYS_SOCKET_H
8584 #include <sys/socket.h>
8593 static struct ifreq ac_aggr;
8594 if (sizeof ac_aggr.ifr_broadaddr)
8600 rm -f conftest.$ac_objext
8601 if { (ac_try="$ac_compile"
8603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8604 *) ac_try_echo
=$ac_try;;
8606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8607 (eval "$ac_compile") 2>conftest.er1
8609 grep -v '^ *+' conftest.er1
>conftest.err
8611 cat conftest.err
>&5
8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8613 (exit $ac_status); } && {
8614 test -z "$ac_c_werror_flag" ||
8615 test ! -s conftest.err
8616 } && test -s conftest.
$ac_objext; then
8617 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.
$ac_ext >&5
8622 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8628 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8630 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8631 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8632 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8634 cat >>confdefs.h
<<_ACEOF
8635 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8640 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8641 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8642 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8643 echo $ECHO_N "(cached) $ECHO_C" >&6
8645 cat >conftest.
$ac_ext <<_ACEOF
8648 cat confdefs.h
>>conftest.
$ac_ext
8649 cat >>conftest.
$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8651 $ac_includes_default
8652 #if HAVE_SYS_SOCKET_H
8653 #include <sys/socket.h>
8662 static struct ifreq ac_aggr;
8663 if (ac_aggr.ifr_addr)
8669 rm -f conftest.
$ac_objext
8670 if { (ac_try
="$ac_compile"
8672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8676 (eval "$ac_compile") 2>conftest.er1
8678 grep -v '^ *+' conftest.er1 >conftest.err
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } && {
8683 test -z "$ac_c_werror_flag" ||
8684 test ! -s conftest.err
8685 } && test -s conftest.$ac_objext; then
8686 ac_cv_member_struct_ifreq_ifr_addr=yes
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8691 cat >conftest.$ac_ext <<_ACEOF
8694 cat confdefs.h >>conftest.$ac_ext
8695 cat >>conftest.$ac_ext <<_ACEOF
8696 /* end confdefs.h. */
8697 $ac_includes_default
8698 #if HAVE_SYS_SOCKET_H
8699 #include <sys/socket.h>
8708 static struct ifreq ac_aggr;
8709 if (sizeof ac_aggr.ifr_addr)
8715 rm -f conftest.$ac_objext
8716 if { (ac_try="$ac_compile"
8718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8719 *) ac_try_echo
=$ac_try;;
8721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_compile") 2>conftest.er1
8724 grep -v '^ *+' conftest.er1
>conftest.err
8726 cat conftest.err
>&5
8727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8728 (exit $ac_status); } && {
8729 test -z "$ac_c_werror_flag" ||
8730 test ! -s conftest.err
8731 } && test -s conftest.
$ac_objext; then
8732 ac_cv_member_struct_ifreq_ifr_addr
=yes
8734 echo "$as_me: failed program was:" >&5
8735 sed 's/^/| /' conftest.
$ac_ext >&5
8737 ac_cv_member_struct_ifreq_ifr_addr
=no
8740 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8743 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8745 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8746 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8747 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8749 cat >>confdefs.h
<<_ACEOF
8750 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8758 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8759 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8760 if test "$ac_cv_prog_cc_c89" != no
; then
8761 { echo "$as_me:$LINENO: result: yes" >&5
8762 echo "${ECHO_T}yes" >&6; }
8764 cat >>confdefs.h
<<\_ACEOF
8765 #define PROTOTYPES 1
8769 cat >>confdefs.h
<<\_ACEOF
8770 #define __PROTOTYPES 1
8774 { echo "$as_me:$LINENO: result: no" >&5
8775 echo "${ECHO_T}no" >&6; }
8778 { echo "$as_me:$LINENO: checking for working volatile" >&5
8779 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8780 if test "${ac_cv_c_volatile+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 cat >conftest.
$ac_ext <<_ACEOF
8786 cat confdefs.h
>>conftest.
$ac_ext
8787 cat >>conftest.
$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8795 int * volatile y = (int *) 0;
8801 rm -f conftest.
$ac_objext
8802 if { (ac_try
="$ac_compile"
8804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8808 (eval "$ac_compile") 2>conftest.er1
8810 grep -v '^ *+' conftest.er1 >conftest.err
8812 cat conftest.err >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); } && {
8815 test -z "$ac_c_werror_flag" ||
8816 test ! -s conftest.err
8817 } && test -s conftest.$ac_objext; then
8818 ac_cv_c_volatile=yes
8820 echo "$as_me: failed program was:" >&5
8821 sed 's/^/| /' conftest.$ac_ext >&5
8826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8829 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8830 if test $ac_cv_c_volatile = no; then
8832 cat >>confdefs.h <<\_ACEOF
8838 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8839 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8840 if test "${ac_cv_c_const+set}" = set; then
8841 echo $ECHO_N "(cached) $ECHO_C" >&6
8843 cat >conftest.$ac_ext <<_ACEOF
8846 cat confdefs.h >>conftest.$ac_ext
8847 cat >>conftest.$ac_ext <<_ACEOF
8848 /* end confdefs.h. */
8853 /* FIXME: Include the comments suggested by Paul. */
8855 /* Ultrix mips cc rejects this. */
8856 typedef int charset[2];
8858 /* SunOS 4.1.1 cc rejects this. */
8859 char const *const *pcpcc;
8861 /* NEC SVR4.0.2 mips cc rejects this. */
8862 struct point {int x, y;};
8863 static struct point const zero = {0,0};
8864 /* AIX XL C 1.02.0.0 rejects this.
8865 It does not let you subtract one const X* pointer from another in
8866 an arm of an if-expression whose if-part is not a constant
8868 const char *g = "string";
8869 pcpcc = &g + (g ? g-g : 0);
8870 /* HPUX 7.0 cc rejects these. */
8872 ppc = (char**) pcpcc;
8873 pcpcc = (char const *const *) ppc;
8874 { /* SCO 3.2v4 cc rejects this. */
8876 char const *s = 0 ? (char *) 0 : (char const *) 0;
8881 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8883 const int *foo = &x[0];
8886 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8887 typedef const int *iptr;
8891 { /* AIX XL C 1.02.0.0 rejects this saying
8892 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8893 struct s { int j; const int *ap[3]; };
8894 struct s *b; b->j = 5;
8896 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8900 return !cs[0] && !zero.x;
8907 rm -f conftest.$ac_objext
8908 if { (ac_try="$ac_compile"
8910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8911 *) ac_try_echo
=$ac_try;;
8913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914 (eval "$ac_compile") 2>conftest.er1
8916 grep -v '^ *+' conftest.er1
>conftest.err
8918 cat conftest.err
>&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); } && {
8921 test -z "$ac_c_werror_flag" ||
8922 test ! -s conftest.err
8923 } && test -s conftest.
$ac_objext; then
8926 echo "$as_me: failed program was:" >&5
8927 sed 's/^/| /' conftest.
$ac_ext >&5
8932 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8934 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8935 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8936 if test $ac_cv_c_const = no
; then
8938 cat >>confdefs.h
<<\_ACEOF
8944 { echo "$as_me:$LINENO: checking for void * support" >&5
8945 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8946 if test "${emacs_cv_void_star+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 cat >conftest.
$ac_ext <<_ACEOF
8952 cat confdefs.h
>>conftest.
$ac_ext
8953 cat >>conftest.
$ac_ext <<_ACEOF
8954 /* end confdefs.h. */
8964 rm -f conftest.
$ac_objext
8965 if { (ac_try
="$ac_compile"
8967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971 (eval "$ac_compile") 2>conftest.er1
8973 grep -v '^ *+' conftest.er1 >conftest.err
8975 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } && {
8978 test -z "$ac_c_werror_flag" ||
8979 test ! -s conftest.err
8980 } && test -s conftest.$ac_objext; then
8981 emacs_cv_void_star=yes
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8986 emacs_cv_void_star=no
8989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8991 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8992 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8993 if test $emacs_cv_void_star = yes; then
8994 cat >>confdefs.h <<\_ACEOF
8995 #define POINTER_TYPE void
8999 cat >>confdefs.h <<\_ACEOF
9000 #define POINTER_TYPE char
9009 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9010 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9011 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9012 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 cat >conftest.make <<\_ACEOF
9018 @echo '@@@%%%=$(MAKE)=@@@%%%'
9020 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9021 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
9023 eval ac_cv_prog_make_${ac_make}_set=yes;;
9025 eval ac_cv_prog_make_${ac_make}_set=no;;
9029 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9030 { echo "$as_me:$LINENO: result: yes" >&5
9031 echo "${ECHO_T}yes" >&6; }
9034 { echo "$as_me:$LINENO: result: no" >&5
9035 echo "${ECHO_T}no" >&6; }
9036 SET_MAKE="MAKE=${MAKE-make}"
9040 { echo "$as_me:$LINENO: checking for long file names" >&5
9041 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9042 if test "${ac_cv_sys_long_file_names+set}" = set; then
9043 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 ac_cv_sys_long_file_names=yes
9046 # Test for long file names in all the places we know might matter:
9047 # . the current directory, where building will happen
9048 # $prefix/lib where we will be installing things
9049 # $exec_prefix/lib likewise
9050 # $TMPDIR if set, where it might want to write temporary files
9051 # /tmp where it might want to write temporary files
9054 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9055 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9056 # in the usual case where exec_prefix is '${prefix}'.
9058 . | /* | ?:[\\/]*) ;; #(
9061 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9062 ac_xdir=$ac_dir/cf$$
9063 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9064 ac_tf1=$ac_xdir/conftest9012345
9065 ac_tf2=$ac_xdir/conftest9012346
9066 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9067 ac_cv_sys_long_file_names=no
9068 rm -f -r "$ac_xdir" 2>/dev/null
9069 test $ac_cv_sys_long_file_names = no && break
9072 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9073 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9074 if test $ac_cv_sys_long_file_names = yes; then
9076 cat >>confdefs.h <<\_ACEOF
9077 #define HAVE_LONG_FILE_NAMES 1
9083 #### Choose a window system.
9085 { echo "$as_me:$LINENO: checking for X" >&5
9086 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9089 # Check whether --with-x was given.
9090 if test "${with_x+set}" = set; then
9094 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9095 if test "x$with_x" = xno; then
9096 # The user explicitly disabled X.
9099 case $x_includes,$x_libraries in #(
9100 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9101 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9102 { (exit 1); exit 1; }; };; #(
9103 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 # One or both of the vars are not set, and there is no cached value.
9107 ac_x_includes=no ac_x_libraries=no
9108 rm -f -r conftest.dir
9109 if mkdir conftest.dir; then
9111 cat >Imakefile <<'_ACEOF'
9113 @echo incroot='${INCROOT}'
9115 @echo usrlibdir='${USRLIBDIR}'
9117 @echo libdir='${LIBDIR}'
9119 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9120 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9121 for ac_var in incroot usrlibdir libdir; do
9122 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9124 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9125 for ac_extension in a so sl; do
9126 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9127 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9128 ac_im_usrlibdir=$ac_im_libdir; break
9131 # Screen out bogus values from the imake configuration. They are
9132 # bogus both because they are the default anyway, and because
9133 # using them would break gcc on systems where it needs fixed includes.
9134 case $ac_im_incroot in
9135 /usr/include) ac_x_includes= ;;
9136 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9138 case $ac_im_usrlibdir in
9140 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9144 rm -f -r conftest.dir
9147 # Standard set of common directories for X headers.
9148 # Check X11 before X11Rn because it is often a symlink to the current release.
9160 /usr/local/X11/include
9161 /usr/local/X11R6/include
9162 /usr/local/X11R5/include
9163 /usr/local/X11R4/include
9165 /usr/local/include/X11
9166 /usr/local/include/X11R6
9167 /usr/local/include/X11R5
9168 /usr/local/include/X11R4
9172 /usr/XFree86/include/X11
9176 /usr/unsupported/include
9178 /usr/local/x11r5/include
9179 /usr/lpp/Xamples/include
9181 /usr/openwin/include
9182 /usr/openwin/share/include'
9184 if test "$ac_x_includes" = no; then
9185 # Guess where to find include files, by looking for Xlib.h.
9186 # First, try using that file with no special directory specified.
9187 cat >conftest.$ac_ext <<_ACEOF
9190 cat confdefs.h >>conftest.$ac_ext
9191 cat >>conftest.$ac_ext <<_ACEOF
9192 /* end confdefs.h. */
9193 #include <X11/Xlib.h>
9195 if { (ac_try="$ac_cpp conftest.$ac_ext"
9197 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9198 *) ac_try_echo
=$ac_try;;
9200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9203 grep -v '^ *+' conftest.er1
>conftest.err
9205 cat conftest.err
>&5
9206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } >/dev
/null
&& {
9208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9209 test ! -s conftest.err
9211 # We can compile using X headers with no special include directory.
9214 echo "$as_me: failed program was:" >&5
9215 sed 's/^/| /' conftest.
$ac_ext >&5
9217 for ac_dir
in $ac_x_header_dirs; do
9218 if test -r "$ac_dir/X11/Xlib.h"; then
9219 ac_x_includes
=$ac_dir
9225 rm -f conftest.err conftest.
$ac_ext
9226 fi # $ac_x_includes = no
9228 if test "$ac_x_libraries" = no
; then
9229 # Check for the libraries.
9230 # See if we find them without any special options.
9231 # Don't add to $LIBS permanently.
9234 cat >conftest.
$ac_ext <<_ACEOF
9237 cat confdefs.h
>>conftest.
$ac_ext
9238 cat >>conftest.
$ac_ext <<_ACEOF
9239 /* end confdefs.h. */
9240 #include <X11/Xlib.h>
9249 rm -f conftest.
$ac_objext conftest
$ac_exeext
9250 if { (ac_try
="$ac_link"
9252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_link") 2>conftest.er1
9258 grep -v '^ *+' conftest.er1 >conftest.err
9260 cat conftest.err >&5
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); } && {
9263 test -z "$ac_c_werror_flag" ||
9264 test ! -s conftest.err
9265 } && test -s conftest$ac_exeext &&
9266 $as_test_x conftest$ac_exeext; then
9268 # We can link X programs with no special library path.
9271 echo "$as_me: failed program was:" >&5
9272 sed 's/^/| /' conftest.$ac_ext >&5
9275 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9277 # Don't even attempt the hair of trying to link an X program!
9278 for ac_extension in a so sl; do
9279 if test -r "$ac_dir/libX11.$ac_extension"; then
9280 ac_x_libraries=$ac_dir
9287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9288 conftest$ac_exeext conftest.$ac_ext
9289 fi # $ac_x_libraries = no
9291 case $ac_x_includes,$ac_x_libraries in #(
9293 # Didn't find X, or a directory has "'" in its name.
9294 ac_cv_have_x="have_x=no";; #(
9296 # Record where we found X for the cache.
9297 ac_cv_have_x="have_x=yes\
9298 ac_x_includes='$ac_x_includes'\
9299 ac_x_libraries='$ac_x_libraries'"
9305 eval "$ac_cv_have_x"
9308 if test "$have_x" != yes; then
9309 { echo "$as_me:$LINENO: result: $have_x" >&5
9310 echo "${ECHO_T}$have_x" >&6; }
9313 # If each of the values was on the command line, it overrides each guess.
9314 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9315 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9316 # Update the cache value to reflect the command line values.
9317 ac_cv_have_x="have_x=yes\
9318 ac_x_includes='$x_includes'\
9319 ac_x_libraries='$x_libraries'"
9320 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9321 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9324 if test "$no_x" = yes; then
9330 if test "${x_libraries}" != NONE; then
9331 if test -n "${x_libraries}"; then
9332 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9333 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9335 x_default_search_path=""
9336 x_search_path=${x_libraries}
9337 if test -z "${x_search_path}"; then
9338 x_search_path=/usr/lib
9340 for x_library in `echo ${x_search_path}: | \
9341 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9343 ${x_library}/X11/%L/%T/%N%C%S:\
9344 ${x_library}/X11/%l/%T/%N%C%S:\
9345 ${x_library}/X11/%T/%N%C%S:\
9346 ${x_library}/X11/%L/%T/%N%S:\
9347 ${x_library}/X11/%l/%T/%N%S:\
9348 ${x_library}/X11/%T/%N%S"
9349 if test x"${x_default_search_path}" = x; then
9350 x_default_search_path=${x_search_path}
9352 x_default_search_path="${x_search_path}:${x_default_search_path}"
9356 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9357 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9360 if test x"${x_includes}" = x; then
9361 bitmapdir=/usr/include/X11/bitmaps
9363 # accumulate include directories that have X11 bitmap subdirectories
9365 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9366 if test -d "${bmd}/X11/bitmaps"; then
9367 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9369 if test -d "${bmd}/bitmaps"; then
9370 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9373 if test ${bmd_acc} != "dummyval"; then
9374 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9379 if test "${with_carbon}" != no; then
9380 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9381 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9382 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9383 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9384 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9387 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9389 # Is the header compilable?
9390 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9391 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9392 cat >conftest.$ac_ext <<_ACEOF
9395 cat confdefs.h >>conftest.$ac_ext
9396 cat >>conftest.$ac_ext <<_ACEOF
9397 /* end confdefs.h. */
9398 $ac_includes_default
9399 #include <Carbon/Carbon.h>
9401 rm -f conftest.$ac_objext
9402 if { (ac_try="$ac_compile"
9404 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9405 *) ac_try_echo
=$ac_try;;
9407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9408 (eval "$ac_compile") 2>conftest.er1
9410 grep -v '^ *+' conftest.er1
>conftest.err
9412 cat conftest.err
>&5
9413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414 (exit $ac_status); } && {
9415 test -z "$ac_c_werror_flag" ||
9416 test ! -s conftest.err
9417 } && test -s conftest.
$ac_objext; then
9418 ac_header_compiler
=yes
9420 echo "$as_me: failed program was:" >&5
9421 sed 's/^/| /' conftest.
$ac_ext >&5
9423 ac_header_compiler
=no
9426 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9428 echo "${ECHO_T}$ac_header_compiler" >&6; }
9430 # Is the header present?
9431 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9432 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9433 cat >conftest.
$ac_ext <<_ACEOF
9436 cat confdefs.h
>>conftest.
$ac_ext
9437 cat >>conftest.
$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9439 #include <Carbon/Carbon.h>
9441 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9444 *) ac_try_echo=$ac_try;;
9446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9449 grep -v '^ *+' conftest.er1 >conftest.err
9451 cat conftest.err >&5
9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453 (exit $ac_status); } >/dev/null && {
9454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9455 test ! -s conftest.err
9457 ac_header_preproc=yes
9459 echo "$as_me: failed program was:" >&5
9460 sed 's/^/| /' conftest.$ac_ext >&5
9462 ac_header_preproc=no
9465 rm -f conftest.err conftest.$ac_ext
9466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9467 echo "${ECHO_T}$ac_header_preproc" >&6; }
9469 # So? What about this header?
9470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9472 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9473 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9474 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9475 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9476 ac_header_preproc=yes
9479 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9480 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9481 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9482 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9484 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9485 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9486 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9487 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9488 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9489 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9490 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9494 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9495 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9496 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9497 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9501 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9502 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9505 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9511 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9512 if test "${with_carbon+set}" != set \
9513 && test "${carbon_appdir_x+set}" != set; then
9514 for var in with_x with_x_toolkit with_gtk with_xim \
9515 with_xpm with_jpeg with_tiff with_gif with_png; do
9516 if eval test \"\${$var+set}\" = set; then
9523 if test "${HAVE_CARBON}" = yes; then
9527 case "${window_system}" in
9531 case "${with_x_toolkit}" in
9532 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9533 motif ) USE_X_TOOLKIT=MOTIF ;;
9535 USE_X_TOOLKIT=none ;;
9536 no ) USE_X_TOOLKIT=none ;;
9537 * ) USE_X_TOOLKIT=maybe ;;
9547 ### If we're using X11, we should use the X menu package.
9550 yes ) HAVE_MENUS=yes ;;
9553 if test "${opsys}" = "hpux9"; then
9554 case "${x_libraries}" in
9556 opsysfile="s/hpux9-x11r4.h"
9561 if test "${opsys}" = "hpux9shr"; then
9562 case "${x_libraries}" in
9564 opsysfile="s/hpux9shxr4.h"
9569 ### Compute the unexec source name from the object name.
9570 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9572 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9573 # Assume not, until told otherwise.
9576 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9577 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9578 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 cat >conftest.$ac_ext <<_ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9587 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9589 #define malloc_get_state innocuous_malloc_get_state
9591 /* System header to define __stub macros and hopefully few prototypes,
9592 which can conflict with char malloc_get_state (); below.
9593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9594 <limits.h> exists even on freestanding compilers. */
9597 # include <limits.h>
9599 # include <assert.h>
9602 #undef malloc_get_state
9604 /* Override any GCC internal prototype to avoid an error.
9605 Use char because int might match the return type of a GCC
9606 builtin and then its argument prototype would still apply. */
9610 char malloc_get_state ();
9611 /* The GNU C library defines this for functions which it implements
9612 to always fail with ENOSYS. Some functions are actually named
9613 something starting with __ and the normal name is an alias. */
9614 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9621 return malloc_get_state ();
9626 rm -f conftest.$ac_objext conftest$ac_exeext
9627 if { (ac_try="$ac_link"
9629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9630 *) ac_try_echo
=$ac_try;;
9632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633 (eval "$ac_link") 2>conftest.er1
9635 grep -v '^ *+' conftest.er1
>conftest.err
9637 cat conftest.err
>&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && {
9640 test -z "$ac_c_werror_flag" ||
9641 test ! -s conftest.err
9642 } && test -s conftest
$ac_exeext &&
9643 $as_test_x conftest
$ac_exeext; then
9644 ac_cv_func_malloc_get_state
=yes
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.
$ac_ext >&5
9649 ac_cv_func_malloc_get_state
=no
9652 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9653 conftest
$ac_exeext conftest.
$ac_ext
9655 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9656 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9657 if test $ac_cv_func_malloc_get_state = yes; then
9663 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9664 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9665 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 cat >conftest.
$ac_ext <<_ACEOF
9671 cat confdefs.h
>>conftest.
$ac_ext
9672 cat >>conftest.
$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9676 #define malloc_set_state innocuous_malloc_set_state
9678 /* System header to define __stub macros and hopefully few prototypes,
9679 which can conflict with char malloc_set_state (); below.
9680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9681 <limits.h> exists even on freestanding compilers. */
9684 # include <limits.h>
9686 # include <assert.h>
9689 #undef malloc_set_state
9691 /* Override any GCC internal prototype to avoid an error.
9692 Use char because int might match the return type of a GCC
9693 builtin and then its argument prototype would still apply. */
9697 char malloc_set_state ();
9698 /* The GNU C library defines this for functions which it implements
9699 to always fail with ENOSYS. Some functions are actually named
9700 something starting with __ and the normal name is an alias. */
9701 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9708 return malloc_set_state ();
9713 rm -f conftest.
$ac_objext conftest
$ac_exeext
9714 if { (ac_try
="$ac_link"
9716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9717 *) ac_try_echo=$ac_try;;
9719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9720 (eval "$ac_link") 2>conftest.er1
9722 grep -v '^ *+' conftest.er1 >conftest.err
9724 cat conftest.err >&5
9725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9726 (exit $ac_status); } && {
9727 test -z "$ac_c_werror_flag" ||
9728 test ! -s conftest.err
9729 } && test -s conftest$ac_exeext &&
9730 $as_test_x conftest$ac_exeext; then
9731 ac_cv_func_malloc_set_state=yes
9733 echo "$as_me: failed program was:" >&5
9734 sed 's/^/| /' conftest.$ac_ext >&5
9736 ac_cv_func_malloc_set_state=no
9739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9740 conftest$ac_exeext conftest.$ac_ext
9742 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9743 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9744 if test $ac_cv_func_malloc_set_state = yes; then
9750 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9751 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9752 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9753 echo $ECHO_N "(cached) $ECHO_C" >&6
9755 cat >conftest.$ac_ext <<_ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9761 extern void (* __after_morecore_hook)();
9765 __after_morecore_hook = 0
9770 rm -f conftest.$ac_objext conftest$ac_exeext
9771 if { (ac_try="$ac_link"
9773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9774 *) ac_try_echo
=$ac_try;;
9776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9777 (eval "$ac_link") 2>conftest.er1
9779 grep -v '^ *+' conftest.er1
>conftest.err
9781 cat conftest.err
>&5
9782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9783 (exit $ac_status); } && {
9784 test -z "$ac_c_werror_flag" ||
9785 test ! -s conftest.err
9786 } && test -s conftest
$ac_exeext &&
9787 $as_test_x conftest
$ac_exeext; then
9788 emacs_cv_var___after_morecore_hook
=yes
9790 echo "$as_me: failed program was:" >&5
9791 sed 's/^/| /' conftest.
$ac_ext >&5
9793 emacs_cv_var___after_morecore_hook
=no
9796 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9797 conftest
$ac_exeext conftest.
$ac_ext
9799 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9800 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9801 if test $emacs_cv_var___after_morecore_hook = no
; then
9804 if test "${system_malloc}" = "yes"; then
9807 (The GNU allocators don't work with this system configuration.)"
9809 if test "$doug_lea_malloc" = "yes" ; then
9810 if test "$GNU_MALLOC" = yes ; then
9812 (Using Doug Lea's new malloc from the GNU C Library.)"
9815 cat >>confdefs.h
<<\_ACEOF
9816 #define DOUG_LEA_MALLOC 1
9821 if test x
"${REL_ALLOC}" = x
; then
9822 REL_ALLOC
=${GNU_MALLOC}
9828 for ac_header
in stdlib.h unistd.h
9830 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9831 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9834 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9837 ac_res
=`eval echo '${'$as_ac_Header'}'`
9838 { echo "$as_me:$LINENO: result: $ac_res" >&5
9839 echo "${ECHO_T}$ac_res" >&6; }
9841 # Is the header compilable?
9842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9844 cat >conftest.
$ac_ext <<_ACEOF
9847 cat confdefs.h
>>conftest.
$ac_ext
9848 cat >>conftest.
$ac_ext <<_ACEOF
9849 /* end confdefs.h. */
9850 $ac_includes_default
9851 #include <$ac_header>
9853 rm -f conftest.
$ac_objext
9854 if { (ac_try
="$ac_compile"
9856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9860 (eval "$ac_compile") 2>conftest.er1
9862 grep -v '^ *+' conftest.er1 >conftest.err
9864 cat conftest.err >&5
9865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9866 (exit $ac_status); } && {
9867 test -z "$ac_c_werror_flag" ||
9868 test ! -s conftest.err
9869 } && test -s conftest.$ac_objext; then
9870 ac_header_compiler=yes
9872 echo "$as_me: failed program was:" >&5
9873 sed 's/^/| /' conftest.$ac_ext >&5
9875 ac_header_compiler=no
9878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9879 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9880 echo "${ECHO_T}$ac_header_compiler" >&6; }
9882 # Is the header present?
9883 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9884 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9885 cat >conftest.$ac_ext <<_ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 #include <$ac_header>
9893 if { (ac_try="$ac_cpp conftest.$ac_ext"
9895 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9896 *) ac_try_echo
=$ac_try;;
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9901 grep -v '^ *+' conftest.er1
>conftest.err
9903 cat conftest.err
>&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } >/dev
/null
&& {
9906 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9907 test ! -s conftest.err
9909 ac_header_preproc
=yes
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.
$ac_ext >&5
9914 ac_header_preproc
=no
9917 rm -f conftest.err conftest.
$ac_ext
9918 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9919 echo "${ECHO_T}$ac_header_preproc" >&6; }
9921 # So? What about this header?
9922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9925 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9927 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9928 ac_header_preproc
=yes
9931 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9932 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9933 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9934 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9935 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9936 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9938 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9941 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9942 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9946 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9948 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9949 echo $ECHO_N "(cached) $ECHO_C" >&6
9951 eval "$as_ac_Header=\$ac_header_preproc"
9953 ac_res
=`eval echo '${'$as_ac_Header'}'`
9954 { echo "$as_me:$LINENO: result: $ac_res" >&5
9955 echo "${ECHO_T}$ac_res" >&6; }
9958 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9959 cat >>confdefs.h
<<_ACEOF
9960 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9968 for ac_func
in getpagesize
9970 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9971 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9972 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9973 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 cat >conftest.
$ac_ext <<_ACEOF
9979 cat confdefs.h
>>conftest.
$ac_ext
9980 cat >>conftest.
$ac_ext <<_ACEOF
9981 /* end confdefs.h. */
9982 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9984 #define $ac_func innocuous_$ac_func
9986 /* System header to define __stub macros and hopefully few prototypes,
9987 which can conflict with char $ac_func (); below.
9988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9989 <limits.h> exists even on freestanding compilers. */
9992 # include <limits.h>
9994 # include <assert.h>
9999 /* Override any GCC internal prototype to avoid an error.
10000 Use char because int might match the return type of a GCC
10001 builtin and then its argument prototype would still apply. */
10006 /* The GNU C library defines this for functions which it implements
10007 to always fail with ENOSYS. Some functions are actually named
10008 something starting with __ and the normal name is an alias. */
10009 #if defined __stub_$ac_func || defined __stub___$ac_func
10016 return $ac_func ();
10021 rm -f conftest.
$ac_objext conftest
$ac_exeext
10022 if { (ac_try
="$ac_link"
10023 case "(($ac_try" in
10024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10025 *) ac_try_echo=$ac_try;;
10027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10028 (eval "$ac_link") 2>conftest.er1
10030 grep -v '^ *+' conftest.er1 >conftest.err
10032 cat conftest.err >&5
10033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034 (exit $ac_status); } && {
10035 test -z "$ac_c_werror_flag" ||
10036 test ! -s conftest.err
10037 } && test -s conftest$ac_exeext &&
10038 $as_test_x conftest$ac_exeext; then
10039 eval "$as_ac_var=yes"
10041 echo "$as_me: failed program was:" >&5
10042 sed 's/^/| /' conftest.$ac_ext >&5
10044 eval "$as_ac_var=no"
10047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10048 conftest$ac_exeext conftest.$ac_ext
10050 ac_res=`eval echo '${'$as_ac_var'}'`
10051 { echo "$as_me:$LINENO: result: $ac_res" >&5
10052 echo "${ECHO_T}$ac_res" >&6; }
10053 if test `eval echo '${'$as_ac_var'}'` = yes; then
10054 cat >>confdefs.h <<_ACEOF
10055 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10061 { echo "$as_me:$LINENO: checking for working mmap" >&5
10062 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10063 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10066 if test "$cross_compiling" = yes; then
10067 ac_cv_func_mmap_fixed_mapped=no
10069 cat >conftest.$ac_ext <<_ACEOF
10072 cat confdefs.h >>conftest.$ac_ext
10073 cat >>conftest.$ac_ext <<_ACEOF
10074 /* end confdefs.h. */
10075 $ac_includes_default
10076 /* malloc might have been renamed as rpl_malloc. */
10079 /* Thanks to Mike Haertel and Jim Avera for this test.
10080 Here is a matrix of mmap possibilities:
10081 mmap private not fixed
10082 mmap private fixed at somewhere currently unmapped
10083 mmap private fixed at somewhere already mapped
10084 mmap shared not fixed
10085 mmap shared fixed at somewhere currently unmapped
10086 mmap shared fixed at somewhere already mapped
10087 For private mappings, we should verify that changes cannot be read()
10088 back from the file, nor mmap's back from the file at a different
10089 address. (There have been systems where private was not correctly
10090 implemented like the infamous i386 svr4.0, and systems where the
10091 VM page cache was not coherent with the file system buffer cache
10092 like early versions of FreeBSD and possibly contemporary NetBSD.)
10093 For shared mappings, we should conversely verify that changes get
10094 propagated back to all the places they're supposed to be.
10096 Grep wants private fixed already mapped.
10097 The main things grep needs to know about mmap are:
10098 * does it exist and is it safe to write into the mmap'd area
10099 * how to use it (BSD variants) */
10102 #include <sys/mman.h>
10104 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10108 /* This mess was copied from the GNU getpagesize.h. */
10109 #ifndef HAVE_GETPAGESIZE
10110 /* Assume that all systems that can run configure have sys/param.h. */
10111 # ifndef HAVE_SYS_PARAM_H
10112 # define HAVE_SYS_PARAM_H 1
10115 # ifdef _SC_PAGESIZE
10116 # define getpagesize() sysconf(_SC_PAGESIZE)
10117 # else /* no _SC_PAGESIZE */
10118 # ifdef HAVE_SYS_PARAM_H
10119 # include <sys/param.h>
10120 # ifdef EXEC_PAGESIZE
10121 # define getpagesize() EXEC_PAGESIZE
10122 # else /* no EXEC_PAGESIZE */
10124 # define getpagesize() NBPG * CLSIZE
10127 # endif /* no CLSIZE */
10128 # else /* no NBPG */
10130 # define getpagesize() NBPC
10131 # else /* no NBPC */
10133 # define getpagesize() PAGESIZE
10134 # endif /* PAGESIZE */
10135 # endif /* no NBPC */
10136 # endif /* no NBPG */
10137 # endif /* no EXEC_PAGESIZE */
10138 # else /* no HAVE_SYS_PARAM_H */
10139 # define getpagesize() 8192 /* punt totally */
10140 # endif /* no HAVE_SYS_PARAM_H */
10141 # endif /* no _SC_PAGESIZE */
10143 #endif /* no HAVE_GETPAGESIZE */
10148 char *data, *data2, *data3;
10152 pagesize = getpagesize ();
10154 /* First, make a file with some known garbage in it. */
10155 data = (char *) malloc (pagesize);
10158 for (i = 0; i < pagesize; ++i)
10159 *(data + i) = rand ();
10161 fd = creat ("conftest.mmap", 0600);
10164 if (write (fd, data, pagesize) != pagesize)
10168 /* Next, try to mmap the file at a fixed address which already has
10169 something else allocated at it. If we can, also make sure that
10170 we see the same garbage. */
10171 fd = open ("conftest.mmap", O_RDWR);
10174 data2 = (char *) malloc (2 * pagesize);
10177 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10178 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10179 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10181 for (i = 0; i < pagesize; ++i)
10182 if (*(data + i) != *(data2 + i))
10185 /* Finally, make sure that changes to the mapped area do not
10186 percolate back to the file as seen by read(). (This is a bug on
10187 some variants of i386 svr4.0.) */
10188 for (i = 0; i < pagesize; ++i)
10189 *(data2 + i) = *(data2 + i) + 1;
10190 data3 = (char *) malloc (pagesize);
10193 if (read (fd, data3, pagesize) != pagesize)
10195 for (i = 0; i < pagesize; ++i)
10196 if (*(data + i) != *(data3 + i))
10202 rm -f conftest$ac_exeext
10203 if { (ac_try="$ac_link"
10204 case "(($ac_try" in
10205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10206 *) ac_try_echo
=$ac_try;;
10208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10209 (eval "$ac_link") 2>&5
10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10212 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10213 { (case "(($ac_try" in
10214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_try") 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 ac_cv_func_mmap_fixed_mapped=yes
10224 echo "$as_me: program exited with status $ac_status" >&5
10225 echo "$as_me: failed program was:" >&5
10226 sed 's/^/| /' conftest.$ac_ext >&5
10228 ( exit $ac_status )
10229 ac_cv_func_mmap_fixed_mapped=no
10231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10236 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10237 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10238 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10240 cat >>confdefs.h <<\_ACEOF
10241 #define HAVE_MMAP 1
10245 rm -f conftest.mmap
10247 if test $use_mmap_for_buffers = yes; then
10251 LIBS="$libsrc_libs $LIBS"
10254 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10255 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10256 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10257 echo $ECHO_N "(cached) $ECHO_C" >&6
10259 ac_check_lib_save_LIBS=$LIBS
10260 LIBS="-ldnet $LIBS"
10261 cat >conftest.$ac_ext <<_ACEOF
10264 cat confdefs.h >>conftest.$ac_ext
10265 cat >>conftest.$ac_ext <<_ACEOF
10266 /* end confdefs.h. */
10268 /* Override any GCC internal prototype to avoid an error.
10269 Use char because int might match the return type of a GCC
10270 builtin and then its argument prototype would still apply. */
10278 return dnet_ntoa ();
10283 rm -f conftest.$ac_objext conftest$ac_exeext
10284 if { (ac_try="$ac_link"
10285 case "(($ac_try" in
10286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10287 *) ac_try_echo
=$ac_try;;
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_link") 2>conftest.er1
10292 grep -v '^ *+' conftest.er1
>conftest.err
10294 cat conftest.err
>&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } && {
10297 test -z "$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10299 } && test -s conftest
$ac_exeext &&
10300 $as_test_x conftest
$ac_exeext; then
10301 ac_cv_lib_dnet_dnet_ntoa
=yes
10303 echo "$as_me: failed program was:" >&5
10304 sed 's/^/| /' conftest.
$ac_ext >&5
10306 ac_cv_lib_dnet_dnet_ntoa
=no
10309 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10310 conftest
$ac_exeext conftest.
$ac_ext
10311 LIBS
=$ac_check_lib_save_LIBS
10313 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10314 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10315 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10316 cat >>confdefs.h
<<_ACEOF
10317 #define HAVE_LIBDNET 1
10320 LIBS
="-ldnet $LIBS"
10325 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10326 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10327 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10328 echo $ECHO_N "(cached) $ECHO_C" >&6
10330 ac_check_lib_save_LIBS
=$LIBS
10331 LIBS
="-lXbsd $LIBS"
10332 cat >conftest.
$ac_ext <<_ACEOF
10335 cat confdefs.h
>>conftest.
$ac_ext
10336 cat >>conftest.
$ac_ext <<_ACEOF
10337 /* end confdefs.h. */
10348 rm -f conftest.
$ac_objext conftest
$ac_exeext
10349 if { (ac_try
="$ac_link"
10350 case "(($ac_try" in
10351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10352 *) ac_try_echo=$ac_try;;
10354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10355 (eval "$ac_link") 2>conftest.er1
10357 grep -v '^ *+' conftest.er1 >conftest.err
10359 cat conftest.err >&5
10360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10361 (exit $ac_status); } && {
10362 test -z "$ac_c_werror_flag" ||
10363 test ! -s conftest.err
10364 } && test -s conftest$ac_exeext &&
10365 $as_test_x conftest$ac_exeext; then
10366 ac_cv_lib_Xbsd_main=yes
10368 echo "$as_me: failed program was:" >&5
10369 sed 's/^/| /' conftest.$ac_ext >&5
10371 ac_cv_lib_Xbsd_main=no
10374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10375 conftest$ac_exeext conftest.$ac_ext
10376 LIBS=$ac_check_lib_save_LIBS
10378 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10379 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10380 if test $ac_cv_lib_Xbsd_main = yes; then
10381 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10386 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10387 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10388 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10391 ac_check_lib_save_LIBS=$LIBS
10392 LIBS="-lpthreads $LIBS"
10393 cat >conftest.$ac_ext <<_ACEOF
10396 cat confdefs.h >>conftest.$ac_ext
10397 cat >>conftest.$ac_ext <<_ACEOF
10398 /* end confdefs.h. */
10400 /* Override any GCC internal prototype to avoid an error.
10401 Use char because int might match the return type of a GCC
10402 builtin and then its argument prototype would still apply. */
10410 return cma_open ();
10415 rm -f conftest.$ac_objext conftest$ac_exeext
10416 if { (ac_try="$ac_link"
10417 case "(($ac_try" in
10418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10419 *) ac_try_echo
=$ac_try;;
10421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10422 (eval "$ac_link") 2>conftest.er1
10424 grep -v '^ *+' conftest.er1
>conftest.err
10426 cat conftest.err
>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); } && {
10429 test -z "$ac_c_werror_flag" ||
10430 test ! -s conftest.err
10431 } && test -s conftest
$ac_exeext &&
10432 $as_test_x conftest
$ac_exeext; then
10433 ac_cv_lib_pthreads_cma_open
=yes
10435 echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.
$ac_ext >&5
10438 ac_cv_lib_pthreads_cma_open
=no
10441 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10442 conftest
$ac_exeext conftest.
$ac_ext
10443 LIBS
=$ac_check_lib_save_LIBS
10445 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10446 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10447 if test $ac_cv_lib_pthreads_cma_open = yes; then
10448 cat >>confdefs.h
<<_ACEOF
10449 #define HAVE_LIBPTHREADS 1
10452 LIBS
="-lpthreads $LIBS"
10457 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10458 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10459 if test -d /usr
/X386
/include
; then
10461 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10465 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10466 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10471 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10472 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10473 if test "${gdb_cv_bigtoc+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10478 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10479 *) gdb_cv_bigtoc
=-bbigtoc ;;
10482 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10483 cat >conftest.
$ac_ext <<_ACEOF
10486 cat confdefs.h
>>conftest.
$ac_ext
10487 cat >>conftest.
$ac_ext <<_ACEOF
10488 /* end confdefs.h. */
10498 rm -f conftest.
$ac_objext conftest
$ac_exeext
10499 if { (ac_try
="$ac_link"
10500 case "(($ac_try" in
10501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10505 (eval "$ac_link") 2>conftest.er1
10507 grep -v '^ *+' conftest.er1 >conftest.err
10509 cat conftest.err >&5
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); } && {
10512 test -z "$ac_c_werror_flag" ||
10513 test ! -s conftest.err
10514 } && test -s conftest$ac_exeext &&
10515 $as_test_x conftest$ac_exeext; then
10518 echo "$as_me: failed program was:" >&5
10519 sed 's/^/| /' conftest.$ac_ext >&5
10524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10525 conftest$ac_exeext conftest.$ac_ext
10528 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10529 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10533 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10534 # used for the tests that follow. We set them back to REAL_CFLAGS and
10535 # REAL_CPPFLAGS later on.
10537 REAL_CPPFLAGS="$CPPFLAGS"
10539 if test "${HAVE_X11}" = "yes"; then
10540 DEFS="$C_SWITCH_X_SITE $DEFS"
10541 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10543 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10544 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10546 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10547 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10548 # but it's more convenient here to set LD_RUN_PATH
10549 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10550 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10551 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10555 if test "${opsys}" = "gnu-linux"; then
10556 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10557 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10558 cat >conftest.$ac_ext <<_ACEOF
10561 cat confdefs.h >>conftest.$ac_ext
10562 cat >>conftest.$ac_ext <<_ACEOF
10563 /* end confdefs.h. */
10568 XOpenDisplay ("foo");
10573 rm -f conftest.$ac_objext conftest$ac_exeext
10574 if { (ac_try="$ac_link"
10575 case "(($ac_try" in
10576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10577 *) ac_try_echo
=$ac_try;;
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_link") 2>conftest.er1
10582 grep -v '^ *+' conftest.er1
>conftest.err
10584 cat conftest.err
>&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } && {
10587 test -z "$ac_c_werror_flag" ||
10588 test ! -s conftest.err
10589 } && test -s conftest
$ac_exeext &&
10590 $as_test_x conftest
$ac_exeext; then
10591 xlinux_first_failure
=no
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.
$ac_ext >&5
10596 xlinux_first_failure
=yes
10599 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10600 conftest
$ac_exeext conftest.
$ac_ext
10601 if test "${xlinux_first_failure}" = "yes"; then
10602 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10603 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10604 OLD_CPPFLAGS
="$CPPFLAGS"
10606 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10607 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10608 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10609 LIBS
="$LIBS -b i486-linuxaout"
10610 cat >conftest.
$ac_ext <<_ACEOF
10613 cat confdefs.h
>>conftest.
$ac_ext
10614 cat >>conftest.
$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10620 XOpenDisplay ("foo");
10625 rm -f conftest.
$ac_objext conftest
$ac_exeext
10626 if { (ac_try
="$ac_link"
10627 case "(($ac_try" in
10628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10629 *) ac_try_echo=$ac_try;;
10631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10632 (eval "$ac_link") 2>conftest.er1
10634 grep -v '^ *+' conftest.er1 >conftest.err
10636 cat conftest.err >&5
10637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10638 (exit $ac_status); } && {
10639 test -z "$ac_c_werror_flag" ||
10640 test ! -s conftest.err
10641 } && test -s conftest$ac_exeext &&
10642 $as_test_x conftest$ac_exeext; then
10643 xlinux_second_failure=no
10645 echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.$ac_ext >&5
10648 xlinux_second_failure=yes
10651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10652 conftest$ac_exeext conftest.$ac_ext
10653 if test "${xlinux_second_failure}" = "yes"; then
10654 # If we get the same failure with -b, there is no use adding -b.
10655 # So take it out. This plays safe.
10656 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10657 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10658 CPPFLAGS="$OLD_CPPFLAGS"
10660 { echo "$as_me:$LINENO: result: no" >&5
10661 echo "${ECHO_T}no" >&6; }
10663 { echo "$as_me:$LINENO: result: yes" >&5
10664 echo "${ECHO_T}yes" >&6; }
10667 { echo "$as_me:$LINENO: result: no" >&5
10668 echo "${ECHO_T}no" >&6; }
10672 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10673 # header files included from there.
10674 { echo "$as_me:$LINENO: checking for Xkb" >&5
10675 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10676 cat >conftest.$ac_ext <<_ACEOF
10679 cat confdefs.h >>conftest.$ac_ext
10680 cat >>conftest.$ac_ext <<_ACEOF
10681 /* end confdefs.h. */
10682 #include <X11/Xlib.h>
10683 #include <X11/XKBlib.h>
10687 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10692 rm -f conftest.$ac_objext conftest$ac_exeext
10693 if { (ac_try="$ac_link"
10694 case "(($ac_try" in
10695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10696 *) ac_try_echo
=$ac_try;;
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_link") 2>conftest.er1
10701 grep -v '^ *+' conftest.er1
>conftest.err
10703 cat conftest.err
>&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && {
10706 test -z "$ac_c_werror_flag" ||
10707 test ! -s conftest.err
10708 } && test -s conftest
$ac_exeext &&
10709 $as_test_x conftest
$ac_exeext; then
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.
$ac_ext >&5
10718 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10719 conftest
$ac_exeext conftest.
$ac_ext
10720 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10721 echo "${ECHO_T}$emacs_xkb" >&6; }
10722 if test $emacs_xkb = yes; then
10724 cat >>confdefs.h
<<\_ACEOF
10725 #define HAVE_XKBGETKEYBOARD 1
10734 for ac_func
in XrmSetDatabase XScreenResourceString \
10735 XScreenNumberOfScreen XSetWMProtocols
10737 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10738 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10739 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10740 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 cat >conftest.
$ac_ext <<_ACEOF
10746 cat confdefs.h
>>conftest.
$ac_ext
10747 cat >>conftest.
$ac_ext <<_ACEOF
10748 /* end confdefs.h. */
10749 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10750 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10751 #define $ac_func innocuous_$ac_func
10753 /* System header to define __stub macros and hopefully few prototypes,
10754 which can conflict with char $ac_func (); below.
10755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10756 <limits.h> exists even on freestanding compilers. */
10759 # include <limits.h>
10761 # include <assert.h>
10766 /* Override any GCC internal prototype to avoid an error.
10767 Use char because int might match the return type of a GCC
10768 builtin and then its argument prototype would still apply. */
10773 /* The GNU C library defines this for functions which it implements
10774 to always fail with ENOSYS. Some functions are actually named
10775 something starting with __ and the normal name is an alias. */
10776 #if defined __stub_$ac_func || defined __stub___$ac_func
10783 return $ac_func ();
10788 rm -f conftest.
$ac_objext conftest
$ac_exeext
10789 if { (ac_try
="$ac_link"
10790 case "(($ac_try" in
10791 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_link") 2>conftest.er1
10797 grep -v '^ *+' conftest.er1 >conftest.err
10799 cat conftest.err >&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && {
10802 test -z "$ac_c_werror_flag" ||
10803 test ! -s conftest.err
10804 } && test -s conftest$ac_exeext &&
10805 $as_test_x conftest$ac_exeext; then
10806 eval "$as_ac_var=yes"
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.$ac_ext >&5
10811 eval "$as_ac_var=no"
10814 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10815 conftest$ac_exeext conftest.$ac_ext
10817 ac_res=`eval echo '${'$as_ac_var'}'`
10818 { echo "$as_me:$LINENO: result: $ac_res" >&5
10819 echo "${ECHO_T}$ac_res" >&6; }
10820 if test `eval echo '${'$as_ac_var'}'` = yes; then
10821 cat >>confdefs.h <<_ACEOF
10822 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10830 if test "${window_system}" = "x11"; then
10831 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10832 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10833 if test "${emacs_cv_x11_version_6+set}" = set; then
10834 echo $ECHO_N "(cached) $ECHO_C" >&6
10836 cat >conftest.$ac_ext <<_ACEOF
10839 cat confdefs.h >>conftest.$ac_ext
10840 cat >>conftest.$ac_ext <<_ACEOF
10841 /* end confdefs.h. */
10842 #include <X11/Xlib.h>
10846 #if XlibSpecificationRelease < 6
10854 rm -f conftest.$ac_objext conftest$ac_exeext
10855 if { (ac_try="$ac_link"
10856 case "(($ac_try" in
10857 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10858 *) ac_try_echo
=$ac_try;;
10860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10861 (eval "$ac_link") 2>conftest.er1
10863 grep -v '^ *+' conftest.er1
>conftest.err
10865 cat conftest.err
>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); } && {
10868 test -z "$ac_c_werror_flag" ||
10869 test ! -s conftest.err
10870 } && test -s conftest
$ac_exeext &&
10871 $as_test_x conftest
$ac_exeext; then
10872 emacs_cv_x11_version_6
=yes
10874 echo "$as_me: failed program was:" >&5
10875 sed 's/^/| /' conftest.
$ac_ext >&5
10877 emacs_cv_x11_version_6
=no
10880 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10881 conftest
$ac_exeext conftest.
$ac_ext
10884 if test $emacs_cv_x11_version_6 = yes; then
10885 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10886 echo "${ECHO_T}6 or newer" >&6; }
10888 cat >>confdefs.h
<<\_ACEOF
10889 #define HAVE_X11R6 1
10893 { echo "$as_me:$LINENO: result: before 6" >&5
10894 echo "${ECHO_T}before 6" >&6; }
10898 if test "${window_system}" = "x11"; then
10899 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10900 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10901 if test "${emacs_cv_x11_version_5+set}" = set; then
10902 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 cat >conftest.
$ac_ext <<_ACEOF
10907 cat confdefs.h
>>conftest.
$ac_ext
10908 cat >>conftest.
$ac_ext <<_ACEOF
10909 /* end confdefs.h. */
10910 #include <X11/Xlib.h>
10914 #if XlibSpecificationRelease < 5
10922 rm -f conftest.
$ac_objext conftest
$ac_exeext
10923 if { (ac_try
="$ac_link"
10924 case "(($ac_try" in
10925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10926 *) ac_try_echo=$ac_try;;
10928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10929 (eval "$ac_link") 2>conftest.er1
10931 grep -v '^ *+' conftest.er1 >conftest.err
10933 cat conftest.err >&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); } && {
10936 test -z "$ac_c_werror_flag" ||
10937 test ! -s conftest.err
10938 } && test -s conftest$ac_exeext &&
10939 $as_test_x conftest$ac_exeext; then
10940 emacs_cv_x11_version_5=yes
10942 echo "$as_me: failed program was:" >&5
10943 sed 's/^/| /' conftest.$ac_ext >&5
10945 emacs_cv_x11_version_5=no
10948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10949 conftest$ac_exeext conftest.$ac_ext
10952 if test $emacs_cv_x11_version_5 = yes; then
10953 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10954 echo "${ECHO_T}5 or newer" >&6; }
10957 cat >>confdefs.h <<\_ACEOF
10958 #define HAVE_X11R5 1
10963 { echo "$as_me:$LINENO: result: before 5" >&5
10964 echo "${ECHO_T}before 5" >&6; }
10969 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10972 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10973 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10974 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10975 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10976 { (exit 1); exit 1; }; };
10980 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10982 if test "X${with_pkg_config_prog}" != X; then
10983 PKG_CONFIG="${with_pkg_config_prog}"
10988 if test -z "$PKG_CONFIG"; then
10989 # Extract the first word of "pkg-config", so it can be a program name with args.
10990 set dummy pkg-config; ac_word=$2
10991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10993 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10994 echo $ECHO_N "(cached) $ECHO_C" >&6
10996 case $PKG_CONFIG in
10998 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002 for as_dir in $PATH
11005 test -z "$as_dir" && as_dir=.
11006 for ac_exec_ext in '' $ac_executable_extensions; do
11007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11008 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11016 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11020 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11021 if test -n "$PKG_CONFIG"; then
11022 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11023 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11025 { echo "$as_me:$LINENO: result: no" >&5
11026 echo "${ECHO_T}no" >&6; }
11032 if test "$PKG_CONFIG" = "no" ; then
11033 { { echo "$as_me:$LINENO: error:
11034 *** 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
11035 echo "$as_me: error:
11036 *** 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;}
11037 { (exit 1); exit 1; }; }
11039 PKG_CONFIG_MIN_VERSION=0.9.0
11040 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11041 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11042 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11044 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11045 { echo "$as_me:$LINENO: result: yes" >&5
11046 echo "${ECHO_T}yes" >&6; }
11049 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11050 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11051 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11052 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11053 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11055 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11056 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11057 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
11058 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11059 echo "${ECHO_T}$GTK_LIBS" >&6; }
11061 { echo "$as_me:$LINENO: result: no" >&5
11062 echo "${ECHO_T}no" >&6; }
11065 ## If we have a custom action on failure, don't print errors, but
11066 ## do set a variable so people can do so.
11067 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11068 echo $GTK_PKG_ERRORS
11074 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11075 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11079 if test $succeeded = yes; then
11082 { { 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
11083 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;}
11084 { (exit 1); exit 1; }; }
11089 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11090 CFLAGS="$CFLAGS $GTK_CFLAGS"
11091 LIBS="$GTK_LIBS $LIBS"
11094 for ac_func in gtk_main
11096 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11102 cat >conftest.$ac_ext <<_ACEOF
11105 cat confdefs.h >>conftest.$ac_ext
11106 cat >>conftest.$ac_ext <<_ACEOF
11107 /* end confdefs.h. */
11108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11110 #define $ac_func innocuous_$ac_func
11112 /* System header to define __stub macros and hopefully few prototypes,
11113 which can conflict with char $ac_func (); below.
11114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11115 <limits.h> exists even on freestanding compilers. */
11118 # include <limits.h>
11120 # include <assert.h>
11125 /* Override any GCC internal prototype to avoid an error.
11126 Use char because int might match the return type of a GCC
11127 builtin and then its argument prototype would still apply. */
11132 /* The GNU C library defines this for functions which it implements
11133 to always fail with ENOSYS. Some functions are actually named
11134 something starting with __ and the normal name is an alias. */
11135 #if defined __stub_$ac_func || defined __stub___$ac_func
11142 return $ac_func ();
11147 rm -f conftest.$ac_objext conftest$ac_exeext
11148 if { (ac_try="$ac_link"
11149 case "(($ac_try" in
11150 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11151 *) ac_try_echo
=$ac_try;;
11153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11154 (eval "$ac_link") 2>conftest.er1
11156 grep -v '^ *+' conftest.er1
>conftest.err
11158 cat conftest.err
>&5
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); } && {
11161 test -z "$ac_c_werror_flag" ||
11162 test ! -s conftest.err
11163 } && test -s conftest
$ac_exeext &&
11164 $as_test_x conftest
$ac_exeext; then
11165 eval "$as_ac_var=yes"
11167 echo "$as_me: failed program was:" >&5
11168 sed 's/^/| /' conftest.
$ac_ext >&5
11170 eval "$as_ac_var=no"
11173 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11174 conftest
$ac_exeext conftest.
$ac_ext
11176 ac_res
=`eval echo '${'$as_ac_var'}'`
11177 { echo "$as_me:$LINENO: result: $ac_res" >&5
11178 echo "${ECHO_T}$ac_res" >&6; }
11179 if test `eval echo '${'$as_ac_var'}'` = yes; then
11180 cat >>confdefs.h
<<_ACEOF
11181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11187 if test "${GTK_COMPILES}" != "yes"; then
11188 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11189 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11190 { (exit 1); exit 1; }; };
11195 cat >>confdefs.h
<<\_ACEOF
11201 if test "$with_toolkit_scroll_bars" != no
; then
11202 with_toolkit_scroll_bars
=yes
11205 HAVE_GTK_MULTIDISPLAY
=no
11207 for ac_func
in gdk_display_open
11209 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11212 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11215 cat >conftest.
$ac_ext <<_ACEOF
11218 cat confdefs.h
>>conftest.
$ac_ext
11219 cat >>conftest.
$ac_ext <<_ACEOF
11220 /* end confdefs.h. */
11221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11223 #define $ac_func innocuous_$ac_func
11225 /* System header to define __stub macros and hopefully few prototypes,
11226 which can conflict with char $ac_func (); below.
11227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11228 <limits.h> exists even on freestanding compilers. */
11231 # include <limits.h>
11233 # include <assert.h>
11238 /* Override any GCC internal prototype to avoid an error.
11239 Use char because int might match the return type of a GCC
11240 builtin and then its argument prototype would still apply. */
11245 /* The GNU C library defines this for functions which it implements
11246 to always fail with ENOSYS. Some functions are actually named
11247 something starting with __ and the normal name is an alias. */
11248 #if defined __stub_$ac_func || defined __stub___$ac_func
11255 return $ac_func ();
11260 rm -f conftest.
$ac_objext conftest
$ac_exeext
11261 if { (ac_try
="$ac_link"
11262 case "(($ac_try" in
11263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_link") 2>conftest.er1
11269 grep -v '^ *+' conftest.er1 >conftest.err
11271 cat conftest.err >&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } && {
11274 test -z "$ac_c_werror_flag" ||
11275 test ! -s conftest.err
11276 } && test -s conftest$ac_exeext &&
11277 $as_test_x conftest$ac_exeext; then
11278 eval "$as_ac_var=yes"
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.$ac_ext >&5
11283 eval "$as_ac_var=no"
11286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11287 conftest$ac_exeext conftest.$ac_ext
11289 ac_res=`eval echo '${'$as_ac_var'}'`
11290 { echo "$as_me:$LINENO: result: $ac_res" >&5
11291 echo "${ECHO_T}$ac_res" >&6; }
11292 if test `eval echo '${'$as_ac_var'}'` = yes; then
11293 cat >>confdefs.h <<_ACEOF
11294 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11296 HAVE_GTK_MULTIDISPLAY=yes
11300 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11302 cat >>confdefs.h <<\_ACEOF
11303 #define HAVE_GTK_MULTIDISPLAY 1
11307 HAVE_GTK_FILE_SELECTION=no
11309 for ac_func in gtk_file_selection_new
11311 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11315 echo $ECHO_N "(cached) $ECHO_C" >&6
11317 cat >conftest.$ac_ext <<_ACEOF
11320 cat confdefs.h >>conftest.$ac_ext
11321 cat >>conftest.$ac_ext <<_ACEOF
11322 /* end confdefs.h. */
11323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11325 #define $ac_func innocuous_$ac_func
11327 /* System header to define __stub macros and hopefully few prototypes,
11328 which can conflict with char $ac_func (); below.
11329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11330 <limits.h> exists even on freestanding compilers. */
11333 # include <limits.h>
11335 # include <assert.h>
11340 /* Override any GCC internal prototype to avoid an error.
11341 Use char because int might match the return type of a GCC
11342 builtin and then its argument prototype would still apply. */
11347 /* The GNU C library defines this for functions which it implements
11348 to always fail with ENOSYS. Some functions are actually named
11349 something starting with __ and the normal name is an alias. */
11350 #if defined __stub_$ac_func || defined __stub___$ac_func
11357 return $ac_func ();
11362 rm -f conftest.$ac_objext conftest$ac_exeext
11363 if { (ac_try="$ac_link"
11364 case "(($ac_try" in
11365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11366 *) ac_try_echo
=$ac_try;;
11368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11369 (eval "$ac_link") 2>conftest.er1
11371 grep -v '^ *+' conftest.er1
>conftest.err
11373 cat conftest.err
>&5
11374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11375 (exit $ac_status); } && {
11376 test -z "$ac_c_werror_flag" ||
11377 test ! -s conftest.err
11378 } && test -s conftest
$ac_exeext &&
11379 $as_test_x conftest
$ac_exeext; then
11380 eval "$as_ac_var=yes"
11382 echo "$as_me: failed program was:" >&5
11383 sed 's/^/| /' conftest.
$ac_ext >&5
11385 eval "$as_ac_var=no"
11388 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11389 conftest
$ac_exeext conftest.
$ac_ext
11391 ac_res
=`eval echo '${'$as_ac_var'}'`
11392 { echo "$as_me:$LINENO: result: $ac_res" >&5
11393 echo "${ECHO_T}$ac_res" >&6; }
11394 if test `eval echo '${'$as_ac_var'}'` = yes; then
11395 cat >>confdefs.h
<<_ACEOF
11396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11398 HAVE_GTK_FILE_SELECTION
=yes
11403 HAVE_GTK_FILE_CHOOSER
=no
11405 for ac_func
in gtk_file_chooser_dialog_new
11407 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11410 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11411 echo $ECHO_N "(cached) $ECHO_C" >&6
11413 cat >conftest.
$ac_ext <<_ACEOF
11416 cat confdefs.h
>>conftest.
$ac_ext
11417 cat >>conftest.
$ac_ext <<_ACEOF
11418 /* end confdefs.h. */
11419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11421 #define $ac_func innocuous_$ac_func
11423 /* System header to define __stub macros and hopefully few prototypes,
11424 which can conflict with char $ac_func (); below.
11425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11426 <limits.h> exists even on freestanding compilers. */
11429 # include <limits.h>
11431 # include <assert.h>
11436 /* Override any GCC internal prototype to avoid an error.
11437 Use char because int might match the return type of a GCC
11438 builtin and then its argument prototype would still apply. */
11443 /* The GNU C library defines this for functions which it implements
11444 to always fail with ENOSYS. Some functions are actually named
11445 something starting with __ and the normal name is an alias. */
11446 #if defined __stub_$ac_func || defined __stub___$ac_func
11453 return $ac_func ();
11458 rm -f conftest.
$ac_objext conftest
$ac_exeext
11459 if { (ac_try
="$ac_link"
11460 case "(($ac_try" in
11461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11462 *) ac_try_echo=$ac_try;;
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_link") 2>conftest.er1
11467 grep -v '^ *+' conftest.er1 >conftest.err
11469 cat conftest.err >&5
11470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471 (exit $ac_status); } && {
11472 test -z "$ac_c_werror_flag" ||
11473 test ! -s conftest.err
11474 } && test -s conftest$ac_exeext &&
11475 $as_test_x conftest$ac_exeext; then
11476 eval "$as_ac_var=yes"
11478 echo "$as_me: failed program was:" >&5
11479 sed 's/^/| /' conftest.$ac_ext >&5
11481 eval "$as_ac_var=no"
11484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11485 conftest$ac_exeext conftest.$ac_ext
11487 ac_res=`eval echo '${'$as_ac_var'}'`
11488 { echo "$as_me:$LINENO: result: $ac_res" >&5
11489 echo "${ECHO_T}$ac_res" >&6; }
11490 if test `eval echo '${'$as_ac_var'}'` = yes; then
11491 cat >>confdefs.h <<_ACEOF
11492 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11494 HAVE_GTK_FILE_CHOOSER=yes
11499 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11500 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11502 cat >>confdefs.h <<\_ACEOF
11503 #define HAVE_GTK_FILE_BOTH 1
11508 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11509 HAVE_GTK_AND_PTHREAD=no
11511 for ac_header in pthread.h
11513 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11518 echo $ECHO_N "(cached) $ECHO_C" >&6
11520 ac_res=`eval echo '${'$as_ac_Header'}'`
11521 { echo "$as_me:$LINENO: result: $ac_res" >&5
11522 echo "${ECHO_T}$ac_res" >&6; }
11524 # Is the header compilable?
11525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11527 cat >conftest.$ac_ext <<_ACEOF
11530 cat confdefs.h >>conftest.$ac_ext
11531 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11533 $ac_includes_default
11534 #include <$ac_header>
11536 rm -f conftest.$ac_objext
11537 if { (ac_try="$ac_compile"
11538 case "(($ac_try" in
11539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11540 *) ac_try_echo
=$ac_try;;
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_compile") 2>conftest.er1
11545 grep -v '^ *+' conftest.er1
>conftest.err
11547 cat conftest.err
>&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } && {
11550 test -z "$ac_c_werror_flag" ||
11551 test ! -s conftest.err
11552 } && test -s conftest.
$ac_objext; then
11553 ac_header_compiler
=yes
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.
$ac_ext >&5
11558 ac_header_compiler
=no
11561 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11563 echo "${ECHO_T}$ac_header_compiler" >&6; }
11565 # Is the header present?
11566 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11567 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11568 cat >conftest.
$ac_ext <<_ACEOF
11571 cat confdefs.h
>>conftest.
$ac_ext
11572 cat >>conftest.
$ac_ext <<_ACEOF
11573 /* end confdefs.h. */
11574 #include <$ac_header>
11576 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11577 case "(($ac_try" in
11578 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11584 grep -v '^ *+' conftest.er1 >conftest.err
11586 cat conftest.err >&5
11587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11588 (exit $ac_status); } >/dev/null && {
11589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11590 test ! -s conftest.err
11592 ac_header_preproc=yes
11594 echo "$as_me: failed program was:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11597 ac_header_preproc=no
11600 rm -f conftest.err conftest.$ac_ext
11601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11602 echo "${ECHO_T}$ac_header_preproc" >&6; }
11604 # So? What about this header?
11605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11608 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11610 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11611 ac_header_preproc=yes
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11615 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11617 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11619 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11621 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11623 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11624 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11625 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11634 eval "$as_ac_Header=\$ac_header_preproc"
11636 ac_res=`eval echo '${'$as_ac_Header'}'`
11637 { echo "$as_me:$LINENO: result: $ac_res" >&5
11638 echo "${ECHO_T}$ac_res" >&6; }
11641 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11642 cat >>confdefs.h <<_ACEOF
11643 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11650 if test "$ac_cv_header_pthread_h"; then
11651 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11652 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11653 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11656 ac_check_lib_save_LIBS=$LIBS
11657 LIBS="-lpthread $LIBS"
11658 cat >conftest.$ac_ext <<_ACEOF
11661 cat confdefs.h >>conftest.$ac_ext
11662 cat >>conftest.$ac_ext <<_ACEOF
11663 /* end confdefs.h. */
11665 /* Override any GCC internal prototype to avoid an error.
11666 Use char because int might match the return type of a GCC
11667 builtin and then its argument prototype would still apply. */
11671 char pthread_self ();
11675 return pthread_self ();
11680 rm -f conftest.$ac_objext conftest$ac_exeext
11681 if { (ac_try="$ac_link"
11682 case "(($ac_try" in
11683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11684 *) ac_try_echo
=$ac_try;;
11686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11687 (eval "$ac_link") 2>conftest.er1
11689 grep -v '^ *+' conftest.er1
>conftest.err
11691 cat conftest.err
>&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } && {
11694 test -z "$ac_c_werror_flag" ||
11695 test ! -s conftest.err
11696 } && test -s conftest
$ac_exeext &&
11697 $as_test_x conftest
$ac_exeext; then
11698 ac_cv_lib_pthread_pthread_self
=yes
11700 echo "$as_me: failed program was:" >&5
11701 sed 's/^/| /' conftest.
$ac_ext >&5
11703 ac_cv_lib_pthread_pthread_self
=no
11706 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11707 conftest
$ac_exeext conftest.
$ac_ext
11708 LIBS
=$ac_check_lib_save_LIBS
11710 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11711 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11712 if test $ac_cv_lib_pthread_pthread_self = yes; then
11713 HAVE_GTK_AND_PTHREAD
=yes
11717 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11718 GTK_LIBS
="$GTK_LIBS -lpthread"
11720 cat >>confdefs.h
<<\_ACEOF
11721 #define HAVE_GTK_AND_PTHREAD 1
11728 if test x
"${USE_X_TOOLKIT}" = xmaybe ||
test x
"${USE_X_TOOLKIT}" = xLUCID
; then
11729 if test x
"${HAVE_X11R5}" = xyes
; then
11730 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11731 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11732 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 cat >conftest.
$ac_ext <<_ACEOF
11738 cat confdefs.h
>>conftest.
$ac_ext
11739 cat >>conftest.
$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11742 #include <X11/Intrinsic.h>
11743 #include <X11/Xaw/Simple.h>
11752 rm -f conftest.
$ac_objext conftest
$ac_exeext
11753 if { (ac_try
="$ac_link"
11754 case "(($ac_try" in
11755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11756 *) ac_try_echo=$ac_try;;
11758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759 (eval "$ac_link") 2>conftest.er1
11761 grep -v '^ *+' conftest.er1 >conftest.err
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } && {
11766 test -z "$ac_c_werror_flag" ||
11767 test ! -s conftest.err
11768 } && test -s conftest$ac_exeext &&
11769 $as_test_x conftest$ac_exeext; then
11770 emacs_cv_x11_version_5_with_xaw=yes
11772 echo "$as_me: failed program was:" >&5
11773 sed 's/^/| /' conftest.$ac_ext >&5
11775 emacs_cv_x11_version_5_with_xaw=no
11778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11779 conftest$ac_exeext conftest.$ac_ext
11782 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11783 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11784 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11785 USE_X_TOOLKIT=LUCID
11787 if test x"${USE_X_TOOLKIT}" = xLUCID; then
11788 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11789 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11790 { (exit 1); exit 1; }; }
11792 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11793 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11802 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11804 if test "${USE_X_TOOLKIT}" != "none"; then
11805 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11806 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11807 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11808 echo $ECHO_N "(cached) $ECHO_C" >&6
11810 cat >conftest.$ac_ext <<_ACEOF
11813 cat confdefs.h >>conftest.$ac_ext
11814 cat >>conftest.$ac_ext <<_ACEOF
11815 /* end confdefs.h. */
11816 #include <X11/Intrinsic.h>
11820 #if XtSpecificationRelease < 6
11828 rm -f conftest.$ac_objext conftest$ac_exeext
11829 if { (ac_try="$ac_link"
11830 case "(($ac_try" in
11831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11832 *) ac_try_echo
=$ac_try;;
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_link") 2>conftest.er1
11837 grep -v '^ *+' conftest.er1
>conftest.err
11839 cat conftest.err
>&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } && {
11842 test -z "$ac_c_werror_flag" ||
11843 test ! -s conftest.err
11844 } && test -s conftest
$ac_exeext &&
11845 $as_test_x conftest
$ac_exeext; then
11846 emacs_cv_x11_toolkit_version_6
=yes
11848 echo "$as_me: failed program was:" >&5
11849 sed 's/^/| /' conftest.
$ac_ext >&5
11851 emacs_cv_x11_toolkit_version_6
=no
11854 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11855 conftest
$ac_exeext conftest.
$ac_ext
11858 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11859 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11860 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11861 echo "${ECHO_T}6 or newer" >&6; }
11863 cat >>confdefs.h
<<\_ACEOF
11864 #define HAVE_X11XTR6 1
11868 { echo "$as_me:$LINENO: result: before 6" >&5
11869 echo "${ECHO_T}before 6" >&6; }
11873 if test x
$HAVE_X11XTR6 = xyes
; then
11874 LIBS
="-lXt -lSM -lICE $LIBS"
11879 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11880 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11881 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11884 ac_check_lib_save_LIBS
=$LIBS
11886 cat >conftest.
$ac_ext <<_ACEOF
11889 cat confdefs.h
>>conftest.
$ac_ext
11890 cat >>conftest.
$ac_ext <<_ACEOF
11891 /* end confdefs.h. */
11893 /* Override any GCC internal prototype to avoid an error.
11894 Use char because int might match the return type of a GCC
11895 builtin and then its argument prototype would still apply. */
11899 char XmuConvertStandardSelection ();
11903 return XmuConvertStandardSelection ();
11908 rm -f conftest.
$ac_objext conftest
$ac_exeext
11909 if { (ac_try
="$ac_link"
11910 case "(($ac_try" in
11911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_link") 2>conftest.er1
11917 grep -v '^ *+' conftest.er1 >conftest.err
11919 cat conftest.err >&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); } && {
11922 test -z "$ac_c_werror_flag" ||
11923 test ! -s conftest.err
11924 } && test -s conftest$ac_exeext &&
11925 $as_test_x conftest$ac_exeext; then
11926 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11928 echo "$as_me: failed program was:" >&5
11929 sed 's/^/| /' conftest.$ac_ext >&5
11931 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11935 conftest$ac_exeext conftest.$ac_ext
11936 LIBS=$ac_check_lib_save_LIBS
11938 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11939 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11940 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11941 cat >>confdefs.h <<_ACEOF
11942 #define HAVE_LIBXMU 1
11949 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11952 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11953 if test "${HAVE_X11}" = "yes"; then
11954 if test "${USE_X_TOOLKIT}" != "none"; then
11956 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11957 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11958 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11959 echo $ECHO_N "(cached) $ECHO_C" >&6
11961 ac_check_lib_save_LIBS=$LIBS
11962 LIBS="-lXext $LIBS"
11963 cat >conftest.$ac_ext <<_ACEOF
11966 cat confdefs.h >>conftest.$ac_ext
11967 cat >>conftest.$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11970 /* Override any GCC internal prototype to avoid an error.
11971 Use char because int might match the return type of a GCC
11972 builtin and then its argument prototype would still apply. */
11976 char XShapeQueryExtension ();
11980 return XShapeQueryExtension ();
11985 rm -f conftest.$ac_objext conftest$ac_exeext
11986 if { (ac_try="$ac_link"
11987 case "(($ac_try" in
11988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11989 *) ac_try_echo
=$ac_try;;
11991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992 (eval "$ac_link") 2>conftest.er1
11994 grep -v '^ *+' conftest.er1
>conftest.err
11996 cat conftest.err
>&5
11997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998 (exit $ac_status); } && {
11999 test -z "$ac_c_werror_flag" ||
12000 test ! -s conftest.err
12001 } && test -s conftest
$ac_exeext &&
12002 $as_test_x conftest
$ac_exeext; then
12003 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12005 echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.
$ac_ext >&5
12008 ac_cv_lib_Xext_XShapeQueryExtension
=no
12011 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12012 conftest
$ac_exeext conftest.
$ac_ext
12013 LIBS
=$ac_check_lib_save_LIBS
12015 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12016 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12017 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12018 cat >>confdefs.h
<<_ACEOF
12019 #define HAVE_LIBXEXT 1
12022 LIBS
="-lXext $LIBS"
12029 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12030 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12031 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12032 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12033 echo $ECHO_N "(cached) $ECHO_C" >&6
12035 cat >conftest.
$ac_ext <<_ACEOF
12038 cat confdefs.h
>>conftest.
$ac_ext
12039 cat >>conftest.
$ac_ext <<_ACEOF
12040 /* end confdefs.h. */
12045 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12048 Motif version prior to 2.1.
12054 rm -f conftest.
$ac_objext
12055 if { (ac_try
="$ac_compile"
12056 case "(($ac_try" in
12057 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12058 *) ac_try_echo=$ac_try;;
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061 (eval "$ac_compile") 2>conftest.er1
12063 grep -v '^ *+' conftest.er1 >conftest.err
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } && {
12068 test -z "$ac_c_werror_flag" ||
12069 test ! -s conftest.err
12070 } && test -s conftest.$ac_objext; then
12071 emacs_cv_motif_version_2_1=yes
12073 echo "$as_me: failed program was:" >&5
12074 sed 's/^/| /' conftest.$ac_ext >&5
12076 emacs_cv_motif_version_2_1=no
12079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12081 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12082 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12083 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12084 if test $emacs_cv_motif_version_2_1 = yes; then
12087 cat >>confdefs.h <<\_ACEOF
12088 #define HAVE_MOTIF_2_1 1
12091 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12092 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12093 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 ac_check_lib_save_LIBS=$LIBS
12098 cat >conftest.$ac_ext <<_ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12105 /* Override any GCC internal prototype to avoid an error.
12106 Use char because int might match the return type of a GCC
12107 builtin and then its argument prototype would still apply. */
12111 char XpCreateContext ();
12115 return XpCreateContext ();
12120 rm -f conftest.$ac_objext conftest$ac_exeext
12121 if { (ac_try="$ac_link"
12122 case "(($ac_try" in
12123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12124 *) ac_try_echo
=$ac_try;;
12126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12127 (eval "$ac_link") 2>conftest.er1
12129 grep -v '^ *+' conftest.er1
>conftest.err
12131 cat conftest.err
>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); } && {
12134 test -z "$ac_c_werror_flag" ||
12135 test ! -s conftest.err
12136 } && test -s conftest
$ac_exeext &&
12137 $as_test_x conftest
$ac_exeext; then
12138 ac_cv_lib_Xp_XpCreateContext
=yes
12140 echo "$as_me: failed program was:" >&5
12141 sed 's/^/| /' conftest.
$ac_ext >&5
12143 ac_cv_lib_Xp_XpCreateContext
=no
12146 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12147 conftest
$ac_exeext conftest.
$ac_ext
12148 LIBS
=$ac_check_lib_save_LIBS
12150 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12151 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12152 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12156 if test ${HAVE_LIBXP} = yes; then
12158 cat >>confdefs.h
<<\_ACEOF
12159 #define HAVE_LIBXP 1
12164 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12165 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12166 if test "${emacs_cv_lesstif+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 # We put this in CFLAGS temporarily to precede other -I options
12170 # that might be in CFLAGS temporarily.
12171 # We put this in CPPFLAGS where it precedes the other -I options.
12172 OLD_CPPFLAGS
=$CPPFLAGS
12174 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12175 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12176 cat >conftest.
$ac_ext <<_ACEOF
12179 cat confdefs.h
>>conftest.
$ac_ext
12180 cat >>conftest.
$ac_ext <<_ACEOF
12181 /* end confdefs.h. */
12182 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12191 rm -f conftest.
$ac_objext
12192 if { (ac_try
="$ac_compile"
12193 case "(($ac_try" in
12194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12195 *) ac_try_echo=$ac_try;;
12197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12198 (eval "$ac_compile") 2>conftest.er1
12200 grep -v '^ *+' conftest.er1 >conftest.err
12202 cat conftest.err >&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } && {
12205 test -z "$ac_c_werror_flag" ||
12206 test ! -s conftest.err
12207 } && test -s conftest.$ac_objext; then
12208 emacs_cv_lesstif=yes
12210 echo "$as_me: failed program was:" >&5
12211 sed 's/^/| /' conftest.$ac_ext >&5
12213 emacs_cv_lesstif=no
12216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12218 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12219 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12220 if test $emacs_cv_lesstif = yes; then
12221 # Make sure this -I option remains in CPPFLAGS after it is set
12222 # back to REAL_CPPFLAGS.
12223 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12224 # have those other -I options anyway. Ultimately, having this
12225 # directory ultimately in CPPFLAGS will be enough.
12226 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12227 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12230 CPPFLAGS=$OLD_CPPFLAGS
12235 ### Is -lXaw3d available?
12237 if test "${HAVE_X11}" = "yes"; then
12238 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12239 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12240 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12241 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12242 echo $ECHO_N "(cached) $ECHO_C" >&6
12244 cat >conftest.$ac_ext <<_ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12250 #include <X11/Xaw3d/Scrollbar.h>
12252 if { (ac_try="$ac_cpp conftest.$ac_ext"
12253 case "(($ac_try" in
12254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12255 *) ac_try_echo
=$ac_try;;
12257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12260 grep -v '^ *+' conftest.er1
>conftest.err
12262 cat conftest.err
>&5
12263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264 (exit $ac_status); } >/dev
/null
&& {
12265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12266 test ! -s conftest.err
12268 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
12270 echo "$as_me: failed program was:" >&5
12271 sed 's/^/| /' conftest.
$ac_ext >&5
12273 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
12276 rm -f conftest.err conftest.
$ac_ext
12278 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12279 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12280 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12281 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12282 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12283 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12284 echo $ECHO_N "(cached) $ECHO_C" >&6
12286 ac_check_lib_save_LIBS
=$LIBS
12287 LIBS
="-lXaw3d $LIBS"
12288 cat >conftest.
$ac_ext <<_ACEOF
12291 cat confdefs.h
>>conftest.
$ac_ext
12292 cat >>conftest.
$ac_ext <<_ACEOF
12293 /* end confdefs.h. */
12295 /* Override any GCC internal prototype to avoid an error.
12296 Use char because int might match the return type of a GCC
12297 builtin and then its argument prototype would still apply. */
12301 char XawScrollbarSetThumb ();
12305 return XawScrollbarSetThumb ();
12310 rm -f conftest.
$ac_objext conftest
$ac_exeext
12311 if { (ac_try
="$ac_link"
12312 case "(($ac_try" in
12313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_link") 2>conftest.er1
12319 grep -v '^ *+' conftest.er1 >conftest.err
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } && {
12324 test -z "$ac_c_werror_flag" ||
12325 test ! -s conftest.err
12326 } && test -s conftest$ac_exeext &&
12327 $as_test_x conftest$ac_exeext; then
12328 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12330 echo "$as_me: failed program was:" >&5
12331 sed 's/^/| /' conftest.$ac_ext >&5
12333 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12337 conftest$ac_exeext conftest.$ac_ext
12338 LIBS=$ac_check_lib_save_LIBS
12340 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12341 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12342 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12349 if test "${HAVE_XAW3D}" = "yes"; then
12351 cat >>confdefs.h <<\_ACEOF
12352 #define HAVE_XAW3D 1
12361 USE_TOOLKIT_SCROLL_BARS=no
12362 if test "${with_toolkit_scroll_bars}" != "no"; then
12363 if test "${USE_X_TOOLKIT}" != "none"; then
12364 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12365 cat >>confdefs.h <<\_ACEOF
12366 #define USE_TOOLKIT_SCROLL_BARS 1
12370 USE_TOOLKIT_SCROLL_BARS=yes
12371 elif test "${HAVE_XAW3D}" = "yes"; then
12372 cat >>confdefs.h <<\_ACEOF
12373 #define USE_TOOLKIT_SCROLL_BARS 1
12376 USE_TOOLKIT_SCROLL_BARS=yes
12378 elif test "${HAVE_GTK}" = "yes"; then
12379 cat >>confdefs.h <<\_ACEOF
12380 #define USE_TOOLKIT_SCROLL_BARS 1
12383 USE_TOOLKIT_SCROLL_BARS=yes
12384 elif test "${HAVE_CARBON}" = "yes"; then
12385 cat >>confdefs.h <<\_ACEOF
12386 #define USE_TOOLKIT_SCROLL_BARS 1
12389 USE_TOOLKIT_SCROLL_BARS=yes
12393 cat >conftest.$ac_ext <<_ACEOF
12396 cat confdefs.h >>conftest.$ac_ext
12397 cat >>conftest.$ac_ext <<_ACEOF
12398 /* end confdefs.h. */
12400 #include <X11/Xlib.h>
12401 #include <X11/Xresource.h>
12410 rm -f conftest.$ac_objext
12411 if { (ac_try="$ac_compile"
12412 case "(($ac_try" in
12413 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12414 *) ac_try_echo
=$ac_try;;
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417 (eval "$ac_compile") 2>conftest.er1
12419 grep -v '^ *+' conftest.er1
>conftest.err
12421 cat conftest.err
>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); } && {
12424 test -z "$ac_c_werror_flag" ||
12425 test ! -s conftest.err
12426 } && test -s conftest.
$ac_objext; then
12429 cat >>confdefs.h
<<\_ACEOF
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.
$ac_ext >&5
12440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12443 if test "${with_xim}" != "no"; then
12445 cat >>confdefs.h
<<\_ACEOF
12452 if test "${HAVE_XIM}" != "no"; then
12453 late_CFLAGS
=$CFLAGS
12454 if test "$GCC" = yes; then
12455 CFLAGS
="$CFLAGS --pedantic-errors"
12457 cat >conftest.
$ac_ext <<_ACEOF
12460 cat confdefs.h
>>conftest.
$ac_ext
12461 cat >>conftest.
$ac_ext <<_ACEOF
12462 /* end confdefs.h. */
12464 #include <X11/Xlib.h>
12465 #include <X11/Xresource.h>
12474 XPointer *client_data;
12476 /* If we're not using GCC, it's probably not XFree86, and this is
12477 probably right, but we can't use something like --pedantic-errors. */
12478 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12479 char*, XIMProc, XPointer*);
12481 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12487 rm -f conftest.
$ac_objext
12488 if { (ac_try
="$ac_compile"
12489 case "(($ac_try" in
12490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_compile") 2>conftest.er1
12496 grep -v '^ *+' conftest.er1 >conftest.err
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } && {
12501 test -z "$ac_c_werror_flag" ||
12502 test ! -s conftest.err
12503 } && test -s conftest.$ac_objext; then
12504 emacs_cv_arg6_star=yes
12506 echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12514 if test "$emacs_cv_arg6_star" = yes; then
12515 cat >>confdefs.h <<\_ACEOF
12516 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12520 cat >>confdefs.h <<\_ACEOF
12521 #define XRegisterIMInstantiateCallback_arg6 XPointer
12525 CFLAGS=$late_CFLAGS
12528 ### For font-backend
12529 if test "${USE_FONT_BACKEND}" = "yes"; then
12532 cat >>confdefs.h <<\_ACEOF
12533 #define USE_FONT_BACKEND 1
12537 ### Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12539 if test "${HAVE_X11}" = "yes"; then
12540 if test "x${with_freetype}" = "xno"; then
12543 if test "x${with_xft}" != "xno"; then
12545 if test "X${with_pkg_config_prog}" != X
; then
12546 PKG_CONFIG
="${with_pkg_config_prog}"
12552 if test -z "$PKG_CONFIG"; then
12553 # Extract the first word of "pkg-config", so it can be a program name with args.
12554 set dummy pkg-config
; ac_word
=$2
12555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12557 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12558 echo $ECHO_N "(cached) $ECHO_C" >&6
12560 case $PKG_CONFIG in
12562 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12566 for as_dir
in $PATH
12569 test -z "$as_dir" && as_dir
=.
12570 for ac_exec_ext
in '' $ac_executable_extensions; do
12571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12572 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12580 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12584 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12585 if test -n "$PKG_CONFIG"; then
12586 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12587 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12589 { echo "$as_me:$LINENO: result: no" >&5
12590 echo "${ECHO_T}no" >&6; }
12596 if test "$PKG_CONFIG" = "no" ; then
12599 PKG_CONFIG_MIN_VERSION
=0.9.0
12600 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12601 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12602 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12604 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12605 { echo "$as_me:$LINENO: result: yes" >&5
12606 echo "${ECHO_T}yes" >&6; }
12609 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12610 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12611 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12612 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12613 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12615 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12616 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12617 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12618 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12619 echo "${ECHO_T}$XFT_LIBS" >&6; }
12621 { echo "$as_me:$LINENO: result: no" >&5
12622 echo "${ECHO_T}no" >&6; }
12625 ## If we have a custom action on failure, don't print errors, but
12626 ## do set a variable so people can do so.
12627 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12634 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12635 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12639 if test $succeeded = yes; then
12645 if test "$HAVE_XFT" != no
; then
12646 OLD_CPPFLAGS
="$CPPFLAGS"
12647 OLD_CFLAGS
="$CFLAGS"
12649 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12650 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12651 LIBS
="$XFT_LIBS $LIBS"
12652 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12653 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12654 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12655 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12658 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12659 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12661 # Is the header compilable?
12662 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12663 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12664 cat >conftest.
$ac_ext <<_ACEOF
12667 cat confdefs.h
>>conftest.
$ac_ext
12668 cat >>conftest.
$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12670 $ac_includes_default
12671 #include <X11/Xft/Xft.h>
12673 rm -f conftest.
$ac_objext
12674 if { (ac_try
="$ac_compile"
12675 case "(($ac_try" in
12676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_compile") 2>conftest.er1
12682 grep -v '^ *+' conftest.er1 >conftest.err
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest.$ac_objext; then
12690 ac_header_compiler=yes
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12695 ac_header_compiler=no
12698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12700 echo "${ECHO_T}$ac_header_compiler" >&6; }
12702 # Is the header present?
12703 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12704 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12705 cat >conftest.$ac_ext <<_ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 #include <X11/Xft/Xft.h>
12713 if { (ac_try="$ac_cpp conftest.$ac_ext"
12714 case "(($ac_try" in
12715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12716 *) ac_try_echo
=$ac_try;;
12718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12721 grep -v '^ *+' conftest.er1
>conftest.err
12723 cat conftest.err
>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); } >/dev
/null
&& {
12726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12727 test ! -s conftest.err
12729 ac_header_preproc
=yes
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.
$ac_ext >&5
12734 ac_header_preproc
=no
12737 rm -f conftest.err conftest.
$ac_ext
12738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12739 echo "${ECHO_T}$ac_header_preproc" >&6; }
12741 # So? What about this header?
12742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12744 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12745 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12747 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12748 ac_header_preproc
=yes
12751 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12752 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12753 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12754 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12756 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12757 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12758 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12760 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12761 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12762 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12766 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12767 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12768 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12771 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12773 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12774 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12777 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12778 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12779 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12780 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12783 ac_check_lib_save_LIBS
=$LIBS
12784 LIBS
="-lXft $XFT_LIBS $LIBS"
12785 cat >conftest.
$ac_ext <<_ACEOF
12788 cat confdefs.h
>>conftest.
$ac_ext
12789 cat >>conftest.
$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12792 /* Override any GCC internal prototype to avoid an error.
12793 Use char because int might match the return type of a GCC
12794 builtin and then its argument prototype would still apply. */
12798 char XftFontOpen ();
12802 return XftFontOpen ();
12807 rm -f conftest.
$ac_objext conftest
$ac_exeext
12808 if { (ac_try
="$ac_link"
12809 case "(($ac_try" in
12810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814 (eval "$ac_link") 2>conftest.er1
12816 grep -v '^ *+' conftest.er1 >conftest.err
12818 cat conftest.err >&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } && {
12821 test -z "$ac_c_werror_flag" ||
12822 test ! -s conftest.err
12823 } && test -s conftest$ac_exeext &&
12824 $as_test_x conftest$ac_exeext; then
12825 ac_cv_lib_Xft_XftFontOpen=yes
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12830 ac_cv_lib_Xft_XftFontOpen=no
12833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12834 conftest$ac_exeext conftest.$ac_ext
12835 LIBS=$ac_check_lib_save_LIBS
12837 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12838 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12839 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12847 if test "${HAVE_XFT}" = "yes"; then
12849 cat >>confdefs.h <<\_ACEOF
12854 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12856 CFLAGS="$OLD_CPPFLAGS"
12857 CFLAGS="$OLD_CFLAGS"
12865 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12866 if test "${HAVE_XFT}" = "yes"; then
12868 elif test "x${with_freetype}" != "xno"; then
12869 if test "X${with_pkg_config_prog}" != X; then
12870 PKG_CONFIG="${with_pkg_config_prog}"
12876 if test -z "$PKG_CONFIG"; then
12877 # Extract the first word of "pkg-config", so it can be a program name with args.
12878 set dummy pkg-config; ac_word=$2
12879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12881 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 case $PKG_CONFIG in
12886 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12890 for as_dir in $PATH
12893 test -z "$as_dir" && as_dir=.
12894 for ac_exec_ext in '' $ac_executable_extensions; do
12895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12896 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12904 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12908 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12909 if test -n "$PKG_CONFIG"; then
12910 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12911 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12913 { echo "$as_me:$LINENO: result: no" >&5
12914 echo "${ECHO_T}no" >&6; }
12920 if test "$PKG_CONFIG" = "no" ; then
12923 PKG_CONFIG_MIN_VERSION=0.9.0
12924 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12925 { echo "$as_me:$LINENO: checking for freetype2" >&5
12926 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12928 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12929 { echo "$as_me:$LINENO: result: yes" >&5
12930 echo "${ECHO_T}yes" >&6; }
12933 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12934 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12935 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12936 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12937 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12939 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12940 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12941 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12942 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12943 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12945 { echo "$as_me:$LINENO: result: no" >&5
12946 echo "${ECHO_T}no" >&6; }
12949 ## If we have a custom action on failure, don't print errors
, but
12950 ## do set a variable so people can do so.
12951 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12958 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12959 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12963 if test $succeeded = yes; then
12969 if test "${HAVE_FREETYPE}" = "yes"; then
12973 if test -z "$PKG_CONFIG"; then
12974 # Extract the first word of "pkg-config", so it can be a program name with args.
12975 set dummy pkg-config
; ac_word
=$2
12976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12978 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12979 echo $ECHO_N "(cached) $ECHO_C" >&6
12981 case $PKG_CONFIG in
12983 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12987 for as_dir
in $PATH
12990 test -z "$as_dir" && as_dir
=.
12991 for ac_exec_ext
in '' $ac_executable_extensions; do
12992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12993 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13001 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13005 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13006 if test -n "$PKG_CONFIG"; then
13007 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13008 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13010 { echo "$as_me:$LINENO: result: no" >&5
13011 echo "${ECHO_T}no" >&6; }
13017 if test "$PKG_CONFIG" = "no" ; then
13020 PKG_CONFIG_MIN_VERSION
=0.9.0
13021 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13022 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13023 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13025 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13026 { echo "$as_me:$LINENO: result: yes" >&5
13027 echo "${ECHO_T}yes" >&6; }
13030 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13031 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13032 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13033 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13034 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13036 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13037 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13038 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13039 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13040 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13042 { echo "$as_me:$LINENO: result: no" >&5
13043 echo "${ECHO_T}no" >&6; }
13044 FONTCONFIG_CFLAGS
=""
13046 ## If we have a custom action on failure, don't print errors, but
13047 ## do set a variable so people can do so.
13048 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13055 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13056 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13060 if test $succeeded = yes; then
13066 if test "${HAVE_FC}" = "no"; then
13071 if test "${HAVE_FREETYPE}" = "yes"; then
13073 cat >>confdefs.h
<<\_ACEOF
13074 #define HAVE_FREETYPE 1
13077 # Extract the first word of "libotf-config", so it can be a program name with args.
13078 set dummy libotf-config
; ac_word
=$2
13079 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13081 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13084 if test -n "$HAVE_LIBOTF"; then
13085 ac_cv_prog_HAVE_LIBOTF
="$HAVE_LIBOTF" # Let the user override the test.
13087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13088 for as_dir
in $PATH
13091 test -z "$as_dir" && as_dir
=.
13092 for ac_exec_ext
in '' $ac_executable_extensions; do
13093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13094 ac_cv_prog_HAVE_LIBOTF
="yes"
13095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13102 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF
="no"
13105 HAVE_LIBOTF
=$ac_cv_prog_HAVE_LIBOTF
13106 if test -n "$HAVE_LIBOTF"; then
13107 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13108 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13110 { echo "$as_me:$LINENO: result: no" >&5
13111 echo "${ECHO_T}no" >&6; }
13115 if test "${HAVE_LIBOTF}" = "yes"; then
13117 { echo "$as_me:$LINENO: checking for OTF_get_features in -lotf" >&5
13118 echo $ECHO_N "checking for OTF_get_features in -lotf... $ECHO_C" >&6; }
13119 if test "${ac_cv_lib_otf_OTF_get_features+set}" = set; then
13120 echo $ECHO_N "(cached) $ECHO_C" >&6
13122 ac_check_lib_save_LIBS
=$LIBS
13124 cat >conftest.
$ac_ext <<_ACEOF
13127 cat confdefs.h
>>conftest.
$ac_ext
13128 cat >>conftest.
$ac_ext <<_ACEOF
13129 /* end confdefs.h. */
13131 /* Override any GCC internal prototype to avoid an error.
13132 Use char because int might match the return type of a GCC
13133 builtin and then its argument prototype would still apply. */
13137 char OTF_get_features ();
13141 return OTF_get_features ();
13146 rm -f conftest.
$ac_objext conftest
$ac_exeext
13147 if { (ac_try
="$ac_link"
13148 case "(($ac_try" in
13149 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_link") 2>conftest.er1
13155 grep -v '^ *+' conftest.er1 >conftest.err
13157 cat conftest.err >&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 (exit $ac_status); } && {
13160 test -z "$ac_c_werror_flag" ||
13161 test ! -s conftest.err
13162 } && test -s conftest$ac_exeext &&
13163 $as_test_x conftest$ac_exeext; then
13164 ac_cv_lib_otf_OTF_get_features=yes
13166 echo "$as_me: failed program was:" >&5
13167 sed 's/^/| /' conftest.$ac_ext >&5
13169 ac_cv_lib_otf_OTF_get_features=no
13172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13173 conftest$ac_exeext conftest.$ac_ext
13174 LIBS=$ac_check_lib_save_LIBS
13176 { echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_features" >&5
13177 echo "${ECHO_T}$ac_cv_lib_otf_OTF_get_features" >&6; }
13178 if test $ac_cv_lib_otf_OTF_get_features = yes; then
13179 cat >>confdefs.h <<_ACEOF
13180 #define HAVE_LIBOTF 1
13189 if test "${HAVE_LIBOTF}" = "yes"; then
13191 cat >>confdefs.h <<\_ACEOF
13192 #define HAVE_LIBOTF 1
13195 LIBOTF_CFLAGS=`libotf-config
--cflags`
13196 LIBOTF_LIBS=`libotf-config
--libs`
13209 ### Use -lXpm if available, unless `--with-xpm=no
'.
13211 if test "${HAVE_X11}" = "yes"; then
13212 if test "${with_xpm}" != "no"; then
13213 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13214 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13215 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13216 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13217 echo $ECHO_N "(cached) $ECHO_C" >&6
13219 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13220 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13222 # Is the header compilable?
13223 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13224 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13225 cat >conftest.$ac_ext <<_ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h. */
13231 $ac_includes_default
13232 #include <X11/xpm.h>
13234 rm -f conftest.$ac_objext
13235 if { (ac_try="$ac_compile"
13236 case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_compile") 2>conftest.er1
13243 grep -v '^
*+' conftest.er1 >conftest.err
13245 cat conftest.err >&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } && {
13248 test -z "$ac_c_werror_flag" ||
13249 test ! -s conftest.err
13250 } && test -s conftest.$ac_objext; then
13251 ac_header_compiler=yes
13253 echo "$as_me: failed program was:" >&5
13254 sed 's
/^
/|
/' conftest.$ac_ext >&5
13256 ac_header_compiler=no
13259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13260 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13261 echo "${ECHO_T}$ac_header_compiler" >&6; }
13263 # Is the header present?
13264 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13265 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13266 cat >conftest.$ac_ext <<_ACEOF
13269 cat confdefs.h >>conftest.$ac_ext
13270 cat >>conftest.$ac_ext <<_ACEOF
13271 /* end confdefs.h. */
13272 #include <X11/xpm.h>
13274 if { (ac_try="$ac_cpp conftest.$ac_ext"
13275 case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13282 grep -v '^
*+' conftest.er1 >conftest.err
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } >/dev/null && {
13287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13288 test ! -s conftest.err
13290 ac_header_preproc=yes
13292 echo "$as_me: failed program was:" >&5
13293 sed 's
/^
/|
/' conftest.$ac_ext >&5
13295 ac_header_preproc=no
13298 rm -f conftest.err conftest.$ac_ext
13299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13300 echo "${ECHO_T}$ac_header_preproc" >&6; }
13302 # So? What about this header?
13303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13305 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13306 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13307 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
13308 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
13309 ac_header_preproc=yes
13312 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13313 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13314 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13315 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13316 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13317 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13318 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13319 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13320 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
13321 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
13322 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13323 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13327 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13328 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13329 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
13332 ac_cv_header_X11_xpm_h=$ac_header_preproc
13334 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13335 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13338 if test $ac_cv_header_X11_xpm_h = yes; then
13339 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13340 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13341 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13342 echo $ECHO_N "(cached) $ECHO_C" >&6
13344 ac_check_lib_save_LIBS=$LIBS
13345 LIBS="-lXpm -lX11 $LIBS"
13346 cat >conftest.$ac_ext <<_ACEOF
13349 cat confdefs.h >>conftest.$ac_ext
13350 cat >>conftest.$ac_ext <<_ACEOF
13351 /* end confdefs.h. */
13353 /* Override any GCC internal prototype to avoid an error.
13354 Use char because int might match the return type of a GCC
13355 builtin and then its argument prototype would still apply. */
13359 char XpmReadFileToPixmap ();
13363 return XpmReadFileToPixmap ();
13368 rm -f conftest.$ac_objext conftest$ac_exeext
13369 if { (ac_try="$ac_link"
13370 case "(($ac_try" in
13371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13372 *) ac_try_echo=$ac_try;;
13374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13375 (eval "$ac_link") 2>conftest.er1
13377 grep -v '^
*+' conftest.er1 >conftest.err
13379 cat conftest.err >&5
13380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13381 (exit $ac_status); } && {
13382 test -z "$ac_c_werror_flag" ||
13383 test ! -s conftest.err
13384 } && test -s conftest$ac_exeext &&
13385 $as_test_x conftest$ac_exeext; then
13386 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13388 echo "$as_me: failed program was:" >&5
13389 sed 's
/^
/|
/' conftest.$ac_ext >&5
13391 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13395 conftest$ac_exeext conftest.$ac_ext
13396 LIBS=$ac_check_lib_save_LIBS
13398 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13399 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13400 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13407 if test "${HAVE_XPM}" = "yes"; then
13408 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13409 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13410 cat >conftest.$ac_ext <<_ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
13415 /* end confdefs.h. */
13416 #include "X11/xpm.h"
13417 #ifndef XpmReturnAllocPixels
13418 no_return_alloc_pixels
13422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13423 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13431 if test "${HAVE_XPM}" = "yes"; then
13432 { echo "$as_me:$LINENO: result: yes" >&5
13433 echo "${ECHO_T}yes" >&6; }
13435 { echo "$as_me:$LINENO: result: no" >&5
13436 echo "${ECHO_T}no" >&6; }
13441 if test "${HAVE_XPM}" = "yes"; then
13443 cat >>confdefs.h <<\_ACEOF
13450 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13452 if test "${HAVE_X11}" = "yes"; then
13453 if test "${with_jpeg}" != "no"; then
13454 if test "${ac_cv_header_jerror_h+set}" = set; then
13455 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13456 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13457 if test "${ac_cv_header_jerror_h+set}" = set; then
13458 echo $ECHO_N "(cached) $ECHO_C" >&6
13460 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13461 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13463 # Is the header compilable?
13464 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13465 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13466 cat >conftest.
$ac_ext <<_ACEOF
13469 cat confdefs.h
>>conftest.
$ac_ext
13470 cat >>conftest.
$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13472 $ac_includes_default
13473 #include <jerror.h>
13475 rm -f conftest.
$ac_objext
13476 if { (ac_try
="$ac_compile"
13477 case "(($ac_try" in
13478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_compile") 2>conftest.er1
13484 grep -v '^ *+' conftest.er1 >conftest.err
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } && {
13489 test -z "$ac_c_werror_flag" ||
13490 test ! -s conftest.err
13491 } && test -s conftest.$ac_objext; then
13492 ac_header_compiler=yes
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13497 ac_header_compiler=no
13500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13502 echo "${ECHO_T}$ac_header_compiler" >&6; }
13504 # Is the header present?
13505 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13506 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13507 cat >conftest.$ac_ext <<_ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 #include <jerror.h>
13515 if { (ac_try="$ac_cpp conftest.$ac_ext"
13516 case "(($ac_try" in
13517 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13518 *) ac_try_echo
=$ac_try;;
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13523 grep -v '^ *+' conftest.er1
>conftest.err
13525 cat conftest.err
>&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } >/dev
/null
&& {
13528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13529 test ! -s conftest.err
13531 ac_header_preproc
=yes
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.
$ac_ext >&5
13536 ac_header_preproc
=no
13539 rm -f conftest.err conftest.
$ac_ext
13540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13541 echo "${ECHO_T}$ac_header_preproc" >&6; }
13543 # So? What about this header?
13544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13546 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13547 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13548 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13549 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13550 ac_header_preproc
=yes
13553 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13554 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13555 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13556 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13557 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13558 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13560 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13562 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13564 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13568 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13569 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13570 if test "${ac_cv_header_jerror_h+set}" = set; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13573 ac_cv_header_jerror_h
=$ac_header_preproc
13575 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13576 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13579 if test $ac_cv_header_jerror_h = yes; then
13580 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13581 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13582 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13583 echo $ECHO_N "(cached) $ECHO_C" >&6
13585 ac_check_lib_save_LIBS
=$LIBS
13586 LIBS
="-ljpeg $LIBS"
13587 cat >conftest.
$ac_ext <<_ACEOF
13590 cat confdefs.h
>>conftest.
$ac_ext
13591 cat >>conftest.
$ac_ext <<_ACEOF
13592 /* end confdefs.h. */
13594 /* Override any GCC internal prototype to avoid an error.
13595 Use char because int might match the return type of a GCC
13596 builtin and then its argument prototype would still apply. */
13600 char jpeg_destroy_compress ();
13604 return jpeg_destroy_compress ();
13609 rm -f conftest.
$ac_objext conftest
$ac_exeext
13610 if { (ac_try
="$ac_link"
13611 case "(($ac_try" in
13612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13613 *) ac_try_echo=$ac_try;;
13615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13616 (eval "$ac_link") 2>conftest.er1
13618 grep -v '^ *+' conftest.er1 >conftest.err
13620 cat conftest.err >&5
13621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622 (exit $ac_status); } && {
13623 test -z "$ac_c_werror_flag" ||
13624 test ! -s conftest.err
13625 } && test -s conftest$ac_exeext &&
13626 $as_test_x conftest$ac_exeext; then
13627 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13629 echo "$as_me: failed program was:" >&5
13630 sed 's/^/| /' conftest.$ac_ext >&5
13632 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13636 conftest$ac_exeext conftest.$ac_ext
13637 LIBS=$ac_check_lib_save_LIBS
13639 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13640 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13641 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13651 if test "${HAVE_JPEG}" = "yes"; then
13652 cat >>confdefs.h <<\_ACEOF
13653 #define HAVE_JPEG 1
13656 cat >conftest.$ac_ext <<_ACEOF
13659 cat confdefs.h >>conftest.$ac_ext
13660 cat >>conftest.$ac_ext <<_ACEOF
13661 /* end confdefs.h. */
13662 #include <jpeglib.h>
13663 version=JPEG_LIB_VERSION
13666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13667 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13668 cat >>confdefs.h <<\_ACEOF
13669 #define HAVE_JPEG 1
13673 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13674 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13682 ### Use -lpng if available, unless `--with-png=no
'.
13684 if test "${HAVE_X11}" = "yes"; then
13685 if test "${with_png}" != "no"; then
13686 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13687 # in /usr/include/libpng.
13690 for ac_header in png.h libpng/png.h
13692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13697 echo $ECHO_N "(cached) $ECHO_C" >&6
13699 ac_res=`eval echo '${'$as_ac_Header'}'`
13700 { echo "$as_me:$LINENO: result: $ac_res" >&5
13701 echo "${ECHO_T}$ac_res" >&6; }
13703 # Is the header compilable?
13704 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13706 cat >conftest.$ac_ext <<_ACEOF
13709 cat confdefs.h >>conftest.$ac_ext
13710 cat >>conftest.$ac_ext <<_ACEOF
13711 /* end confdefs.h. */
13712 $ac_includes_default
13713 #include <$ac_header>
13715 rm -f conftest.$ac_objext
13716 if { (ac_try="$ac_compile"
13717 case "(($ac_try" in
13718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13719 *) ac_try_echo=$ac_try;;
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_compile") 2>conftest.er1
13724 grep -v '^
*+' conftest.er1 >conftest.err
13726 cat conftest.err >&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } && {
13729 test -z "$ac_c_werror_flag" ||
13730 test ! -s conftest.err
13731 } && test -s conftest.$ac_objext; then
13732 ac_header_compiler=yes
13734 echo "$as_me: failed program was:" >&5
13735 sed 's
/^
/|
/' conftest.$ac_ext >&5
13737 ac_header_compiler=no
13740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13742 echo "${ECHO_T}$ac_header_compiler" >&6; }
13744 # Is the header present?
13745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13747 cat >conftest.$ac_ext <<_ACEOF
13750 cat confdefs.h >>conftest.$ac_ext
13751 cat >>conftest.$ac_ext <<_ACEOF
13752 /* end confdefs.h. */
13753 #include <$ac_header>
13755 if { (ac_try="$ac_cpp conftest.$ac_ext"
13756 case "(($ac_try" in
13757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13763 grep -v '^
*+' conftest.er1 >conftest.err
13765 cat conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } >/dev/null && {
13768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13769 test ! -s conftest.err
13771 ac_header_preproc=yes
13773 echo "$as_me: failed program was:" >&5
13774 sed 's
/^
/|
/' conftest.$ac_ext >&5
13776 ac_header_preproc=no
13779 rm -f conftest.err conftest.$ac_ext
13780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13781 echo "${ECHO_T}$ac_header_preproc" >&6; }
13783 # So? What about this header?
13784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
13789 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
13790 ac_header_preproc=yes
13793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
13802 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
13803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13813 eval "$as_ac_Header=\$ac_header_preproc"
13815 ac_res=`eval echo '${'$as_ac_Header'}'`
13816 { echo "$as_me:$LINENO: result: $ac_res" >&5
13817 echo "${ECHO_T}$ac_res" >&6; }
13820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13821 cat >>confdefs.h <<_ACEOF
13822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13829 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13830 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13831 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13832 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13833 echo $ECHO_N "(cached) $ECHO_C" >&6
13835 ac_check_lib_save_LIBS=$LIBS
13836 LIBS="-lpng -lz -lm $LIBS"
13837 cat >conftest.$ac_ext <<_ACEOF
13840 cat confdefs.h >>conftest.$ac_ext
13841 cat >>conftest.$ac_ext <<_ACEOF
13842 /* end confdefs.h. */
13844 /* Override any GCC internal prototype to avoid an error.
13845 Use char because int might match the return type of a GCC
13846 builtin and then its argument prototype would still apply. */
13850 char png_get_channels ();
13854 return png_get_channels ();
13859 rm -f conftest.$ac_objext conftest$ac_exeext
13860 if { (ac_try="$ac_link"
13861 case "(($ac_try" in
13862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13863 *) ac_try_echo=$ac_try;;
13865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13866 (eval "$ac_link") 2>conftest.er1
13868 grep -v '^
*+' conftest.er1 >conftest.err
13870 cat conftest.err >&5
13871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13872 (exit $ac_status); } && {
13873 test -z "$ac_c_werror_flag" ||
13874 test ! -s conftest.err
13875 } && test -s conftest$ac_exeext &&
13876 $as_test_x conftest$ac_exeext; then
13877 ac_cv_lib_png_png_get_channels=yes
13879 echo "$as_me: failed program was:" >&5
13880 sed 's
/^
/|
/' conftest.$ac_ext >&5
13882 ac_cv_lib_png_png_get_channels=no
13885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13886 conftest$ac_exeext conftest.$ac_ext
13887 LIBS=$ac_check_lib_save_LIBS
13889 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13890 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13891 if test $ac_cv_lib_png_png_get_channels = yes; then
13898 if test "${HAVE_PNG}" = "yes"; then
13900 cat >>confdefs.h <<\_ACEOF
13907 ### Use -ltiff if available, unless `--with-tiff=no'.
13909 if test "${HAVE_X11}" = "yes"; then
13910 if test "${with_tiff}" != "no"; then
13911 if test "${ac_cv_header_tiffio_h+set}" = set; then
13912 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13913 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13914 if test "${ac_cv_header_tiffio_h+set}" = set; then
13915 echo $ECHO_N "(cached) $ECHO_C" >&6
13917 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13918 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13920 # Is the header compilable?
13921 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13922 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13923 cat >conftest.
$ac_ext <<_ACEOF
13926 cat confdefs.h
>>conftest.
$ac_ext
13927 cat >>conftest.
$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 $ac_includes_default
13930 #include <tiffio.h>
13932 rm -f conftest.
$ac_objext
13933 if { (ac_try
="$ac_compile"
13934 case "(($ac_try" in
13935 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_compile") 2>conftest.er1
13941 grep -v '^ *+' conftest.er1 >conftest.err
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } && {
13946 test -z "$ac_c_werror_flag" ||
13947 test ! -s conftest.err
13948 } && test -s conftest.$ac_objext; then
13949 ac_header_compiler=yes
13951 echo "$as_me: failed program was:" >&5
13952 sed 's/^/| /' conftest.$ac_ext >&5
13954 ac_header_compiler=no
13957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13959 echo "${ECHO_T}$ac_header_compiler" >&6; }
13961 # Is the header present?
13962 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13963 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13964 cat >conftest.$ac_ext <<_ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13970 #include <tiffio.h>
13972 if { (ac_try="$ac_cpp conftest.$ac_ext"
13973 case "(($ac_try" in
13974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13975 *) ac_try_echo
=$ac_try;;
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13980 grep -v '^ *+' conftest.er1
>conftest.err
13982 cat conftest.err
>&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } >/dev
/null
&& {
13985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13986 test ! -s conftest.err
13988 ac_header_preproc
=yes
13990 echo "$as_me: failed program was:" >&5
13991 sed 's/^/| /' conftest.
$ac_ext >&5
13993 ac_header_preproc
=no
13996 rm -f conftest.err conftest.
$ac_ext
13997 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13998 echo "${ECHO_T}$ac_header_preproc" >&6; }
14000 # So? What about this header?
14001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14003 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14004 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14005 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14006 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14007 ac_header_preproc
=yes
14010 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14011 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14012 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14013 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14014 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14015 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14016 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14017 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14018 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14019 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14020 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14021 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14025 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14026 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14027 if test "${ac_cv_header_tiffio_h+set}" = set; then
14028 echo $ECHO_N "(cached) $ECHO_C" >&6
14030 ac_cv_header_tiffio_h
=$ac_header_preproc
14032 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14033 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14036 if test $ac_cv_header_tiffio_h = yes; then
14038 # At least one tiff package requires the jpeg library.
14039 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
14040 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14041 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14042 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 ac_check_lib_save_LIBS
=$LIBS
14046 LIBS
="-ltiff $tifflibs $LIBS"
14047 cat >conftest.
$ac_ext <<_ACEOF
14050 cat confdefs.h
>>conftest.
$ac_ext
14051 cat >>conftest.
$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14054 /* Override any GCC internal prototype to avoid an error.
14055 Use char because int might match the return type of a GCC
14056 builtin and then its argument prototype would still apply. */
14060 char TIFFGetVersion ();
14064 return TIFFGetVersion ();
14069 rm -f conftest.
$ac_objext conftest
$ac_exeext
14070 if { (ac_try
="$ac_link"
14071 case "(($ac_try" in
14072 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_link") 2>conftest.er1
14078 grep -v '^ *+' conftest.er1 >conftest.err
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } && {
14083 test -z "$ac_c_werror_flag" ||
14084 test ! -s conftest.err
14085 } && test -s conftest$ac_exeext &&
14086 $as_test_x conftest$ac_exeext; then
14087 ac_cv_lib_tiff_TIFFGetVersion=yes
14089 echo "$as_me: failed program was:" >&5
14090 sed 's/^/| /' conftest.$ac_ext >&5
14092 ac_cv_lib_tiff_TIFFGetVersion=no
14095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14096 conftest$ac_exeext conftest.$ac_ext
14097 LIBS=$ac_check_lib_save_LIBS
14099 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14100 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14101 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14110 if test "${HAVE_TIFF}" = "yes"; then
14112 cat >>confdefs.h <<\_ACEOF
14113 #define HAVE_TIFF 1
14119 ### Use -lgif if available, unless `--with-gif=no
'.
14121 if test "${HAVE_X11}" = "yes"; then
14122 if test "${with_gif}" != "no"; then
14123 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14124 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14125 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14126 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14129 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14130 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14132 # Is the header compilable?
14133 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14134 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14135 cat >conftest.$ac_ext <<_ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14141 $ac_includes_default
14142 #include <gif_lib.h>
14144 rm -f conftest.$ac_objext
14145 if { (ac_try="$ac_compile"
14146 case "(($ac_try" in
14147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14148 *) ac_try_echo=$ac_try;;
14150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14151 (eval "$ac_compile") 2>conftest.er1
14153 grep -v '^
*+' conftest.er1 >conftest.err
14155 cat conftest.err >&5
14156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); } && {
14158 test -z "$ac_c_werror_flag" ||
14159 test ! -s conftest.err
14160 } && test -s conftest.$ac_objext; then
14161 ac_header_compiler=yes
14163 echo "$as_me: failed program was:" >&5
14164 sed 's
/^
/|
/' conftest.$ac_ext >&5
14166 ac_header_compiler=no
14169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14171 echo "${ECHO_T}$ac_header_compiler" >&6; }
14173 # Is the header present?
14174 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14175 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14176 cat >conftest.$ac_ext <<_ACEOF
14179 cat confdefs.h >>conftest.$ac_ext
14180 cat >>conftest.$ac_ext <<_ACEOF
14181 /* end confdefs.h. */
14182 #include <gif_lib.h>
14184 if { (ac_try="$ac_cpp conftest.$ac_ext"
14185 case "(($ac_try" in
14186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14187 *) ac_try_echo=$ac_try;;
14189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14190 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14192 grep -v '^
*+' conftest.er1 >conftest.err
14194 cat conftest.err >&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); } >/dev/null && {
14197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14198 test ! -s conftest.err
14200 ac_header_preproc=yes
14202 echo "$as_me: failed program was:" >&5
14203 sed 's
/^
/|
/' conftest.$ac_ext >&5
14205 ac_header_preproc=no
14208 rm -f conftest.err conftest.$ac_ext
14209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14210 echo "${ECHO_T}$ac_header_preproc" >&6; }
14212 # So? What about this header?
14213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14215 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14216 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14217 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
14218 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
14219 ac_header_preproc=yes
14222 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14223 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14224 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14225 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14226 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14227 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14228 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14229 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14230 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
14231 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
14232 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14233 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14237 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14238 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14239 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14240 echo $ECHO_N "(cached) $ECHO_C" >&6
14242 ac_cv_header_gif_lib_h=$ac_header_preproc
14244 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14245 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14248 if test $ac_cv_header_gif_lib_h = yes; then
14249 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14250 # Earlier versions can crash Emacs.
14251 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14252 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14253 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14254 echo $ECHO_N "(cached) $ECHO_C" >&6
14256 ac_check_lib_save_LIBS=$LIBS
14257 LIBS="-lungif $LIBS"
14258 cat >conftest.$ac_ext <<_ACEOF
14261 cat confdefs.h >>conftest.$ac_ext
14262 cat >>conftest.$ac_ext <<_ACEOF
14263 /* end confdefs.h. */
14265 /* Override any GCC internal prototype to avoid an error.
14266 Use char because int might match the return type of a GCC
14267 builtin and then its argument prototype would still apply. */
14271 char EGifPutExtensionLast ();
14275 return EGifPutExtensionLast ();
14280 rm -f conftest.$ac_objext conftest$ac_exeext
14281 if { (ac_try="$ac_link"
14282 case "(($ac_try" in
14283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14284 *) ac_try_echo=$ac_try;;
14286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14287 (eval "$ac_link") 2>conftest.er1
14289 grep -v '^
*+' conftest.er1 >conftest.err
14291 cat conftest.err >&5
14292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14293 (exit $ac_status); } && {
14294 test -z "$ac_c_werror_flag" ||
14295 test ! -s conftest.err
14296 } && test -s conftest$ac_exeext &&
14297 $as_test_x conftest$ac_exeext; then
14298 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14300 echo "$as_me: failed program was:" >&5
14301 sed 's
/^
/|
/' conftest.$ac_ext >&5
14303 ac_cv_lib_ungif_EGifPutExtensionLast=no
14306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14307 conftest$ac_exeext conftest.$ac_ext
14308 LIBS=$ac_check_lib_save_LIBS
14310 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14311 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14312 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14321 if test "${HAVE_GIF}" = "yes"; then
14323 cat >>confdefs.h <<\_ACEOF
14330 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14331 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14332 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14333 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14336 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14337 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14339 # Is the header compilable?
14340 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14341 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14342 cat >conftest.$ac_ext <<_ACEOF
14345 cat confdefs.h >>conftest.$ac_ext
14346 cat >>conftest.$ac_ext <<_ACEOF
14347 /* end confdefs.h. */
14348 $ac_includes_default
14349 #include <malloc/malloc.h>
14351 rm -f conftest.$ac_objext
14352 if { (ac_try="$ac_compile"
14353 case "(($ac_try" in
14354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14355 *) ac_try_echo=$ac_try;;
14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358 (eval "$ac_compile") 2>conftest.er1
14360 grep -v '^
*+' conftest.er1 >conftest.err
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } && {
14365 test -z "$ac_c_werror_flag" ||
14366 test ! -s conftest.err
14367 } && test -s conftest.$ac_objext; then
14368 ac_header_compiler=yes
14370 echo "$as_me: failed program was:" >&5
14371 sed 's
/^
/|
/' conftest.$ac_ext >&5
14373 ac_header_compiler=no
14376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14378 echo "${ECHO_T}$ac_header_compiler" >&6; }
14380 # Is the header present?
14381 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14382 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14383 cat >conftest.$ac_ext <<_ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h. */
14389 #include <malloc/malloc.h>
14391 if { (ac_try="$ac_cpp conftest.$ac_ext"
14392 case "(($ac_try" in
14393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394 *) ac_try_echo=$ac_try;;
14396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14399 grep -v '^
*+' conftest.er1 >conftest.err
14401 cat conftest.err >&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } >/dev/null && {
14404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14405 test ! -s conftest.err
14407 ac_header_preproc=yes
14409 echo "$as_me: failed program was:" >&5
14410 sed 's
/^
/|
/' conftest.$ac_ext >&5
14412 ac_header_preproc=no
14415 rm -f conftest.err conftest.$ac_ext
14416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14417 echo "${ECHO_T}$ac_header_preproc" >&6; }
14419 # So? What about this header?
14420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14422 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14423 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14424 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&5
14425 echo "$as_me: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&2;}
14426 ac_header_preproc=yes
14429 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14430 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14431 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14432 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14433 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14434 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14435 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14436 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14437 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&5
14438 echo "$as_me: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14440 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14444 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14445 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14446 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14451 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14452 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14455 if test $ac_cv_header_malloc_malloc_h = yes; then
14457 cat >>confdefs.h <<\_ACEOF
14458 #define HAVE_MALLOC_MALLOC_H 1
14465 ### Use Mac OS X Carbon API to implement GUI.
14466 if test "${HAVE_CARBON}" = "yes"; then
14468 cat >>confdefs.h <<\_ACEOF
14469 #define HAVE_CARBON 1
14472 ## Specify the install directory
14474 if test "${carbon_appdir_x}" != ""; then
14475 case ${carbon_appdir_x} in
14476 y | ye | yes) carbon_appdir=/Applications ;;
14477 * ) carbon_appdir=${carbon_appdir_x} ;;
14480 # We also have mouse menus.
14484 ### Use session management (-lSM -lICE) if available
14486 if test "${HAVE_X11}" = "yes"; then
14487 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14488 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14489 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14490 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14491 echo $ECHO_N "(cached) $ECHO_C" >&6
14493 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14494 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14496 # Is the header compilable?
14497 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14498 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14499 cat >conftest.$ac_ext <<_ACEOF
14502 cat confdefs.h >>conftest.$ac_ext
14503 cat >>conftest.$ac_ext <<_ACEOF
14504 /* end confdefs.h. */
14505 $ac_includes_default
14506 #include <X11/SM/SMlib.h>
14508 rm -f conftest.$ac_objext
14509 if { (ac_try="$ac_compile"
14510 case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_compile") 2>conftest.er1
14517 grep -v '^
*+' conftest.er1 >conftest.err
14519 cat conftest.err >&5
14520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14521 (exit $ac_status); } && {
14522 test -z "$ac_c_werror_flag" ||
14523 test ! -s conftest.err
14524 } && test -s conftest.$ac_objext; then
14525 ac_header_compiler=yes
14527 echo "$as_me: failed program was:" >&5
14528 sed 's
/^
/|
/' conftest.$ac_ext >&5
14530 ac_header_compiler=no
14533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14535 echo "${ECHO_T}$ac_header_compiler" >&6; }
14537 # Is the header present?
14538 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14539 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14540 cat >conftest.$ac_ext <<_ACEOF
14543 cat confdefs.h >>conftest.$ac_ext
14544 cat >>conftest.$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14546 #include <X11/SM/SMlib.h>
14548 if { (ac_try="$ac_cpp conftest.$ac_ext"
14549 case "(($ac_try" in
14550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551 *) ac_try_echo=$ac_try;;
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14556 grep -v '^
*+' conftest.er1 >conftest.err
14558 cat conftest.err >&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); } >/dev/null && {
14561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14562 test ! -s conftest.err
14564 ac_header_preproc=yes
14566 echo "$as_me: failed program was:" >&5
14567 sed 's
/^
/|
/' conftest.$ac_ext >&5
14569 ac_header_preproc=no
14572 rm -f conftest.err conftest.$ac_ext
14573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14574 echo "${ECHO_T}$ac_header_preproc" >&6; }
14576 # So? What about this header?
14577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14579 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14580 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14581 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&5
14582 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&2;}
14583 ac_header_preproc=yes
14586 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14587 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14588 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14589 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14590 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14591 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14592 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14593 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14594 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&5
14595 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&2;}
14596 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14597 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14601 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14602 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14603 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14608 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14609 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14612 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14613 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14614 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14615 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14618 ac_check_lib_save_LIBS=$LIBS
14619 LIBS="-lSM -lICE $LIBS"
14620 cat >conftest.$ac_ext <<_ACEOF
14623 cat confdefs.h >>conftest.$ac_ext
14624 cat >>conftest.$ac_ext <<_ACEOF
14625 /* end confdefs.h. */
14627 /* Override any GCC internal prototype to avoid an error.
14628 Use char because int might match the return type of a GCC
14629 builtin and then its argument prototype would still apply. */
14633 char SmcOpenConnection ();
14637 return SmcOpenConnection ();
14642 rm -f conftest.$ac_objext conftest$ac_exeext
14643 if { (ac_try="$ac_link"
14644 case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_link") 2>conftest.er1
14651 grep -v '^
*+' conftest.er1 >conftest.err
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } && {
14656 test -z "$ac_c_werror_flag" ||
14657 test ! -s conftest.err
14658 } && test -s conftest$ac_exeext &&
14659 $as_test_x conftest$ac_exeext; then
14660 ac_cv_lib_SM_SmcOpenConnection=yes
14662 echo "$as_me: failed program was:" >&5
14663 sed 's
/^
/|
/' conftest.$ac_ext >&5
14665 ac_cv_lib_SM_SmcOpenConnection=no
14668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14669 conftest$ac_exeext conftest.$ac_ext
14670 LIBS=$ac_check_lib_save_LIBS
14672 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14673 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14674 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14682 if test "${HAVE_X_SM}" = "yes"; then
14684 cat >>confdefs.h <<\_ACEOF
14685 #define HAVE_X_SM 1
14690 *) LIBS="-lSM -lICE $LIBS" ;;
14695 # If netdb.h doesn't
declare h_errno
, we must
declare it by hand.
14696 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14697 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14698 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14699 echo $ECHO_N "(cached) $ECHO_C" >&6
14701 cat >conftest.
$ac_ext <<_ACEOF
14704 cat confdefs.h
>>conftest.
$ac_ext
14705 cat >>conftest.
$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14716 rm -f conftest.
$ac_objext conftest
$ac_exeext
14717 if { (ac_try
="$ac_link"
14718 case "(($ac_try" in
14719 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723 (eval "$ac_link") 2>conftest.er1
14725 grep -v '^ *+' conftest.er1 >conftest.err
14727 cat conftest.err >&5
14728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14729 (exit $ac_status); } && {
14730 test -z "$ac_c_werror_flag" ||
14731 test ! -s conftest.err
14732 } && test -s conftest$ac_exeext &&
14733 $as_test_x conftest$ac_exeext; then
14734 emacs_cv_netdb_declares_h_errno=yes
14736 echo "$as_me: failed program was:" >&5
14737 sed 's/^/| /' conftest.$ac_ext >&5
14739 emacs_cv_netdb_declares_h_errno=no
14742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14743 conftest$ac_exeext conftest.$ac_ext
14745 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14746 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14747 if test $emacs_cv_netdb_declares_h_errno = yes; then
14749 cat >>confdefs.h <<\_ACEOF
14750 #define HAVE_H_ERRNO 1
14755 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14756 # for constant arguments. Useless!
14757 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14758 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14759 if test "${ac_cv_working_alloca_h+set}" = set; then
14760 echo $ECHO_N "(cached) $ECHO_C" >&6
14762 cat >conftest.$ac_ext <<_ACEOF
14765 cat confdefs.h >>conftest.$ac_ext
14766 cat >>conftest.$ac_ext <<_ACEOF
14767 /* end confdefs.h. */
14768 #include <alloca.h>
14772 char *p = (char *) alloca (2 * sizeof (int));
14778 rm -f conftest.$ac_objext conftest$ac_exeext
14779 if { (ac_try="$ac_link"
14780 case "(($ac_try" in
14781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14782 *) ac_try_echo
=$ac_try;;
14784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14785 (eval "$ac_link") 2>conftest.er1
14787 grep -v '^ *+' conftest.er1
>conftest.err
14789 cat conftest.err
>&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } && {
14792 test -z "$ac_c_werror_flag" ||
14793 test ! -s conftest.err
14794 } && test -s conftest
$ac_exeext &&
14795 $as_test_x conftest
$ac_exeext; then
14796 ac_cv_working_alloca_h
=yes
14798 echo "$as_me: failed program was:" >&5
14799 sed 's/^/| /' conftest.
$ac_ext >&5
14801 ac_cv_working_alloca_h
=no
14804 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14805 conftest
$ac_exeext conftest.
$ac_ext
14807 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14808 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14809 if test $ac_cv_working_alloca_h = yes; then
14811 cat >>confdefs.h
<<\_ACEOF
14812 #define HAVE_ALLOCA_H 1
14817 { echo "$as_me:$LINENO: checking for alloca" >&5
14818 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14819 if test "${ac_cv_func_alloca_works+set}" = set; then
14820 echo $ECHO_N "(cached) $ECHO_C" >&6
14822 cat >conftest.
$ac_ext <<_ACEOF
14825 cat confdefs.h
>>conftest.
$ac_ext
14826 cat >>conftest.
$ac_ext <<_ACEOF
14827 /* end confdefs.h. */
14829 # define alloca __builtin_alloca
14832 # include <malloc.h>
14833 # define alloca _alloca
14835 # ifdef HAVE_ALLOCA_H
14836 # include <alloca.h>
14841 # ifndef alloca /* predefined by HP cc +Olibcalls */
14852 char *p = (char *) alloca (1);
14858 rm -f conftest.
$ac_objext conftest
$ac_exeext
14859 if { (ac_try
="$ac_link"
14860 case "(($ac_try" in
14861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14862 *) ac_try_echo=$ac_try;;
14864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14865 (eval "$ac_link") 2>conftest.er1
14867 grep -v '^ *+' conftest.er1 >conftest.err
14869 cat conftest.err >&5
14870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14871 (exit $ac_status); } && {
14872 test -z "$ac_c_werror_flag" ||
14873 test ! -s conftest.err
14874 } && test -s conftest$ac_exeext &&
14875 $as_test_x conftest$ac_exeext; then
14876 ac_cv_func_alloca_works=yes
14878 echo "$as_me: failed program was:" >&5
14879 sed 's/^/| /' conftest.$ac_ext >&5
14881 ac_cv_func_alloca_works=no
14884 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14885 conftest$ac_exeext conftest.$ac_ext
14887 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14888 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14890 if test $ac_cv_func_alloca_works = yes; then
14892 cat >>confdefs.h <<\_ACEOF
14893 #define HAVE_ALLOCA 1
14897 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14898 # that cause trouble. Some versions do not even contain alloca or
14899 # contain a buggy version. If you still want to use their alloca,
14900 # use ar to extract alloca.o from them instead of compiling alloca.c.
14902 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14904 cat >>confdefs.h <<\_ACEOF
14909 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14910 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14911 if test "${ac_cv_os_cray+set}" = set; then
14912 echo $ECHO_N "(cached
) $ECHO_C" >&6
14914 cat >conftest.$ac_ext <<_ACEOF
14917 cat confdefs.h >>conftest.$ac_ext
14918 cat >>conftest.$ac_ext <<_ACEOF
14919 /* end confdefs.h. */
14920 #if defined CRAY && ! defined CRAY2
14927 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14928 $EGREP "webecray
" >/dev/null 2>&1; then
14936 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14937 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14938 if test $ac_cv_os_cray = yes; then
14939 for ac_func in _getb67 GETB67 getb67; do
14940 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14941 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14942 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14943 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14944 echo $ECHO_N "(cached
) $ECHO_C" >&6
14946 cat >conftest.$ac_ext <<_ACEOF
14949 cat confdefs.h >>conftest.$ac_ext
14950 cat >>conftest.$ac_ext <<_ACEOF
14951 /* end confdefs.h. */
14952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14954 #define $ac_func innocuous_$ac_func
14956 /* System header to define __stub macros and hopefully few prototypes,
14957 which can conflict with char $ac_func (); below.
14958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14959 <limits.h> exists even on freestanding compilers. */
14962 # include <limits.h>
14964 # include <assert.h>
14969 /* Override any GCC internal prototype to avoid an error.
14970 Use char because int might match the return type of a GCC
14971 builtin and then its argument prototype would still apply. */
14976 /* The GNU C library defines this for functions which it implements
14977 to always fail with ENOSYS. Some functions are actually named
14978 something starting with __ and the normal name is an alias. */
14979 #if defined __stub_$ac_func || defined __stub___$ac_func
14986 return $ac_func ();
14991 rm -f conftest.$ac_objext conftest$ac_exeext
14992 if { (ac_try="$ac_link"
14993 case "(($ac_try" in
14994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14995 *) ac_try_echo=$ac_try;;
14997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14998 (eval "$ac_link") 2>conftest.er1
15000 grep -v '^ *+' conftest.er1 >conftest.err
15002 cat conftest.err >&5
15003 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15004 (exit $ac_status); } && {
15005 test -z "$ac_c_werror_flag" ||
15006 test ! -s conftest.err
15007 } && test -s conftest$ac_exeext &&
15008 $as_test_x conftest$ac_exeext; then
15009 eval "$as_ac_var=yes"
15011 echo "$as_me: failed program was
:" >&5
15012 sed 's/^/| /' conftest.$ac_ext >&5
15014 eval "$as_ac_var=no
"
15017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15018 conftest$ac_exeext conftest.$ac_ext
15020 ac_res=`eval echo '${'$as_ac_var'}'`
15021 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15022 echo "${ECHO_T}$ac_res" >&6; }
15023 if test `eval echo '${'$as_ac_var'}'` = yes; then
15025 cat >>confdefs.h <<_ACEOF
15026 #define CRAY_STACKSEG_END $ac_func
15035 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15036 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15037 if test "${ac_cv_c_stack_direction+set}" = set; then
15038 echo $ECHO_N "(cached
) $ECHO_C" >&6
15040 if test "$cross_compiling" = yes; then
15041 ac_cv_c_stack_direction=0
15043 cat >conftest.$ac_ext <<_ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15049 $ac_includes_default
15051 find_stack_direction ()
15053 static char *addr = 0;
15058 return find_stack_direction ();
15061 return (&dummy > addr) ? 1 : -1;
15067 return find_stack_direction () < 0;
15070 rm -f conftest$ac_exeext
15071 if { (ac_try="$ac_link"
15072 case "(($ac_try" in
15073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15074 *) ac_try_echo=$ac_try;;
15076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15077 (eval "$ac_link") 2>&5
15079 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15080 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15081 { (case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15085 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_try") 2>&5
15088 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15089 (exit $ac_status); }; }; then
15090 ac_cv_c_stack_direction=1
15092 echo "$as_me: program exited with status
$ac_status" >&5
15093 echo "$as_me: failed program was
:" >&5
15094 sed 's/^/| /' conftest.$ac_ext >&5
15096 ( exit $ac_status )
15097 ac_cv_c_stack_direction=-1
15099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15104 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15105 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15107 cat >>confdefs.h <<_ACEOF
15108 #define STACK_DIRECTION $ac_cv_c_stack_direction
15115 # fmod, logb, and frexp are found in -lm on most systems.
15116 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15118 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15119 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15120 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15121 echo $ECHO_N "(cached
) $ECHO_C" >&6
15123 ac_check_lib_save_LIBS=$LIBS
15125 cat >conftest.$ac_ext <<_ACEOF
15128 cat confdefs.h >>conftest.$ac_ext
15129 cat >>conftest.$ac_ext <<_ACEOF
15130 /* end confdefs.h. */
15132 /* Override any GCC internal prototype to avoid an error.
15133 Use char because int might match the return type of a GCC
15134 builtin and then its argument prototype would still apply. */
15147 rm -f conftest.$ac_objext conftest$ac_exeext
15148 if { (ac_try="$ac_link"
15149 case "(($ac_try" in
15150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15153 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_link") 2>conftest.er1
15156 grep -v '^ *+' conftest.er1 >conftest.err
15158 cat conftest.err >&5
15159 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15160 (exit $ac_status); } && {
15161 test -z "$ac_c_werror_flag" ||
15162 test ! -s conftest.err
15163 } && test -s conftest$ac_exeext &&
15164 $as_test_x conftest$ac_exeext; then
15165 ac_cv_lib_m_sqrt=yes
15167 echo "$as_me: failed program was
:" >&5
15168 sed 's/^/| /' conftest.$ac_ext >&5
15170 ac_cv_lib_m_sqrt=no
15173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15174 conftest$ac_exeext conftest.$ac_ext
15175 LIBS=$ac_check_lib_save_LIBS
15177 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15178 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15179 if test $ac_cv_lib_m_sqrt = yes; then
15180 cat >>confdefs.h <<_ACEOF
15181 #define HAVE_LIBM 1
15189 # Check for mail-locking functions in a "mail" library. Probably this should
15190 # have the same check as for liblockfile below.
15192 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15193 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15194 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15195 echo $ECHO_N "(cached
) $ECHO_C" >&6
15197 ac_check_lib_save_LIBS=$LIBS
15198 LIBS="-lmail $LIBS"
15199 cat >conftest.$ac_ext <<_ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15206 /* Override any GCC internal prototype to avoid an error.
15207 Use char because int might match the return type of a GCC
15208 builtin and then its argument prototype would still apply. */
15216 return maillock ();
15221 rm -f conftest.$ac_objext conftest$ac_exeext
15222 if { (ac_try="$ac_link"
15223 case "(($ac_try" in
15224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15225 *) ac_try_echo=$ac_try;;
15227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15228 (eval "$ac_link") 2>conftest.er1
15230 grep -v '^ *+' conftest.er1 >conftest.err
15232 cat conftest.err >&5
15233 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15234 (exit $ac_status); } && {
15235 test -z "$ac_c_werror_flag" ||
15236 test ! -s conftest.err
15237 } && test -s conftest$ac_exeext &&
15238 $as_test_x conftest$ac_exeext; then
15239 ac_cv_lib_mail_maillock=yes
15241 echo "$as_me: failed program was
:" >&5
15242 sed 's/^/| /' conftest.$ac_ext >&5
15244 ac_cv_lib_mail_maillock=no
15247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15248 conftest$ac_exeext conftest.$ac_ext
15249 LIBS=$ac_check_lib_save_LIBS
15251 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15252 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15253 if test $ac_cv_lib_mail_maillock = yes; then
15254 cat >>confdefs.h <<_ACEOF
15255 #define HAVE_LIBMAIL 1
15258 LIBS="-lmail $LIBS"
15263 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15264 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15265 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15266 echo $ECHO_N "(cached
) $ECHO_C" >&6
15268 ac_check_lib_save_LIBS=$LIBS
15269 LIBS="-llockfile $LIBS"
15270 cat >conftest.$ac_ext <<_ACEOF
15273 cat confdefs.h >>conftest.$ac_ext
15274 cat >>conftest.$ac_ext <<_ACEOF
15275 /* end confdefs.h. */
15277 /* Override any GCC internal prototype to avoid an error.
15278 Use char because int might match the return type of a GCC
15279 builtin and then its argument prototype would still apply. */
15287 return maillock ();
15292 rm -f conftest.$ac_objext conftest$ac_exeext
15293 if { (ac_try="$ac_link"
15294 case "(($ac_try" in
15295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296 *) ac_try_echo=$ac_try;;
15298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15299 (eval "$ac_link") 2>conftest.er1
15301 grep -v '^ *+' conftest.er1 >conftest.err
15303 cat conftest.err >&5
15304 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15305 (exit $ac_status); } && {
15306 test -z "$ac_c_werror_flag" ||
15307 test ! -s conftest.err
15308 } && test -s conftest$ac_exeext &&
15309 $as_test_x conftest$ac_exeext; then
15310 ac_cv_lib_lockfile_maillock=yes
15312 echo "$as_me: failed program was
:" >&5
15313 sed 's/^/| /' conftest.$ac_ext >&5
15315 ac_cv_lib_lockfile_maillock=no
15318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15319 conftest$ac_exeext conftest.$ac_ext
15320 LIBS=$ac_check_lib_save_LIBS
15322 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15323 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15324 if test $ac_cv_lib_lockfile_maillock = yes; then
15325 cat >>confdefs.h <<_ACEOF
15326 #define HAVE_LIBLOCKFILE 1
15329 LIBS="-llockfile $LIBS"
15333 # If we have the shared liblockfile, assume we must use it for mail
15334 # locking (e.g. Debian). If we couldn't link against liblockfile
15335 # (no liblockfile.a installed), ensure that we don't need to.
15336 if test "$ac_cv_lib_lockfile_maillock" = no; then
15337 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15338 set dummy liblockfile.so; ac_word=$2
15339 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15340 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15341 if test "${ac_cv_prog_liblockfile+set}" = set; then
15342 echo $ECHO_N "(cached
) $ECHO_C" >&6
15344 if test -n "$liblockfile"; then
15345 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15348 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15349 for as_dir in $as_dummy
15352 test -z "$as_dir" && as_dir=.
15353 for ac_exec_ext in '' $ac_executable_extensions; do
15354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15355 ac_cv_prog_liblockfile="yes"
15356 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15363 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15366 liblockfile=$ac_cv_prog_liblockfile
15367 if test -n "$liblockfile"; then
15368 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15369 echo "${ECHO_T}$liblockfile" >&6; }
15371 { echo "$as_me:$LINENO: result
: no
" >&5
15372 echo "${ECHO_T}no
" >&6; }
15376 if test $ac_cv_prog_liblockfile = yes; then
15377 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15378 This probably means that movemail could lose mail.
15379 There may be a \`development' package to
install containing liblockfile.
" >&5
15380 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15381 This probably means that movemail could lose mail.
15382 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15383 { (exit 1); exit 1; }; }
15388 for ac_func in touchlock
15390 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15391 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15392 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15393 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15394 echo $ECHO_N "(cached
) $ECHO_C" >&6
15396 cat >conftest.$ac_ext <<_ACEOF
15399 cat confdefs.h >>conftest.$ac_ext
15400 cat >>conftest.$ac_ext <<_ACEOF
15401 /* end confdefs.h. */
15402 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15404 #define $ac_func innocuous_$ac_func
15406 /* System header to define __stub macros and hopefully few prototypes,
15407 which can conflict with char $ac_func (); below.
15408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15409 <limits.h> exists even on freestanding compilers. */
15412 # include <limits.h>
15414 # include <assert.h>
15419 /* Override any GCC internal prototype to avoid an error.
15420 Use char because int might match the return type of a GCC
15421 builtin and then its argument prototype would still apply. */
15426 /* The GNU C library defines this for functions which it implements
15427 to always fail with ENOSYS. Some functions are actually named
15428 something starting with __ and the normal name is an alias. */
15429 #if defined __stub_$ac_func || defined __stub___$ac_func
15436 return $ac_func ();
15441 rm -f conftest.$ac_objext conftest$ac_exeext
15442 if { (ac_try="$ac_link"
15443 case "(($ac_try" in
15444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15448 (eval "$ac_link") 2>conftest.er1
15450 grep -v '^ *+' conftest.er1 >conftest.err
15452 cat conftest.err >&5
15453 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15454 (exit $ac_status); } && {
15455 test -z "$ac_c_werror_flag" ||
15456 test ! -s conftest.err
15457 } && test -s conftest$ac_exeext &&
15458 $as_test_x conftest$ac_exeext; then
15459 eval "$as_ac_var=yes"
15461 echo "$as_me: failed program was
:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15464 eval "$as_ac_var=no
"
15467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15468 conftest$ac_exeext conftest.$ac_ext
15470 ac_res=`eval echo '${'$as_ac_var'}'`
15471 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15472 echo "${ECHO_T}$ac_res" >&6; }
15473 if test `eval echo '${'$as_ac_var'}'` = yes; then
15474 cat >>confdefs.h <<_ACEOF
15475 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15482 for ac_header in maillock.h
15484 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15485 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15486 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15487 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15488 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15489 echo $ECHO_N "(cached
) $ECHO_C" >&6
15491 ac_res=`eval echo '${'$as_ac_Header'}'`
15492 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15493 echo "${ECHO_T}$ac_res" >&6; }
15495 # Is the header compilable?
15496 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15497 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15498 cat >conftest.$ac_ext <<_ACEOF
15501 cat confdefs.h >>conftest.$ac_ext
15502 cat >>conftest.$ac_ext <<_ACEOF
15503 /* end confdefs.h. */
15504 $ac_includes_default
15505 #include <$ac_header>
15507 rm -f conftest.$ac_objext
15508 if { (ac_try="$ac_compile"
15509 case "(($ac_try" in
15510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15511 *) ac_try_echo=$ac_try;;
15513 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15514 (eval "$ac_compile") 2>conftest.er1
15516 grep -v '^ *+' conftest.er1 >conftest.err
15518 cat conftest.err >&5
15519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15520 (exit $ac_status); } && {
15521 test -z "$ac_c_werror_flag" ||
15522 test ! -s conftest.err
15523 } && test -s conftest.$ac_objext; then
15524 ac_header_compiler=yes
15526 echo "$as_me: failed program was
:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15529 ac_header_compiler=no
15532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15533 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15534 echo "${ECHO_T}$ac_header_compiler" >&6; }
15536 # Is the header present?
15537 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15538 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15539 cat >conftest.$ac_ext <<_ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15545 #include <$ac_header>
15547 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15548 case "(($ac_try" in
15549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15550 *) ac_try_echo=$ac_try;;
15552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15553 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15555 grep -v '^ *+' conftest.er1 >conftest.err
15557 cat conftest.err >&5
15558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15559 (exit $ac_status); } >/dev/null && {
15560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15561 test ! -s conftest.err
15563 ac_header_preproc=yes
15565 echo "$as_me: failed program was
:" >&5
15566 sed 's/^/| /' conftest.$ac_ext >&5
15568 ac_header_preproc=no
15571 rm -f conftest.err conftest.$ac_ext
15572 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15573 echo "${ECHO_T}$ac_header_preproc" >&6; }
15575 # So? What about this header?
15576 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15578 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15579 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15580 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15581 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15582 ac_header_preproc=yes
15585 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15586 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15587 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15588 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15589 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15590 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15591 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15592 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15593 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15594 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15595 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15596 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15600 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15601 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15602 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15603 echo $ECHO_N "(cached
) $ECHO_C" >&6
15605 eval "$as_ac_Header=\
$ac_header_preproc"
15607 ac_res=`eval echo '${'$as_ac_Header'}'`
15608 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15609 echo "${ECHO_T}$ac_res" >&6; }
15612 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15613 cat >>confdefs.h <<_ACEOF
15614 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15691 for ac_func in gethostname getdomainname dup2 \
15692 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15693 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15694 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15695 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15696 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15697 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15698 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15699 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15701 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15702 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15703 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15704 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15705 echo $ECHO_N "(cached
) $ECHO_C" >&6
15707 cat >conftest.$ac_ext <<_ACEOF
15710 cat confdefs.h >>conftest.$ac_ext
15711 cat >>conftest.$ac_ext <<_ACEOF
15712 /* end confdefs.h. */
15713 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15715 #define $ac_func innocuous_$ac_func
15717 /* System header to define __stub macros and hopefully few prototypes,
15718 which can conflict with char $ac_func (); below.
15719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15720 <limits.h> exists even on freestanding compilers. */
15723 # include <limits.h>
15725 # include <assert.h>
15730 /* Override any GCC internal prototype to avoid an error.
15731 Use char because int might match the return type of a GCC
15732 builtin and then its argument prototype would still apply. */
15737 /* The GNU C library defines this for functions which it implements
15738 to always fail with ENOSYS. Some functions are actually named
15739 something starting with __ and the normal name is an alias. */
15740 #if defined __stub_$ac_func || defined __stub___$ac_func
15747 return $ac_func ();
15752 rm -f conftest.$ac_objext conftest$ac_exeext
15753 if { (ac_try="$ac_link"
15754 case "(($ac_try" in
15755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15756 *) ac_try_echo=$ac_try;;
15758 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15759 (eval "$ac_link") 2>conftest.er1
15761 grep -v '^ *+' conftest.er1 >conftest.err
15763 cat conftest.err >&5
15764 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15765 (exit $ac_status); } && {
15766 test -z "$ac_c_werror_flag" ||
15767 test ! -s conftest.err
15768 } && test -s conftest$ac_exeext &&
15769 $as_test_x conftest$ac_exeext; then
15770 eval "$as_ac_var=yes"
15772 echo "$as_me: failed program was
:" >&5
15773 sed 's/^/| /' conftest.$ac_ext >&5
15775 eval "$as_ac_var=no
"
15778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15779 conftest$ac_exeext conftest.$ac_ext
15781 ac_res=`eval echo '${'$as_ac_var'}'`
15782 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15783 echo "${ECHO_T}$ac_res" >&6; }
15784 if test `eval echo '${'$as_ac_var'}'` = yes; then
15785 cat >>confdefs.h <<_ACEOF
15786 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15794 for ac_header in sys/un.h
15796 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15797 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15798 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15799 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15800 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15801 echo $ECHO_N "(cached
) $ECHO_C" >&6
15803 ac_res=`eval echo '${'$as_ac_Header'}'`
15804 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15805 echo "${ECHO_T}$ac_res" >&6; }
15807 # Is the header compilable?
15808 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15809 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15810 cat >conftest.$ac_ext <<_ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15816 $ac_includes_default
15817 #include <$ac_header>
15819 rm -f conftest.$ac_objext
15820 if { (ac_try="$ac_compile"
15821 case "(($ac_try" in
15822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15823 *) ac_try_echo=$ac_try;;
15825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15826 (eval "$ac_compile") 2>conftest.er1
15828 grep -v '^ *+' conftest.er1 >conftest.err
15830 cat conftest.err >&5
15831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15832 (exit $ac_status); } && {
15833 test -z "$ac_c_werror_flag" ||
15834 test ! -s conftest.err
15835 } && test -s conftest.$ac_objext; then
15836 ac_header_compiler=yes
15838 echo "$as_me: failed program was
:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15841 ac_header_compiler=no
15844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15845 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15846 echo "${ECHO_T}$ac_header_compiler" >&6; }
15848 # Is the header present?
15849 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15850 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15851 cat >conftest.$ac_ext <<_ACEOF
15854 cat confdefs.h >>conftest.$ac_ext
15855 cat >>conftest.$ac_ext <<_ACEOF
15856 /* end confdefs.h. */
15857 #include <$ac_header>
15859 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15860 case "(($ac_try" in
15861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15862 *) ac_try_echo=$ac_try;;
15864 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15865 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15867 grep -v '^ *+' conftest.er1 >conftest.err
15869 cat conftest.err >&5
15870 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15871 (exit $ac_status); } >/dev/null && {
15872 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15873 test ! -s conftest.err
15875 ac_header_preproc=yes
15877 echo "$as_me: failed program was
:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 ac_header_preproc=no
15883 rm -f conftest.err conftest.$ac_ext
15884 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15885 echo "${ECHO_T}$ac_header_preproc" >&6; }
15887 # So? What about this header?
15888 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15890 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15891 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15892 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15894 ac_header_preproc=yes
15897 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15898 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15899 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15900 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15901 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15902 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15903 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15904 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15905 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15907 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15908 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15912 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15913 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15914 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15915 echo $ECHO_N "(cached
) $ECHO_C" >&6
15917 eval "$as_ac_Header=\
$ac_header_preproc"
15919 ac_res=`eval echo '${'$as_ac_Header'}'`
15920 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15921 echo "${ECHO_T}$ac_res" >&6; }
15924 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15925 cat >>confdefs.h <<_ACEOF
15926 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15938 for ac_header in $ac_header_list
15940 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15941 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15942 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15943 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15944 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15945 echo $ECHO_N "(cached
) $ECHO_C" >&6
15947 ac_res=`eval echo '${'$as_ac_Header'}'`
15948 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15949 echo "${ECHO_T}$ac_res" >&6; }
15951 # Is the header compilable?
15952 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15953 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15954 cat >conftest.$ac_ext <<_ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h. */
15960 $ac_includes_default
15961 #include <$ac_header>
15963 rm -f conftest.$ac_objext
15964 if { (ac_try="$ac_compile"
15965 case "(($ac_try" in
15966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15967 *) ac_try_echo=$ac_try;;
15969 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15970 (eval "$ac_compile") 2>conftest.er1
15972 grep -v '^ *+' conftest.er1 >conftest.err
15974 cat conftest.err >&5
15975 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15976 (exit $ac_status); } && {
15977 test -z "$ac_c_werror_flag" ||
15978 test ! -s conftest.err
15979 } && test -s conftest.$ac_objext; then
15980 ac_header_compiler=yes
15982 echo "$as_me: failed program was
:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15985 ac_header_compiler=no
15988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15989 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15990 echo "${ECHO_T}$ac_header_compiler" >&6; }
15992 # Is the header present?
15993 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15994 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15995 cat >conftest.$ac_ext <<_ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16001 #include <$ac_header>
16003 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16004 case "(($ac_try" in
16005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16006 *) ac_try_echo=$ac_try;;
16008 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16011 grep -v '^ *+' conftest.er1 >conftest.err
16013 cat conftest.err >&5
16014 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16015 (exit $ac_status); } >/dev/null && {
16016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16017 test ! -s conftest.err
16019 ac_header_preproc=yes
16021 echo "$as_me: failed program was
:" >&5
16022 sed 's/^/| /' conftest.$ac_ext >&5
16024 ac_header_preproc=no
16027 rm -f conftest.err conftest.$ac_ext
16028 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16029 echo "${ECHO_T}$ac_header_preproc" >&6; }
16031 # So? What about this header?
16032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16034 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16035 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16036 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16037 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16038 ac_header_preproc=yes
16041 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16042 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16043 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16044 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16045 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16046 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16047 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16048 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16049 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16050 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16051 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16052 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16056 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16057 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16058 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16059 echo $ECHO_N "(cached
) $ECHO_C" >&6
16061 eval "$as_ac_Header=\
$ac_header_preproc"
16063 ac_res=`eval echo '${'$as_ac_Header'}'`
16064 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16065 echo "${ECHO_T}$ac_res" >&6; }
16068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16069 cat >>confdefs.h <<_ACEOF
16070 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16085 for ac_func in $ac_func_list
16087 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16088 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16089 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16090 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16091 echo $ECHO_N "(cached
) $ECHO_C" >&6
16093 cat >conftest.$ac_ext <<_ACEOF
16096 cat confdefs.h >>conftest.$ac_ext
16097 cat >>conftest.$ac_ext <<_ACEOF
16098 /* end confdefs.h. */
16099 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16101 #define $ac_func innocuous_$ac_func
16103 /* System header to define __stub macros and hopefully few prototypes,
16104 which can conflict with char $ac_func (); below.
16105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16106 <limits.h> exists even on freestanding compilers. */
16109 # include <limits.h>
16111 # include <assert.h>
16116 /* Override any GCC internal prototype to avoid an error.
16117 Use char because int might match the return type of a GCC
16118 builtin and then its argument prototype would still apply. */
16123 /* The GNU C library defines this for functions which it implements
16124 to always fail with ENOSYS. Some functions are actually named
16125 something starting with __ and the normal name is an alias. */
16126 #if defined __stub_$ac_func || defined __stub___$ac_func
16133 return $ac_func ();
16138 rm -f conftest.$ac_objext conftest$ac_exeext
16139 if { (ac_try="$ac_link"
16140 case "(($ac_try" in
16141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16142 *) ac_try_echo=$ac_try;;
16144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16145 (eval "$ac_link") 2>conftest.er1
16147 grep -v '^ *+' conftest.er1 >conftest.err
16149 cat conftest.err >&5
16150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16151 (exit $ac_status); } && {
16152 test -z "$ac_c_werror_flag" ||
16153 test ! -s conftest.err
16154 } && test -s conftest$ac_exeext &&
16155 $as_test_x conftest$ac_exeext; then
16156 eval "$as_ac_var=yes"
16158 echo "$as_me: failed program was
:" >&5
16159 sed 's/^/| /' conftest.$ac_ext >&5
16161 eval "$as_ac_var=no
"
16164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16165 conftest$ac_exeext conftest.$ac_ext
16167 ac_res=`eval echo '${'$as_ac_var'}'`
16168 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16169 echo "${ECHO_T}$ac_res" >&6; }
16170 if test `eval echo '${'$as_ac_var'}'` = yes; then
16171 cat >>confdefs.h <<_ACEOF
16172 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16194 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16195 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16196 if test "${ac_cv_func_working_mktime+set}" = set; then
16197 echo $ECHO_N "(cached
) $ECHO_C" >&6
16199 if test "$cross_compiling" = yes; then
16200 ac_cv_func_working_mktime=no
16202 cat >conftest.$ac_ext <<_ACEOF
16205 cat confdefs.h >>conftest.$ac_ext
16206 cat >>conftest.$ac_ext <<_ACEOF
16207 /* end confdefs.h. */
16208 /* Test program from Paul Eggert and Tony Leneis. */
16209 #ifdef TIME_WITH_SYS_TIME
16210 # include <sys/time.h>
16213 # ifdef HAVE_SYS_TIME_H
16214 # include <sys/time.h>
16220 #include <stdlib.h>
16222 #ifdef HAVE_UNISTD_H
16223 # include <unistd.h>
16227 # define alarm(X) /* empty */
16230 /* Work around redefinition to rpl_putenv by other config tests. */
16233 static time_t time_t_max;
16234 static time_t time_t_min;
16236 /* Values we'll use to set the TZ environment variable. */
16237 static char *tz_strings[] = {
16238 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16239 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16241 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16243 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16244 Based on a problem report from Andreas Jaeger. */
16246 spring_forward_gap ()
16248 /* glibc (up to about 1998-10-07) failed this test. */
16251 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16252 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16253 on systems that don't support the Olson extension, or don't have the
16254 full zoneinfo tables installed. */
16255 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16264 return mktime (&tm) != (time_t) -1;
16272 return ! (lt = localtime (&now)) || mktime (lt) == now;
16279 return (mktime_test1 (now)
16280 && mktime_test1 ((time_t) (time_t_max - now))
16281 && mktime_test1 ((time_t) (time_t_min + now)));
16287 /* Based on code from Ariel Faigon. */
16297 return tm.tm_mon == 2 && tm.tm_mday == 31;
16306 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16307 now = mktime (&tm);
16308 if (now != (time_t) -1)
16310 struct tm *lt = localtime (&now);
16312 && lt->tm_year == tm.tm_year
16313 && lt->tm_mon == tm.tm_mon
16314 && lt->tm_mday == tm.tm_mday
16315 && lt->tm_hour == tm.tm_hour
16316 && lt->tm_min == tm.tm_min
16317 && lt->tm_sec == tm.tm_sec
16318 && lt->tm_yday == tm.tm_yday
16319 && lt->tm_wday == tm.tm_wday
16320 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16321 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16330 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16331 ignoring leap seconds. */
16332 unsigned long int answer = 2527315200UL;
16336 tm.tm_year = 2050 - 1900;
16339 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16342 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16343 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16344 on systems that don't support the Olson extension, or don't have the
16345 full zoneinfo tables installed. */
16346 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16350 /* Check that the result is either a failure, or close enough
16351 to the correct answer that we can assume the discrepancy is
16352 due to leap seconds. */
16353 return (t == (time_t) -1
16354 || (0 < t && answer - 120 <= t && t <= answer + 120));
16363 /* This test makes some buggy mktime implementations loop.
16364 Give up after 60 seconds; a mktime slower than that
16365 isn't worth using anyway. */
16368 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16371 if ((time_t) -1 < 0)
16372 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16374 delta = time_t_max / 997; /* a suitable prime number */
16375 for (i = 0; i < N_STRINGS; i++)
16378 putenv (tz_strings[i]);
16380 for (t = 0; t <= time_t_max - delta; t += delta)
16381 if (! mktime_test (t))
16383 if (! (mktime_test ((time_t) 1)
16384 && mktime_test ((time_t) (60 * 60))
16385 && mktime_test ((time_t) (60 * 60 * 24))))
16388 for (j = 1; 0 < j; j *= 2)
16389 if (! bigtime_test (j))
16391 if (! bigtime_test (j - 1))
16394 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16397 rm -f conftest$ac_exeext
16398 if { (ac_try="$ac_link"
16399 case "(($ac_try" in
16400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16401 *) ac_try_echo=$ac_try;;
16403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16404 (eval "$ac_link") 2>&5
16406 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16407 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16408 { (case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16412 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16413 (eval "$ac_try") 2>&5
16415 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16416 (exit $ac_status); }; }; then
16417 ac_cv_func_working_mktime=yes
16419 echo "$as_me: program exited with status
$ac_status" >&5
16420 echo "$as_me: failed program was
:" >&5
16421 sed 's/^/| /' conftest.$ac_ext >&5
16423 ( exit $ac_status )
16424 ac_cv_func_working_mktime=no
16426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16431 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16432 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16433 if test $ac_cv_func_working_mktime = no; then
16434 case " $LIBOBJS " in
16435 *" mktime.
$ac_objext "* ) ;;
16436 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16442 if test "$ac_cv_func_working_mktime" = no; then
16444 cat >>confdefs.h <<\_ACEOF
16445 #define BROKEN_MKTIME 1
16450 ac_have_func=no # yes means we've found a way to get the load average.
16452 # Make sure getloadavg.c is where it belongs, at configure-time.
16453 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16454 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16455 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16456 { (exit 1); exit 1; }; }
16460 # Check for getloadavg, but be sure not to touch the cache variable.
16461 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16462 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16463 if test "${ac_cv_func_getloadavg+set}" = set; then
16464 echo $ECHO_N "(cached
) $ECHO_C" >&6
16466 cat >conftest.$ac_ext <<_ACEOF
16469 cat confdefs.h >>conftest.$ac_ext
16470 cat >>conftest.$ac_ext <<_ACEOF
16471 /* end confdefs.h. */
16472 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16474 #define getloadavg innocuous_getloadavg
16476 /* System header to define __stub macros and hopefully few prototypes,
16477 which can conflict with char getloadavg (); below.
16478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16479 <limits.h> exists even on freestanding compilers. */
16482 # include <limits.h>
16484 # include <assert.h>
16489 /* Override any GCC internal prototype to avoid an error.
16490 Use char because int might match the return type of a GCC
16491 builtin and then its argument prototype would still apply. */
16495 char getloadavg ();
16496 /* The GNU C library defines this for functions which it implements
16497 to always fail with ENOSYS. Some functions are actually named
16498 something starting with __ and the normal name is an alias. */
16499 #if defined __stub_getloadavg || defined __stub___getloadavg
16506 return getloadavg ();
16511 rm -f conftest.$ac_objext conftest$ac_exeext
16512 if { (ac_try="$ac_link"
16513 case "(($ac_try" in
16514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16515 *) ac_try_echo=$ac_try;;
16517 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16518 (eval "$ac_link") 2>conftest.er1
16520 grep -v '^ *+' conftest.er1 >conftest.err
16522 cat conftest.err >&5
16523 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16524 (exit $ac_status); } && {
16525 test -z "$ac_c_werror_flag" ||
16526 test ! -s conftest.err
16527 } && test -s conftest$ac_exeext &&
16528 $as_test_x conftest$ac_exeext; then
16529 ac_cv_func_getloadavg=yes
16531 echo "$as_me: failed program was
:" >&5
16532 sed 's/^/| /' conftest.$ac_ext >&5
16534 ac_cv_func_getloadavg=no
16537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16538 conftest$ac_exeext conftest.$ac_ext
16540 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16541 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16542 if test $ac_cv_func_getloadavg = yes; then
16547 ) && ac_have_func=yes
16549 # On HPUX9, an unprivileged user can get load averages through this function.
16551 for ac_func in pstat_getdynamic
16553 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16554 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16555 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16556 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16557 echo $ECHO_N "(cached
) $ECHO_C" >&6
16559 cat >conftest.$ac_ext <<_ACEOF
16562 cat confdefs.h >>conftest.$ac_ext
16563 cat >>conftest.$ac_ext <<_ACEOF
16564 /* end confdefs.h. */
16565 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16566 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16567 #define $ac_func innocuous_$ac_func
16569 /* System header to define __stub macros and hopefully few prototypes,
16570 which can conflict with char $ac_func (); below.
16571 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16572 <limits.h> exists even on freestanding compilers. */
16575 # include <limits.h>
16577 # include <assert.h>
16582 /* Override any GCC internal prototype to avoid an error.
16583 Use char because int might match the return type of a GCC
16584 builtin and then its argument prototype would still apply. */
16589 /* The GNU C library defines this for functions which it implements
16590 to always fail with ENOSYS. Some functions are actually named
16591 something starting with __ and the normal name is an alias. */
16592 #if defined __stub_$ac_func || defined __stub___$ac_func
16599 return $ac_func ();
16604 rm -f conftest.$ac_objext conftest$ac_exeext
16605 if { (ac_try="$ac_link"
16606 case "(($ac_try" in
16607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16608 *) ac_try_echo=$ac_try;;
16610 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16611 (eval "$ac_link") 2>conftest.er1
16613 grep -v '^ *+' conftest.er1 >conftest.err
16615 cat conftest.err >&5
16616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16617 (exit $ac_status); } && {
16618 test -z "$ac_c_werror_flag" ||
16619 test ! -s conftest.err
16620 } && test -s conftest$ac_exeext &&
16621 $as_test_x conftest$ac_exeext; then
16622 eval "$as_ac_var=yes"
16624 echo "$as_me: failed program was
:" >&5
16625 sed 's/^/| /' conftest.$ac_ext >&5
16627 eval "$as_ac_var=no
"
16630 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16631 conftest$ac_exeext conftest.$ac_ext
16633 ac_res=`eval echo '${'$as_ac_var'}'`
16634 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16635 echo "${ECHO_T}$ac_res" >&6; }
16636 if test `eval echo '${'$as_ac_var'}'` = yes; then
16637 cat >>confdefs.h <<_ACEOF
16638 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16645 # Solaris has libkstat which does not require root.
16647 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16648 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16649 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16650 echo $ECHO_N "(cached
) $ECHO_C" >&6
16652 ac_check_lib_save_LIBS=$LIBS
16653 LIBS="-lkstat $LIBS"
16654 cat >conftest.$ac_ext <<_ACEOF
16657 cat confdefs.h >>conftest.$ac_ext
16658 cat >>conftest.$ac_ext <<_ACEOF
16659 /* end confdefs.h. */
16661 /* Override any GCC internal prototype to avoid an error.
16662 Use char because int might match the return type of a GCC
16663 builtin and then its argument prototype would still apply. */
16667 char kstat_open ();
16671 return kstat_open ();
16676 rm -f conftest.$ac_objext conftest$ac_exeext
16677 if { (ac_try="$ac_link"
16678 case "(($ac_try" in
16679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16680 *) ac_try_echo=$ac_try;;
16682 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16683 (eval "$ac_link") 2>conftest.er1
16685 grep -v '^ *+' conftest.er1 >conftest.err
16687 cat conftest.err >&5
16688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16689 (exit $ac_status); } && {
16690 test -z "$ac_c_werror_flag" ||
16691 test ! -s conftest.err
16692 } && test -s conftest$ac_exeext &&
16693 $as_test_x conftest$ac_exeext; then
16694 ac_cv_lib_kstat_kstat_open=yes
16696 echo "$as_me: failed program was
:" >&5
16697 sed 's/^/| /' conftest.$ac_ext >&5
16699 ac_cv_lib_kstat_kstat_open=no
16702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16703 conftest$ac_exeext conftest.$ac_ext
16704 LIBS=$ac_check_lib_save_LIBS
16706 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16707 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16708 if test $ac_cv_lib_kstat_kstat_open = yes; then
16709 cat >>confdefs.h <<_ACEOF
16710 #define HAVE_LIBKSTAT 1
16713 LIBS="-lkstat $LIBS"
16717 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16719 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16720 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16721 # to get the right answer into the cache.
16722 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16723 if test $ac_have_func = no; then
16724 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16725 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16726 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16727 echo $ECHO_N "(cached
) $ECHO_C" >&6
16729 ac_check_lib_save_LIBS=$LIBS
16731 cat >conftest.$ac_ext <<_ACEOF
16734 cat confdefs.h >>conftest.$ac_ext
16735 cat >>conftest.$ac_ext <<_ACEOF
16736 /* end confdefs.h. */
16738 /* Override any GCC internal prototype to avoid an error.
16739 Use char because int might match the return type of a GCC
16740 builtin and then its argument prototype would still apply. */
16748 return elf_begin ();
16753 rm -f conftest.$ac_objext conftest$ac_exeext
16754 if { (ac_try="$ac_link"
16755 case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16759 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_link") 2>conftest.er1
16762 grep -v '^ *+' conftest.er1 >conftest.err
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16766 (exit $ac_status); } && {
16767 test -z "$ac_c_werror_flag" ||
16768 test ! -s conftest.err
16769 } && test -s conftest$ac_exeext &&
16770 $as_test_x conftest$ac_exeext; then
16771 ac_cv_lib_elf_elf_begin=yes
16773 echo "$as_me: failed program was
:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16776 ac_cv_lib_elf_elf_begin=no
16779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16780 conftest$ac_exeext conftest.$ac_ext
16781 LIBS=$ac_check_lib_save_LIBS
16783 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16784 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16785 if test $ac_cv_lib_elf_elf_begin = yes; then
16790 if test $ac_have_func = no; then
16791 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16792 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16793 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16794 echo $ECHO_N "(cached
) $ECHO_C" >&6
16796 ac_check_lib_save_LIBS=$LIBS
16798 cat >conftest.$ac_ext <<_ACEOF
16801 cat confdefs.h >>conftest.$ac_ext
16802 cat >>conftest.$ac_ext <<_ACEOF
16803 /* end confdefs.h. */
16805 /* Override any GCC internal prototype to avoid an error.
16806 Use char because int might match the return type of a GCC
16807 builtin and then its argument prototype would still apply. */
16815 return kvm_open ();
16820 rm -f conftest.$ac_objext conftest$ac_exeext
16821 if { (ac_try="$ac_link"
16822 case "(($ac_try" in
16823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824 *) ac_try_echo=$ac_try;;
16826 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16827 (eval "$ac_link") 2>conftest.er1
16829 grep -v '^ *+' conftest.er1 >conftest.err
16831 cat conftest.err >&5
16832 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16833 (exit $ac_status); } && {
16834 test -z "$ac_c_werror_flag" ||
16835 test ! -s conftest.err
16836 } && test -s conftest$ac_exeext &&
16837 $as_test_x conftest$ac_exeext; then
16838 ac_cv_lib_kvm_kvm_open=yes
16840 echo "$as_me: failed program was
:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16843 ac_cv_lib_kvm_kvm_open=no
16846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16847 conftest$ac_exeext conftest.$ac_ext
16848 LIBS=$ac_check_lib_save_LIBS
16850 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16851 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16852 if test $ac_cv_lib_kvm_kvm_open = yes; then
16856 # Check for the 4.4BSD definition of getloadavg.
16857 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16858 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16859 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16860 echo $ECHO_N "(cached
) $ECHO_C" >&6
16862 ac_check_lib_save_LIBS=$LIBS
16863 LIBS="-lutil $LIBS"
16864 cat >conftest.$ac_ext <<_ACEOF
16867 cat confdefs.h >>conftest.$ac_ext
16868 cat >>conftest.$ac_ext <<_ACEOF
16869 /* end confdefs.h. */
16871 /* Override any GCC internal prototype to avoid an error.
16872 Use char because int might match the return type of a GCC
16873 builtin and then its argument prototype would still apply. */
16877 char getloadavg ();
16881 return getloadavg ();
16886 rm -f conftest.$ac_objext conftest$ac_exeext
16887 if { (ac_try="$ac_link"
16888 case "(($ac_try" in
16889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890 *) ac_try_echo=$ac_try;;
16892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16893 (eval "$ac_link") 2>conftest.er1
16895 grep -v '^ *+' conftest.er1 >conftest.err
16897 cat conftest.err >&5
16898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16899 (exit $ac_status); } && {
16900 test -z "$ac_c_werror_flag" ||
16901 test ! -s conftest.err
16902 } && test -s conftest$ac_exeext &&
16903 $as_test_x conftest$ac_exeext; then
16904 ac_cv_lib_util_getloadavg=yes
16906 echo "$as_me: failed program was
:" >&5
16907 sed 's/^/| /' conftest.$ac_ext >&5
16909 ac_cv_lib_util_getloadavg=no
16912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16913 conftest$ac_exeext conftest.$ac_ext
16914 LIBS=$ac_check_lib_save_LIBS
16916 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16917 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16918 if test $ac_cv_lib_util_getloadavg = yes; then
16919 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16924 if test $ac_have_func = no; then
16925 # There is a commonly available library for RS/6000 AIX.
16926 # Since it is not a standard part of AIX, it might be installed locally.
16927 ac_getloadavg_LIBS=$LIBS
16928 LIBS="-L/usr
/local
/lib
$LIBS"
16929 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16930 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16931 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16932 echo $ECHO_N "(cached
) $ECHO_C" >&6
16934 ac_check_lib_save_LIBS=$LIBS
16935 LIBS="-lgetloadavg $LIBS"
16936 cat >conftest.$ac_ext <<_ACEOF
16939 cat confdefs.h >>conftest.$ac_ext
16940 cat >>conftest.$ac_ext <<_ACEOF
16941 /* end confdefs.h. */
16943 /* Override any GCC internal prototype to avoid an error.
16944 Use char because int might match the return type of a GCC
16945 builtin and then its argument prototype would still apply. */
16949 char getloadavg ();
16953 return getloadavg ();
16958 rm -f conftest.$ac_objext conftest$ac_exeext
16959 if { (ac_try="$ac_link"
16960 case "(($ac_try" in
16961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16962 *) ac_try_echo=$ac_try;;
16964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16965 (eval "$ac_link") 2>conftest.er1
16967 grep -v '^ *+' conftest.er1 >conftest.err
16969 cat conftest.err >&5
16970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16971 (exit $ac_status); } && {
16972 test -z "$ac_c_werror_flag" ||
16973 test ! -s conftest.err
16974 } && test -s conftest$ac_exeext &&
16975 $as_test_x conftest$ac_exeext; then
16976 ac_cv_lib_getloadavg_getloadavg=yes
16978 echo "$as_me: failed program was
:" >&5
16979 sed 's/^/| /' conftest.$ac_ext >&5
16981 ac_cv_lib_getloadavg_getloadavg=no
16984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16985 conftest$ac_exeext conftest.$ac_ext
16986 LIBS=$ac_check_lib_save_LIBS
16988 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16989 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16990 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16991 LIBS="-lgetloadavg $LIBS"
16993 LIBS=$ac_getloadavg_LIBS
16998 # Make sure it is really in the library, if we think we found it,
16999 # otherwise set up the replacement function.
17001 for ac_func in getloadavg
17003 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17004 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17005 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17006 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17007 echo $ECHO_N "(cached
) $ECHO_C" >&6
17009 cat >conftest.$ac_ext <<_ACEOF
17012 cat confdefs.h >>conftest.$ac_ext
17013 cat >>conftest.$ac_ext <<_ACEOF
17014 /* end confdefs.h. */
17015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17017 #define $ac_func innocuous_$ac_func
17019 /* System header to define __stub macros and hopefully few prototypes,
17020 which can conflict with char $ac_func (); below.
17021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17022 <limits.h> exists even on freestanding compilers. */
17025 # include <limits.h>
17027 # include <assert.h>
17032 /* Override any GCC internal prototype to avoid an error.
17033 Use char because int might match the return type of a GCC
17034 builtin and then its argument prototype would still apply. */
17039 /* The GNU C library defines this for functions which it implements
17040 to always fail with ENOSYS. Some functions are actually named
17041 something starting with __ and the normal name is an alias. */
17042 #if defined __stub_$ac_func || defined __stub___$ac_func
17049 return $ac_func ();
17054 rm -f conftest.$ac_objext conftest$ac_exeext
17055 if { (ac_try="$ac_link"
17056 case "(($ac_try" in
17057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17058 *) ac_try_echo=$ac_try;;
17060 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17061 (eval "$ac_link") 2>conftest.er1
17063 grep -v '^ *+' conftest.er1 >conftest.err
17065 cat conftest.err >&5
17066 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17067 (exit $ac_status); } && {
17068 test -z "$ac_c_werror_flag" ||
17069 test ! -s conftest.err
17070 } && test -s conftest$ac_exeext &&
17071 $as_test_x conftest$ac_exeext; then
17072 eval "$as_ac_var=yes"
17074 echo "$as_me: failed program was
:" >&5
17075 sed 's/^/| /' conftest.$ac_ext >&5
17077 eval "$as_ac_var=no
"
17080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17081 conftest$ac_exeext conftest.$ac_ext
17083 ac_res=`eval echo '${'$as_ac_var'}'`
17084 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17085 echo "${ECHO_T}$ac_res" >&6; }
17086 if test `eval echo '${'$as_ac_var'}'` = yes; then
17087 cat >>confdefs.h <<_ACEOF
17088 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17092 case " $LIBOBJS " in
17093 *" getloadavg.
$ac_objext "* ) ;;
17094 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17099 cat >>confdefs.h <<\_ACEOF
17100 #define C_GETLOADAVG 1
17103 # Figure out what our getloadavg.c needs.
17105 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17106 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17107 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17108 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17109 echo $ECHO_N "(cached
) $ECHO_C" >&6
17111 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17112 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17114 # Is the header compilable?
17115 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17116 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17117 cat >conftest.$ac_ext <<_ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h. */
17123 $ac_includes_default
17124 #include <sys/dg_sys_info.h>
17126 rm -f conftest.$ac_objext
17127 if { (ac_try="$ac_compile"
17128 case "(($ac_try" in
17129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130 *) ac_try_echo=$ac_try;;
17132 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17133 (eval "$ac_compile") 2>conftest.er1
17135 grep -v '^ *+' conftest.er1 >conftest.err
17137 cat conftest.err >&5
17138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17139 (exit $ac_status); } && {
17140 test -z "$ac_c_werror_flag" ||
17141 test ! -s conftest.err
17142 } && test -s conftest.$ac_objext; then
17143 ac_header_compiler=yes
17145 echo "$as_me: failed program was
:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17148 ac_header_compiler=no
17151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17152 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17153 echo "${ECHO_T}$ac_header_compiler" >&6; }
17155 # Is the header present?
17156 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17157 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17158 cat >conftest.$ac_ext <<_ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h. */
17164 #include <sys/dg_sys_info.h>
17166 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17167 case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17171 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17174 grep -v '^ *+' conftest.er1 >conftest.err
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17178 (exit $ac_status); } >/dev/null && {
17179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17180 test ! -s conftest.err
17182 ac_header_preproc=yes
17184 echo "$as_me: failed program was
:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17187 ac_header_preproc=no
17190 rm -f conftest.err conftest.$ac_ext
17191 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17192 echo "${ECHO_T}$ac_header_preproc" >&6; }
17194 # So? What about this header?
17195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17197 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17198 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17199 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17200 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17201 ac_header_preproc=yes
17204 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17205 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17206 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17207 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17208 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17209 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17210 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17211 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17212 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17213 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17214 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17215 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17219 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17220 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17221 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17222 echo $ECHO_N "(cached
) $ECHO_C" >&6
17224 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17226 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17227 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17230 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17233 cat >>confdefs.h <<\_ACEOF
17238 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17239 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17240 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17241 echo $ECHO_N "(cached
) $ECHO_C" >&6
17243 ac_check_lib_save_LIBS=$LIBS
17245 cat >conftest.$ac_ext <<_ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h. */
17252 /* Override any GCC internal prototype to avoid an error.
17253 Use char because int might match the return type of a GCC
17254 builtin and then its argument prototype would still apply. */
17258 char dg_sys_info ();
17262 return dg_sys_info ();
17267 rm -f conftest.$ac_objext conftest$ac_exeext
17268 if { (ac_try="$ac_link"
17269 case "(($ac_try" in
17270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17271 *) ac_try_echo=$ac_try;;
17273 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17274 (eval "$ac_link") 2>conftest.er1
17276 grep -v '^ *+' conftest.er1 >conftest.err
17278 cat conftest.err >&5
17279 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17280 (exit $ac_status); } && {
17281 test -z "$ac_c_werror_flag" ||
17282 test ! -s conftest.err
17283 } && test -s conftest$ac_exeext &&
17284 $as_test_x conftest$ac_exeext; then
17285 ac_cv_lib_dgc_dg_sys_info=yes
17287 echo "$as_me: failed program was
:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17290 ac_cv_lib_dgc_dg_sys_info=no
17293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17294 conftest$ac_exeext conftest.$ac_ext
17295 LIBS=$ac_check_lib_save_LIBS
17297 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17298 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17299 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17300 cat >>confdefs.h <<_ACEOF
17301 #define HAVE_LIBDGC 1
17312 if test "${ac_cv_header_locale_h+set}" = set; then
17313 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17314 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17315 if test "${ac_cv_header_locale_h+set}" = set; then
17316 echo $ECHO_N "(cached
) $ECHO_C" >&6
17318 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17319 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17321 # Is the header compilable?
17322 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17323 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17324 cat >conftest.$ac_ext <<_ACEOF
17327 cat confdefs.h >>conftest.$ac_ext
17328 cat >>conftest.$ac_ext <<_ACEOF
17329 /* end confdefs.h. */
17330 $ac_includes_default
17331 #include <locale.h>
17333 rm -f conftest.$ac_objext
17334 if { (ac_try="$ac_compile"
17335 case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17339 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_compile") 2>conftest.er1
17342 grep -v '^ *+' conftest.er1 >conftest.err
17344 cat conftest.err >&5
17345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17346 (exit $ac_status); } && {
17347 test -z "$ac_c_werror_flag" ||
17348 test ! -s conftest.err
17349 } && test -s conftest.$ac_objext; then
17350 ac_header_compiler=yes
17352 echo "$as_me: failed program was
:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17355 ac_header_compiler=no
17358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17359 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17360 echo "${ECHO_T}$ac_header_compiler" >&6; }
17362 # Is the header present?
17363 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17364 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17365 cat >conftest.$ac_ext <<_ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17371 #include <locale.h>
17373 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17374 case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17381 grep -v '^ *+' conftest.er1 >conftest.err
17383 cat conftest.err >&5
17384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17385 (exit $ac_status); } >/dev/null && {
17386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17387 test ! -s conftest.err
17389 ac_header_preproc=yes
17391 echo "$as_me: failed program was
:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17394 ac_header_preproc=no
17397 rm -f conftest.err conftest.$ac_ext
17398 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17399 echo "${ECHO_T}$ac_header_preproc" >&6; }
17401 # So? What about this header?
17402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17404 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17405 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17406 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17407 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17408 ac_header_preproc=yes
17411 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17412 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17413 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17414 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17415 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17416 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17417 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17418 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17419 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17420 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17421 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17422 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17426 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17427 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17428 if test "${ac_cv_header_locale_h+set}" = set; then
17429 echo $ECHO_N "(cached
) $ECHO_C" >&6
17431 ac_cv_header_locale_h=$ac_header_preproc
17433 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17434 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17440 for ac_func in setlocale
17442 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17443 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17444 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17445 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17446 echo $ECHO_N "(cached
) $ECHO_C" >&6
17448 cat >conftest.$ac_ext <<_ACEOF
17451 cat confdefs.h >>conftest.$ac_ext
17452 cat >>conftest.$ac_ext <<_ACEOF
17453 /* end confdefs.h. */
17454 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17456 #define $ac_func innocuous_$ac_func
17458 /* System header to define __stub macros and hopefully few prototypes,
17459 which can conflict with char $ac_func (); below.
17460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17461 <limits.h> exists even on freestanding compilers. */
17464 # include <limits.h>
17466 # include <assert.h>
17471 /* Override any GCC internal prototype to avoid an error.
17472 Use char because int might match the return type of a GCC
17473 builtin and then its argument prototype would still apply. */
17478 /* The GNU C library defines this for functions which it implements
17479 to always fail with ENOSYS. Some functions are actually named
17480 something starting with __ and the normal name is an alias. */
17481 #if defined __stub_$ac_func || defined __stub___$ac_func
17488 return $ac_func ();
17493 rm -f conftest.$ac_objext conftest$ac_exeext
17494 if { (ac_try="$ac_link"
17495 case "(($ac_try" in
17496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17497 *) ac_try_echo=$ac_try;;
17499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_link") 2>conftest.er1
17502 grep -v '^ *+' conftest.er1 >conftest.err
17504 cat conftest.err >&5
17505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17506 (exit $ac_status); } && {
17507 test -z "$ac_c_werror_flag" ||
17508 test ! -s conftest.err
17509 } && test -s conftest$ac_exeext &&
17510 $as_test_x conftest$ac_exeext; then
17511 eval "$as_ac_var=yes"
17513 echo "$as_me: failed program was
:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17516 eval "$as_ac_var=no
"
17519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17520 conftest$ac_exeext conftest.$ac_ext
17522 ac_res=`eval echo '${'$as_ac_var'}'`
17523 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17524 echo "${ECHO_T}$ac_res" >&6; }
17525 if test `eval echo '${'$as_ac_var'}'` = yes; then
17526 cat >>confdefs.h <<_ACEOF
17527 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17534 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17535 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17536 # Irix 4.0.5F has the header but not the library.
17537 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17540 cat >>confdefs.h <<\_ACEOF
17546 if test $ac_have_func = no; then
17547 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17548 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17549 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17550 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17551 echo $ECHO_N "(cached
) $ECHO_C" >&6
17553 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17554 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17556 # Is the header compilable?
17557 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17558 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17559 cat >conftest.$ac_ext <<_ACEOF
17562 cat confdefs.h >>conftest.$ac_ext
17563 cat >>conftest.$ac_ext <<_ACEOF
17564 /* end confdefs.h. */
17565 $ac_includes_default
17566 #include <inq_stats/cpustats.h>
17568 rm -f conftest.$ac_objext
17569 if { (ac_try="$ac_compile"
17570 case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_compile") 2>conftest.er1
17577 grep -v '^ *+' conftest.er1 >conftest.err
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17581 (exit $ac_status); } && {
17582 test -z "$ac_c_werror_flag" ||
17583 test ! -s conftest.err
17584 } && test -s conftest.$ac_objext; then
17585 ac_header_compiler=yes
17587 echo "$as_me: failed program was
:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17590 ac_header_compiler=no
17593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17594 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17595 echo "${ECHO_T}$ac_header_compiler" >&6; }
17597 # Is the header present?
17598 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17599 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17600 cat >conftest.$ac_ext <<_ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h. */
17606 #include <inq_stats/cpustats.h>
17608 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17616 grep -v '^ *+' conftest.er1 >conftest.err
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17620 (exit $ac_status); } >/dev/null && {
17621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17622 test ! -s conftest.err
17624 ac_header_preproc=yes
17626 echo "$as_me: failed program was
:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17629 ac_header_preproc=no
17632 rm -f conftest.err conftest.$ac_ext
17633 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17634 echo "${ECHO_T}$ac_header_preproc" >&6; }
17636 # So? What about this header?
17637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17639 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17640 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17641 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17642 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17643 ac_header_preproc=yes
17646 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17647 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17648 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17649 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17650 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17651 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17652 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17653 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17654 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17655 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17656 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17657 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17661 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17662 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17663 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17664 echo $ECHO_N "(cached
) $ECHO_C" >&6
17666 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17668 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17669 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17672 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17675 cat >>confdefs.h <<\_ACEOF
17680 cat >>confdefs.h <<\_ACEOF
17689 if test $ac_have_func = no; then
17690 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17691 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17692 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17693 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17694 echo $ECHO_N "(cached
) $ECHO_C" >&6
17696 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17697 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17699 # Is the header compilable?
17700 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17701 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17702 cat >conftest.$ac_ext <<_ACEOF
17705 cat confdefs.h >>conftest.$ac_ext
17706 cat >>conftest.$ac_ext <<_ACEOF
17707 /* end confdefs.h. */
17708 $ac_includes_default
17709 #include <sys/cpustats.h>
17711 rm -f conftest.$ac_objext
17712 if { (ac_try="$ac_compile"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17717 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_compile") 2>conftest.er1
17720 grep -v '^ *+' conftest.er1 >conftest.err
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17724 (exit $ac_status); } && {
17725 test -z "$ac_c_werror_flag" ||
17726 test ! -s conftest.err
17727 } && test -s conftest.$ac_objext; then
17728 ac_header_compiler=yes
17730 echo "$as_me: failed program was
:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17733 ac_header_compiler=no
17736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17737 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17738 echo "${ECHO_T}$ac_header_compiler" >&6; }
17740 # Is the header present?
17741 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17742 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17743 cat >conftest.$ac_ext <<_ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h. */
17749 #include <sys/cpustats.h>
17751 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17752 case "(($ac_try" in
17753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754 *) ac_try_echo=$ac_try;;
17756 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17757 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17759 grep -v '^ *+' conftest.er1 >conftest.err
17761 cat conftest.err >&5
17762 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17763 (exit $ac_status); } >/dev/null && {
17764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17765 test ! -s conftest.err
17767 ac_header_preproc=yes
17769 echo "$as_me: failed program was
:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17772 ac_header_preproc=no
17775 rm -f conftest.err conftest.$ac_ext
17776 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17777 echo "${ECHO_T}$ac_header_preproc" >&6; }
17779 # So? What about this header?
17780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17782 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17783 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17784 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17785 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17786 ac_header_preproc=yes
17789 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17790 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17791 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17792 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17793 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17794 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17795 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17796 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17797 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17798 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17799 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17800 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17804 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17805 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17806 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17807 echo $ECHO_N "(cached
) $ECHO_C" >&6
17809 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17811 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17812 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17815 if test $ac_cv_header_sys_cpustats_h = yes; then
17816 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17825 if test $ac_have_func = no; then
17827 for ac_header in mach/mach.h
17829 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17830 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17831 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17832 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17833 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17834 echo $ECHO_N "(cached
) $ECHO_C" >&6
17836 ac_res=`eval echo '${'$as_ac_Header'}'`
17837 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17838 echo "${ECHO_T}$ac_res" >&6; }
17840 # Is the header compilable?
17841 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17842 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17843 cat >conftest.$ac_ext <<_ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h. */
17849 $ac_includes_default
17850 #include <$ac_header>
17852 rm -f conftest.$ac_objext
17853 if { (ac_try="$ac_compile"
17854 case "(($ac_try" in
17855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856 *) ac_try_echo=$ac_try;;
17858 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17859 (eval "$ac_compile") 2>conftest.er1
17861 grep -v '^ *+' conftest.er1 >conftest.err
17863 cat conftest.err >&5
17864 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17865 (exit $ac_status); } && {
17866 test -z "$ac_c_werror_flag" ||
17867 test ! -s conftest.err
17868 } && test -s conftest.$ac_objext; then
17869 ac_header_compiler=yes
17871 echo "$as_me: failed program was
:" >&5
17872 sed 's/^/| /' conftest.$ac_ext >&5
17874 ac_header_compiler=no
17877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17878 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17879 echo "${ECHO_T}$ac_header_compiler" >&6; }
17881 # Is the header present?
17882 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17883 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17884 cat >conftest.$ac_ext <<_ACEOF
17887 cat confdefs.h >>conftest.$ac_ext
17888 cat >>conftest.$ac_ext <<_ACEOF
17889 /* end confdefs.h. */
17890 #include <$ac_header>
17892 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17893 case "(($ac_try" in
17894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17895 *) ac_try_echo=$ac_try;;
17897 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17900 grep -v '^ *+' conftest.er1 >conftest.err
17902 cat conftest.err >&5
17903 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17904 (exit $ac_status); } >/dev/null && {
17905 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17906 test ! -s conftest.err
17908 ac_header_preproc=yes
17910 echo "$as_me: failed program was
:" >&5
17911 sed 's/^/| /' conftest.$ac_ext >&5
17913 ac_header_preproc=no
17916 rm -f conftest.err conftest.$ac_ext
17917 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17918 echo "${ECHO_T}$ac_header_preproc" >&6; }
17920 # So? What about this header?
17921 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17923 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17924 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17925 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17926 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17927 ac_header_preproc=yes
17930 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17931 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17932 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17933 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17934 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17935 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17936 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17937 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17938 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17939 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17940 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17941 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17945 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17946 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17947 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17948 echo $ECHO_N "(cached
) $ECHO_C" >&6
17950 eval "$as_ac_Header=\
$ac_header_preproc"
17952 ac_res=`eval echo '${'$as_ac_Header'}'`
17953 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17954 echo "${ECHO_T}$ac_res" >&6; }
17957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17958 cat >>confdefs.h <<_ACEOF
17959 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17969 for ac_header in nlist.h
17971 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17972 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17973 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17974 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17975 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17976 echo $ECHO_N "(cached
) $ECHO_C" >&6
17978 ac_res=`eval echo '${'$as_ac_Header'}'`
17979 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17980 echo "${ECHO_T}$ac_res" >&6; }
17982 # Is the header compilable?
17983 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17984 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17985 cat >conftest.$ac_ext <<_ACEOF
17988 cat confdefs.h >>conftest.$ac_ext
17989 cat >>conftest.$ac_ext <<_ACEOF
17990 /* end confdefs.h. */
17991 $ac_includes_default
17992 #include <$ac_header>
17994 rm -f conftest.$ac_objext
17995 if { (ac_try="$ac_compile"
17996 case "(($ac_try" in
17997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998 *) ac_try_echo=$ac_try;;
18000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18001 (eval "$ac_compile") 2>conftest.er1
18003 grep -v '^ *+' conftest.er1 >conftest.err
18005 cat conftest.err >&5
18006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18007 (exit $ac_status); } && {
18008 test -z "$ac_c_werror_flag" ||
18009 test ! -s conftest.err
18010 } && test -s conftest.$ac_objext; then
18011 ac_header_compiler=yes
18013 echo "$as_me: failed program was
:" >&5
18014 sed 's/^/| /' conftest.$ac_ext >&5
18016 ac_header_compiler=no
18019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18020 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18021 echo "${ECHO_T}$ac_header_compiler" >&6; }
18023 # Is the header present?
18024 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18025 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18026 cat >conftest.$ac_ext <<_ACEOF
18029 cat confdefs.h >>conftest.$ac_ext
18030 cat >>conftest.$ac_ext <<_ACEOF
18031 /* end confdefs.h. */
18032 #include <$ac_header>
18034 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18035 case "(($ac_try" in
18036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037 *) ac_try_echo=$ac_try;;
18039 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18040 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18042 grep -v '^ *+' conftest.er1 >conftest.err
18044 cat conftest.err >&5
18045 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18046 (exit $ac_status); } >/dev/null && {
18047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18048 test ! -s conftest.err
18050 ac_header_preproc=yes
18052 echo "$as_me: failed program was
:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18055 ac_header_preproc=no
18058 rm -f conftest.err conftest.$ac_ext
18059 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18060 echo "${ECHO_T}$ac_header_preproc" >&6; }
18062 # So? What about this header?
18063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18065 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18066 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18067 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18069 ac_header_preproc=yes
18072 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18073 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18074 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18075 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18076 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18077 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18078 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18079 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18080 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18082 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18083 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18087 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18088 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18089 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18090 echo $ECHO_N "(cached
) $ECHO_C" >&6
18092 eval "$as_ac_Header=\
$ac_header_preproc"
18094 ac_res=`eval echo '${'$as_ac_Header'}'`
18095 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18096 echo "${ECHO_T}$ac_res" >&6; }
18099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18100 cat >>confdefs.h <<_ACEOF
18101 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18103 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18104 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18105 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18106 echo $ECHO_N "(cached
) $ECHO_C" >&6
18108 cat >conftest.$ac_ext <<_ACEOF
18111 cat confdefs.h >>conftest.$ac_ext
18112 cat >>conftest.$ac_ext <<_ACEOF
18113 /* end confdefs.h. */
18119 static struct nlist ac_aggr;
18120 if (ac_aggr.n_un.n_name)
18126 rm -f conftest.$ac_objext
18127 if { (ac_try="$ac_compile"
18128 case "(($ac_try" in
18129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18130 *) ac_try_echo=$ac_try;;
18132 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18133 (eval "$ac_compile") 2>conftest.er1
18135 grep -v '^ *+' conftest.er1 >conftest.err
18137 cat conftest.err >&5
18138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18139 (exit $ac_status); } && {
18140 test -z "$ac_c_werror_flag" ||
18141 test ! -s conftest.err
18142 } && test -s conftest.$ac_objext; then
18143 ac_cv_member_struct_nlist_n_un_n_name=yes
18145 echo "$as_me: failed program was
:" >&5
18146 sed 's/^/| /' conftest.$ac_ext >&5
18148 cat >conftest.$ac_ext <<_ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18159 static struct nlist ac_aggr;
18160 if (sizeof ac_aggr.n_un.n_name)
18166 rm -f conftest.$ac_objext
18167 if { (ac_try="$ac_compile"
18168 case "(($ac_try" in
18169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170 *) ac_try_echo=$ac_try;;
18172 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18173 (eval "$ac_compile") 2>conftest.er1
18175 grep -v '^ *+' conftest.er1 >conftest.err
18177 cat conftest.err >&5
18178 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18179 (exit $ac_status); } && {
18180 test -z "$ac_c_werror_flag" ||
18181 test ! -s conftest.err
18182 } && test -s conftest.$ac_objext; then
18183 ac_cv_member_struct_nlist_n_un_n_name=yes
18185 echo "$as_me: failed program was
:" >&5
18186 sed 's/^/| /' conftest.$ac_ext >&5
18188 ac_cv_member_struct_nlist_n_un_n_name=no
18191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18196 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18197 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18198 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18200 cat >>confdefs.h <<_ACEOF
18201 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18205 cat >>confdefs.h <<\_ACEOF
18206 #define NLIST_NAME_UNION 1
18220 # Some definitions of getloadavg require that the program be installed setgid.
18221 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18222 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18223 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18224 echo $ECHO_N "(cached
) $ECHO_C" >&6
18226 cat >conftest.$ac_ext <<_ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h. */
18232 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18233 #ifdef LDAV_PRIVILEGED
18234 Yowza Am I SETGID yet
18237 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18238 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18239 ac_cv_func_getloadavg_setgid=yes
18241 ac_cv_func_getloadavg_setgid=no
18246 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18247 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18248 if test $ac_cv_func_getloadavg_setgid = yes; then
18251 cat >>confdefs.h <<\_ACEOF
18252 #define GETLOADAVG_PRIVILEGED 1
18259 if test $ac_cv_func_getloadavg_setgid = yes; then
18260 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18261 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18262 if test "${ac_cv_group_kmem+set}" = set; then
18263 echo $ECHO_N "(cached
) $ECHO_C" >&6
18265 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18266 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18267 # If we got an error (system does not support symlinks), try without -L.
18268 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18269 ac_cv_group_kmem=`echo $ac_ls_output \
18270 | sed -ne 's/[ ][ ]*/ /g;
18271 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18275 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18276 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18277 KMEM_GROUP=$ac_cv_group_kmem
18279 if test "x
$ac_save_LIBS" = x; then
18280 GETLOADAVG_LIBS=$LIBS
18282 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18288 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18289 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18290 if test "${ac_cv_sys_largefile_source+set}" = set; then
18291 echo $ECHO_N "(cached
) $ECHO_C" >&6
18294 cat >conftest.$ac_ext <<_ACEOF
18297 cat confdefs.h >>conftest.$ac_ext
18298 cat >>conftest.$ac_ext <<_ACEOF
18299 /* end confdefs.h. */
18300 #include <sys/types.h> /* for off_t */
18305 int (*fp) (FILE *, off_t, int) = fseeko;
18306 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18311 rm -f conftest.$ac_objext conftest$ac_exeext
18312 if { (ac_try="$ac_link"
18313 case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_link") 2>conftest.er1
18320 grep -v '^ *+' conftest.er1 >conftest.err
18322 cat conftest.err >&5
18323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18324 (exit $ac_status); } && {
18325 test -z "$ac_c_werror_flag" ||
18326 test ! -s conftest.err
18327 } && test -s conftest$ac_exeext &&
18328 $as_test_x conftest$ac_exeext; then
18329 ac_cv_sys_largefile_source=no; break
18331 echo "$as_me: failed program was
:" >&5
18332 sed 's/^/| /' conftest.$ac_ext >&5
18337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18338 conftest$ac_exeext conftest.$ac_ext
18339 cat >conftest.$ac_ext <<_ACEOF
18342 cat confdefs.h >>conftest.$ac_ext
18343 cat >>conftest.$ac_ext <<_ACEOF
18344 /* end confdefs.h. */
18345 #define _LARGEFILE_SOURCE 1
18346 #include <sys/types.h> /* for off_t */
18351 int (*fp) (FILE *, off_t, int) = fseeko;
18352 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18357 rm -f conftest.$ac_objext conftest$ac_exeext
18358 if { (ac_try="$ac_link"
18359 case "(($ac_try" in
18360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18361 *) ac_try_echo=$ac_try;;
18363 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18364 (eval "$ac_link") 2>conftest.er1
18366 grep -v '^ *+' conftest.er1 >conftest.err
18368 cat conftest.err >&5
18369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18370 (exit $ac_status); } && {
18371 test -z "$ac_c_werror_flag" ||
18372 test ! -s conftest.err
18373 } && test -s conftest$ac_exeext &&
18374 $as_test_x conftest$ac_exeext; then
18375 ac_cv_sys_largefile_source=1; break
18377 echo "$as_me: failed program was
:" >&5
18378 sed 's/^/| /' conftest.$ac_ext >&5
18383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18384 conftest$ac_exeext conftest.$ac_ext
18385 ac_cv_sys_largefile_source=unknown
18389 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18390 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18391 case $ac_cv_sys_largefile_source in #(
18394 cat >>confdefs.h <<_ACEOF
18395 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18401 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18402 # in glibc 2.1.3, but that breaks too many other things.
18403 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18404 if test $ac_cv_sys_largefile_source != unknown; then
18406 cat >>confdefs.h <<\_ACEOF
18407 #define HAVE_FSEEKO 1
18413 # Configure getopt.
18414 # getopt.m4 serial 10
18416 # The getopt module assume you want GNU getopt, with getopt_long etc,
18417 # rather than vanilla POSIX getopt. This means your your code should
18418 # always include <getopt.h> for the getopt prototypes.
18430 # Prerequisites of lib/getopt*.
18437 for ac_header in getopt.h
18439 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18440 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18441 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18442 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18443 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18444 echo $ECHO_N "(cached
) $ECHO_C" >&6
18446 ac_res=`eval echo '${'$as_ac_Header'}'`
18447 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18448 echo "${ECHO_T}$ac_res" >&6; }
18450 # Is the header compilable?
18451 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18452 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18453 cat >conftest.$ac_ext <<_ACEOF
18456 cat confdefs.h >>conftest.$ac_ext
18457 cat >>conftest.$ac_ext <<_ACEOF
18458 /* end confdefs.h. */
18459 $ac_includes_default
18460 #include <$ac_header>
18462 rm -f conftest.$ac_objext
18463 if { (ac_try="$ac_compile"
18464 case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18468 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18469 (eval "$ac_compile") 2>conftest.er1
18471 grep -v '^ *+' conftest.er1 >conftest.err
18473 cat conftest.err >&5
18474 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18475 (exit $ac_status); } && {
18476 test -z "$ac_c_werror_flag" ||
18477 test ! -s conftest.err
18478 } && test -s conftest.$ac_objext; then
18479 ac_header_compiler=yes
18481 echo "$as_me: failed program was
:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18484 ac_header_compiler=no
18487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18488 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18489 echo "${ECHO_T}$ac_header_compiler" >&6; }
18491 # Is the header present?
18492 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18493 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18494 cat >conftest.$ac_ext <<_ACEOF
18497 cat confdefs.h >>conftest.$ac_ext
18498 cat >>conftest.$ac_ext <<_ACEOF
18499 /* end confdefs.h. */
18500 #include <$ac_header>
18502 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18503 case "(($ac_try" in
18504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18508 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18510 grep -v '^ *+' conftest.er1 >conftest.err
18512 cat conftest.err >&5
18513 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18514 (exit $ac_status); } >/dev/null && {
18515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18516 test ! -s conftest.err
18518 ac_header_preproc=yes
18520 echo "$as_me: failed program was
:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18523 ac_header_preproc=no
18526 rm -f conftest.err conftest.$ac_ext
18527 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18528 echo "${ECHO_T}$ac_header_preproc" >&6; }
18530 # So? What about this header?
18531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18533 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18534 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18535 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18537 ac_header_preproc=yes
18540 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18541 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18542 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18543 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18544 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18545 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18546 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18547 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18548 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18550 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18551 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18555 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18556 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18557 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18558 echo $ECHO_N "(cached
) $ECHO_C" >&6
18560 eval "$as_ac_Header=\
$ac_header_preproc"
18562 ac_res=`eval echo '${'$as_ac_Header'}'`
18563 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18564 echo "${ECHO_T}$ac_res" >&6; }
18567 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18568 cat >>confdefs.h <<_ACEOF
18569 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18578 if test -z "$GETOPT_H"; then
18580 for ac_func in getopt_long_only
18582 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18583 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18584 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18585 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18586 echo $ECHO_N "(cached
) $ECHO_C" >&6
18588 cat >conftest.$ac_ext <<_ACEOF
18591 cat confdefs.h >>conftest.$ac_ext
18592 cat >>conftest.$ac_ext <<_ACEOF
18593 /* end confdefs.h. */
18594 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18596 #define $ac_func innocuous_$ac_func
18598 /* System header to define __stub macros and hopefully few prototypes,
18599 which can conflict with char $ac_func (); below.
18600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18601 <limits.h> exists even on freestanding compilers. */
18604 # include <limits.h>
18606 # include <assert.h>
18611 /* Override any GCC internal prototype to avoid an error.
18612 Use char because int might match the return type of a GCC
18613 builtin and then its argument prototype would still apply. */
18618 /* The GNU C library defines this for functions which it implements
18619 to always fail with ENOSYS. Some functions are actually named
18620 something starting with __ and the normal name is an alias. */
18621 #if defined __stub_$ac_func || defined __stub___$ac_func
18628 return $ac_func ();
18633 rm -f conftest.$ac_objext conftest$ac_exeext
18634 if { (ac_try="$ac_link"
18635 case "(($ac_try" in
18636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18637 *) ac_try_echo=$ac_try;;
18639 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18640 (eval "$ac_link") 2>conftest.er1
18642 grep -v '^ *+' conftest.er1 >conftest.err
18644 cat conftest.err >&5
18645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18646 (exit $ac_status); } && {
18647 test -z "$ac_c_werror_flag" ||
18648 test ! -s conftest.err
18649 } && test -s conftest$ac_exeext &&
18650 $as_test_x conftest$ac_exeext; then
18651 eval "$as_ac_var=yes"
18653 echo "$as_me: failed program was
:" >&5
18654 sed 's/^/| /' conftest.$ac_ext >&5
18656 eval "$as_ac_var=no
"
18659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18660 conftest$ac_exeext conftest.$ac_ext
18662 ac_res=`eval echo '${'$as_ac_var'}'`
18663 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18664 echo "${ECHO_T}$ac_res" >&6; }
18665 if test `eval echo '${'$as_ac_var'}'` = yes; then
18666 cat >>confdefs.h <<_ACEOF
18667 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18677 if test -z "$GETOPT_H"; then
18678 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18679 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18680 if test "${ac_cv_have_decl_optreset+set}" = set; then
18681 echo $ECHO_N "(cached
) $ECHO_C" >&6
18683 cat >conftest.$ac_ext <<_ACEOF
18686 cat confdefs.h >>conftest.$ac_ext
18687 cat >>conftest.$ac_ext <<_ACEOF
18688 /* end confdefs.h. */
18689 #include <getopt.h>
18702 rm -f conftest.$ac_objext
18703 if { (ac_try="$ac_compile"
18704 case "(($ac_try" in
18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706 *) ac_try_echo=$ac_try;;
18708 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18709 (eval "$ac_compile") 2>conftest.er1
18711 grep -v '^ *+' conftest.er1 >conftest.err
18713 cat conftest.err >&5
18714 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18715 (exit $ac_status); } && {
18716 test -z "$ac_c_werror_flag" ||
18717 test ! -s conftest.err
18718 } && test -s conftest.$ac_objext; then
18719 ac_cv_have_decl_optreset=yes
18721 echo "$as_me: failed program was
:" >&5
18722 sed 's/^/| /' conftest.$ac_ext >&5
18724 ac_cv_have_decl_optreset=no
18727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18729 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18730 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18731 if test $ac_cv_have_decl_optreset = yes; then
18737 if test -z "$GETOPT_H"; then
18738 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18739 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18740 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18741 echo $ECHO_N "(cached
) $ECHO_C" >&6
18743 if test "$cross_compiling" = yes; then
18744 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18745 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18746 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18747 echo $ECHO_N "(cached
) $ECHO_C" >&6
18749 cat >conftest.$ac_ext <<_ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h. */
18755 #include <getopt.h>
18760 #ifndef getopt_clip
18761 (void) getopt_clip;
18768 rm -f conftest.$ac_objext
18769 if { (ac_try="$ac_compile"
18770 case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18774 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_compile") 2>conftest.er1
18777 grep -v '^ *+' conftest.er1 >conftest.err
18779 cat conftest.err >&5
18780 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18781 (exit $ac_status); } && {
18782 test -z "$ac_c_werror_flag" ||
18783 test ! -s conftest.err
18784 } && test -s conftest.$ac_objext; then
18785 ac_cv_have_decl_getopt_clip=yes
18787 echo "$as_me: failed program was
:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18790 ac_cv_have_decl_getopt_clip=no
18793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18795 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18796 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18797 if test $ac_cv_have_decl_getopt_clip = yes; then
18798 gl_cv_func_gnu_getopt=no
18800 gl_cv_func_gnu_getopt=yes
18804 cat >conftest.$ac_ext <<_ACEOF
18807 cat confdefs.h >>conftest.$ac_ext
18808 cat >>conftest.$ac_ext <<_ACEOF
18809 /* end confdefs.h. */
18810 #include <getopt.h>
18816 myargv[0] = "conftest
";
18819 return getopt (2, myargv, "+a
") != '?';
18825 rm -f conftest$ac_exeext
18826 if { (ac_try="$ac_link"
18827 case "(($ac_try" in
18828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18829 *) ac_try_echo=$ac_try;;
18831 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18832 (eval "$ac_link") 2>&5
18834 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18835 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18836 { (case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_try") 2>&5
18843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18844 (exit $ac_status); }; }; then
18845 gl_cv_func_gnu_getopt=yes
18847 echo "$as_me: program exited with status
$ac_status" >&5
18848 echo "$as_me: failed program was
:" >&5
18849 sed 's/^/| /' conftest.$ac_ext >&5
18851 ( exit $ac_status )
18852 gl_cv_func_gnu_getopt=no
18854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18859 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18860 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18861 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18868 if test -n "$GETOPT_H"; then
18873 cat >>confdefs.h <<\_ACEOF
18874 #define __GETOPT_PREFIX rpl_
18880 GETOPTOBJS='getopt.o getopt1.o'
18887 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18888 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18889 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18890 echo $ECHO_N "(cached
) $ECHO_C" >&6
18892 # Use it with a single arg.
18893 cat >conftest.$ac_ext <<_ACEOF
18896 cat confdefs.h >>conftest.$ac_ext
18897 cat >>conftest.$ac_ext <<_ACEOF
18898 /* end confdefs.h. */
18899 $ac_includes_default
18908 rm -f conftest.$ac_objext
18909 if { (ac_try="$ac_compile"
18910 case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18915 (eval "$ac_compile") 2>conftest.er1
18917 grep -v '^ *+' conftest.er1 >conftest.err
18919 cat conftest.err >&5
18920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18921 (exit $ac_status); } && {
18922 test -z "$ac_c_werror_flag" ||
18923 test ! -s conftest.err
18924 } && test -s conftest.$ac_objext; then
18925 ac_cv_func_getpgrp_void=no
18927 echo "$as_me: failed program was
:" >&5
18928 sed 's/^/| /' conftest.$ac_ext >&5
18930 ac_cv_func_getpgrp_void=yes
18933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18936 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18937 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18938 if test $ac_cv_func_getpgrp_void = yes; then
18940 cat >>confdefs.h <<\_ACEOF
18941 #define GETPGRP_VOID 1
18948 for ac_func in strftime
18950 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18951 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18952 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18953 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18954 echo $ECHO_N "(cached
) $ECHO_C" >&6
18956 cat >conftest.$ac_ext <<_ACEOF
18959 cat confdefs.h >>conftest.$ac_ext
18960 cat >>conftest.$ac_ext <<_ACEOF
18961 /* end confdefs.h. */
18962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18964 #define $ac_func innocuous_$ac_func
18966 /* System header to define __stub macros and hopefully few prototypes,
18967 which can conflict with char $ac_func (); below.
18968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18969 <limits.h> exists even on freestanding compilers. */
18972 # include <limits.h>
18974 # include <assert.h>
18979 /* Override any GCC internal prototype to avoid an error.
18980 Use char because int might match the return type of a GCC
18981 builtin and then its argument prototype would still apply. */
18986 /* The GNU C library defines this for functions which it implements
18987 to always fail with ENOSYS. Some functions are actually named
18988 something starting with __ and the normal name is an alias. */
18989 #if defined __stub_$ac_func || defined __stub___$ac_func
18996 return $ac_func ();
19001 rm -f conftest.$ac_objext conftest$ac_exeext
19002 if { (ac_try="$ac_link"
19003 case "(($ac_try" in
19004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005 *) ac_try_echo=$ac_try;;
19007 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19008 (eval "$ac_link") 2>conftest.er1
19010 grep -v '^ *+' conftest.er1 >conftest.err
19012 cat conftest.err >&5
19013 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19014 (exit $ac_status); } && {
19015 test -z "$ac_c_werror_flag" ||
19016 test ! -s conftest.err
19017 } && test -s conftest$ac_exeext &&
19018 $as_test_x conftest$ac_exeext; then
19019 eval "$as_ac_var=yes"
19021 echo "$as_me: failed program was
:" >&5
19022 sed 's/^/| /' conftest.$ac_ext >&5
19024 eval "$as_ac_var=no
"
19027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19028 conftest$ac_exeext conftest.$ac_ext
19030 ac_res=`eval echo '${'$as_ac_var'}'`
19031 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19032 echo "${ECHO_T}$ac_res" >&6; }
19033 if test `eval echo '${'$as_ac_var'}'` = yes; then
19034 cat >>confdefs.h <<_ACEOF
19035 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19039 # strftime is in -lintl on SCO UNIX.
19040 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19041 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19042 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19043 echo $ECHO_N "(cached
) $ECHO_C" >&6
19045 ac_check_lib_save_LIBS=$LIBS
19046 LIBS="-lintl $LIBS"
19047 cat >conftest.$ac_ext <<_ACEOF
19050 cat confdefs.h >>conftest.$ac_ext
19051 cat >>conftest.$ac_ext <<_ACEOF
19052 /* end confdefs.h. */
19054 /* Override any GCC internal prototype to avoid an error.
19055 Use char because int might match the return type of a GCC
19056 builtin and then its argument prototype would still apply. */
19064 return strftime ();
19069 rm -f conftest.$ac_objext conftest$ac_exeext
19070 if { (ac_try="$ac_link"
19071 case "(($ac_try" in
19072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073 *) ac_try_echo=$ac_try;;
19075 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19076 (eval "$ac_link") 2>conftest.er1
19078 grep -v '^ *+' conftest.er1 >conftest.err
19080 cat conftest.err >&5
19081 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19082 (exit $ac_status); } && {
19083 test -z "$ac_c_werror_flag" ||
19084 test ! -s conftest.err
19085 } && test -s conftest$ac_exeext &&
19086 $as_test_x conftest$ac_exeext; then
19087 ac_cv_lib_intl_strftime=yes
19089 echo "$as_me: failed program was
:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19092 ac_cv_lib_intl_strftime=no
19095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19096 conftest$ac_exeext conftest.$ac_ext
19097 LIBS=$ac_check_lib_save_LIBS
19099 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19100 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19101 if test $ac_cv_lib_intl_strftime = yes; then
19102 cat >>confdefs.h <<\_ACEOF
19103 #define HAVE_STRFTIME 1
19106 LIBS="-lintl $LIBS"
19115 for ac_func in grantpt
19117 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19118 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19119 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19120 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19121 echo $ECHO_N "(cached
) $ECHO_C" >&6
19123 cat >conftest.$ac_ext <<_ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19131 #define $ac_func innocuous_$ac_func
19133 /* System header to define __stub macros and hopefully few prototypes,
19134 which can conflict with char $ac_func (); below.
19135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19136 <limits.h> exists even on freestanding compilers. */
19139 # include <limits.h>
19141 # include <assert.h>
19146 /* Override any GCC internal prototype to avoid an error.
19147 Use char because int might match the return type of a GCC
19148 builtin and then its argument prototype would still apply. */
19153 /* The GNU C library defines this for functions which it implements
19154 to always fail with ENOSYS. Some functions are actually named
19155 something starting with __ and the normal name is an alias. */
19156 #if defined __stub_$ac_func || defined __stub___$ac_func
19163 return $ac_func ();
19168 rm -f conftest.$ac_objext conftest$ac_exeext
19169 if { (ac_try="$ac_link"
19170 case "(($ac_try" in
19171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19172 *) ac_try_echo=$ac_try;;
19174 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19175 (eval "$ac_link") 2>conftest.er1
19177 grep -v '^ *+' conftest.er1 >conftest.err
19179 cat conftest.err >&5
19180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19181 (exit $ac_status); } && {
19182 test -z "$ac_c_werror_flag" ||
19183 test ! -s conftest.err
19184 } && test -s conftest$ac_exeext &&
19185 $as_test_x conftest$ac_exeext; then
19186 eval "$as_ac_var=yes"
19188 echo "$as_me: failed program was
:" >&5
19189 sed 's/^/| /' conftest.$ac_ext >&5
19191 eval "$as_ac_var=no
"
19194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19195 conftest$ac_exeext conftest.$ac_ext
19197 ac_res=`eval echo '${'$as_ac_var'}'`
19198 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19199 echo "${ECHO_T}$ac_res" >&6; }
19200 if test `eval echo '${'$as_ac_var'}'` = yes; then
19201 cat >>confdefs.h <<_ACEOF
19202 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19209 # PTY-related GNU extensions.
19211 for ac_func in getpt
19213 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19214 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19215 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19216 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19217 echo $ECHO_N "(cached
) $ECHO_C" >&6
19219 cat >conftest.$ac_ext <<_ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h. */
19225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19227 #define $ac_func innocuous_$ac_func
19229 /* System header to define __stub macros and hopefully few prototypes,
19230 which can conflict with char $ac_func (); below.
19231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19232 <limits.h> exists even on freestanding compilers. */
19235 # include <limits.h>
19237 # include <assert.h>
19242 /* Override any GCC internal prototype to avoid an error.
19243 Use char because int might match the return type of a GCC
19244 builtin and then its argument prototype would still apply. */
19249 /* The GNU C library defines this for functions which it implements
19250 to always fail with ENOSYS. Some functions are actually named
19251 something starting with __ and the normal name is an alias. */
19252 #if defined __stub_$ac_func || defined __stub___$ac_func
19259 return $ac_func ();
19264 rm -f conftest.$ac_objext conftest$ac_exeext
19265 if { (ac_try="$ac_link"
19266 case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19270 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_link") 2>conftest.er1
19273 grep -v '^ *+' conftest.er1 >conftest.err
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19277 (exit $ac_status); } && {
19278 test -z "$ac_c_werror_flag" ||
19279 test ! -s conftest.err
19280 } && test -s conftest$ac_exeext &&
19281 $as_test_x conftest$ac_exeext; then
19282 eval "$as_ac_var=yes"
19284 echo "$as_me: failed program was
:" >&5
19285 sed 's/^/| /' conftest.$ac_ext >&5
19287 eval "$as_ac_var=no
"
19290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19291 conftest$ac_exeext conftest.$ac_ext
19293 ac_res=`eval echo '${'$as_ac_var'}'`
19294 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19295 echo "${ECHO_T}$ac_res" >&6; }
19296 if test `eval echo '${'$as_ac_var'}'` = yes; then
19297 cat >>confdefs.h <<_ACEOF
19298 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19305 # Check this now, so that we will NOT find the above functions in ncurses.
19306 # That is because we have not set up to link ncurses in lib-src.
19307 # It's better to believe a function is not available
19308 # than to expect to find it in ncurses.
19310 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19311 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19312 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19313 echo $ECHO_N "(cached
) $ECHO_C" >&6
19315 ac_check_lib_save_LIBS=$LIBS
19316 LIBS="-lncurses $LIBS"
19317 cat >conftest.$ac_ext <<_ACEOF
19320 cat confdefs.h >>conftest.$ac_ext
19321 cat >>conftest.$ac_ext <<_ACEOF
19322 /* end confdefs.h. */
19324 /* Override any GCC internal prototype to avoid an error.
19325 Use char because int might match the return type of a GCC
19326 builtin and then its argument prototype would still apply. */
19339 rm -f conftest.$ac_objext conftest$ac_exeext
19340 if { (ac_try="$ac_link"
19341 case "(($ac_try" in
19342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343 *) ac_try_echo=$ac_try;;
19345 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19346 (eval "$ac_link") 2>conftest.er1
19348 grep -v '^ *+' conftest.er1 >conftest.err
19350 cat conftest.err >&5
19351 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19352 (exit $ac_status); } && {
19353 test -z "$ac_c_werror_flag" ||
19354 test ! -s conftest.err
19355 } && test -s conftest$ac_exeext &&
19356 $as_test_x conftest$ac_exeext; then
19357 ac_cv_lib_ncurses_tparm=yes
19359 echo "$as_me: failed program was
:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19362 ac_cv_lib_ncurses_tparm=no
19365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19366 conftest$ac_exeext conftest.$ac_ext
19367 LIBS=$ac_check_lib_save_LIBS
19369 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19370 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19371 if test $ac_cv_lib_ncurses_tparm = yes; then
19372 cat >>confdefs.h <<_ACEOF
19373 #define HAVE_LIBNCURSES 1
19376 LIBS="-lncurses $LIBS"
19381 # Do we need the Hesiod library to provide the support routines?
19382 if test "$with_hesiod" = yes ; then
19383 # Don't set $LIBS here -- see comments above.
19385 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19386 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19387 if test "${ac_cv_func_res_send+set}" = set; then
19388 echo $ECHO_N "(cached
) $ECHO_C" >&6
19390 cat >conftest.$ac_ext <<_ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19396 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19398 #define res_send innocuous_res_send
19400 /* System header to define __stub macros and hopefully few prototypes,
19401 which can conflict with char res_send (); below.
19402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19403 <limits.h> exists even on freestanding compilers. */
19406 # include <limits.h>
19408 # include <assert.h>
19413 /* Override any GCC internal prototype to avoid an error.
19414 Use char because int might match the return type of a GCC
19415 builtin and then its argument prototype would still apply. */
19420 /* The GNU C library defines this for functions which it implements
19421 to always fail with ENOSYS. Some functions are actually named
19422 something starting with __ and the normal name is an alias. */
19423 #if defined __stub_res_send || defined __stub___res_send
19430 return res_send ();
19435 rm -f conftest.$ac_objext conftest$ac_exeext
19436 if { (ac_try="$ac_link"
19437 case "(($ac_try" in
19438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439 *) ac_try_echo=$ac_try;;
19441 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19442 (eval "$ac_link") 2>conftest.er1
19444 grep -v '^ *+' conftest.er1 >conftest.err
19446 cat conftest.err >&5
19447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19448 (exit $ac_status); } && {
19449 test -z "$ac_c_werror_flag" ||
19450 test ! -s conftest.err
19451 } && test -s conftest$ac_exeext &&
19452 $as_test_x conftest$ac_exeext; then
19453 ac_cv_func_res_send=yes
19455 echo "$as_me: failed program was
:" >&5
19456 sed 's/^/| /' conftest.$ac_ext >&5
19458 ac_cv_func_res_send=no
19461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19462 conftest$ac_exeext conftest.$ac_ext
19464 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19465 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19466 if test $ac_cv_func_res_send = yes; then
19469 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19470 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19471 if test "${ac_cv_func___res_send+set}" = set; then
19472 echo $ECHO_N "(cached
) $ECHO_C" >&6
19474 cat >conftest.$ac_ext <<_ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h. */
19480 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19482 #define __res_send innocuous___res_send
19484 /* System header to define __stub macros and hopefully few prototypes,
19485 which can conflict with char __res_send (); below.
19486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19487 <limits.h> exists even on freestanding compilers. */
19490 # include <limits.h>
19492 # include <assert.h>
19497 /* Override any GCC internal prototype to avoid an error.
19498 Use char because int might match the return type of a GCC
19499 builtin and then its argument prototype would still apply. */
19503 char __res_send ();
19504 /* The GNU C library defines this for functions which it implements
19505 to always fail with ENOSYS. Some functions are actually named
19506 something starting with __ and the normal name is an alias. */
19507 #if defined __stub___res_send || defined __stub_____res_send
19514 return __res_send ();
19519 rm -f conftest.$ac_objext conftest$ac_exeext
19520 if { (ac_try="$ac_link"
19521 case "(($ac_try" in
19522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19523 *) ac_try_echo=$ac_try;;
19525 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19526 (eval "$ac_link") 2>conftest.er1
19528 grep -v '^ *+' conftest.er1 >conftest.err
19530 cat conftest.err >&5
19531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19532 (exit $ac_status); } && {
19533 test -z "$ac_c_werror_flag" ||
19534 test ! -s conftest.err
19535 } && test -s conftest$ac_exeext &&
19536 $as_test_x conftest$ac_exeext; then
19537 ac_cv_func___res_send=yes
19539 echo "$as_me: failed program was
:" >&5
19540 sed 's/^/| /' conftest.$ac_ext >&5
19542 ac_cv_func___res_send=no
19545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19546 conftest$ac_exeext conftest.$ac_ext
19548 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19549 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19550 if test $ac_cv_func___res_send = yes; then
19553 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19554 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19555 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19556 echo $ECHO_N "(cached
) $ECHO_C" >&6
19558 ac_check_lib_save_LIBS=$LIBS
19559 LIBS="-lresolv $LIBS"
19560 cat >conftest.$ac_ext <<_ACEOF
19563 cat confdefs.h >>conftest.$ac_ext
19564 cat >>conftest.$ac_ext <<_ACEOF
19565 /* end confdefs.h. */
19567 /* Override any GCC internal prototype to avoid an error.
19568 Use char because int might match the return type of a GCC
19569 builtin and then its argument prototype would still apply. */
19577 return res_send ();
19582 rm -f conftest.$ac_objext conftest$ac_exeext
19583 if { (ac_try="$ac_link"
19584 case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_link") 2>conftest.er1
19591 grep -v '^ *+' conftest.er1 >conftest.err
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19595 (exit $ac_status); } && {
19596 test -z "$ac_c_werror_flag" ||
19597 test ! -s conftest.err
19598 } && test -s conftest$ac_exeext &&
19599 $as_test_x conftest$ac_exeext; then
19600 ac_cv_lib_resolv_res_send=yes
19602 echo "$as_me: failed program was
:" >&5
19603 sed 's/^/| /' conftest.$ac_ext >&5
19605 ac_cv_lib_resolv_res_send=no
19608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19609 conftest$ac_exeext conftest.$ac_ext
19610 LIBS=$ac_check_lib_save_LIBS
19612 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19613 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19614 if test $ac_cv_lib_resolv_res_send = yes; then
19617 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19618 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19619 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19620 echo $ECHO_N "(cached
) $ECHO_C" >&6
19622 ac_check_lib_save_LIBS=$LIBS
19623 LIBS="-lresolv $LIBS"
19624 cat >conftest.$ac_ext <<_ACEOF
19627 cat confdefs.h >>conftest.$ac_ext
19628 cat >>conftest.$ac_ext <<_ACEOF
19629 /* end confdefs.h. */
19631 /* Override any GCC internal prototype to avoid an error.
19632 Use char because int might match the return type of a GCC
19633 builtin and then its argument prototype would still apply. */
19637 char __res_send ();
19641 return __res_send ();
19646 rm -f conftest.$ac_objext conftest$ac_exeext
19647 if { (ac_try="$ac_link"
19648 case "(($ac_try" in
19649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19650 *) ac_try_echo=$ac_try;;
19652 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19653 (eval "$ac_link") 2>conftest.er1
19655 grep -v '^ *+' conftest.er1 >conftest.err
19657 cat conftest.err >&5
19658 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19659 (exit $ac_status); } && {
19660 test -z "$ac_c_werror_flag" ||
19661 test ! -s conftest.err
19662 } && test -s conftest$ac_exeext &&
19663 $as_test_x conftest$ac_exeext; then
19664 ac_cv_lib_resolv___res_send=yes
19666 echo "$as_me: failed program was
:" >&5
19667 sed 's/^/| /' conftest.$ac_ext >&5
19669 ac_cv_lib_resolv___res_send=no
19672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19673 conftest$ac_exeext conftest.$ac_ext
19674 LIBS=$ac_check_lib_save_LIBS
19676 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19677 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19678 if test $ac_cv_lib_resolv___res_send = yes; then
19688 if test "$resolv" = yes ; then
19691 cat >>confdefs.h <<\_ACEOF
19692 #define HAVE_LIBRESOLV 1
19698 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19699 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19700 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19701 echo $ECHO_N "(cached
) $ECHO_C" >&6
19703 cat >conftest.$ac_ext <<_ACEOF
19706 cat confdefs.h >>conftest.$ac_ext
19707 cat >>conftest.$ac_ext <<_ACEOF
19708 /* end confdefs.h. */
19709 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19711 #define hes_getmailhost innocuous_hes_getmailhost
19713 /* System header to define __stub macros and hopefully few prototypes,
19714 which can conflict with char hes_getmailhost (); below.
19715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19716 <limits.h> exists even on freestanding compilers. */
19719 # include <limits.h>
19721 # include <assert.h>
19724 #undef hes_getmailhost
19726 /* Override any GCC internal prototype to avoid an error.
19727 Use char because int might match the return type of a GCC
19728 builtin and then its argument prototype would still apply. */
19732 char hes_getmailhost ();
19733 /* The GNU C library defines this for functions which it implements
19734 to always fail with ENOSYS. Some functions are actually named
19735 something starting with __ and the normal name is an alias. */
19736 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19743 return hes_getmailhost ();
19748 rm -f conftest.$ac_objext conftest$ac_exeext
19749 if { (ac_try="$ac_link"
19750 case "(($ac_try" in
19751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19752 *) ac_try_echo=$ac_try;;
19754 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19755 (eval "$ac_link") 2>conftest.er1
19757 grep -v '^ *+' conftest.er1 >conftest.err
19759 cat conftest.err >&5
19760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19761 (exit $ac_status); } && {
19762 test -z "$ac_c_werror_flag" ||
19763 test ! -s conftest.err
19764 } && test -s conftest$ac_exeext &&
19765 $as_test_x conftest$ac_exeext; then
19766 ac_cv_func_hes_getmailhost=yes
19768 echo "$as_me: failed program was
:" >&5
19769 sed 's/^/| /' conftest.$ac_ext >&5
19771 ac_cv_func_hes_getmailhost=no
19774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19775 conftest$ac_exeext conftest.$ac_ext
19777 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19778 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19779 if test $ac_cv_func_hes_getmailhost = yes; then
19782 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19783 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19784 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19785 echo $ECHO_N "(cached
) $ECHO_C" >&6
19787 ac_check_lib_save_LIBS=$LIBS
19788 LIBS="-lhesiod $RESOLVLIB $LIBS"
19789 cat >conftest.$ac_ext <<_ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h. */
19796 /* Override any GCC internal prototype to avoid an error.
19797 Use char because int might match the return type of a GCC
19798 builtin and then its argument prototype would still apply. */
19802 char hes_getmailhost ();
19806 return hes_getmailhost ();
19811 rm -f conftest.$ac_objext conftest$ac_exeext
19812 if { (ac_try="$ac_link"
19813 case "(($ac_try" in
19814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19815 *) ac_try_echo=$ac_try;;
19817 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19818 (eval "$ac_link") 2>conftest.er1
19820 grep -v '^ *+' conftest.er1 >conftest.err
19822 cat conftest.err >&5
19823 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19824 (exit $ac_status); } && {
19825 test -z "$ac_c_werror_flag" ||
19826 test ! -s conftest.err
19827 } && test -s conftest$ac_exeext &&
19828 $as_test_x conftest$ac_exeext; then
19829 ac_cv_lib_hesiod_hes_getmailhost=yes
19831 echo "$as_me: failed program was
:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19834 ac_cv_lib_hesiod_hes_getmailhost=no
19837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19838 conftest$ac_exeext conftest.$ac_ext
19839 LIBS=$ac_check_lib_save_LIBS
19841 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19842 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19843 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19845 cat >>confdefs.h <<\_ACEOF
19846 #define HAVE_LIBHESIOD 1
19857 # These tell us which Kerberos-related libraries to use.
19858 if test "${with_kerberos+set}" = set; then
19860 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19861 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19862 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19863 echo $ECHO_N "(cached
) $ECHO_C" >&6
19865 ac_check_lib_save_LIBS=$LIBS
19866 LIBS="-lcom_err $LIBS"
19867 cat >conftest.$ac_ext <<_ACEOF
19870 cat confdefs.h >>conftest.$ac_ext
19871 cat >>conftest.$ac_ext <<_ACEOF
19872 /* end confdefs.h. */
19874 /* Override any GCC internal prototype to avoid an error.
19875 Use char because int might match the return type of a GCC
19876 builtin and then its argument prototype would still apply. */
19889 rm -f conftest.$ac_objext conftest$ac_exeext
19890 if { (ac_try="$ac_link"
19891 case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19896 (eval "$ac_link") 2>conftest.er1
19898 grep -v '^ *+' conftest.er1 >conftest.err
19900 cat conftest.err >&5
19901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19902 (exit $ac_status); } && {
19903 test -z "$ac_c_werror_flag" ||
19904 test ! -s conftest.err
19905 } && test -s conftest$ac_exeext &&
19906 $as_test_x conftest$ac_exeext; then
19907 ac_cv_lib_com_err_com_err=yes
19909 echo "$as_me: failed program was
:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19912 ac_cv_lib_com_err_com_err=no
19915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19916 conftest$ac_exeext conftest.$ac_ext
19917 LIBS=$ac_check_lib_save_LIBS
19919 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19920 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19921 if test $ac_cv_lib_com_err_com_err = yes; then
19922 cat >>confdefs.h <<_ACEOF
19923 #define HAVE_LIBCOM_ERR 1
19926 LIBS="-lcom_err $LIBS"
19931 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19932 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19933 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19934 echo $ECHO_N "(cached
) $ECHO_C" >&6
19936 ac_check_lib_save_LIBS=$LIBS
19937 LIBS="-lk5crypto $LIBS"
19938 cat >conftest.$ac_ext <<_ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19945 /* Override any GCC internal prototype to avoid an error.
19946 Use char because int might match the return type of a GCC
19947 builtin and then its argument prototype would still apply. */
19951 char mit_des_cbc_encrypt ();
19955 return mit_des_cbc_encrypt ();
19960 rm -f conftest.$ac_objext conftest$ac_exeext
19961 if { (ac_try="$ac_link"
19962 case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19966 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_link") 2>conftest.er1
19969 grep -v '^ *+' conftest.er1 >conftest.err
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19973 (exit $ac_status); } && {
19974 test -z "$ac_c_werror_flag" ||
19975 test ! -s conftest.err
19976 } && test -s conftest$ac_exeext &&
19977 $as_test_x conftest$ac_exeext; then
19978 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19980 echo "$as_me: failed program was
:" >&5
19981 sed 's/^/| /' conftest.$ac_ext >&5
19983 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19987 conftest$ac_exeext conftest.$ac_ext
19988 LIBS=$ac_check_lib_save_LIBS
19990 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19991 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19992 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19993 cat >>confdefs.h <<_ACEOF
19994 #define HAVE_LIBK5CRYPTO 1
19997 LIBS="-lk5crypto $LIBS"
20002 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20003 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20004 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20005 echo $ECHO_N "(cached
) $ECHO_C" >&6
20007 ac_check_lib_save_LIBS=$LIBS
20008 LIBS="-lcrypto $LIBS"
20009 cat >conftest.$ac_ext <<_ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20016 /* Override any GCC internal prototype to avoid an error.
20017 Use char because int might match the return type of a GCC
20018 builtin and then its argument prototype would still apply. */
20022 char mit_des_cbc_encrypt ();
20026 return mit_des_cbc_encrypt ();
20031 rm -f conftest.$ac_objext conftest$ac_exeext
20032 if { (ac_try="$ac_link"
20033 case "(($ac_try" in
20034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_link") 2>conftest.er1
20040 grep -v '^ *+' conftest.er1 >conftest.err
20042 cat conftest.err >&5
20043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20044 (exit $ac_status); } && {
20045 test -z "$ac_c_werror_flag" ||
20046 test ! -s conftest.err
20047 } && test -s conftest$ac_exeext &&
20048 $as_test_x conftest$ac_exeext; then
20049 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20051 echo "$as_me: failed program was
:" >&5
20052 sed 's/^/| /' conftest.$ac_ext >&5
20054 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20058 conftest$ac_exeext conftest.$ac_ext
20059 LIBS=$ac_check_lib_save_LIBS
20061 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20062 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20063 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20064 cat >>confdefs.h <<_ACEOF
20065 #define HAVE_LIBCRYPTO 1
20068 LIBS="-lcrypto $LIBS"
20073 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20074 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20075 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20076 echo $ECHO_N "(cached
) $ECHO_C" >&6
20078 ac_check_lib_save_LIBS=$LIBS
20079 LIBS="-lkrb5 $LIBS"
20080 cat >conftest.$ac_ext <<_ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20087 /* Override any GCC internal prototype to avoid an error.
20088 Use char because int might match the return type of a GCC
20089 builtin and then its argument prototype would still apply. */
20093 char krb5_init_context ();
20097 return krb5_init_context ();
20102 rm -f conftest.$ac_objext conftest$ac_exeext
20103 if { (ac_try="$ac_link"
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_link") 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); } && {
20116 test -z "$ac_c_werror_flag" ||
20117 test ! -s conftest.err
20118 } && test -s conftest$ac_exeext &&
20119 $as_test_x conftest$ac_exeext; then
20120 ac_cv_lib_krb5_krb5_init_context=yes
20122 echo "$as_me: failed program was
:" >&5
20123 sed 's/^/| /' conftest.$ac_ext >&5
20125 ac_cv_lib_krb5_krb5_init_context=no
20128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20129 conftest$ac_exeext conftest.$ac_ext
20130 LIBS=$ac_check_lib_save_LIBS
20132 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20133 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20134 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20135 cat >>confdefs.h <<_ACEOF
20136 #define HAVE_LIBKRB5 1
20139 LIBS="-lkrb5 $LIBS"
20143 if test "${with_kerberos5+set}" != set; then
20145 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20146 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20147 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20148 echo $ECHO_N "(cached
) $ECHO_C" >&6
20150 ac_check_lib_save_LIBS=$LIBS
20151 LIBS="-ldes425 $LIBS"
20152 cat >conftest.$ac_ext <<_ACEOF
20155 cat confdefs.h >>conftest.$ac_ext
20156 cat >>conftest.$ac_ext <<_ACEOF
20157 /* end confdefs.h. */
20159 /* Override any GCC internal prototype to avoid an error.
20160 Use char because int might match the return type of a GCC
20161 builtin and then its argument prototype would still apply. */
20165 char des_cbc_encrypt ();
20169 return des_cbc_encrypt ();
20174 rm -f conftest.$ac_objext conftest$ac_exeext
20175 if { (ac_try="$ac_link"
20176 case "(($ac_try" in
20177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20178 *) ac_try_echo=$ac_try;;
20180 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20181 (eval "$ac_link") 2>conftest.er1
20183 grep -v '^ *+' conftest.er1 >conftest.err
20185 cat conftest.err >&5
20186 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20187 (exit $ac_status); } && {
20188 test -z "$ac_c_werror_flag" ||
20189 test ! -s conftest.err
20190 } && test -s conftest$ac_exeext &&
20191 $as_test_x conftest$ac_exeext; then
20192 ac_cv_lib_des425_des_cbc_encrypt=yes
20194 echo "$as_me: failed program was
:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20197 ac_cv_lib_des425_des_cbc_encrypt=no
20200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20201 conftest$ac_exeext conftest.$ac_ext
20202 LIBS=$ac_check_lib_save_LIBS
20204 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20205 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20206 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20207 cat >>confdefs.h <<_ACEOF
20208 #define HAVE_LIBDES425 1
20211 LIBS="-ldes425 $LIBS"
20215 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20216 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20217 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20218 echo $ECHO_N "(cached
) $ECHO_C" >&6
20220 ac_check_lib_save_LIBS=$LIBS
20222 cat >conftest.$ac_ext <<_ACEOF
20225 cat confdefs.h >>conftest.$ac_ext
20226 cat >>conftest.$ac_ext <<_ACEOF
20227 /* end confdefs.h. */
20229 /* Override any GCC internal prototype to avoid an error.
20230 Use char because int might match the return type of a GCC
20231 builtin and then its argument prototype would still apply. */
20235 char des_cbc_encrypt ();
20239 return des_cbc_encrypt ();
20244 rm -f conftest.$ac_objext conftest$ac_exeext
20245 if { (ac_try="$ac_link"
20246 case "(($ac_try" in
20247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20248 *) ac_try_echo=$ac_try;;
20250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20251 (eval "$ac_link") 2>conftest.er1
20253 grep -v '^ *+' conftest.er1 >conftest.err
20255 cat conftest.err >&5
20256 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20257 (exit $ac_status); } && {
20258 test -z "$ac_c_werror_flag" ||
20259 test ! -s conftest.err
20260 } && test -s conftest$ac_exeext &&
20261 $as_test_x conftest$ac_exeext; then
20262 ac_cv_lib_des_des_cbc_encrypt=yes
20264 echo "$as_me: failed program was
:" >&5
20265 sed 's/^/| /' conftest.$ac_ext >&5
20267 ac_cv_lib_des_des_cbc_encrypt=no
20270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20271 conftest$ac_exeext conftest.$ac_ext
20272 LIBS=$ac_check_lib_save_LIBS
20274 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20275 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20276 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20277 cat >>confdefs.h <<_ACEOF
20278 #define HAVE_LIBDES 1
20288 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20289 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20290 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20291 echo $ECHO_N "(cached
) $ECHO_C" >&6
20293 ac_check_lib_save_LIBS=$LIBS
20294 LIBS="-lkrb4 $LIBS"
20295 cat >conftest.$ac_ext <<_ACEOF
20298 cat confdefs.h >>conftest.$ac_ext
20299 cat >>conftest.$ac_ext <<_ACEOF
20300 /* end confdefs.h. */
20302 /* Override any GCC internal prototype to avoid an error.
20303 Use char because int might match the return type of a GCC
20304 builtin and then its argument prototype would still apply. */
20308 char krb_get_cred ();
20312 return krb_get_cred ();
20317 rm -f conftest.$ac_objext conftest$ac_exeext
20318 if { (ac_try="$ac_link"
20319 case "(($ac_try" in
20320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20321 *) ac_try_echo=$ac_try;;
20323 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20324 (eval "$ac_link") 2>conftest.er1
20326 grep -v '^ *+' conftest.er1 >conftest.err
20328 cat conftest.err >&5
20329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20330 (exit $ac_status); } && {
20331 test -z "$ac_c_werror_flag" ||
20332 test ! -s conftest.err
20333 } && test -s conftest$ac_exeext &&
20334 $as_test_x conftest$ac_exeext; then
20335 ac_cv_lib_krb4_krb_get_cred=yes
20337 echo "$as_me: failed program was
:" >&5
20338 sed 's/^/| /' conftest.$ac_ext >&5
20340 ac_cv_lib_krb4_krb_get_cred=no
20343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20344 conftest$ac_exeext conftest.$ac_ext
20345 LIBS=$ac_check_lib_save_LIBS
20347 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20348 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20349 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20350 cat >>confdefs.h <<_ACEOF
20351 #define HAVE_LIBKRB4 1
20354 LIBS="-lkrb4 $LIBS"
20358 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20359 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20360 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20361 echo $ECHO_N "(cached
) $ECHO_C" >&6
20363 ac_check_lib_save_LIBS=$LIBS
20365 cat >conftest.$ac_ext <<_ACEOF
20368 cat confdefs.h >>conftest.$ac_ext
20369 cat >>conftest.$ac_ext <<_ACEOF
20370 /* end confdefs.h. */
20372 /* Override any GCC internal prototype to avoid an error.
20373 Use char because int might match the return type of a GCC
20374 builtin and then its argument prototype would still apply. */
20378 char krb_get_cred ();
20382 return krb_get_cred ();
20387 rm -f conftest.$ac_objext conftest$ac_exeext
20388 if { (ac_try="$ac_link"
20389 case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20393 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20394 (eval "$ac_link") 2>conftest.er1
20396 grep -v '^ *+' conftest.er1 >conftest.err
20398 cat conftest.err >&5
20399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20400 (exit $ac_status); } && {
20401 test -z "$ac_c_werror_flag" ||
20402 test ! -s conftest.err
20403 } && test -s conftest$ac_exeext &&
20404 $as_test_x conftest$ac_exeext; then
20405 ac_cv_lib_krb_krb_get_cred=yes
20407 echo "$as_me: failed program was
:" >&5
20408 sed 's/^/| /' conftest.$ac_ext >&5
20410 ac_cv_lib_krb_krb_get_cred=no
20413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20414 conftest$ac_exeext conftest.$ac_ext
20415 LIBS=$ac_check_lib_save_LIBS
20417 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20418 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20419 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20420 cat >>confdefs.h <<_ACEOF
20421 #define HAVE_LIBKRB 1
20432 if test "${with_kerberos5+set}" = set; then
20434 for ac_header in krb5.h
20436 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20437 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20438 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20439 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20440 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20441 echo $ECHO_N "(cached
) $ECHO_C" >&6
20443 ac_res=`eval echo '${'$as_ac_Header'}'`
20444 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20445 echo "${ECHO_T}$ac_res" >&6; }
20447 # Is the header compilable?
20448 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20449 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20450 cat >conftest.$ac_ext <<_ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h. */
20456 $ac_includes_default
20457 #include <$ac_header>
20459 rm -f conftest.$ac_objext
20460 if { (ac_try="$ac_compile"
20461 case "(($ac_try" in
20462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20463 *) ac_try_echo=$ac_try;;
20465 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20466 (eval "$ac_compile") 2>conftest.er1
20468 grep -v '^ *+' conftest.er1 >conftest.err
20470 cat conftest.err >&5
20471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20472 (exit $ac_status); } && {
20473 test -z "$ac_c_werror_flag" ||
20474 test ! -s conftest.err
20475 } && test -s conftest.$ac_objext; then
20476 ac_header_compiler=yes
20478 echo "$as_me: failed program was
:" >&5
20479 sed 's/^/| /' conftest.$ac_ext >&5
20481 ac_header_compiler=no
20484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20485 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20486 echo "${ECHO_T}$ac_header_compiler" >&6; }
20488 # Is the header present?
20489 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20490 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20491 cat >conftest.$ac_ext <<_ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h. */
20497 #include <$ac_header>
20499 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20500 case "(($ac_try" in
20501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502 *) ac_try_echo=$ac_try;;
20504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20507 grep -v '^ *+' conftest.er1 >conftest.err
20509 cat conftest.err >&5
20510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20511 (exit $ac_status); } >/dev/null && {
20512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20513 test ! -s conftest.err
20515 ac_header_preproc=yes
20517 echo "$as_me: failed program was
:" >&5
20518 sed 's/^/| /' conftest.$ac_ext >&5
20520 ac_header_preproc=no
20523 rm -f conftest.err conftest.$ac_ext
20524 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20525 echo "${ECHO_T}$ac_header_preproc" >&6; }
20527 # So? What about this header?
20528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20530 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20531 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20532 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20534 ac_header_preproc=yes
20537 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20538 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20539 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20540 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20541 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20542 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20543 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20544 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20545 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20547 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20548 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20552 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20553 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20554 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20555 echo $ECHO_N "(cached
) $ECHO_C" >&6
20557 eval "$as_ac_Header=\
$ac_header_preproc"
20559 ac_res=`eval echo '${'$as_ac_Header'}'`
20560 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20561 echo "${ECHO_T}$ac_res" >&6; }
20564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20565 cat >>confdefs.h <<_ACEOF
20566 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20575 for ac_header in des.h
20577 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20578 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20579 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20580 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20581 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20582 echo $ECHO_N "(cached
) $ECHO_C" >&6
20584 ac_res=`eval echo '${'$as_ac_Header'}'`
20585 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20586 echo "${ECHO_T}$ac_res" >&6; }
20588 # Is the header compilable?
20589 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20590 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20591 cat >conftest.$ac_ext <<_ACEOF
20594 cat confdefs.h >>conftest.$ac_ext
20595 cat >>conftest.$ac_ext <<_ACEOF
20596 /* end confdefs.h. */
20597 $ac_includes_default
20598 #include <$ac_header>
20600 rm -f conftest.$ac_objext
20601 if { (ac_try="$ac_compile"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20606 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_compile") 2>conftest.er1
20609 grep -v '^ *+' conftest.er1 >conftest.err
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20613 (exit $ac_status); } && {
20614 test -z "$ac_c_werror_flag" ||
20615 test ! -s conftest.err
20616 } && test -s conftest.$ac_objext; then
20617 ac_header_compiler=yes
20619 echo "$as_me: failed program was
:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20622 ac_header_compiler=no
20625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20626 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20627 echo "${ECHO_T}$ac_header_compiler" >&6; }
20629 # Is the header present?
20630 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20631 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20632 cat >conftest.$ac_ext <<_ACEOF
20635 cat confdefs.h >>conftest.$ac_ext
20636 cat >>conftest.$ac_ext <<_ACEOF
20637 /* end confdefs.h. */
20638 #include <$ac_header>
20640 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20641 case "(($ac_try" in
20642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20643 *) ac_try_echo=$ac_try;;
20645 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20646 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20648 grep -v '^ *+' conftest.er1 >conftest.err
20650 cat conftest.err >&5
20651 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20652 (exit $ac_status); } >/dev/null && {
20653 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20654 test ! -s conftest.err
20656 ac_header_preproc=yes
20658 echo "$as_me: failed program was
:" >&5
20659 sed 's/^/| /' conftest.$ac_ext >&5
20661 ac_header_preproc=no
20664 rm -f conftest.err conftest.$ac_ext
20665 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20666 echo "${ECHO_T}$ac_header_preproc" >&6; }
20668 # So? What about this header?
20669 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20671 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20672 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20673 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20674 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20675 ac_header_preproc=yes
20678 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20679 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20680 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20681 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20682 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20683 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20684 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20685 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20686 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20687 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20688 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20689 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20693 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20694 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20695 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20696 echo $ECHO_N "(cached
) $ECHO_C" >&6
20698 eval "$as_ac_Header=\
$ac_header_preproc"
20700 ac_res=`eval echo '${'$as_ac_Header'}'`
20701 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20702 echo "${ECHO_T}$ac_res" >&6; }
20705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20706 cat >>confdefs.h <<_ACEOF
20707 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20712 for ac_header in kerberosIV/des.h
20714 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20715 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20716 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20717 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20718 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20719 echo $ECHO_N "(cached
) $ECHO_C" >&6
20721 ac_res=`eval echo '${'$as_ac_Header'}'`
20722 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20723 echo "${ECHO_T}$ac_res" >&6; }
20725 # Is the header compilable?
20726 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20727 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20728 cat >conftest.$ac_ext <<_ACEOF
20731 cat confdefs.h >>conftest.$ac_ext
20732 cat >>conftest.$ac_ext <<_ACEOF
20733 /* end confdefs.h. */
20734 $ac_includes_default
20735 #include <$ac_header>
20737 rm -f conftest.$ac_objext
20738 if { (ac_try="$ac_compile"
20739 case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_compile") 2>conftest.er1
20746 grep -v '^ *+' conftest.er1 >conftest.err
20748 cat conftest.err >&5
20749 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20750 (exit $ac_status); } && {
20751 test -z "$ac_c_werror_flag" ||
20752 test ! -s conftest.err
20753 } && test -s conftest.$ac_objext; then
20754 ac_header_compiler=yes
20756 echo "$as_me: failed program was
:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20759 ac_header_compiler=no
20762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20763 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20764 echo "${ECHO_T}$ac_header_compiler" >&6; }
20766 # Is the header present?
20767 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20768 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20769 cat >conftest.$ac_ext <<_ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h. */
20775 #include <$ac_header>
20777 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20778 case "(($ac_try" in
20779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780 *) ac_try_echo=$ac_try;;
20782 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20783 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20785 grep -v '^ *+' conftest.er1 >conftest.err
20787 cat conftest.err >&5
20788 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20789 (exit $ac_status); } >/dev/null && {
20790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20791 test ! -s conftest.err
20793 ac_header_preproc=yes
20795 echo "$as_me: failed program was
:" >&5
20796 sed 's/^/| /' conftest.$ac_ext >&5
20798 ac_header_preproc=no
20801 rm -f conftest.err conftest.$ac_ext
20802 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20803 echo "${ECHO_T}$ac_header_preproc" >&6; }
20805 # So? What about this header?
20806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20808 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20809 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20810 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20812 ac_header_preproc=yes
20815 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20816 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20817 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20818 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20819 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20820 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20821 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20822 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20823 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20825 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20826 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20830 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20831 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20832 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20833 echo $ECHO_N "(cached
) $ECHO_C" >&6
20835 eval "$as_ac_Header=\
$ac_header_preproc"
20837 ac_res=`eval echo '${'$as_ac_Header'}'`
20838 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20839 echo "${ECHO_T}$ac_res" >&6; }
20842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20843 cat >>confdefs.h <<_ACEOF
20844 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20849 for ac_header in kerberos/des.h
20851 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20852 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20853 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20854 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20855 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20856 echo $ECHO_N "(cached
) $ECHO_C" >&6
20858 ac_res=`eval echo '${'$as_ac_Header'}'`
20859 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20860 echo "${ECHO_T}$ac_res" >&6; }
20862 # Is the header compilable?
20863 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20864 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20865 cat >conftest.$ac_ext <<_ACEOF
20868 cat confdefs.h >>conftest.$ac_ext
20869 cat >>conftest.$ac_ext <<_ACEOF
20870 /* end confdefs.h. */
20871 $ac_includes_default
20872 #include <$ac_header>
20874 rm -f conftest.$ac_objext
20875 if { (ac_try="$ac_compile"
20876 case "(($ac_try" in
20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878 *) ac_try_echo=$ac_try;;
20880 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20881 (eval "$ac_compile") 2>conftest.er1
20883 grep -v '^ *+' conftest.er1 >conftest.err
20885 cat conftest.err >&5
20886 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20887 (exit $ac_status); } && {
20888 test -z "$ac_c_werror_flag" ||
20889 test ! -s conftest.err
20890 } && test -s conftest.$ac_objext; then
20891 ac_header_compiler=yes
20893 echo "$as_me: failed program was
:" >&5
20894 sed 's/^/| /' conftest.$ac_ext >&5
20896 ac_header_compiler=no
20899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20900 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20901 echo "${ECHO_T}$ac_header_compiler" >&6; }
20903 # Is the header present?
20904 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20905 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20906 cat >conftest.$ac_ext <<_ACEOF
20909 cat confdefs.h >>conftest.$ac_ext
20910 cat >>conftest.$ac_ext <<_ACEOF
20911 /* end confdefs.h. */
20912 #include <$ac_header>
20914 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20915 case "(($ac_try" in
20916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20917 *) ac_try_echo=$ac_try;;
20919 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20920 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20922 grep -v '^ *+' conftest.er1 >conftest.err
20924 cat conftest.err >&5
20925 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20926 (exit $ac_status); } >/dev/null && {
20927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20928 test ! -s conftest.err
20930 ac_header_preproc=yes
20932 echo "$as_me: failed program was
:" >&5
20933 sed 's/^/| /' conftest.$ac_ext >&5
20935 ac_header_preproc=no
20938 rm -f conftest.err conftest.$ac_ext
20939 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20940 echo "${ECHO_T}$ac_header_preproc" >&6; }
20942 # So? What about this header?
20943 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20945 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20946 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20947 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20948 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20949 ac_header_preproc=yes
20952 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20953 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20954 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20955 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20956 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20957 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20958 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20959 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20960 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20961 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20962 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20963 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20967 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20968 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20969 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20970 echo $ECHO_N "(cached
) $ECHO_C" >&6
20972 eval "$as_ac_Header=\
$ac_header_preproc"
20974 ac_res=`eval echo '${'$as_ac_Header'}'`
20975 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20976 echo "${ECHO_T}$ac_res" >&6; }
20979 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20980 cat >>confdefs.h <<_ACEOF
20981 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20997 for ac_header in krb.h
20999 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21000 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21001 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21002 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21003 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21004 echo $ECHO_N "(cached
) $ECHO_C" >&6
21006 ac_res=`eval echo '${'$as_ac_Header'}'`
21007 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21008 echo "${ECHO_T}$ac_res" >&6; }
21010 # Is the header compilable?
21011 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21012 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21013 cat >conftest.$ac_ext <<_ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 $ac_includes_default
21020 #include <$ac_header>
21022 rm -f conftest.$ac_objext
21023 if { (ac_try="$ac_compile"
21024 case "(($ac_try" in
21025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21026 *) ac_try_echo=$ac_try;;
21028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21029 (eval "$ac_compile") 2>conftest.er1
21031 grep -v '^ *+' conftest.er1 >conftest.err
21033 cat conftest.err >&5
21034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21035 (exit $ac_status); } && {
21036 test -z "$ac_c_werror_flag" ||
21037 test ! -s conftest.err
21038 } && test -s conftest.$ac_objext; then
21039 ac_header_compiler=yes
21041 echo "$as_me: failed program was
:" >&5
21042 sed 's/^/| /' conftest.$ac_ext >&5
21044 ac_header_compiler=no
21047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21048 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21049 echo "${ECHO_T}$ac_header_compiler" >&6; }
21051 # Is the header present?
21052 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21053 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21054 cat >conftest.$ac_ext <<_ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21060 #include <$ac_header>
21062 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21063 case "(($ac_try" in
21064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21065 *) ac_try_echo=$ac_try;;
21067 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21068 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21070 grep -v '^ *+' conftest.er1 >conftest.err
21072 cat conftest.err >&5
21073 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21074 (exit $ac_status); } >/dev/null && {
21075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21076 test ! -s conftest.err
21078 ac_header_preproc=yes
21080 echo "$as_me: failed program was
:" >&5
21081 sed 's/^/| /' conftest.$ac_ext >&5
21083 ac_header_preproc=no
21086 rm -f conftest.err conftest.$ac_ext
21087 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21088 echo "${ECHO_T}$ac_header_preproc" >&6; }
21090 # So? What about this header?
21091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21093 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21094 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21095 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21096 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21097 ac_header_preproc=yes
21100 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21101 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21102 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21103 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21104 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21105 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21106 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21107 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21108 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21110 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21111 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21115 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21116 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21117 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21118 echo $ECHO_N "(cached
) $ECHO_C" >&6
21120 eval "$as_ac_Header=\
$ac_header_preproc"
21122 ac_res=`eval echo '${'$as_ac_Header'}'`
21123 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21124 echo "${ECHO_T}$ac_res" >&6; }
21127 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21128 cat >>confdefs.h <<_ACEOF
21129 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21134 for ac_header in kerberosIV/krb.h
21136 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21137 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21138 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21139 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21140 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21141 echo $ECHO_N "(cached
) $ECHO_C" >&6
21143 ac_res=`eval echo '${'$as_ac_Header'}'`
21144 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21145 echo "${ECHO_T}$ac_res" >&6; }
21147 # Is the header compilable?
21148 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21149 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21150 cat >conftest.$ac_ext <<_ACEOF
21153 cat confdefs.h >>conftest.$ac_ext
21154 cat >>conftest.$ac_ext <<_ACEOF
21155 /* end confdefs.h. */
21156 $ac_includes_default
21157 #include <$ac_header>
21159 rm -f conftest.$ac_objext
21160 if { (ac_try="$ac_compile"
21161 case "(($ac_try" in
21162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21163 *) ac_try_echo=$ac_try;;
21165 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21166 (eval "$ac_compile") 2>conftest.er1
21168 grep -v '^ *+' conftest.er1 >conftest.err
21170 cat conftest.err >&5
21171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21172 (exit $ac_status); } && {
21173 test -z "$ac_c_werror_flag" ||
21174 test ! -s conftest.err
21175 } && test -s conftest.$ac_objext; then
21176 ac_header_compiler=yes
21178 echo "$as_me: failed program was
:" >&5
21179 sed 's/^/| /' conftest.$ac_ext >&5
21181 ac_header_compiler=no
21184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21185 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21186 echo "${ECHO_T}$ac_header_compiler" >&6; }
21188 # Is the header present?
21189 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21190 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21191 cat >conftest.$ac_ext <<_ACEOF
21194 cat confdefs.h >>conftest.$ac_ext
21195 cat >>conftest.$ac_ext <<_ACEOF
21196 /* end confdefs.h. */
21197 #include <$ac_header>
21199 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21200 case "(($ac_try" in
21201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21202 *) ac_try_echo=$ac_try;;
21204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21205 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21207 grep -v '^ *+' conftest.er1 >conftest.err
21209 cat conftest.err >&5
21210 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21211 (exit $ac_status); } >/dev/null && {
21212 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21213 test ! -s conftest.err
21215 ac_header_preproc=yes
21217 echo "$as_me: failed program was
:" >&5
21218 sed 's/^/| /' conftest.$ac_ext >&5
21220 ac_header_preproc=no
21223 rm -f conftest.err conftest.$ac_ext
21224 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21225 echo "${ECHO_T}$ac_header_preproc" >&6; }
21227 # So? What about this header?
21228 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21230 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21231 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21232 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21233 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21234 ac_header_preproc=yes
21237 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21238 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21239 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21240 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21241 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21242 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21243 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21244 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21245 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21246 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21247 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21248 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21252 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21253 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21254 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21255 echo $ECHO_N "(cached
) $ECHO_C" >&6
21257 eval "$as_ac_Header=\
$ac_header_preproc"
21259 ac_res=`eval echo '${'$as_ac_Header'}'`
21260 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21261 echo "${ECHO_T}$ac_res" >&6; }
21264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21265 cat >>confdefs.h <<_ACEOF
21266 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21271 for ac_header in kerberos/krb.h
21273 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21274 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21275 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21276 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21277 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21278 echo $ECHO_N "(cached
) $ECHO_C" >&6
21280 ac_res=`eval echo '${'$as_ac_Header'}'`
21281 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21282 echo "${ECHO_T}$ac_res" >&6; }
21284 # Is the header compilable?
21285 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21286 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21287 cat >conftest.$ac_ext <<_ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h. */
21293 $ac_includes_default
21294 #include <$ac_header>
21296 rm -f conftest.$ac_objext
21297 if { (ac_try="$ac_compile"
21298 case "(($ac_try" in
21299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21300 *) ac_try_echo=$ac_try;;
21302 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21303 (eval "$ac_compile") 2>conftest.er1
21305 grep -v '^ *+' conftest.er1 >conftest.err
21307 cat conftest.err >&5
21308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21309 (exit $ac_status); } && {
21310 test -z "$ac_c_werror_flag" ||
21311 test ! -s conftest.err
21312 } && test -s conftest.$ac_objext; then
21313 ac_header_compiler=yes
21315 echo "$as_me: failed program was
:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21318 ac_header_compiler=no
21321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21322 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21323 echo "${ECHO_T}$ac_header_compiler" >&6; }
21325 # Is the header present?
21326 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21327 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21328 cat >conftest.$ac_ext <<_ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h. */
21334 #include <$ac_header>
21336 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21337 case "(($ac_try" in
21338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339 *) ac_try_echo=$ac_try;;
21341 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21342 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21344 grep -v '^ *+' conftest.er1 >conftest.err
21346 cat conftest.err >&5
21347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21348 (exit $ac_status); } >/dev/null && {
21349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21350 test ! -s conftest.err
21352 ac_header_preproc=yes
21354 echo "$as_me: failed program was
:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21357 ac_header_preproc=no
21360 rm -f conftest.err conftest.$ac_ext
21361 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21362 echo "${ECHO_T}$ac_header_preproc" >&6; }
21364 # So? What about this header?
21365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21367 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21368 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21369 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21371 ac_header_preproc=yes
21374 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21375 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21376 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21377 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21378 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21379 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21380 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21381 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21382 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21384 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21385 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21389 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21390 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21391 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21392 echo $ECHO_N "(cached
) $ECHO_C" >&6
21394 eval "$as_ac_Header=\
$ac_header_preproc"
21396 ac_res=`eval echo '${'$as_ac_Header'}'`
21397 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21398 echo "${ECHO_T}$ac_res" >&6; }
21401 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21402 cat >>confdefs.h <<_ACEOF
21403 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21420 for ac_header in com_err.h
21422 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21423 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21424 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21425 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21426 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21427 echo $ECHO_N "(cached
) $ECHO_C" >&6
21429 ac_res=`eval echo '${'$as_ac_Header'}'`
21430 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21431 echo "${ECHO_T}$ac_res" >&6; }
21433 # Is the header compilable?
21434 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21435 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21436 cat >conftest.$ac_ext <<_ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21442 $ac_includes_default
21443 #include <$ac_header>
21445 rm -f conftest.$ac_objext
21446 if { (ac_try="$ac_compile"
21447 case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21451 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_compile") 2>conftest.er1
21454 grep -v '^ *+' conftest.er1 >conftest.err
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21458 (exit $ac_status); } && {
21459 test -z "$ac_c_werror_flag" ||
21460 test ! -s conftest.err
21461 } && test -s conftest.$ac_objext; then
21462 ac_header_compiler=yes
21464 echo "$as_me: failed program was
:" >&5
21465 sed 's/^/| /' conftest.$ac_ext >&5
21467 ac_header_compiler=no
21470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21471 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21472 echo "${ECHO_T}$ac_header_compiler" >&6; }
21474 # Is the header present?
21475 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21476 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21477 cat >conftest.$ac_ext <<_ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h. */
21483 #include <$ac_header>
21485 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21486 case "(($ac_try" in
21487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488 *) ac_try_echo=$ac_try;;
21490 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21491 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21493 grep -v '^ *+' conftest.er1 >conftest.err
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21497 (exit $ac_status); } >/dev/null && {
21498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21499 test ! -s conftest.err
21501 ac_header_preproc=yes
21503 echo "$as_me: failed program was
:" >&5
21504 sed 's/^/| /' conftest.$ac_ext >&5
21506 ac_header_preproc=no
21509 rm -f conftest.err conftest.$ac_ext
21510 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21511 echo "${ECHO_T}$ac_header_preproc" >&6; }
21513 # So? What about this header?
21514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21516 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21517 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21518 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21520 ac_header_preproc=yes
21523 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21524 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21525 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21526 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21527 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21528 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21529 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21530 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21531 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21533 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21534 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21538 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21539 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21540 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21541 echo $ECHO_N "(cached
) $ECHO_C" >&6
21543 eval "$as_ac_Header=\
$ac_header_preproc"
21545 ac_res=`eval echo '${'$as_ac_Header'}'`
21546 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21547 echo "${ECHO_T}$ac_res" >&6; }
21550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21551 cat >>confdefs.h <<_ACEOF
21552 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21561 # Solaris requires -lintl if you want strerror (which calls dgettext)
21562 # to return localized messages.
21564 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21565 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21566 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21567 echo $ECHO_N "(cached
) $ECHO_C" >&6
21569 ac_check_lib_save_LIBS=$LIBS
21570 LIBS="-lintl $LIBS"
21571 cat >conftest.$ac_ext <<_ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21578 /* Override any GCC internal prototype to avoid an error.
21579 Use char because int might match the return type of a GCC
21580 builtin and then its argument prototype would still apply. */
21588 return dgettext ();
21593 rm -f conftest.$ac_objext conftest$ac_exeext
21594 if { (ac_try="$ac_link"
21595 case "(($ac_try" in
21596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21597 *) ac_try_echo=$ac_try;;
21599 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21600 (eval "$ac_link") 2>conftest.er1
21602 grep -v '^ *+' conftest.er1 >conftest.err
21604 cat conftest.err >&5
21605 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21606 (exit $ac_status); } && {
21607 test -z "$ac_c_werror_flag" ||
21608 test ! -s conftest.err
21609 } && test -s conftest$ac_exeext &&
21610 $as_test_x conftest$ac_exeext; then
21611 ac_cv_lib_intl_dgettext=yes
21613 echo "$as_me: failed program was
:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21616 ac_cv_lib_intl_dgettext=no
21619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21620 conftest$ac_exeext conftest.$ac_ext
21621 LIBS=$ac_check_lib_save_LIBS
21623 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21624 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21625 if test $ac_cv_lib_intl_dgettext = yes; then
21626 cat >>confdefs.h <<_ACEOF
21627 #define HAVE_LIBINTL 1
21630 LIBS="-lintl $LIBS"
21635 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21636 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21637 if test "${emacs_cv_localtime_cache+set}" = set; then
21638 echo $ECHO_N "(cached
) $ECHO_C" >&6
21640 if test x$ac_cv_func_tzset = xyes; then
21641 if test "$cross_compiling" = yes; then
21642 # If we have tzset, assume the worst when cross-compiling.
21643 emacs_cv_localtime_cache=yes
21645 cat >conftest.$ac_ext <<_ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h. */
21652 extern char **environ;
21656 for (to = from = environ; (*to = *from); from++)
21657 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21660 char TZ_GMT0[] = "TZ
=GMT0
";
21661 char TZ_PST8[] = "TZ
=PST8
";
21664 time_t now = time ((time_t *) 0);
21665 int hour_GMT0, hour_unset;
21666 if (putenv (TZ_GMT0) != 0)
21668 hour_GMT0 = localtime (&now)->tm_hour;
21670 hour_unset = localtime (&now)->tm_hour;
21671 if (putenv (TZ_PST8) != 0)
21673 if (localtime (&now)->tm_hour == hour_GMT0)
21676 if (localtime (&now)->tm_hour != hour_unset)
21681 rm -f conftest$ac_exeext
21682 if { (ac_try="$ac_link"
21683 case "(($ac_try" in
21684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21685 *) ac_try_echo=$ac_try;;
21687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21688 (eval "$ac_link") 2>&5
21690 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21691 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21692 { (case "(($ac_try" in
21693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21694 *) ac_try_echo=$ac_try;;
21696 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21697 (eval "$ac_try") 2>&5
21699 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21700 (exit $ac_status); }; }; then
21701 emacs_cv_localtime_cache=no
21703 echo "$as_me: program exited with status
$ac_status" >&5
21704 echo "$as_me: failed program was
:" >&5
21705 sed 's/^/| /' conftest.$ac_ext >&5
21707 ( exit $ac_status )
21708 emacs_cv_localtime_cache=yes
21710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21715 # If we lack tzset, report that localtime does not cache TZ,
21716 # since we can't invalidate the cache if we don't have tzset.
21717 emacs_cv_localtime_cache=no
21720 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21721 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21722 if test $emacs_cv_localtime_cache = yes; then
21724 cat >>confdefs.h <<\_ACEOF
21725 #define LOCALTIME_CACHE 1
21730 if test "x
$HAVE_TIMEVAL" = xyes; then
21732 for ac_func in gettimeofday
21734 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21735 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21736 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21737 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21738 echo $ECHO_N "(cached
) $ECHO_C" >&6
21740 cat >conftest.$ac_ext <<_ACEOF
21743 cat confdefs.h >>conftest.$ac_ext
21744 cat >>conftest.$ac_ext <<_ACEOF
21745 /* end confdefs.h. */
21746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21748 #define $ac_func innocuous_$ac_func
21750 /* System header to define __stub macros and hopefully few prototypes,
21751 which can conflict with char $ac_func (); below.
21752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21753 <limits.h> exists even on freestanding compilers. */
21756 # include <limits.h>
21758 # include <assert.h>
21763 /* Override any GCC internal prototype to avoid an error.
21764 Use char because int might match the return type of a GCC
21765 builtin and then its argument prototype would still apply. */
21770 /* The GNU C library defines this for functions which it implements
21771 to always fail with ENOSYS. Some functions are actually named
21772 something starting with __ and the normal name is an alias. */
21773 #if defined __stub_$ac_func || defined __stub___$ac_func
21780 return $ac_func ();
21785 rm -f conftest.$ac_objext conftest$ac_exeext
21786 if { (ac_try="$ac_link"
21787 case "(($ac_try" in
21788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21789 *) ac_try_echo=$ac_try;;
21791 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21792 (eval "$ac_link") 2>conftest.er1
21794 grep -v '^ *+' conftest.er1 >conftest.err
21796 cat conftest.err >&5
21797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21798 (exit $ac_status); } && {
21799 test -z "$ac_c_werror_flag" ||
21800 test ! -s conftest.err
21801 } && test -s conftest$ac_exeext &&
21802 $as_test_x conftest$ac_exeext; then
21803 eval "$as_ac_var=yes"
21805 echo "$as_me: failed program was
:" >&5
21806 sed 's/^/| /' conftest.$ac_ext >&5
21808 eval "$as_ac_var=no
"
21811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21812 conftest$ac_exeext conftest.$ac_ext
21814 ac_res=`eval echo '${'$as_ac_var'}'`
21815 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21816 echo "${ECHO_T}$ac_res" >&6; }
21817 if test `eval echo '${'$as_ac_var'}'` = yes; then
21818 cat >>confdefs.h <<_ACEOF
21819 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21825 if test $ac_cv_func_gettimeofday = yes; then
21826 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21827 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21828 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21829 echo $ECHO_N "(cached
) $ECHO_C" >&6
21831 cat >conftest.$ac_ext <<_ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h. */
21838 #ifdef TIME_WITH_SYS_TIME
21839 #include <sys/time.h>
21842 #ifdef HAVE_SYS_TIME_H
21843 #include <sys/time.h>
21851 struct timeval time;
21852 gettimeofday (&time, 0);
21857 rm -f conftest.$ac_objext
21858 if { (ac_try="$ac_compile"
21859 case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21863 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_compile") 2>conftest.er1
21866 grep -v '^ *+' conftest.er1 >conftest.err
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21870 (exit $ac_status); } && {
21871 test -z "$ac_c_werror_flag" ||
21872 test ! -s conftest.err
21873 } && test -s conftest.$ac_objext; then
21874 emacs_cv_gettimeofday_two_arguments=yes
21876 echo "$as_me: failed program was
:" >&5
21877 sed 's/^/| /' conftest.$ac_ext >&5
21879 emacs_cv_gettimeofday_two_arguments=no
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21884 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21885 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21886 if test $emacs_cv_gettimeofday_two_arguments = no; then
21888 cat >>confdefs.h <<\_ACEOF
21889 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21897 { echo "$as_me:$LINENO: checking
for socket
" >&5
21898 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21899 if test "${ac_cv_func_socket+set}" = set; then
21900 echo $ECHO_N "(cached
) $ECHO_C" >&6
21902 cat >conftest.$ac_ext <<_ACEOF
21905 cat confdefs.h >>conftest.$ac_ext
21906 cat >>conftest.$ac_ext <<_ACEOF
21907 /* end confdefs.h. */
21908 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21910 #define socket innocuous_socket
21912 /* System header to define __stub macros and hopefully few prototypes,
21913 which can conflict with char socket (); below.
21914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21915 <limits.h> exists even on freestanding compilers. */
21918 # include <limits.h>
21920 # include <assert.h>
21925 /* Override any GCC internal prototype to avoid an error.
21926 Use char because int might match the return type of a GCC
21927 builtin and then its argument prototype would still apply. */
21932 /* The GNU C library defines this for functions which it implements
21933 to always fail with ENOSYS. Some functions are actually named
21934 something starting with __ and the normal name is an alias. */
21935 #if defined __stub_socket || defined __stub___socket
21947 rm -f conftest.$ac_objext conftest$ac_exeext
21948 if { (ac_try="$ac_link"
21949 case "(($ac_try" in
21950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951 *) ac_try_echo=$ac_try;;
21953 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21954 (eval "$ac_link") 2>conftest.er1
21956 grep -v '^ *+' conftest.er1 >conftest.err
21958 cat conftest.err >&5
21959 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21960 (exit $ac_status); } && {
21961 test -z "$ac_c_werror_flag" ||
21962 test ! -s conftest.err
21963 } && test -s conftest$ac_exeext &&
21964 $as_test_x conftest$ac_exeext; then
21965 ac_cv_func_socket=yes
21967 echo "$as_me: failed program was
:" >&5
21968 sed 's/^/| /' conftest.$ac_ext >&5
21970 ac_cv_func_socket=no
21973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21974 conftest$ac_exeext conftest.$ac_ext
21976 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21977 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21978 if test $ac_cv_func_socket = yes; then
21984 if test $ok_so_far = yes; then
21985 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21986 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21987 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21988 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21989 echo $ECHO_N "(cached
) $ECHO_C" >&6
21991 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21992 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21994 # Is the header compilable?
21995 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21996 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21997 cat >conftest.$ac_ext <<_ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h. */
22003 $ac_includes_default
22004 #include <netinet/in.h>
22006 rm -f conftest.$ac_objext
22007 if { (ac_try="$ac_compile"
22008 case "(($ac_try" in
22009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010 *) ac_try_echo=$ac_try;;
22012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22013 (eval "$ac_compile") 2>conftest.er1
22015 grep -v '^ *+' conftest.er1 >conftest.err
22017 cat conftest.err >&5
22018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22019 (exit $ac_status); } && {
22020 test -z "$ac_c_werror_flag" ||
22021 test ! -s conftest.err
22022 } && test -s conftest.$ac_objext; then
22023 ac_header_compiler=yes
22025 echo "$as_me: failed program was
:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22028 ac_header_compiler=no
22031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22032 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22033 echo "${ECHO_T}$ac_header_compiler" >&6; }
22035 # Is the header present?
22036 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22037 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22038 cat >conftest.$ac_ext <<_ACEOF
22041 cat confdefs.h >>conftest.$ac_ext
22042 cat >>conftest.$ac_ext <<_ACEOF
22043 /* end confdefs.h. */
22044 #include <netinet/in.h>
22046 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22047 case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22054 grep -v '^ *+' conftest.er1 >conftest.err
22056 cat conftest.err >&5
22057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22058 (exit $ac_status); } >/dev/null && {
22059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22060 test ! -s conftest.err
22062 ac_header_preproc=yes
22064 echo "$as_me: failed program was
:" >&5
22065 sed 's/^/| /' conftest.$ac_ext >&5
22067 ac_header_preproc=no
22070 rm -f conftest.err conftest.$ac_ext
22071 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22072 echo "${ECHO_T}$ac_header_preproc" >&6; }
22074 # So? What about this header?
22075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22077 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22078 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22079 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22080 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22081 ac_header_preproc=yes
22084 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22085 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22086 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22087 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22088 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22089 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22090 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22091 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22092 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22093 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22094 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22095 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22099 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22100 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22101 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22102 echo $ECHO_N "(cached
) $ECHO_C" >&6
22104 ac_cv_header_netinet_in_h=$ac_header_preproc
22106 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22107 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22110 if test $ac_cv_header_netinet_in_h = yes; then
22118 if test $ok_so_far = yes; then
22119 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22120 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22121 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22122 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22123 echo $ECHO_N "(cached
) $ECHO_C" >&6
22125 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22126 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22128 # Is the header compilable?
22129 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22130 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22131 cat >conftest.$ac_ext <<_ACEOF
22134 cat confdefs.h >>conftest.$ac_ext
22135 cat >>conftest.$ac_ext <<_ACEOF
22136 /* end confdefs.h. */
22137 $ac_includes_default
22138 #include <arpa/inet.h>
22140 rm -f conftest.$ac_objext
22141 if { (ac_try="$ac_compile"
22142 case "(($ac_try" in
22143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22144 *) ac_try_echo=$ac_try;;
22146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22147 (eval "$ac_compile") 2>conftest.er1
22149 grep -v '^ *+' conftest.er1 >conftest.err
22151 cat conftest.err >&5
22152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22153 (exit $ac_status); } && {
22154 test -z "$ac_c_werror_flag" ||
22155 test ! -s conftest.err
22156 } && test -s conftest.$ac_objext; then
22157 ac_header_compiler=yes
22159 echo "$as_me: failed program was
:" >&5
22160 sed 's/^/| /' conftest.$ac_ext >&5
22162 ac_header_compiler=no
22165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22166 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22167 echo "${ECHO_T}$ac_header_compiler" >&6; }
22169 # Is the header present?
22170 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22171 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22172 cat >conftest.$ac_ext <<_ACEOF
22175 cat confdefs.h >>conftest.$ac_ext
22176 cat >>conftest.$ac_ext <<_ACEOF
22177 /* end confdefs.h. */
22178 #include <arpa/inet.h>
22180 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22181 case "(($ac_try" in
22182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22183 *) ac_try_echo=$ac_try;;
22185 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22186 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22188 grep -v '^ *+' conftest.er1 >conftest.err
22190 cat conftest.err >&5
22191 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22192 (exit $ac_status); } >/dev/null && {
22193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22194 test ! -s conftest.err
22196 ac_header_preproc=yes
22198 echo "$as_me: failed program was
:" >&5
22199 sed 's/^/| /' conftest.$ac_ext >&5
22201 ac_header_preproc=no
22204 rm -f conftest.err conftest.$ac_ext
22205 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22206 echo "${ECHO_T}$ac_header_preproc" >&6; }
22208 # So? What about this header?
22209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22211 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22212 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22213 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22214 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22215 ac_header_preproc=yes
22218 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22219 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22220 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22221 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22222 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22223 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22224 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22225 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22226 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22227 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22228 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22229 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22233 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22234 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22235 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22236 echo $ECHO_N "(cached
) $ECHO_C" >&6
22238 ac_cv_header_arpa_inet_h=$ac_header_preproc
22240 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22241 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22244 if test $ac_cv_header_arpa_inet_h = yes; then
22252 if test $ok_so_far = yes; then
22254 cat >>confdefs.h <<\_ACEOF
22255 #define HAVE_INET_SOCKETS 1
22261 for ac_header in sys/ioctl.h
22263 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22264 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22265 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22266 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22267 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22268 echo $ECHO_N "(cached
) $ECHO_C" >&6
22270 ac_res=`eval echo '${'$as_ac_Header'}'`
22271 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22272 echo "${ECHO_T}$ac_res" >&6; }
22274 # Is the header compilable?
22275 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22276 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22277 cat >conftest.$ac_ext <<_ACEOF
22280 cat confdefs.h >>conftest.$ac_ext
22281 cat >>conftest.$ac_ext <<_ACEOF
22282 /* end confdefs.h. */
22283 $ac_includes_default
22284 #include <$ac_header>
22286 rm -f conftest.$ac_objext
22287 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
22303 ac_header_compiler=yes
22305 echo "$as_me: failed program was
:" >&5
22306 sed 's/^/| /' conftest.$ac_ext >&5
22308 ac_header_compiler=no
22311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22312 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22313 echo "${ECHO_T}$ac_header_compiler" >&6; }
22315 # Is the header present?
22316 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22317 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22318 cat >conftest.$ac_ext <<_ACEOF
22321 cat confdefs.h >>conftest.$ac_ext
22322 cat >>conftest.$ac_ext <<_ACEOF
22323 /* end confdefs.h. */
22324 #include <$ac_header>
22326 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22327 case "(($ac_try" in
22328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329 *) ac_try_echo=$ac_try;;
22331 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22332 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22334 grep -v '^ *+' conftest.er1 >conftest.err
22336 cat conftest.err >&5
22337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22338 (exit $ac_status); } >/dev/null && {
22339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22340 test ! -s conftest.err
22342 ac_header_preproc=yes
22344 echo "$as_me: failed program was
:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22347 ac_header_preproc=no
22350 rm -f conftest.err conftest.$ac_ext
22351 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22352 echo "${ECHO_T}$ac_header_preproc" >&6; }
22354 # So? What about this header?
22355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22357 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22358 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22359 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22361 ac_header_preproc=yes
22364 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22365 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22366 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22367 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22368 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22369 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22370 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22371 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22372 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22374 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22375 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22379 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22380 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22381 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22382 echo $ECHO_N "(cached
) $ECHO_C" >&6
22384 eval "$as_ac_Header=\
$ac_header_preproc"
22386 ac_res=`eval echo '${'$as_ac_Header'}'`
22387 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22388 echo "${ECHO_T}$ac_res" >&6; }
22391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22392 cat >>confdefs.h <<_ACEOF
22393 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22401 if test -f /usr/lpp/X11/bin/smt.exp; then
22403 cat >>confdefs.h <<\_ACEOF
22404 #define HAVE_AIX_SMT_EXP 1
22409 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22410 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22411 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22412 { echo "$as_me:$LINENO: result
: yes" >&5
22413 echo "${ECHO_T}yes" >&6; }
22415 cat >>confdefs.h <<\_ACEOF
22416 #define HAVE_DEV_PTMX 1
22420 { echo "$as_me:$LINENO: result
: no
" >&5
22421 echo "${ECHO_T}no
" >&6; }
22424 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22425 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22426 if test "${ac_cv_type_pid_t+set}" = set; then
22427 echo $ECHO_N "(cached
) $ECHO_C" >&6
22429 cat >conftest.$ac_ext <<_ACEOF
22432 cat confdefs.h >>conftest.$ac_ext
22433 cat >>conftest.$ac_ext <<_ACEOF
22434 /* end confdefs.h. */
22435 $ac_includes_default
22436 typedef pid_t ac__type_new_;
22440 if ((ac__type_new_ *) 0)
22442 if (sizeof (ac__type_new_))
22448 rm -f conftest.$ac_objext
22449 if { (ac_try="$ac_compile"
22450 case "(($ac_try" in
22451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22452 *) ac_try_echo=$ac_try;;
22454 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22455 (eval "$ac_compile") 2>conftest.er1
22457 grep -v '^ *+' conftest.er1 >conftest.err
22459 cat conftest.err >&5
22460 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22461 (exit $ac_status); } && {
22462 test -z "$ac_c_werror_flag" ||
22463 test ! -s conftest.err
22464 } && test -s conftest.$ac_objext; then
22465 ac_cv_type_pid_t=yes
22467 echo "$as_me: failed program was
:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22470 ac_cv_type_pid_t=no
22473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22475 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22476 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22477 if test $ac_cv_type_pid_t = yes; then
22481 cat >>confdefs.h <<_ACEOF
22488 for ac_header in vfork.h
22490 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22491 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22492 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22493 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22494 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22495 echo $ECHO_N "(cached
) $ECHO_C" >&6
22497 ac_res=`eval echo '${'$as_ac_Header'}'`
22498 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22499 echo "${ECHO_T}$ac_res" >&6; }
22501 # Is the header compilable?
22502 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22503 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22504 cat >conftest.$ac_ext <<_ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h. */
22510 $ac_includes_default
22511 #include <$ac_header>
22513 rm -f conftest.$ac_objext
22514 if { (ac_try="$ac_compile"
22515 case "(($ac_try" in
22516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22517 *) ac_try_echo=$ac_try;;
22519 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22520 (eval "$ac_compile") 2>conftest.er1
22522 grep -v '^ *+' conftest.er1 >conftest.err
22524 cat conftest.err >&5
22525 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22526 (exit $ac_status); } && {
22527 test -z "$ac_c_werror_flag" ||
22528 test ! -s conftest.err
22529 } && test -s conftest.$ac_objext; then
22530 ac_header_compiler=yes
22532 echo "$as_me: failed program was
:" >&5
22533 sed 's/^/| /' conftest.$ac_ext >&5
22535 ac_header_compiler=no
22538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22539 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22540 echo "${ECHO_T}$ac_header_compiler" >&6; }
22542 # Is the header present?
22543 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22544 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22545 cat >conftest.$ac_ext <<_ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h. */
22551 #include <$ac_header>
22553 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22554 case "(($ac_try" in
22555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556 *) ac_try_echo=$ac_try;;
22558 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22559 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22561 grep -v '^ *+' conftest.er1 >conftest.err
22563 cat conftest.err >&5
22564 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22565 (exit $ac_status); } >/dev/null && {
22566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22567 test ! -s conftest.err
22569 ac_header_preproc=yes
22571 echo "$as_me: failed program was
:" >&5
22572 sed 's/^/| /' conftest.$ac_ext >&5
22574 ac_header_preproc=no
22577 rm -f conftest.err conftest.$ac_ext
22578 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22579 echo "${ECHO_T}$ac_header_preproc" >&6; }
22581 # So? What about this header?
22582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22584 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22585 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22586 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22588 ac_header_preproc=yes
22591 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22592 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22593 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22594 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22595 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22596 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22597 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22598 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22599 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22601 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22602 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22606 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22607 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22608 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22609 echo $ECHO_N "(cached
) $ECHO_C" >&6
22611 eval "$as_ac_Header=\
$ac_header_preproc"
22613 ac_res=`eval echo '${'$as_ac_Header'}'`
22614 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22615 echo "${ECHO_T}$ac_res" >&6; }
22618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22619 cat >>confdefs.h <<_ACEOF
22620 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22629 for ac_func in fork vfork
22631 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22632 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22633 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22634 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22635 echo $ECHO_N "(cached
) $ECHO_C" >&6
22637 cat >conftest.$ac_ext <<_ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h. */
22643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22645 #define $ac_func innocuous_$ac_func
22647 /* System header to define __stub macros and hopefully few prototypes,
22648 which can conflict with char $ac_func (); below.
22649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22650 <limits.h> exists even on freestanding compilers. */
22653 # include <limits.h>
22655 # include <assert.h>
22660 /* Override any GCC internal prototype to avoid an error.
22661 Use char because int might match the return type of a GCC
22662 builtin and then its argument prototype would still apply. */
22667 /* The GNU C library defines this for functions which it implements
22668 to always fail with ENOSYS. Some functions are actually named
22669 something starting with __ and the normal name is an alias. */
22670 #if defined __stub_$ac_func || defined __stub___$ac_func
22677 return $ac_func ();
22682 rm -f conftest.$ac_objext conftest$ac_exeext
22683 if { (ac_try="$ac_link"
22684 case "(($ac_try" in
22685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22686 *) ac_try_echo=$ac_try;;
22688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22689 (eval "$ac_link") 2>conftest.er1
22691 grep -v '^ *+' conftest.er1 >conftest.err
22693 cat conftest.err >&5
22694 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22695 (exit $ac_status); } && {
22696 test -z "$ac_c_werror_flag" ||
22697 test ! -s conftest.err
22698 } && test -s conftest$ac_exeext &&
22699 $as_test_x conftest$ac_exeext; then
22700 eval "$as_ac_var=yes"
22702 echo "$as_me: failed program was
:" >&5
22703 sed 's/^/| /' conftest.$ac_ext >&5
22705 eval "$as_ac_var=no
"
22708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22709 conftest$ac_exeext conftest.$ac_ext
22711 ac_res=`eval echo '${'$as_ac_var'}'`
22712 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22713 echo "${ECHO_T}$ac_res" >&6; }
22714 if test `eval echo '${'$as_ac_var'}'` = yes; then
22715 cat >>confdefs.h <<_ACEOF
22716 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22722 if test "x
$ac_cv_func_fork" = xyes; then
22723 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22724 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22725 if test "${ac_cv_func_fork_works+set}" = set; then
22726 echo $ECHO_N "(cached
) $ECHO_C" >&6
22728 if test "$cross_compiling" = yes; then
22729 ac_cv_func_fork_works=cross
22731 cat >conftest.$ac_ext <<_ACEOF
22734 cat confdefs.h >>conftest.$ac_ext
22735 cat >>conftest.$ac_ext <<_ACEOF
22736 /* end confdefs.h. */
22737 $ac_includes_default
22742 /* By Ruediger Kuhlmann. */
22743 return fork () < 0;
22749 rm -f conftest$ac_exeext
22750 if { (ac_try="$ac_link"
22751 case "(($ac_try" in
22752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22753 *) ac_try_echo=$ac_try;;
22755 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22756 (eval "$ac_link") 2>&5
22758 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22759 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22760 { (case "(($ac_try" in
22761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22762 *) ac_try_echo=$ac_try;;
22764 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22765 (eval "$ac_try") 2>&5
22767 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22768 (exit $ac_status); }; }; then
22769 ac_cv_func_fork_works=yes
22771 echo "$as_me: program exited with status
$ac_status" >&5
22772 echo "$as_me: failed program was
:" >&5
22773 sed 's/^/| /' conftest.$ac_ext >&5
22775 ( exit $ac_status )
22776 ac_cv_func_fork_works=no
22778 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22783 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22784 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22787 ac_cv_func_fork_works=$ac_cv_func_fork
22789 if test "x
$ac_cv_func_fork_works" = xcross; then
22791 *-*-amigaos* | *-*-msdosdjgpp*)
22792 # Override, as these systems have only a dummy fork() stub
22793 ac_cv_func_fork_works=no
22796 ac_cv_func_fork_works=yes
22799 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22800 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22802 ac_cv_func_vfork_works=$ac_cv_func_vfork
22803 if test "x
$ac_cv_func_vfork" = xyes; then
22804 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22805 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22806 if test "${ac_cv_func_vfork_works+set}" = set; then
22807 echo $ECHO_N "(cached
) $ECHO_C" >&6
22809 if test "$cross_compiling" = yes; then
22810 ac_cv_func_vfork_works=cross
22812 cat >conftest.$ac_ext <<_ACEOF
22815 cat confdefs.h >>conftest.$ac_ext
22816 cat >>conftest.$ac_ext <<_ACEOF
22817 /* end confdefs.h. */
22818 /* Thanks to Paul Eggert for this test. */
22819 $ac_includes_default
22820 #include <sys/wait.h>
22821 #ifdef HAVE_VFORK_H
22822 # include <vfork.h>
22824 /* On some sparc systems, changes by the child to local and incoming
22825 argument registers are propagated back to the parent. The compiler
22826 is told about this with #include <vfork.h>, but some compilers
22827 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22828 static variable whose address is put into a register that is
22829 clobbered by the vfork. */
22832 sparc_address_test (int arg)
22834 sparc_address_test (arg) int arg;
22837 static pid_t child;
22855 pid_t parent = getpid ();
22858 sparc_address_test (0);
22863 /* Here is another test for sparc vfork register problems. This
22864 test uses lots of local variables, at least as many local
22865 variables as main has allocated so far including compiler
22866 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22867 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22868 reuse the register of parent for one of the local variables,
22869 since it will think that parent can't possibly be used any more
22870 in this routine. Assigning to the local variable will thus
22871 munge parent in the parent process. */
22873 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22874 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22875 /* Convince the compiler that p..p7 are live; otherwise, it might
22876 use the same hardware register for all 8 local variables. */
22877 if (p != p1 || p != p2 || p != p3 || p != p4
22878 || p != p5 || p != p6 || p != p7)
22881 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22882 from child file descriptors. If the child closes a descriptor
22883 before it execs or exits, this munges the parent's descriptor
22884 as well. Test for this by closing stdout in the child. */
22885 _exit(close(fileno(stdout)) != 0);
22890 while (wait(&status) != child)
22893 /* Was there some problem with vforking? */
22896 /* Did the child fail? (This shouldn't happen.) */
22899 /* Did the vfork/compiler bug occur? */
22900 || parent != getpid()
22902 /* Did the file descriptor bug occur? */
22903 || fstat(fileno(stdout), &st) != 0
22908 rm -f conftest$ac_exeext
22909 if { (ac_try="$ac_link"
22910 case "(($ac_try" in
22911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22912 *) ac_try_echo=$ac_try;;
22914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22915 (eval "$ac_link") 2>&5
22917 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22919 { (case "(($ac_try" in
22920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22921 *) ac_try_echo=$ac_try;;
22923 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22924 (eval "$ac_try") 2>&5
22926 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22927 (exit $ac_status); }; }; then
22928 ac_cv_func_vfork_works=yes
22930 echo "$as_me: program exited with status
$ac_status" >&5
22931 echo "$as_me: failed program was
:" >&5
22932 sed 's/^/| /' conftest.$ac_ext >&5
22934 ( exit $ac_status )
22935 ac_cv_func_vfork_works=no
22937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22942 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22943 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22946 if test "x
$ac_cv_func_fork_works" = xcross; then
22947 ac_cv_func_vfork_works=$ac_cv_func_vfork
22948 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22949 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22952 if test "x
$ac_cv_func_vfork_works" = xyes; then
22954 cat >>confdefs.h <<\_ACEOF
22955 #define HAVE_WORKING_VFORK 1
22960 cat >>confdefs.h <<\_ACEOF
22965 if test "x
$ac_cv_func_fork_works" = xyes; then
22967 cat >>confdefs.h <<\_ACEOF
22968 #define HAVE_WORKING_FORK 1
22974 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22975 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22976 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22977 echo $ECHO_N "(cached
) $ECHO_C" >&6
22979 cat >conftest.$ac_ext <<_ACEOF
22982 cat confdefs.h >>conftest.$ac_ext
22983 cat >>conftest.$ac_ext <<_ACEOF
22984 /* end confdefs.h. */
22985 #include <langinfo.h>
22989 char* cs = nl_langinfo(CODESET);
22994 rm -f conftest.$ac_objext conftest$ac_exeext
22995 if { (ac_try="$ac_link"
22996 case "(($ac_try" in
22997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22998 *) ac_try_echo=$ac_try;;
23000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23001 (eval "$ac_link") 2>conftest.er1
23003 grep -v '^ *+' conftest.er1 >conftest.err
23005 cat conftest.err >&5
23006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23007 (exit $ac_status); } && {
23008 test -z "$ac_c_werror_flag" ||
23009 test ! -s conftest.err
23010 } && test -s conftest$ac_exeext &&
23011 $as_test_x conftest$ac_exeext; then
23012 emacs_cv_langinfo_codeset=yes
23014 echo "$as_me: failed program was
:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23017 emacs_cv_langinfo_codeset=no
23020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23021 conftest$ac_exeext conftest.$ac_ext
23024 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23025 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23026 if test $emacs_cv_langinfo_codeset = yes; then
23028 cat >>confdefs.h <<\_ACEOF
23029 #define HAVE_LANGINFO_CODESET 1
23034 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23035 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23036 if test "${ac_cv_type_size_t+set}" = set; then
23037 echo $ECHO_N "(cached
) $ECHO_C" >&6
23039 cat >conftest.$ac_ext <<_ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h. */
23045 $ac_includes_default
23046 typedef size_t ac__type_new_;
23050 if ((ac__type_new_ *) 0)
23052 if (sizeof (ac__type_new_))
23058 rm -f conftest.$ac_objext
23059 if { (ac_try="$ac_compile"
23060 case "(($ac_try" in
23061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23062 *) ac_try_echo=$ac_try;;
23064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23065 (eval "$ac_compile") 2>conftest.er1
23067 grep -v '^ *+' conftest.er1 >conftest.err
23069 cat conftest.err >&5
23070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23071 (exit $ac_status); } && {
23072 test -z "$ac_c_werror_flag" ||
23073 test ! -s conftest.err
23074 } && test -s conftest.$ac_objext; then
23075 ac_cv_type_size_t=yes
23077 echo "$as_me: failed program was
:" >&5
23078 sed 's/^/| /' conftest.$ac_ext >&5
23080 ac_cv_type_size_t=no
23083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23085 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23086 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23087 if test $ac_cv_type_size_t = yes; then
23089 cat >>confdefs.h <<_ACEOF
23090 #define HAVE_SIZE_T 1
23097 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23098 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23099 if test "${ac_cv_type_mbstate_t+set}" = set; then
23100 echo $ECHO_N "(cached
) $ECHO_C" >&6
23102 cat >conftest.$ac_ext <<_ACEOF
23105 cat confdefs.h >>conftest.$ac_ext
23106 cat >>conftest.$ac_ext <<_ACEOF
23107 /* end confdefs.h. */
23108 $ac_includes_default
23109 # include <wchar.h>
23113 mbstate_t x; return sizeof x;
23118 rm -f conftest.$ac_objext
23119 if { (ac_try="$ac_compile"
23120 case "(($ac_try" in
23121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23122 *) ac_try_echo=$ac_try;;
23124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23125 (eval "$ac_compile") 2>conftest.er1
23127 grep -v '^ *+' conftest.er1 >conftest.err
23129 cat conftest.err >&5
23130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23131 (exit $ac_status); } && {
23132 test -z "$ac_c_werror_flag" ||
23133 test ! -s conftest.err
23134 } && test -s conftest.$ac_objext; then
23135 ac_cv_type_mbstate_t=yes
23137 echo "$as_me: failed program was
:" >&5
23138 sed 's/^/| /' conftest.$ac_ext >&5
23140 ac_cv_type_mbstate_t=no
23143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23145 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23146 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23147 if test $ac_cv_type_mbstate_t = yes; then
23149 cat >>confdefs.h <<\_ACEOF
23150 #define HAVE_MBSTATE_T 1
23155 cat >>confdefs.h <<\_ACEOF
23156 #define mbstate_t int
23161 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23162 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23163 if test "${emacs_cv_c_restrict+set}" = set; then
23164 echo $ECHO_N "(cached
) $ECHO_C" >&6
23166 cat >conftest.$ac_ext <<_ACEOF
23169 cat confdefs.h >>conftest.$ac_ext
23170 cat >>conftest.$ac_ext <<_ACEOF
23171 /* end confdefs.h. */
23172 void fred (int *restrict x);
23181 rm -f conftest.$ac_objext
23182 if { (ac_try="$ac_compile"
23183 case "(($ac_try" in
23184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23185 *) ac_try_echo=$ac_try;;
23187 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23188 (eval "$ac_compile") 2>conftest.er1
23190 grep -v '^ *+' conftest.er1 >conftest.err
23192 cat conftest.err >&5
23193 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23194 (exit $ac_status); } && {
23195 test -z "$ac_c_werror_flag" ||
23196 test ! -s conftest.err
23197 } && test -s conftest.$ac_objext; then
23198 emacs_cv_c_restrict=yes
23200 echo "$as_me: failed program was
:" >&5
23201 sed 's/^/| /' conftest.$ac_ext >&5
23203 cat >conftest.$ac_ext <<_ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h. */
23209 void fred (int *__restrict x);
23218 rm -f conftest.$ac_objext
23219 if { (ac_try="$ac_compile"
23220 case "(($ac_try" in
23221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23222 *) ac_try_echo=$ac_try;;
23224 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23225 (eval "$ac_compile") 2>conftest.er1
23227 grep -v '^ *+' conftest.er1 >conftest.err
23229 cat conftest.err >&5
23230 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23231 (exit $ac_status); } && {
23232 test -z "$ac_c_werror_flag" ||
23233 test ! -s conftest.err
23234 } && test -s conftest.$ac_objext; then
23235 emacs_cv_c_restrict=__restrict
23237 echo "$as_me: failed program was
:" >&5
23238 sed 's/^/| /' conftest.$ac_ext >&5
23240 emacs_cv_c_restrict=no
23243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23248 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23249 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23250 case "$emacs_cv_c_restrict" in
23251 yes) emacs_restrict=restrict;;
23252 no) emacs_restrict="";;
23253 *) emacs_restrict="$emacs_cv_c_restrict";;
23255 if test "$emacs_restrict" != __restrict; then
23257 cat >>confdefs.h <<_ACEOF
23258 #define __restrict $emacs_restrict
23263 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23264 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23265 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23266 echo $ECHO_N "(cached
) $ECHO_C" >&6
23268 cat >conftest.$ac_ext <<_ACEOF
23271 cat confdefs.h >>conftest.$ac_ext
23272 cat >>conftest.$ac_ext <<_ACEOF
23273 /* end confdefs.h. */
23274 void fred (int x[__restrict]);
23283 rm -f conftest.$ac_objext
23284 if { (ac_try="$ac_compile"
23285 case "(($ac_try" in
23286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287 *) ac_try_echo=$ac_try;;
23289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23290 (eval "$ac_compile") 2>conftest.er1
23292 grep -v '^ *+' conftest.er1 >conftest.err
23294 cat conftest.err >&5
23295 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23296 (exit $ac_status); } && {
23297 test -z "$ac_c_werror_flag" ||
23298 test ! -s conftest.err
23299 } && test -s conftest.$ac_objext; then
23300 emacs_cv_c_restrict_arr=yes
23302 echo "$as_me: failed program was
:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23305 emacs_cv_c_restrict_arr=no
23308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23310 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23311 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23312 if test "$emacs_cv_c_restrict_arr" = yes; then
23314 cat >>confdefs.h <<\_ACEOF
23315 #define __restrict_arr __restrict
23322 # Set up the CFLAGS for real compilation, so we can substitute it.
23323 CFLAGS="$REAL_CFLAGS"
23324 CPPFLAGS="$REAL_CPPFLAGS"
23326 #### Find out which version of Emacs this is.
23327 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23328 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23329 if test x"${version}" = x; then
23330 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23331 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23332 { (exit 1); exit 1; }; }
23335 ### Specify what sort of things we'll be editing into Makefile and config.h.
23336 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23372 cat >>confdefs.h <<_ACEOF
23373 #define EMACS_CONFIGURATION "${canonical}"
23377 cat >>confdefs.h <<_ACEOF
23378 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23382 cat >>confdefs.h <<_ACEOF
23383 #define config_machfile "${machfile}"
23387 cat >>confdefs.h <<_ACEOF
23388 #define config_opsysfile "${opsysfile}"
23392 cat >>confdefs.h <<_ACEOF
23393 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23397 cat >>confdefs.h <<_ACEOF
23398 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23402 cat >>confdefs.h <<_ACEOF
23403 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23407 cat >>confdefs.h <<_ACEOF
23408 #define UNEXEC_SRC ${UNEXEC_SRC}
23412 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23414 cat >>confdefs.h <<\_ACEOF
23415 #define HAVE_X_WINDOWS 1
23419 if test "${USE_X_TOOLKIT}" != "none
" ; then
23421 cat >>confdefs.h <<\_ACEOF
23422 #define USE_X_TOOLKIT 1
23426 if test "${HAVE_X11}" = "yes" ; then
23428 cat >>confdefs.h <<\_ACEOF
23433 if test "${HAVE_XFREE386}" = "yes" ; then
23435 cat >>confdefs.h <<\_ACEOF
23436 #define HAVE_XFREE386 1
23440 if test "${HAVE_MENUS}" = "yes" ; then
23442 cat >>confdefs.h <<\_ACEOF
23443 #define HAVE_MENUS 1
23447 if test "${GNU_MALLOC}" = "yes" ; then
23449 cat >>confdefs.h <<\_ACEOF
23450 #define GNU_MALLOC 1
23454 if test "${REL_ALLOC}" = "yes" ; then
23456 cat >>confdefs.h <<\_ACEOF
23457 #define REL_ALLOC 1
23466 #### Report on what we decided to do.
23467 #### Report GTK as a toolkit, even if it doesn't use Xt.
23468 #### It makes printing result more understandable as using GTK sets
23469 #### toolkit_scroll_bars to yes by default.
23470 if test "${HAVE_GTK}" = "yes"; then
23475 Configured
for \
`${canonical}'.
23477 Where should the build process find the source code? ${srcdir}
23478 What operating system and machine description files should Emacs use?
23479 \`${opsysfile}' and \`${machfile}'
23480 What compiler should emacs be built with?
${CC} ${CFLAGS}
23481 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23482 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23483 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23484 What window system should Emacs use?
${window_system}
23485 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23487 if test -n "${x_includes}"; then
23488 echo " Where
do we
find X Windows header files?
${x_includes}"
23490 echo " Where
do we
find X Windows header files? Standard
dirs"
23492 if test -n "${x_libraries}"; then
23493 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23495 echo " Where
do we
find X Windows libraries? Standard
dirs"
23498 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23499 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23500 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23501 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23502 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23503 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23504 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23507 if test $USE_XASSERTS = yes; then
23508 echo " Compiling with asserts turned on.
"
23509 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23513 if test "$USE_X_TOOLKIT" = GTK; then
23514 case "$canonical" in
23516 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23517 will probably get a crash on startup. If this happens
, please use another
23518 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23525 # Remove any trailing slashes in these variables.
23526 test "${prefix}" != NONE &&
23527 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23528 test "${exec_prefix}" != NONE &&
23529 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23531 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23532 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23533 ## from Makefile.c can correctly provide the arg `-traditional' to the
23536 cat >conftest.$ac_ext <<_ACEOF
23539 cat confdefs.h >>conftest.$ac_ext
23540 cat >>conftest.$ac_ext <<_ACEOF
23541 /* end confdefs.h. */
23544 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23545 $EGREP "yes..
yes" >/dev/null 2>&1; then
23546 CPP_NEED_TRADITIONAL=no
23548 CPP_NEED_TRADITIONAL=yes
23553 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
"
23555 ac_config_commands="$ac_config_commands default
"
23557 cat >confcache <<\_ACEOF
23558 # This file is a shell script that caches the results of configure
23559 # tests run on this system so they can be shared between configure
23560 # scripts and configure runs, see configure's option --config-cache.
23561 # It is not useful on other systems. If it contains results you don't
23562 # want to keep, you may remove or edit it.
23564 # config.status only pays attention to the cache file if you give it
23565 # the --recheck option to rerun configure.
23567 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23568 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23569 # following values.
23573 # The following way of writing the cache mishandles newlines in values,
23574 # but we know of no workaround that is simple, portable, and efficient.
23575 # So, we kill variables containing newlines.
23576 # Ultrix sh set writes to stderr and can't be redirected directly,
23577 # and sets the high bit in the cache file unless we assign to the vars.
23579 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23580 eval ac_val=\$$ac_var
23584 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23585 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23588 _ | IFS | as_nl) ;; #(
23589 *) $as_unset $ac_var ;;
23595 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23596 *${as_nl}ac_space=\ *)
23597 # `set' does not quote correctly, so add quotes (double-quote
23598 # substitution turns \\\\ into \\, and sed turns \\ into \).
23601 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23604 # `set' quotes correctly as required by POSIX, so do not add quotes.
23605 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23616 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23618 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23619 if test -w "$cache_file"; then
23620 test "x
$cache_file" != "x
/dev
/null
" &&
23621 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23622 echo "$as_me: updating cache
$cache_file" >&6;}
23623 cat confcache >$cache_file
23625 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23626 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23631 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23632 # Let make expand exec_prefix.
23633 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23635 DEFS=-DHAVE_CONFIG_H
23639 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23640 # 1. Remove the extension, and $U if already installed.
23641 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23642 ac_i=`echo "$ac_i" | sed "$ac_script"`
23643 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23644 # will be set to the directory where LIBOBJS objects are built.
23645 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23646 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23648 LIBOBJS=$ac_libobjs
23650 LTLIBOBJS=$ac_ltlibobjs
23654 : ${CONFIG_STATUS=./config.status}
23655 ac_clean_files_save=$ac_clean_files
23656 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23657 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23658 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23659 cat >$CONFIG_STATUS <<_ACEOF
23661 # Generated by $as_me.
23662 # Run this file to recreate the current configuration.
23663 # Compiler output produced by configure, useful for debugging
23664 # configure, is in config.log if it exists.
23667 ac_cs_recheck=false
23669 SHELL=\${CONFIG_SHELL-$SHELL}
23672 cat >>$CONFIG_STATUS <<\_ACEOF
23673 ## --------------------- ##
23674 ## M4sh Initialization. ##
23675 ## --------------------- ##
23677 # Be more Bourne compatible
23678 DUALCASE=1; export DUALCASE # for MKS sh
23679 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23682 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23683 # is contrary to our usage. Disable this feature.
23684 alias -g '${1+"$@"}'='"$@
"'
23685 setopt NO_GLOB_SUBST
23687 case `(set -o) 2>/dev/null` in
23688 *posix*) set -o posix ;;
23697 # Avoid depending upon Character Ranges.
23698 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23699 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23700 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23701 as_cr_digits='0123456789'
23702 as_cr_alnum=$as_cr_Letters$as_cr_digits
23704 # The user is always right.
23705 if test "${PATH_SEPARATOR+set}" != set; then
23706 echo "#! /bin/sh" >conf$$.sh
23707 echo "exit 0" >>conf$$.sh
23709 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23717 # Support unset when possible.
23718 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23726 # We need space, tab and new line, in precisely that order. Quoting is
23727 # there to prevent editors from complaining about space-tab.
23728 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23729 # splitting by setting IFS to empty value.)
23734 # Find who we are. Look in the path if we contain no directory separator.
23736 *[\\/]* ) as_myself
=$0 ;;
23737 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23738 for as_dir
in $PATH
23741 test -z "$as_dir" && as_dir
=.
23742 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23748 # We did not find ourselves, most probably we were run as `sh COMMAND'
23749 # in which case we are not to be found in the path.
23750 if test "x$as_myself" = x
; then
23753 if test ! -f "$as_myself"; then
23754 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23755 { (exit 1); exit 1; }
23758 # Work around bugs in pre-3.0 UWIN ksh.
23759 for as_var
in ENV MAIL MAILPATH
23760 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23768 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23769 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23770 LC_TELEPHONE LC_TIME
23772 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23773 eval $as_var=C
; export $as_var
23775 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23779 # Required to use basename.
23780 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23781 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23787 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23788 as_basename
=basename
23794 # Name of the executable.
23795 as_me
=`$as_basename -- "$0" ||
23796 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23797 X"$0" : 'X\(//\)$' \| \
23798 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23800 sed '/^.*\/\([^/][^/]*\)\/*$/{
23819 as_lineno_1
=$LINENO
23820 as_lineno_2
=$LINENO
23821 test "x$as_lineno_1" != "x$as_lineno_2" &&
23822 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23824 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23825 # uniformly replaced by the line number. The first 'sed' inserts a
23826 # line-number line after each line using $LINENO; the second 'sed'
23827 # does the real work. The second script uses 'N' to pair each
23828 # line-number line with the line containing $LINENO, and appends
23829 # trailing '-' during substitution so that $LINENO is not a special
23830 # case at line end.
23831 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23832 # scripts with optimization help from Paolo Bonzini. Blame Lee
23833 # E. McMahon (1931-1989) for sed's syntax. :-)
23845 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23848 ' >$as_me.lineno
&&
23849 chmod +x
"$as_me.lineno" ||
23850 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23851 { (exit 1); exit 1; }; }
23853 # Don't try to exec as it changes $[0], causing all sort of problems
23854 # (the dirname of $[0] is not the place where we might find the
23855 # original and so on. Autoconf is especially sensitive to this).
23856 .
"./$as_me.lineno"
23857 # Exit status is that of the last command.
23862 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23868 ECHO_C
= ECHO_N
= ECHO_T
=
23869 case `echo -n x` in
23871 case `echo 'x\c'` in
23872 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23879 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23880 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23886 rm -f conf$$ conf$$.exe conf$$.
file
23887 if test -d conf$$.dir
; then
23888 rm -f conf$$.dir
/conf$$.
file
23894 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23896 # ... but there are two gotchas:
23897 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23898 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23899 # In both cases, we have to default to `cp -p'.
23900 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23902 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23907 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23908 rmdir conf$$.dir
2>/dev
/null
23910 if mkdir
-p .
2>/dev
/null
; then
23913 test -d .
/-p && rmdir .
/-p
23917 if test -x / >/dev
/null
2>&1; then
23918 as_test_x
='test -x'
23920 if ls -dL / >/dev
/null
2>&1; then
23927 if test -d "$1"; then
23933 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23934 ???[sx]*):;;*)false;;esac;fi
23938 as_executable_p
=$as_test_x
23940 # Sed expression to map a string onto a valid CPP name.
23941 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23943 # Sed expression to map a string onto a valid variable name.
23944 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23949 # Save the log message, to keep $[0] and so on meaningful, and to
23950 # report actual input values of CONFIG_FILES etc. instead of their
23951 # values after options handling.
23953 This file was extended by $as_me, which was
23954 generated by GNU Autoconf 2.61. Invocation command line was
23956 CONFIG_FILES = $CONFIG_FILES
23957 CONFIG_HEADERS = $CONFIG_HEADERS
23958 CONFIG_LINKS = $CONFIG_LINKS
23959 CONFIG_COMMANDS = $CONFIG_COMMANDS
23962 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23967 cat >>$CONFIG_STATUS <<_ACEOF
23968 # Files that config.status was made for.
23969 config_files="$ac_config_files"
23970 config_headers="$ac_config_headers"
23971 config_commands="$ac_config_commands"
23975 cat >>$CONFIG_STATUS <<\_ACEOF
23977 \`$as_me' instantiates files from templates according to the
23978 current configuration.
23980 Usage: $0 [OPTIONS] [FILE]...
23982 -h, --help print this help, then exit
23983 -V, --version print version number and configuration settings, then exit
23984 -q, --quiet do not print progress messages
23985 -d, --debug don't remove temporary files
23986 --recheck update $as_me by reconfiguring in the same conditions
23987 --file=FILE[:TEMPLATE]
23988 instantiate the configuration file FILE
23989 --header=FILE[:TEMPLATE]
23990 instantiate the configuration header FILE
23992 Configuration files:
23995 Configuration headers:
23998 Configuration commands:
24001 Report bugs to <bug-autoconf@gnu.org>."
24004 cat >>$CONFIG_STATUS <<_ACEOF
24007 configured by $0, generated by GNU Autoconf 2.61,
24008 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24010 Copyright (C) 2006 Free Software Foundation, Inc.
24011 This config.status script is free software; the Free Software Foundation
24012 gives unlimited permission to copy, distribute and modify it."
24019 cat >>$CONFIG_STATUS <<\_ACEOF
24020 # If no file are specified by the user, then we need to provide default
24021 # value. By we need to know if files were specified by the user.
24027 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24028 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24039 # Handling of the options.
24040 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24042 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24043 echo "$ac_cs_version"; exit ;;
24044 --debug |
--debu |
--deb |
--de |
--d |
-d )
24046 --file |
--fil |
--fi |
--f )
24048 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24049 ac_need_defaults
=false
;;
24050 --header |
--heade |
--head |
--hea )
24052 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24053 ac_need_defaults
=false
;;
24055 # Conflict between --help and --header
24056 { echo "$as_me: error: ambiguous option: $1
24057 Try \`$0 --help' for more information." >&2
24058 { (exit 1); exit 1; }; };;
24059 --help |
--hel |
-h )
24060 echo "$ac_cs_usage"; exit ;;
24061 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24062 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24065 # This is an error.
24066 -*) { echo "$as_me: error: unrecognized option: $1
24067 Try \`$0 --help' for more information." >&2
24068 { (exit 1); exit 1; }; } ;;
24070 *) ac_config_targets
="$ac_config_targets $1"
24071 ac_need_defaults
=false
;;
24077 ac_configure_extra_args
=
24079 if $ac_cs_silent; then
24081 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24085 cat >>$CONFIG_STATUS <<_ACEOF
24086 if \$ac_cs_recheck; then
24087 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24088 CONFIG_SHELL=$SHELL
24089 export CONFIG_SHELL
24090 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24094 cat >>$CONFIG_STATUS <<\_ACEOF
24098 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24099 ## Running $as_me. ##
24105 cat >>$CONFIG_STATUS <<_ACEOF
24109 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24113 cat >>$CONFIG_STATUS <<\_ACEOF
24115 # Handling of arguments.
24116 for ac_config_target
in $ac_config_targets
24118 case $ac_config_target in
24119 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24120 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24121 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24122 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24123 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
24124 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24125 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24126 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24127 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
24128 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
24129 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24130 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24132 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24133 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24134 { (exit 1); exit 1; }; };;
24139 # If the user did not use the arguments to specify the items to instantiate,
24140 # then the envvar interface is used. Set only those that are not.
24141 # We use the long form for the default assignment because of an extremely
24142 # bizarre bug on SunOS 4.1.3.
24143 if $ac_need_defaults; then
24144 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24145 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24146 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24149 # Have a temporary directory for convenience. Make it in the build tree
24150 # simply because there is no reason against having it here, and in addition,
24151 # creating and moving files from /tmp can sometimes cause problems.
24152 # Hook for its removal unless debugging.
24153 # Note that there is a small window in which the directory will not be cleaned:
24154 # after its creation but before its name has been assigned to `$tmp'.
24158 trap 'exit_status=$?
24159 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24161 trap '{ (exit 1); exit 1; }' 1 2 13 15
24163 # Create a (secure) tmp directory for tmp files.
24166 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24167 test -n "$tmp" && test -d "$tmp"
24170 tmp
=.
/conf$$
-$RANDOM
24171 (umask 077 && mkdir
"$tmp")
24174 echo "$me: cannot create a temporary directory in ." >&2
24175 { (exit 1); exit 1; }
24179 # Set up the sed scripts for CONFIG_FILES section.
24182 # No need to generate the scripts if there are no CONFIG_FILES.
24183 # This happens for instance when ./config.status config.h
24184 if test -n "$CONFIG_FILES"; then
24191 for ac_last_try
in false false false false false
:; do
24192 cat >conf$
$subs.
sed <<_ACEOF
24193 SHELL!$SHELL$ac_delim
24194 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24195 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24196 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24197 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24198 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24199 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24200 exec_prefix!$exec_prefix$ac_delim
24201 prefix!$prefix$ac_delim
24202 program_transform_name!$program_transform_name$ac_delim
24203 bindir!$bindir$ac_delim
24204 sbindir!$sbindir$ac_delim
24205 libexecdir!$libexecdir$ac_delim
24206 datarootdir!$datarootdir$ac_delim
24207 datadir!$datadir$ac_delim
24208 sysconfdir!$sysconfdir$ac_delim
24209 sharedstatedir!$sharedstatedir$ac_delim
24210 localstatedir!$localstatedir$ac_delim
24211 includedir!$includedir$ac_delim
24212 oldincludedir!$oldincludedir$ac_delim
24213 docdir!$docdir$ac_delim
24214 infodir!$infodir$ac_delim
24215 htmldir!$htmldir$ac_delim
24216 dvidir!$dvidir$ac_delim
24217 pdfdir!$pdfdir$ac_delim
24218 psdir!$psdir$ac_delim
24219 libdir!$libdir$ac_delim
24220 localedir!$localedir$ac_delim
24221 mandir!$mandir$ac_delim
24222 DEFS!$DEFS$ac_delim
24223 ECHO_C!$ECHO_C$ac_delim
24224 ECHO_N!$ECHO_N$ac_delim
24225 ECHO_T!$ECHO_T$ac_delim
24226 LIBS!$LIBS$ac_delim
24227 build_alias!$build_alias$ac_delim
24228 host_alias!$host_alias$ac_delim
24229 target_alias!$target_alias$ac_delim
24230 MAINT!$MAINT$ac_delim
24231 build!$build$ac_delim
24232 build_cpu!$build_cpu$ac_delim
24233 build_vendor!$build_vendor$ac_delim
24234 build_os!$build_os$ac_delim
24235 host!$host$ac_delim
24236 host_cpu!$host_cpu$ac_delim
24237 host_vendor!$host_vendor$ac_delim
24238 host_os!$host_os$ac_delim
24240 CFLAGS!$CFLAGS$ac_delim
24241 LDFLAGS!$LDFLAGS$ac_delim
24242 CPPFLAGS!$CPPFLAGS$ac_delim
24243 ac_ct_CC!$ac_ct_CC$ac_delim
24244 EXEEXT!$EXEEXT$ac_delim
24245 OBJEXT!$OBJEXT$ac_delim
24247 GREP!$GREP$ac_delim
24248 EGREP!$EGREP$ac_delim
24249 LN_S!$LN_S$ac_delim
24250 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24251 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24252 INSTALL_DATA!$INSTALL_DATA$ac_delim
24253 RANLIB!$RANLIB$ac_delim
24254 INSTALL_INFO!$INSTALL_INFO$ac_delim
24255 GZIP_PROG!$GZIP_PROG$ac_delim
24256 LIBSOUND!$LIBSOUND$ac_delim
24257 PKG_CONFIG!$PKG_CONFIG$ac_delim
24258 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24259 ALSA_LIBS!$ALSA_LIBS$ac_delim
24260 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24261 SET_MAKE!$SET_MAKE$ac_delim
24262 XMKMF!$XMKMF$ac_delim
24263 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24264 GTK_LIBS!$GTK_LIBS$ac_delim
24265 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24266 XFT_LIBS!$XFT_LIBS$ac_delim
24267 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24268 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24269 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24270 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24271 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24272 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24273 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24274 ALLOCA!$ALLOCA$ac_delim
24275 liblockfile!$liblockfile$ac_delim
24276 LIBOBJS!$LIBOBJS$ac_delim
24277 NEED_SETGID!$NEED_SETGID$ac_delim
24278 KMEM_GROUP!$KMEM_GROUP$ac_delim
24279 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24280 GETOPT_H!$GETOPT_H$ac_delim
24281 GETOPTOBJS!$GETOPTOBJS$ac_delim
24282 version!$version$ac_delim
24283 configuration!$configuration$ac_delim
24284 canonical!$canonical$ac_delim
24285 srcdir!$srcdir$ac_delim
24286 lispdir!$lispdir$ac_delim
24287 locallisppath!$locallisppath$ac_delim
24288 lisppath!$lisppath$ac_delim
24289 x_default_search_path!$x_default_search_path$ac_delim
24292 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24294 elif $ac_last_try; then
24295 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24296 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24297 { (exit 1); exit 1; }; }
24299 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24303 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24304 if test -n "$ac_eof"; then
24305 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24306 ac_eof
=`expr $ac_eof + 1`
24309 cat >>$CONFIG_STATUS <<_ACEOF
24310 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24311 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24314 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24315 s/^/s,@/; s/!/@,|#_!!_#|/
24318 s/'"$ac_delim"'$/,g/; t
24320 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24321 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24322 rm -f conf$
$subs.
sed
24323 cat >>$CONFIG_STATUS <<_ACEOF
24329 for ac_last_try
in false false false false false
:; do
24330 cat >conf$
$subs.
sed <<_ACEOF
24331 etcdir!$etcdir$ac_delim
24332 archlibdir!$archlibdir$ac_delim
24333 bitmapdir!$bitmapdir$ac_delim
24334 gamedir!$gamedir$ac_delim
24335 gameuser!$gameuser$ac_delim
24336 c_switch_system!$c_switch_system$ac_delim
24337 c_switch_machine!$c_switch_machine$ac_delim
24338 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24339 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24340 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24341 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24342 machfile!$machfile$ac_delim
24343 opsysfile!$opsysfile$ac_delim
24344 carbon_appdir!$carbon_appdir$ac_delim
24345 LTLIBOBJS!$LTLIBOBJS$ac_delim
24348 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24350 elif $ac_last_try; then
24351 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24352 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24353 { (exit 1); exit 1; }; }
24355 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24359 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24360 if test -n "$ac_eof"; then
24361 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24362 ac_eof
=`expr $ac_eof + 1`
24365 cat >>$CONFIG_STATUS <<_ACEOF
24366 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24367 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24370 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24371 s/^/s,@/; s/!/@,|#_!!_#|/
24374 s/'"$ac_delim"'$/,g/; t
24376 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24377 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24378 rm -f conf$
$subs.
sed
24379 cat >>$CONFIG_STATUS <<_ACEOF
24386 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24387 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24388 # trailing colons and then remove the whole line if VPATH becomes empty
24389 # (actually we leave an empty line to preserve line numbers).
24390 if test "x$srcdir" = x.
; then
24391 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24392 s/:*\$(srcdir):*/:/
24393 s/:*\${srcdir}:*/:/
24395 s/^\([^=]*=[ ]*\):*/\1/
24401 cat >>$CONFIG_STATUS <<\_ACEOF
24402 fi # test -n "$CONFIG_FILES"
24405 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24408 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24410 case $ac_mode$ac_tag in
24412 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24413 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24414 { (exit 1); exit 1; }; };;
24415 :[FH
]-) ac_tag
=-:-;;
24416 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24433 -) ac_f
="$tmp/stdin";;
24434 *) # Look for the file first in the build tree, then in the source tree
24435 # (if the path is not absolute). The absolute path cannot be DOS-style,
24436 # because $ac_f cannot contain `:'.
24440 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24442 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24443 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24444 { (exit 1); exit 1; }; };;
24446 ac_file_inputs
="$ac_file_inputs $ac_f"
24449 # Let's still pretend it is `configure' which instantiates (i.e., don't
24450 # use $as_me), people would be surprised to read:
24451 # /* config.h. Generated by config.status. */
24452 configure_input
="Generated from "`IFS=:
24453 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24454 if test x
"$ac_file" != x-
; then
24455 configure_input
="$ac_file. $configure_input"
24456 { echo "$as_me:$LINENO: creating $ac_file" >&5
24457 echo "$as_me: creating $ac_file" >&6;}
24461 *:-:* |
*:-) cat >"$tmp/stdin";;
24466 ac_dir
=`$as_dirname -- "$ac_file" ||
24467 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24468 X"$ac_file" : 'X\(//\)[^/]' \| \
24469 X"$ac_file" : 'X\(//\)$' \| \
24470 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24472 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24476 /^X\(\/\/\)[^/].*/{
24491 -*) as_dir
=.
/$as_dir;;
24493 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24497 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24498 *) as_qdir
=$as_dir;;
24500 as_dirs
="'$as_qdir' $as_dirs"
24501 as_dir
=`$as_dirname -- "$as_dir" ||
24502 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24503 X"$as_dir" : 'X\(//\)[^/]' \| \
24504 X"$as_dir" : 'X\(//\)$' \| \
24505 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24511 /^X\(\/\/\)[^/].*/{
24524 test -d "$as_dir" && break
24526 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24527 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24528 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24529 { (exit 1); exit 1; }; }; }
24533 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24535 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24536 # A ".." for each directory in $ac_dir_suffix.
24537 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24538 case $ac_top_builddir_sub in
24539 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24540 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24543 ac_abs_top_builddir
=$ac_pwd
24544 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24545 # for backward compatibility:
24546 ac_top_builddir
=$ac_top_build_prefix
24549 .
) # We are building in place.
24551 ac_top_srcdir
=$ac_top_builddir_sub
24552 ac_abs_top_srcdir
=$ac_pwd ;;
24553 [\\/]* | ?
:[\\/]* ) # Absolute name.
24554 ac_srcdir
=$srcdir$ac_dir_suffix;
24555 ac_top_srcdir
=$srcdir
24556 ac_abs_top_srcdir
=$srcdir ;;
24557 *) # Relative name.
24558 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24559 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24560 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24562 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24572 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24573 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24577 cat >>$CONFIG_STATUS <<\_ACEOF
24578 # If the template does not know about datarootdir, expand it.
24579 # FIXME: This hack should be removed a few years after 2.60.
24580 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24582 case `sed -n '/datarootdir/ {
24591 ' $ac_file_inputs` in
24592 *datarootdir
*) ac_datarootdir_seen
=yes;;
24593 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24594 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24595 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24597 cat >>$CONFIG_STATUS <<_ACEOF
24598 ac_datarootdir_hack='
24599 s&@datadir@&$datadir&g
24600 s&@docdir@&$docdir&g
24601 s&@infodir@&$infodir&g
24602 s&@localedir@&$localedir&g
24603 s&@mandir@&$mandir&g
24604 s&\\\${datarootdir}&$datarootdir&g' ;;
24608 # Neutralize VPATH when `$srcdir' = `.'.
24609 # Shell code in configure.ac might set extrasub.
24610 # FIXME: do we really want to maintain this feature?
24611 cat >>$CONFIG_STATUS <<_ACEOF
24615 cat >>$CONFIG_STATUS <<\_ACEOF
24617 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24618 s
&@configure_input@
&$configure_input&;t t
24619 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24620 s
&@srcdir@
&$ac_srcdir&;t t
24621 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24622 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24623 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24624 s
&@builddir@
&$ac_builddir&;t t
24625 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24626 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24627 s
&@INSTALL@
&$ac_INSTALL&;t t
24628 $ac_datarootdir_hack
24629 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24631 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24632 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24633 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24634 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24635 which seems to be undefined. Please make sure it is defined." >&5
24636 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24637 which seems to be undefined. Please make sure it is defined." >&2;}
24641 -) cat "$tmp/out"; rm -f "$tmp/out";;
24642 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24651 # Transform confdefs.h into a sed script `conftest.defines', that
24652 # substitutes the proper values into config.h.in to produce config.h.
24653 rm -f conftest.defines conftest.
tail
24654 # First, append a space to every undef/define line, to ease matching.
24655 echo 's/$/ /' >conftest.defines
24656 # Then, protect against being on the right side of a sed subst, or in
24657 # an unquoted here document, in config.status. If some macros were
24658 # called several times there might be several #defines for the same
24659 # symbol, which is useless. But do not sort them, since the last
24660 # AC_DEFINE must be honored.
24661 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24662 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24663 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24664 # PARAMS is the parameter list in the macro definition--in most cases, it's
24665 # just an empty string.
24666 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24667 ac_dB
='\\)[ (].*,\\1define\\2'
24675 s/^[ ]*#[ ]*define[ ][ ]*//
24680 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24681 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24682 ' >>conftest.defines
24684 # Remove the space that was appended to ease matching.
24685 # Then replace #undef with comments. This is necessary, for
24686 # example, in the case of _POSIX_SOURCE, which is predefined and required
24687 # on some systems where configure will not decide to define it.
24688 # (The regexp can be short, since the line contains either #define or #undef.)
24690 s,^[ #]*u.*,/* & */,' >>conftest.defines
24692 # Break up conftest.defines:
24693 ac_max_sed_lines
=50
24695 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24696 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24697 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24699 ac_in
='$ac_file_inputs'
24700 ac_out
='"$tmp/out1"'
24701 ac_nxt
='"$tmp/out2"'
24705 # Write a here document:
24706 cat >>$CONFIG_STATUS <<_ACEOF
24707 # First, check the format of the line:
24708 cat >"\$tmp/defines.sed" <<\\CEOF
24709 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24710 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24714 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24716 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24717 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24718 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24719 grep . conftest.
tail >/dev
/null ||
break
24720 rm -f conftest.defines
24721 mv conftest.
tail conftest.defines
24723 rm -f conftest.defines conftest.
tail
24725 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24726 cat >>$CONFIG_STATUS <<\_ACEOF
24727 if test x
"$ac_file" != x-
; then
24728 echo "/* $configure_input */" >"$tmp/config.h"
24729 cat "$ac_result" >>"$tmp/config.h"
24730 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24731 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24732 echo "$as_me: $ac_file is unchanged" >&6;}
24735 mv "$tmp/config.h" $ac_file
24738 echo "/* $configure_input */"
24744 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24745 echo "$as_me: executing $ac_file commands" >&6;}
24750 case $ac_file$ac_mode in
24753 ### Make the necessary directories, if they don't exist.
24754 for dir
in etc lisp
; do
24755 test -d ${dir} || mkdir
${dir}
24758 # Build src/Makefile from ${srcdir}/src/Makefile.c
24759 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24760 # This must be done after src/config.h is built, since we rely on that file.
24762 # Now get this: Some word that is part of the ${srcdir} directory name
24763 # or the ${configuration} value might, just might, happen to be an
24764 # identifier like `sun4' or `i386' or something, and be predefined by
24765 # the C preprocessor to some helpful value like 1, or maybe the empty
24766 # string. Needless to say consequent macro substitutions are less
24767 # than conducive to the makefile finding the correct directory.
24768 undefs
="`echo $top_srcdir $configuration $canonical |
24769 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24770 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24773 echo creating src
/epaths.h
24774 ${MAKE-make} epaths-force
24776 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24777 # `..' to `. .' unless invoked with -traditional
24779 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24780 CPPFLAGS
="$CPPFLAGS -traditional"
24783 echo creating lib-src
/Makefile
24785 rm -f junk.c junk1.c junk2.c
24786 sed -e '/start of cpp stuff/q' \
24787 < Makefile.c
> junk1.c
24788 sed -e '1,/start of cpp stuff/d'\
24789 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24790 < Makefile.c
> junk.c
24791 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24792 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24793 cat junk1.c junk2.c
> Makefile.new
24794 rm -f junk.c junk1.c junk2.c
24795 chmod 444 Makefile.new
24796 mv -f Makefile.new Makefile
24799 echo creating src
/Makefile
24801 rm -f junk.c junk1.c junk2.c
24802 sed -e '/start of cpp stuff/q' \
24803 < Makefile.c
> junk1.c
24804 sed -e '1,/start of cpp stuff/d'\
24805 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24806 < Makefile.c
> junk.c
24807 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
24808 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
24810 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24811 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24812 cat junk1.c junk2.c
> Makefile.new
24813 rm -f junk.c junk1.c junk2.c
24814 chmod 444 Makefile.new
24815 mv -f Makefile.new Makefile
24818 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24819 echo creating src
/.gdbinit
24820 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24823 # This is how we know whether to re-run configure in certain cases.
24824 touch src
/config.stamp
24832 { (exit 0); exit 0; }
24834 chmod +x
$CONFIG_STATUS
24835 ac_clean_files
=$ac_clean_files_save
24838 # configure is writing to config.log, and then calls config.status.
24839 # config.status does its own redirection, appending to config.log.
24840 # Unfortunately, on DOS this fails, as config.log is still kept open
24841 # by configure, so config.status won't be able to write to it; its
24842 # output is simply discarded. So we exec the FD to /dev/null,
24843 # effectively closing config.log, so it can be properly (re)opened and
24844 # appended to by config.status. When coming back to configure, we
24845 # need to make the FD available again.
24846 if test "$no_create" != yes; then
24848 ac_config_status_args
=
24849 test "$silent" = yes &&
24850 ac_config_status_args
="$ac_config_status_args --quiet"
24852 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24854 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24855 # would make configure fail if this is the last instruction.
24856 $ac_cs_success ||
{ (exit 1); exit 1; }